/**
 * @author John Calvin
 */
function mainmenu(){
$(" #nav ul ").css({display: "none"});
$(" #nav li").hover(function(){
      $(this).find('ul:first').css({visibility: "visible",display: "none"}).show(400);
      },function(){
      $(this).find('ul:first').css({visibility: "hidden"});
      });
$("#nav1").hover(function(){
		$("img",this).attr('src','resources/wholehousesystema.png');
	},function(){
		$("img",this).attr('src','resources/wholehousesystem.png');
	});
$("#nav2").hover(function(){
		$("img",this).attr('src','resources/fresha.png');
	},function(){
		$("img",this).attr('src','resources/fresh.png');
	});
$("#nav3").hover(function(){
		$("img",this).attr('src','resources/cleana.png');
	},function(){
		$("img",this).attr('src','resources/clean.png');
	});
$("#nav4").hover(function(){
		$("img",this).attr('src','resources/purea.png');
	},function(){
		$("img",this).attr('src','resources/pure.png');
	});
}

$(document).ready(function(){
      mainmenu();
});
