/*
	Main Nav:
		on nav mouseover, apply a class to the parent UL; 
		that classname defines the background image position
		list is sort of like a psuedo-image map
	
	Dropdown:
		apply the sfhover class to the selected list item; css handles the rest

*/


$(document).ready(function(){

	$('#nav>ul>li').hover(
		function(){
			$(this).addClass('sfhover');
			$(this).parent().addClass( $(this).attr('id') );
		}, 
		function(){
			$(this).removeClass('sfhover');
			$(this).parent().removeClass( $(this).attr('id') );
		}
	);
	
});
	
	
	
// http://www.mister-pixel.com/#Content__state=is_that_simple
try {
document.execCommand("BackgroundImageCache", false, true);
} catch(err) {}