if (screen.height > 768) { var check = "groot"; }
else { var check = "klein"; }

function toondiv(div) {
	if(document.getElementById(div).style.display == "none") { 
		document.getElementById(div).style.display = "block"; 
	}
	else { document.getElementById(div).style.display = "none"; }	
}


function toonopties() {
	if(document.getElementById('ikbenopties').style.display == "none") { 
		document.getElementById('ikbenopties').style.display = "block"; 
	}
	else { document.getElementById('ikbenopties').style.display = "none"; }
}

function swap(div) {
	document.getElementById(div).className = "menubottomknop_over";	
}

function swapback(div) {
	document.getElementById(div).className = "menubottomknop";	
}

function swapproduct(div) {
	document.getElementById(div).className = "productknop_over";	
}

function swapproductback(div) {
	document.getElementById(div).className = "productknop";	
}

function toonzitinstructie() {
	if(document.getElementById('div_algemeen_gallery')) { document.getElementById('div_algemeen_gallery').style.display = "none";  }
	if(document.getElementById('div_gallery_knoppen')) { document.getElementById('div_gallery_knoppen').style.visibility = "hidden";  }	
	if(document.getElementById('div_algemeen')) { document.getElementById('div_algemeen').style.display = "block";  }
	if(document.getElementById('div_kenmerken')) { document.getElementById('div_kenmerken').style.display = "none"; }
	if(document.getElementById('div_zitinstructie')) { document.getElementById('div_zitinstructie').style.display = "block"; }
}

function toonalgemeen() {
	if(document.getElementById('div_kenmerken')) { document.getElementById('div_kenmerken').style.display = "none"; }
	if(document.getElementById('div_zitinstructie')) { document.getElementById('div_zitinstructie').style.display = "none"; }
	if(document.getElementById('div_algemeen_gallery')) { document.getElementById('div_algemeen_gallery').style.display = "block";  }
	if(document.getElementById('div_gallery_knoppen')) { document.getElementById('div_gallery_knoppen').style.visibility = "visible";  }	
	if(document.getElementById('div_algemeen')) { document.getElementById('div_algemeen').style.display = "block";  }
	if(document.getElementById('knop_kenmerken')) { document.getElementById('knop_kenmerken').style.color = "#8e8e8e";  }
	if(document.getElementById('knop_overzicht')) { document.getElementById('knop_overzicht').style.color = "#000000";  }	
}

function toonkenmerken() {
	if(document.getElementById('div_zitinstructie')) { document.getElementById('div_zitinstructie').style.display = "none"; }
	if(document.getElementById('div_algemeen_gallery')) { document.getElementById('div_algemeen_gallery').style.display = "block";  }
	if(document.getElementById('div_gallery_knoppen')) { document.getElementById('div_gallery_knoppen').style.visibility = "visible";  }		
	if(document.getElementById('div_algemeen')) { document.getElementById('div_algemeen').style.display = "none";  }
	if(document.getElementById('div_kenmerken')) { document.getElementById('div_kenmerken').style.display = "block"; }
	if(document.getElementById('knop_overzicht')) { document.getElementById('knop_overzicht').style.color = "#8e8e8e";  }
	if(document.getElementById('knop_kenmerken')) { document.getElementById('knop_kenmerken').style.color = "#000000";  }
}


function showflash(hoofdstuk,width,height)
{
	var textwidth = width;
	var textheight = height;	


	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if(hasRightVersion) {  // if we've detected an acceptable version
		var oeTags = '<object style="display: block; " classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
		+ 'width="'+textwidth+'" height="'+textheight+'" align="right"'
		+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
		+ '<param name="movie" value="'+hoofdstuk+'" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><param name="menu" value="false" />'
		+ '<embed src="'+hoofdstuk+'" quality="high" wmode="transparent" bgcolor="#ffffff" '
		+ 'width="'+textwidth+'" height="'+textheight+'" name="clip" align="middle"'
		+ 'play="true"'
		+ 'loop="true"'
		+ 'quality="high"'
		+ 'allowScriptAccess="sameDomain"'
		+ 'type="application/x-shockwave-flash"'
		+ 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
		+ '<\/embed>'
		+ '<\/object>';
		document.write(oeTags);   // embed the flash movie
	  } else {  // flash is too old or we can't detect the plugin
		var alternateContent = '<span style="font-size: 11px; color: #000">Flash plugin versie 8 is vereist.<br>'
		+ 'Er is geen Flash plugin gevonden.<br>'
		+ '<a href=http://www.macromedia.com/go/getflash/>Download Flash 8 plugin</a></span>';
		document.write(alternateContent);  // insert non-flash content
	  }

}



