$(document).ready(
	function(){
		
		$("#h1").mouseover(
			function(){
				$(this).attr("src","/images/h1-.gif");
			}
		);
		
		$("#h1").mouseout(
			function(){
				if($("#homecontent1").css("display")=="none"){
					$(this).attr("src","/images/h1.gif");
				}
			}
		);
		
		$("#h2").mouseover(
			function(){
				$(this).attr("src","/images/h2-.gif");
			}
		);
		
		$("#h2").mouseout(
			function(){
				if($("#homecontent2").css("display")=="none"){
					$(this).attr("src","/images/h2.gif");
				}
			}
		);
		
		$("#h3").mouseover(
			function(){
				$(this).attr("src","/images/h3-.gif");
			}
		);
		
		$("#h3").mouseout(
			function(){
				if($("#homecontent3").css("display")=="none"){
					$(this).attr("src","/images/h3.gif");
				}
			}
		);
		
		$("#h4").mouseover(
			function(){
				$(this).attr("src","/images/h4-.gif");
			}
		);
		
		$("#h4").mouseout(
			function(){
				if($("#homecontent4").css("display")=="none"){
					$(this).attr("src","/images/h4.gif");
				}
			}
		);
		
		$("#linkh1").click(
			function(){
				$("#h1").attr("src","/images/h1-.gif");
				$("#h2").attr("src","/images/h2.gif");
				$("#h3").attr("src","/images/h3.gif");
				$("#h4").attr("src","/images/h4.gif");
				$("#homecontent1").fadeIn("slow");
				$("#homecontent2").hide();
				$("#homecontent3").hide();
				$("#homecontent4").hide();
				return false;
			}
		);
		
		$("#linkh2").click(
			function(){
				$("#h2").attr("src","/images/h2-.gif");
				$("#h1").attr("src","/images/h1.gif");
				$("#h3").attr("src","/images/h3.gif");
				$("#h4").attr("src","/images/h4.gif");
				$("#homecontent2").fadeIn("slow");
				$("#homecontent1").hide();
				$("#homecontent3").hide();
				$("#homecontent4").hide();
						
				return false;
			}
		);
		
		$("#linkh3").click(
			function(){				
				$("#h3").attr("src","/images/h3-.gif");
				$("#h1").attr("src","/images/h1.gif");
				$("#h2").attr("src","/images/h2.gif");
				$("#h4").attr("src","/images/h4.gif");
				$("#homecontent3").fadeIn("slow");			
				$("#homecontent1").hide();
				$("#homecontent2").hide();
				$("#homecontent4").hide();
				
				return false;
			}
		);
		
		$("#linkh4").click(
			function(){				
				$("#h4").attr("src","/images/h4-.gif");
				$("#h1").attr("src","/images/h1.gif");
				$("#h2").attr("src","/images/h2.gif");
				$("#h3").attr("src","/images/h3.gif");
				$("#homecontent4").fadeIn("slow");				
				$("#homecontent1").hide();
				$("#homecontent2").hide();
				$("#homecontent3").hide();
				
				return false;
			}
		);
	}
);