<!--

$(document).ready(function(){
	
	
	/* localNav mods */
	$("#localNav li:last").addClass("last");
	
	var sInputK = 'Uw zoekwoord...';
	
	$('#keyWords').focus(function(){		
		if ($('#keyWords').val()==sInputK){
			$('#keyWords').val('');
		}
	}).blur(function(){
		if ($('#keyWords').val()==''){
			$('#keyWords').val(sInputK);
		}
	});
	
	var sInputL = 'Uw e-mailadres...';
	
	$('#emailAddress').focus(function(){		
		if ($('#emailAddress').val()==sInputL){
			$('#emailAddress').val('');
		}
	}).blur(function(){
		if ($('#emailAddress').val()==''){
			$('#emailAddress').val(sInputL);
		}
	});
	
	//uitklapmenu bij globalnav
	$("#globalNav ul li").hover(
		function () {
			$(this).children("ul").css({'display' : 'block'});
		}, 
		function () {
			$(this).children("ul").css({'display' : 'none'});
		}
	);
	
	//uitklapmenu bij sportwerelden
	$(".selectBoxSelected").hover(
		function () {
			$(this).children(".selectBox").css({'display' : 'block'});
		}, 
		function () {
			$(this).children(".selectBox").css({'display' : 'none'});
		}
	);
	
	$(".selectBox li:last-child a").css({'borderBottom' : 'none'});
	
});



function toggle(param)
{	

	var obj = document.getElementById(param);
	

	if (obj.style.display == "none" || obj.style.display == "")
	{
		obj.style.display = "block";
	}
	else
	{
		obj.style.display = "none";
	}

}

function toggleClear(theText,sMsg) {
  
	 if (theText.value == theText.defaultValue) {
         theText.value = ""
     }
	 if (theText.value == "") {
         theText.value = sMsg
     }
 }


//Uitklapmenu!

navHover = function() {
	
	var lis = document.getElementById("globalNav").getElementsByTagName("LI");
	
	for (var i=0; i<lis.length; i++) {
		lis[i].onmouseover=function() {
			this.className+=" iehover";
		}
		lis[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}

// Flashobject activeX workaround
function makeFlashObj(sID, sPath, sWidth, sHeight, sBG)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="' + sID + '" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + sWidth + '" height="' + sHeight + '">');
	document.write('<param name="movie" value="' + sPath + '">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="bgcolor" value="' + sBG + '">');
	document.write('<embed bgcolor="' + sBG + '" src="' + sPath + '" quality="high" id="' + sID + '" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + sWidth + '" height="' + sHeight + '"></embed>');
	document.write('</object>');
}

//-->