function showflash_zi(hoofdstuk,width,height)
{
	var textwidth = width;
	var textheight = height;	


	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if(hasRightVersion) {  // if we've detected an acceptable version
		var oeTags = '<object style="display: block; " classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
		+ 'width="'+textwidth+'" height="'+textheight+'" align="right"'
		+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
		+ '<param name="movie" value="'+hoofdstuk+'" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><param name="menu" value="false" />'
		+ '<embed src="'+hoofdstuk+'" quality="high" wmode="transparent" bgcolor="#ffffff" '
		+ 'width="'+textwidth+'" height="'+textheight+'" name="clip" align="middle"'
		+ 'play="true"'
		+ 'loop="true"'
		+ 'quality="high"'
		+ 'allowScriptAccess="sameDomain"'
		+ 'type="application/x-shockwave-flash"'
		+ 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
		+ '<\/embed>'
		+ '<\/object>';
		document.write(oeTags);   // embed the flash movie
	  } else {  // flash is too old or we can't detect the plugin
		var alternateContent = '<span style="font-size: 11px; color: #000">Flash plugin versie 8 is vereist.<br>'
		+ 'Er is geen Flash plugin gevonden.<br>'
		+ '<a href=http://www.macromedia.com/go/getflash/>Download Flash 8 plugin</a></span>';
		document.write(alternateContent);  // insert non-flash content
	  }

}


function showflash_opening(hoofdstuk,width,height,margintop,marginleft,marginbottom)
{
	var textwidth = width;
	var textheight = height;	


	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if(hasRightVersion) {  // if we've detected an acceptable version
		var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
		+ 'width="'+textwidth+'" height="'+textheight+'" align="left" style="margin-top: '+margintop+'px; margin-left: '+marginleft+'px; margin-bottom: '+marginbottom+'px;"'
		+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
		+ '<param name="movie" value="'+hoofdstuk+'" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><param name="menu" value="false" />'
		+ '<embed src="'+hoofdstuk+'" quality="high" wmode="transparent" bgcolor="#ffffff" '
		+ 'width="'+textwidth+'" height="'+textheight+'" name="clip" align="middle"'
		+ 'play="true"'
		+ 'loop="true"'
		+ 'quality="high"'
		+ 'allowScriptAccess="sameDomain"'
		+ 'type="application/x-shockwave-flash"'
		+ 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
		+ '<\/embed>'
		+ '<\/object>';
		document.write(oeTags);   // embed the flash movie
	  } else {  // flash is too old or we can't detect the plugin
		var alternateContent = '<span style="font-size: 11px; color: #000">Flash plugin versie 8 is vereist.<br>'
		+ 'Er is geen Flash plugin gevonden.<br>'
		+ '<a href=http://www.macromedia.com/go/getflash/>Download Flash 8 plugin</a></span>';
		document.write(alternateContent);  // insert non-flash content
	  }

}


function checkpav() {
	if(document.getElementById('pav').checked == true) {
		document.getElementById('verzendknop').value = "Verzenden";
	}
	else {
		document.getElementById('verzendknop').value = "Doorgaan";
	}
}


function popitup(url) {
	newwindow=window.open(url,'name','height=630,width=760,scrollbars=yes,toolbar=no,location=no');
	if (window.focus) {newwindow.focus()}
	return false;
}
function popitupnow(url) {
	newwindow=window.open(url,'name','height=630,width=760,scrollbars=yes,toolbar=no,location=no');
}

