window.onload=function() {
	 vervangSifrTitels();	
}

function vervangSifrTitels() {
	if(typeof sIFR == "function"){
		sIFR.replaceElement(".kleur1", named({sFlashSrc: "css/metaplusliningbold.swf", sColor: "#0393d2;",sCase: "normal", sWmode:"transparent"}));
		sIFR.replaceElement(".kleur2", named({sFlashSrc: "css/metaplusliningbold.swf", sColor: "#000000;",sCase: "normal", sWmode:"transparent"}));
		sIFR.replaceElement(".kleur3", named({sFlashSrc: "css/metaplusliningbold.swf", sColor: "#FFFFFF;",sCase: "normal", sWmode:"transparent"}));
	};
}


/* voor de vergroting van referentieafbeeldingen */
function changepic(klein,wijzigpijltje) { 
	var groot = klein.replace("small", "big");
	document.getElementById('ref_big').src = groot;
	document.getElementById('pijltje').style.top = wijzigpijltje + 'px';
}

function commercial(mode) {
	document.getElementById('video-overlay').onclick = function() { commercial('hide'); 	} 
	if (mode == "show")
	{
	var newdiv = document.createElement('div');
    newdiv.setAttribute('id','flashcontent_2');
	newdiv.innerHTML = '<img src="grfx/alternate_movieplayer.jpg" width="400" height="353" alt="" />';
    document.getElementById('video').appendChild(newdiv);


	document.getElementById('video-overlay').style.display = '';
	document.getElementById('video').style.display = '';
	var so = new SWFObject("swf/Proflite_commercial.swf", "ProFlite Commercial", "400", "350", "8", "#FFFFFF");
	so.addParam("wmode", "transparent");
	so.addParam("allowScriptAccess", "always");
	so.addParam("menu","0");
	so.write("flashcontent_2");
	}

	if (mode == "hide")
	{
	document.getElementById('video-overlay').style.display = 'none';
	document.getElementById('video').style.display = 'none';
	var obj=document.getElementById("video");
	obj.removeChild(obj.firstChild);
	}
}


function degrotebeurt(mode) {
	document.getElementById('video-overlay').onclick = function() { commercial('hide'); 	} 
	if (mode == "show")
	{
	var newdiv = document.createElement('div');
    newdiv.setAttribute('id','flashcontent_2');
	newdiv.innerHTML = '<img src="grfx/alternate_movieplayer.jpg" width="400" height="353" alt="" />';
    document.getElementById('video').appendChild(newdiv);


	document.getElementById('video-overlay').style.display = '';
	document.getElementById('video').style.display = '';
	var so = new SWFObject("swf/Proflite_dgb.swf", "ProFlite Commercial", "400", "350", "8", "#FFFFFF");
	so.addParam("wmode", "transparent");
	so.addParam("allowScriptAccess", "always");
	so.addParam("menu","0");
	so.write("flashcontent_2");
	}

	if (mode == "hide")
	{
	document.getElementById('video-overlay').style.display = 'none';
	document.getElementById('video').style.display = 'none';
	var obj=document.getElementById("video");
	obj.removeChild(obj.firstChild);
	}
}



