function InitializeMenu()
{
	if (document.all && document.getElementById)
	{
		var navRoot = document.getElementById("Nav");
		for (i=0; i<navRoot.childNodes.length; i++)
		{
			node = navRoot.childNodes[i];
			if (node.nodeName == "LI")
			{
				node.onmouseover=function()
				{
					this.className+=" over";
				}
				node.onmouseout=function()
				{
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}


function GetDay(nDay)
{
	var Days = new Array("Zondag","Maandag","Dinsdag","Woensdag",
	                     "Donderdag","Vrijdag","Zaterdag");
	return Days[nDay]
}

function GetMonth(nMonth)
{
	var Months = new Array("januari","februari","maart","april","mei","juni",
	                       "juli","augustus","september","oktober","november","december");
	return Months[nMonth] 	  	 
}

function DateString()
{
	var Today = new Date();
	var strDate = GetDay(Today.getDay()) + " " + Today.getDate() + " " + GetMonth(Today.getMonth()) + " " + Today.getFullYear();
	return strDate
}

function WriteEmailAddress (name, domain, topLevelDomain, css)
{
	document.write('<a');
	if (css.length > 0)
	{
		document.write(' class=\"' + css + '\"');
	}
	document.write(' href=\"mailto:' + name + '@' + domain + '.' + topLevelDomain + '\">');
	document.write(name + '@' + domain + '.' + topLevelDomain + '</a>');
}

function SendData()
{
	var Activate = ""
	var strFoutmelding = "De volgende gegevens zijn minimaal nodig om de gewenste informatie te kunnen versturen:\n\n"
	if (document.informatie.bedrijfsnaam.value == ""){strFoutmelding += "- uw bedrijfsnaam\n"; if (Activate == "") Activate="bedrijfsnaam";}
	if (document.informatie.contactpersoon.value == ""){strFoutmelding += "- contactpersoon\n"; if (Activate == "") Activate="contactpersoon";}
	if (Activate != ""){
	  eval("document.informatie." + Activate + ".focus()");
	  alert(strFoutmelding); }
	else document.informatie.submit();  
}

function nieuwsbriefsubmit()
{
		var Activate = ""
		var strFoutmelding = "Wij verzoeken u onderstaande gegevens in te vullen:\n\n"
		if (document.join.sMember_Forename.value == ""){strFoutmelding += "- Voornaam\n"; if (Activate == "") Activate="sMember_Forename";}
		if (document.join.sMember_Surname.value == ""){strFoutmelding += "- Achteraam\n"; if (Activate == "") Activate="sMember_Surname";}		
		if (Activate != ""){
		  eval("document.join." + Activate + ".focus()");
		  alert(strFoutmelding); }
		else document.join.submit();  
}

function WriteFlashObject(flashURL, ancho, alto, uniqueId)
{
	var theUniqueid = '';
	if (uniqueId != null)
	{
		if (uniqueId.length > 0)
		{
			theUniqueid = ' id=\"' + uniqueId + '\"';
		}
	}
	if (navigator.userAgent.indexOf("MSIE") == -1){
   document.write('<embed src="' + flashURL + '"' + theUniqueid + ' quality="high" wmode="transparent" pluginspage="<http://www.macromedia.com/go/getflashplayer>http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + ancho +'" height="' +  alto +'"></embed>');
  }else if(navigator.userAgent.indexOf("MSIE") != -1){
   document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="<http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0>http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"  width="' + ancho +  '" height="' + alto + '"><param name="movie" value="'  +  flashURL +'" /><param name="wmode" value="transparent" /><param name="quality" value="high" /></object>')
  }
}

