function markActiveLink() {

	// preload career active button
	var cacheImage = document.createElement('img');
    cacheImage.src = '/siteimages/button-active.png';
	  
    //Look through all the links in the menu 
   $("div#main-menu a").filter(function() {

      //Take the current URL and split it into chunks at each slash
      var currentURL = window.location.toString().split("/");
	 	
      //return true if the bit after the last slash is the current page name
	  cur=currentURL[currentURL.length-1];
	  url=$(this).attr("href").toString().split("/");
	  url=url[url.length-1];
      if (url == cur || url=='') // or the address is empty
	  {
		p1=$(this).parent();
		
		// find the parent menu item container
		if (p1.parent().hasClass('clearfix')) // Topmenu item is selected
		{
			p1.addClass('selectedparent');
			return true;
		}
		else // Submenu item is selected 
		{			
		
			// Find the submenu container
			p2=p1;			
			p2.parent().parent().parent().parent().addClass('selectedparent');
			return true;
		}
	  }
	//when the filter function is done, you're left with the links that match.
    }).addClass("selecteditem");
 }
 $(document).ready(markActiveLink);
 
 /*  Rollover buttons */
 
 // Preload buttons
 var cacheImage1 = document.createElement('img');
 cacheImage1.src = '/siteimages/feedback_button-rollover.gif';
 var cacheImage2 = document.createElement('img');
 cacheImage2.src = '/siteimages/submit_button-rollover.gif';
 
 
 // Handle events
 $("#form_submit input").live('mouseover',function() {
		//$(this).addClass('rollover');
		src=$(this).attr("src");
		srcnew=src.substr(0,src.length-4)+'-rollover.gif';		
		$(this).attr("src", srcnew);
		
	});
$("#form_submit input").live('mouseout',function() {
		src=$(this).attr("src");
		srcnew=src.substr(0,src.length-13)+'.gif';		
		$(this).attr("src", srcnew);
		
	});
