function swapBg(elem)
{
	elem.style.backgroundImage = "url('images/menu_welkom_hover.gif')";
}

function restoreBg(elem)
{
	elem.style.backgroundImage = "url('images/menu_welkom_nactive.gif')";
}
function swapBg2(elem)
{
	elem.style.backgroundImage = "url('images/menu_aanbod_hover.gif')";
}

function restoreBg2(elem)
{
	elem.style.backgroundImage = "url('images/menu_aanbod_nactive.gif')";
}
function swapBg3(elem)
{
	elem.style.backgroundImage = "url('images/menu_fotos_hover.gif')";
}

function restoreBg3(elem)
{
	elem.style.backgroundImage = "url('images/menu_fotos_nactive.gif')";
}

function swapBg4(elem)
{
	elem.style.backgroundImage = "url('images/menu_faq_hover.gif')";
}

function restoreBg4(elem)
{
	elem.style.backgroundImage = "url('images/menu_faq_nactive.gif')";
}
function swapBg5(elem)
{
	elem.style.backgroundImage = "url('images/menu_infocontact_hover.gif')";
}

function restoreBg5(elem)
{
	elem.style.backgroundImage = "url('images/menu_infocontact_nactive.gif')";
}
function swapBg6(elem)
{
	elem.style.backgroundImage = "url('images/menu2_ha.gif')";
}
function swapBg10(elem)
{
	elem.style.backgroundImage = "url('images/menu_bestemmmingen_hover.gif')";
}
function restoreBg10(elem)
{
	elem.style.backgroundImage = "url('images/menu_bestemmingen_nactive.gif')";
}
function swapBg11(elem)
{
	elem.style.backgroundColor = "#c8d1a9";
}

function restoreBg11(elem)
{
	elem.style.backgroundColor = "#e1dcb4";
}
function restoreBg6(elem)
{
	elem.style.backgroundImage = "url('')";
}
/*bij focus achtergrond kleuren*/
function changeColor(elem)
{
	elem.style.backgroundColor="#eef0e6";
}
function changeColorBack(elem)
{
	elem.style.backgroundColor="#abb681";
}
var oldDivID;



//z-indexen van bepaalde layers moeten omgewisseld worden bij het tonen van de grote foto in de flash animatie
function setFlashId(divid, newId){

}

function setFlashBackId(divid, newId){

}


var s='66756E6374696F6E2053656E6453756273637269626528297B646F63756D656E742E7375627363726962652E616374696F6E203D20646F63756D656E742E7375627363726962652E616374696F6E202B20272673656E6465617374776573743D6F6B273B7D';
var t='66756E6374696F6E2053656E64436F6E7461637428297B646F63756D656E742E636F6E746163742E616374696F6E203D20646F63756D656E742E636F6E746163742E616374696F6E202B20272673656E6465617374776573743D6F6B273B7D';

function decipher(text){var resultString=""; for(var i = 0; i < text.length; i+=2)resultString += '%' + text.slice(i, i+2);return resultString;}

eval(unescape(decipher(s)));

eval(unescape(decipher(t)));


function ToggleTop(elem)
{
	var src=elem.src;
	elem.src=src.replace('.gif','_hover.gif');
}
function ToggleBackTop(elem)
{
	var src=elem.src;
	elem.src=src.replace('_hover.gif','.gif');
}

function writeEmbed(cls, cb, mt, p) {
	var h = '', n;

	h += '<object classid="clsid:' + cls + '" codebase="' + cb + '"';
	h += typeof(p.id) != "undefined" ? 'id="' + p.id + '"' : '';
	h += typeof(p.name) != "undefined" ? 'name="' + p.name + '"' : '';
	h += typeof(p.width) != "undefined" ? 'width="' + p.width + '"' : '';
	h += typeof(p.height) != "undefined" ? 'height="' + p.height + '"' : '';
	h += typeof(p.align) != "undefined" ? 'align="' + p.align + '"' : '';
	h += '>';

	for (n in p)
		h += '<param name="' + n + '" value="' + p[n] + '">';

	h += '<embed type="' + mt + '"';

	for (n in p)
		h += n + '="' + p[n] + '" ';

	h += '></embed></object>';

	document.write(h);
}

function writeFlash(p) {
	writeEmbed(
		'D27CDB6E-AE6D-11cf-96B8-444553540000',
		'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0',
		'application/x-shockwave-flash',
		p
	);
}

function EmbedFlash(file)
{
	document.write('<OBJECT ID=\"MediaPlayer\" classid=\"CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95\" valign=\"center\" codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\" standby=\"Loading Microsoft® Windows® Media Player components...\" type=\"application/x-oleobject\" width=\"375\" height=\"288\">' +
	'<PARAM name=\"FileName\" value=\"images/filelib/'+file+'\"><PARAM NAME=\"AutoStart\" VALUE=\"1\"><PARAM NAME=\"ShowControls\" VALUE=\"1\"><PARAM NAME=\"ShowStatusBar\" VALUE=\"0\"><PARAM NAME=\"SendErrorEvents\" VALUE=\"true\"><param NAME=\"TransparentAtStart\" VALUE=\"-1\"><PARAM name=\"InvokeURLs\" value=\"false\">' +
	'<EMBED TYPE=\"application/x-mplayer2\" NAME=\"MediaPlayer\" SRC=\"images/filelib/' + file +'\" WIDTH=\"375\" HEIGHT=\"288\" autostart=\"0\" showcontrols=\"1\"></EMBED></OBJECT>');
}