
$(document).ready(function(){
				
	$("#footer li:last").css("backgroundImage","none");





	$("#home_button").click(function(){ window.location.href = 'http://www.hekman-installatie.nl/'; });
	
	$("#unetoVNI_button").click(function(){ window.open('http://www.uneto-vni.nl/','_blank') });
	
	$("#header_btn").click(function(){ window.location.href  = '/pagina/9/storingservice.html'; });
	
	$("#elektra").click(function(){ window.location.href     = '/pagina/5/elektra.html'; });
	$("#sanitair").click(function(){ window.location.href    = '/pagina/6/sanitair.html'; });
	$("#cvtechniek").click(function(){ window.location.href  = '/pagina/7/cvtechniek.html'; });
	$("#service").click(function(){ window.location.href 	 = '/pagina/2/service.html'; });
	$("#dakzinkwerk").click(function(){ window.location.href = '/pagina/8/elektra.html'; });

	$(".success-message").fadeOut(3000);
	
	$(document).pngFix();

});

function insert_smiley(text)
{


	var target 			  = document.getElementById('message');

	var Start			  = target.selectionStart;
	var End 	 		  = target.selectionEnd;
	
	target.value		  = target.value.substr(0, Start) + text + target.value.substr(End, target.value.length); 
	target.selectionStart = (Start == End)? Start + text.length:Start;
	target.selectionEnd   = Start + text.length;
	
	target.focus();
}


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);

