function gotoPage(navID,itemID){
	if (itemID==undefined){itemID = 0}
	window.location.href = "?page=" + navID + "&item=" + itemID + "&lanid=1"
}
function getObject(parName, parWidth, parHeight, parVersion) {
	/*****************************************************************
	parName:   volledige path & filename vanaf de file waarin het object wordt geplaatst
	parWidth:  Breedte van het object (bijv "1024")
	parHeight: Hoogte van het object	(bijv "768")
	parVersion: versie van het object (bijv "6")								10/10/2006 14:27
	*****************************************************************/
	var x
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+parVersion+',0,0,0" width="'+parWidth+'" height="'+parHeight+'" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain"/>');
	document.write('<param name="movie" value="'+parName+'" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="play" value="true" />');
	document.write('<param name="wmode" value="transparent" />');
//	document.write('<param name="bgcolor" value="#ffffff" />');
//	document.write('<embed src="'+parName+'" quality="high" bgcolor="#ffffff" width="'+parWidth+'" height="'+parHeight+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('<embed src="'+parName+'" quality="high" width="'+parWidth+'" height="'+parHeight+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"  play="true" wmode="transparent"/>');
	document.write('</object>');
	return x;
}  // getObject()
function switchHomeImg(parSrc){
	document.images["prodImg"].src = "/cmdata/images/TopBanners/topbanners/" + parSrc;
}
var footerClosedHeight;
var footerOpenHeight;
var blnFooterActive = false;
footerClosedHeight = 60;
function init() {
}
function toggleFooter() {
	if (!blnFooterActive) {
		document.getElementById("footer_bottom").style.display = "block";
		footerOpenHeight = document.getElementById("footer_container").offsetHeight;
		blnFooterActive = true;
		showFooter();
	} else {
		if (document.getElementById("footer_bottom").style.display != "block") {
			showFooter();
		} else {
			hideFooter();
		}
	}
}
function showFooter() {



	if ( blnFooterActive ) {
		if (document.getElementById("footer_bottom").style.display != "block") {
	 		document.getElementById("footer_container").style.height = footerOpenHeight +'px';
			document.getElementById("footer_bottom").style.display = "block";
		}
	}
}
function hideFooter() {
	if ( blnFooterActive ) {
		if (document.getElementById("footer_bottom").style.display != "none") {
			document.getElementById("footer_container").style.height = footerClosedHeight +'px';
			document.getElementById("footer_bottom").style.display = "none";
		}
	}
}
function CheckSubscriptionForm() {
	if (document.forms['SubForm'].elements['Name'].value.length < 1 ||
			document.forms['SubForm'].elements['Name'].value == 'Naam' ){
 		alert('U heeft uw naam niet ingevuld!');
 		return;
 	} else if (document.forms['SubForm'].elements['Email'].value.length < 7 ||
			document.forms['SubForm'].elements['Email'].value.indexOf("@") == -1 ||
			document.forms['SubForm'].elements['Email'].value.indexOf(".") == -1 ||
			document.forms['SubForm'].elements['Email'].value == 'E-mailadres' ){
 		alert('U heeft geen (geldig) emailadres ingevuld!');
 		return;
 	} else {
		document.forms['SubForm'].submit();
 	}
}

