
// Flashobject activeX workaround
function makeFlashObj(sID, sPath, sWidth, sHeight, sBG) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="' + sID + '" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + sWidth + '" height="' + sHeight + '">');
	document.write('<param name="movie" value="' + sPath + '">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="bgcolor" value="' + sBG + '">');
	document.write('<embed bgcolor="' + sBG + '" src="' + sPath + '" quality="high" id="' + sID + '" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + sWidth + '" height="' + sHeight + '"></embed>');
	document.write('</object>');
}

function getWindowHeight() {
	sWindowHeight = $(window).height();
	
	if (sWindowHeight > 600) { 
		$('#wrapper').height(sWindowHeight-90);
		$('#cols').height(sWindowHeight-90);
		$('#content').height(sWindowHeight-123);
	}
}

/*function makeItsIFR(root) {
	//<![CDATA[	
	///if(typeof sIFR == "function"){
		//algemeen
		///sIFR.replaceElement(named({sSelector:"#content h1, #content .Kop1", sFlashSrc: root + "flash/democraticabold.swf", sColor:"#cb5f57", sLinkColor:"#cb5f57", sBgColor:"#FFFFFF", sHoverColor:"#CCFFCC", sWmode:"transparent", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0"}));
		//homepage
		//sIFR.replaceElement(named({sSelector:"#homeBottom h3, #homeBottom .Kop3", sFlashSrc: root + "flash/candidaroman.swf", sColor:"#FFFFFF", sLinkColor:"#cb5f57", sBgColor:"#FFFFFF", sHoverColor:"#CCFFCC", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0"}));
		//sIFR.replaceElement(named({sSelector:"#globalNav li span", sFlashSrc: root + "flash/candidaroman.swf", sColor:"#FFF3B0", sLinkColor:"#FFF3B0", sBgColor:"#FFF3B0", sWmode:"transparent", sHoverColor:"#FFF3B0", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0"}));
		
		//sIFR.replaceElement(named({sSelector:"#content .sIfrThis", sFlashSrc: root + "flash/democraticabold.swf", sColor:"#E23C30", sLinkColor:"#002596", sBgColor:"#FFFFFF", sHoverColor:"#CCFFCC", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0"}));
	///};	
	//]]>
	var bauer = {
		src: root + 'flash/democraticabold.swf'
	};

	sIFR.delayCSS  = true;
	
	sIFR.activate(bauer);
	
	sIFR.replace(bauer, {
		selector: '#content h1, #content .Kop1'
		,css: [
		 '.sIFR-root { color:#cb5f57; font-size:38px }'
		]
			,wmode: 'transparent' 
	});
}*/

function HoverIn(id) {
	plaatje = "url(images/home_img/big"+id+".jpg)";	
	document.getElementById("imgBig").style.background = plaatje;
}
function openplayer(type){
			$(".videowrapper").css({'display':'block'});
			$(".videobox").css({'display':'block'});
			
			var video;
			switch(type){
			case 1:
			  video = '<object width="853" height="505"><param name="movie" value="http://www.youtube.com/v/-jqDl0vdtG8&hl=nl_NL&fs=1&hd=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/-jqDl0vdtG8&hl=nl_NL&fs=1&hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="853" height="505"></embed></object>';
			  break;
			case 2:
				video = '<object width="853" height="510"><param name="movie" value="http://www.youtube.com/v/BjRHzwNKqFo?fs=1&amp;hl=nl_NL&amp;hd=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/BjRHzwNKqFo?fs=1&amp;hl=nl_NL&amp;hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="853" height="510"></embed></object>';
			  break;
			default:
				video = '<object width="853" height="505"><param name="movie" value="http://www.youtube.com/v/-jqDl0vdtG8&hl=nl_NL&fs=1&hd=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/-jqDl0vdtG8&hl=nl_NL&fs=1&hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="853" height="505"></embed></object>';
			}
			$("#videoplayer").html(video);
}

function closePlayer(){
	$(".videowrapper").css({'display':'none'});
	$(".videobox").css({'display':'none'});
	$("#videoplayer").html();
}


function hidediv() {
	$("#actionOverlay").hide();
	$("#actionOverlayPdf").show();
} 
function hidediv1() {
	$("#actionOverlayPdf").hide();
} 
function showdiv() {
	$("#actionOverlayPdf").show();
} 
