$(document).ready(function(){
	// reset body height
	$("#mainBody").height($("#bottom").offset().top);
	$(".menu").hover(
		 function()
		 {
		  this.src = this.src.replace("_off","_over");
		 },
		 function()
		 {
		  this.src = this.src.replace("_over","_off");
		 }
	 );
	$("#lawbg").hover(
		function(){
			$("#lawyers_nav").attr("src","img/lawyers_nav_over.png");
			$(".navLawyers").show();
			$(".navServices").hide();
			$(this).css("cursor","pointer");
		},
		function(){
			$("#lawyers_nav").attr("src","img/lawyers_nav_off.png");
		}	
	);	
	$("#servbg").hover(
		function(){
			$("#services_nav").attr("src","img/so_nav_over.png");
			$(".navLawyers").hide();
			$(".navServices").show();
			$(this).css("cursor","pointer");
		},
		function(){
			$("#services_nav").attr("src","img/so_nav_off.png");
		}
	);
	if(!$("#about_nav").parent().attr("href")!="#"){
		$("#aboutbg").hover(function(){
			$("#about_nav").attr("src","img/about_nav_over.png");
			},
			function(){
			$("#about_nav").attr("src","img/about_nav_off.png");
			}		
		);
	}
	if(!$("#cont_nav").parent().attr("href")!="#"){
		$("#contbg").hover(function(){
			$("#cont_nav").attr("src","img/contact_nav_over.png");
			},
			function(){
			$("#cont_nav").attr("src","img/contact_nav_off.png");
			}		
		);
	}
	$("#title").mouseenter(function(){
		$(".navLawyers").hide();
		$(".navServices").hide();
	});
	$("#aboutbg").mouseenter(function(){
		$(".navLawyers").hide();
		$(".navServices").hide();
		$(this).css("cursor","pointer");
	});	
	$("#contbg").mouseenter(function(){
		$(".navLawyers").hide();
		$(".navServices").hide();
		$(this).css("cursor","pointer");
	});
	$(".section").mouseenter(function(){
		$(".navLawyers").hide();
		$(".navServices").hide();
	});		
    $(document).ready(function(){ 
        $(document).pngFix(); 
    }); 	
});

setTimeout("$('#mainBody').height($('#bottom').offset().top)",1000);

function sendHBmail(name,from,how,message){
	location.url("mailto:blah@blah.com")
}