
$(document).ready(function() { 

	$("#header_menu ul li:last").css("background-image","none");
	$("#footer_menu_1 ul li:last").css("background-image","none");
	$("#footer_menu_2 #nav li:last").css("background-image","none");
	
	$("#search-input").focus(function(){
				$("#search-input").attr("value","");
	 });
	
	$("#search-submit").click(function(){
			if($("#search-input").attr("value") != "Zoek op type, merk of omschrijving")
			{
				$("#formSearch").submit();
			}
	});
		   
	 $(".headerClick").click(function () { 
			window.location="/";
    	});

	 $("#heftruck").click(function () { 
			window.location="/pagina/3/heftrucks.html";
    	});
	 
	 	 $("#hoogwerker").click(function () { 
			window.location="/pagina/4/hoogwerkers.html";
    	});
		 
		 	 $("#transport").click(function () { 
			window.location="/pagina/5/transport.html";
    	});
	
 
  });






function ContentHeight()
			{
				var contentLeftHeight  = document.getElementById('content_left').offsetHeight;
				
				if($.browser.msie === true)
				{
					var contentRightHeight = document.getElementById('content_right').offsetHeight + 50;
				}else{
					var contentRightHeight = document.getElementById('content_right').offsetHeight;
				}
				
				if(contentRightHeight > 300 && contentRightHeight > contentLeftHeight)
				{
					document.getElementById('content-inner').style.height = contentRightHeight+'px';
				}
				else if(contentLeftHeight > contentRightHeight)
				{
					document.getElementById('content_right').style.height = contentLeftHeight+'px';
				}
			}


sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);





//--><!]]>
