$(document).ready(function() {
	
			
	// SUB NAVIGATION 
		// Preload all rollovers
		$("#nav-container ul li a img").each(function() {
			// Set the original src
			rollsrc = $(this).attr("src");
			rollON = rollsrc.replace(/_1.gif$/ig,"_2.gif");
			$("<img>").attr("src", rollON);
		});
		
		// Navigation rollovers
		$("#nav-container ul li a").mouseover(function(){
			
			imgsrc = $(this).children("img").attr("src");
			
			matches = imgsrc.match(/_2/);
		
			// don't do the rollover if state is already ON
			if (!matches) {
			imgsrcON = imgsrc.replace(/_1.gif$/ig,"_2.gif"); // strip off extension
			
			$(this).children("img").attr("src", imgsrcON);
			}
			
		});
		$("#nav-container ul li a").mouseout(function(){
			$(this).children("img").attr("src", imgsrc);
		});	
		
		
		// HOME PAGE SERVICES ROLLOVER
		$(".service-box").hover(
		
					function () {
						$(this).find('.description-box').css("background-image", "url(images/service-background-on.gif)");  
						//$(this).find('a').css("color", "#240f0e");  
						
					  }, 
					  function () {
						$(this).find('.description-box').css("background-image", "url(images/service-background-off.gif)"); 
						//$(this).find('a').css("color", "#685841");  
					  }

		);
			
	}); // end document ready

