var windowhoogte, windowbreedte, scroll, bgsound, fv;//var soundcookie	= (Cookie.get("soundcookie")!='') ? Cookie.get("soundcookie") : 1;Window.addEvent('resize', function() {	scalesite();	});Window.onDomReady(function(){	windowhoogte	= Window.getHeight();	$('bgdiv').addEvent('mousedown', function(){     	closePopup();	});	$('sound').addEvent('mousedown', function(){     	waarde=Cookie.get('music_pauze');	nwaarde=(waarde==0 || waarde==false) ? 1 : 0;	Cookie.set('music_pauze', nwaarde, {duration: 2});	});	//lelie();	$('floatwindow').addEvent('dblclick', function(){     	closePopup();	})	if($('introtabel')){	$('introtabel').style.height=(windowhoogte-60)+"px";	}	$('taal_uit').setStyle("opacity", "0.85");	$('taal_uit').addEvent('mouseover', function(){     	$('taal_uit').setStyle("opacity", "1");		})	$('taal_uit').addEvent('mouseout', function(){     	$('taal_uit').setStyle("opacity", "0.5");		})	$('taal_uit').addEvent('click', function(){     	Cookie.set('taal', $('taal_uit').className, {duration: 2}); // save this for 1 day	document.location.reload();	})	scalesite();	});var sos	= new Array();var so	= '';var Flashvideo= new Class( { ////bij opstarten alle blokken automatisch een mouseover geven met de coordinaten naar centeredinitialize: function(options){	this.options = Object.extend({		update_id: 0,		width: 0,				height: 0,		delay: 0,		file: '',		background: 'flvplayer/film.jpg',		lightcolor:'ffffff',		showvolume: true,		autostart: true		}, options || {});		this.update_id	=this.options.update_id;		this.width	= this.options.width;		this.height	= this.options.height;		this.delay	= this.options.delay;		this.file		= this.options.file;		this.lightcolor	= this.options.lightcolor;	this.showvolume= this.options.showvolume;	this.autostart	= this.options.autostart;	this.background= this.options.background;		if(this.update_id=="intro"){	fade.delay(9700);		}		this.so = new SWFObject('mediaplayer/player.swf','intro',this.width,this.height,'7');		this.so.addParam("allowfullscreen","true");	this.so.addVariable("file", this.file); 		this.so.addVariable("backcolor","0xffffff");	this.so.addVariable("image",this.background);	this.so.addVariable("frontcolor","0x"+this.lightcolor);	this.so.addVariable("lightcolor","0xffffff");	this.so.addVariable("showicons", "true");	this.so.addVariable("showdigits", "false");	this.so.addVariable("showvolume", this.showvolume);		//this.so.addVariable("enablejs","true");	this.so.addVariable("javascriptid","mpl");	this.so.addVariable("width",this.width);	this.so.addVariable("height",this.height);		this.so.addVariable("autostart", this.autostart);		this.Write.delay(this.delay, '', new Array(this.update_id, this));	},	Write: function(update_id, ob){		//console.log($('linker_menu').getChildren('DIV'));	if(ob.update_id=="floatcontent"){	showPopup(ob.width,ob.height, 0.9);	ob.Write2.delay(760, '', new Array(update_id, ob));		}else{	//alert();	ob.so.write(update_id);		}	},	Write2: function(update_id, ob){			//console.log(ob.so+" << "+update_id);	ob.so.write(update_id);		//$('floatwindow').innerHTML="<span style='color:#e4106d;font-weight:bold;cursor:pointer;float:right' onclick='closePopup()'>x</span><br>"+$('floatwindow').innerHTML;	//alert('sss');	}	})function alter_img(onderwerp, the_img){$('pagina_titel').innerHTML="<img alt='"+onderwerp+"' src='"+the_img+"' border='0'>";		}function toggle_foto(){var dispplay=($('ffoto').style.display=="none") ? 'block' : 'none';$('ffoto').setStyle("display", dispplay);}function fade(){//$('sintro').style.position='absolute'var into 		= new Fx.Styles('sintro', {duration:750, wait:false});into.start({	'opacity': 0});	fade2.delay(750);}function fade2(){$('sintro').setStyle("display", "none");$('sintro').innerHTML='';	}function scalesite(){	windowhoogte	= Window.getHeight();windowbreedte	= Window.getWidth();	$('basis').setStyles({height: parseInt(windowhoogte)-95});var nieuwehoogte= parseInt(windowhoogte)-370;//$('lelie').setStyles("opacity:0.20;display:block;top:"+($('footer').getTop()-210)+"px;left:"+($('footer').getLeft()+260)+"px");			//console.log(nieuwehoogte);//$('content').setStyle("height", nieuwehoogte);	if((windowhoogte-380)<$('content').scrollHeight){if(window.ie){$('content').style.height=nieuwehoogte+"px";}else{$('content').setStyle("height", nieuwehoogte)	}//window.status=windowhoogte+" - "+$('content').style.height;}}Menu= new Class({	initialize: function(nr, txt) {						this.nr=nr;		this.txt=txt;				var tgs		= $$('#content h1');				var els		= $$('#content h2');		//show: nr,					var accordion = new Accordion(tgs, els, {			display: nr,				onActive: function(toggler, element){		toggler.setStyle('color', '#F2115C');			toggler.childNodes[1].innerHTML='';		}, 		onBackground: function(toggler, element){		toggler.setStyle('color', '#4e4c47');				toggler.childNodes[1].innerHTML=txt;		toggler.childNodes[1].style.zIndex=0;		}		}, $('content')); 					//alert(tgs);		//var hetmenu=new Fx.Accordion(tgs, els, {start:'all-closed', alwaysHide: false});//start: 'all-closed', ";				//if(source!=""){		//hetmenu.showThisHideOpen(source);		//}			}});var mformulier= "";var stappen	= new Array();var cstap	= 0;var Ajaxform= new Class( { ////bij opstarten alle blokken automatisch een mouseover geven met de coordinaten naar centeredinitialize: function(formid, options){	this.options = Object.extend({		update_id: 0,		formulier: 0,		to_Hide: 0		}, options || {});		this.formulier=$(formid);		this.to_Update	= $(this.options.update_id);			//alert("ss");			stappen.extend([this]);	this.formulier.addEvent('submit', function(e) {		new Event(e).stop();	});	},	checkFields: function(stap){var velden=this.formulier.elements;//var velden = $$('#orderformulier select', '#orderformulier input') //an array of all anchor tags with theclass "myClass"var velden = $$('#formulier select', '#formulier input') //an array of all anchor tags with theclass "myClass"//alert(velden);for(i=0; i<velden.length; i++){            var field = velden[i];	 var isReq = (field.name.charAt(0)=="R") ? true : false	 if(isReq && field.value==""){           	var veldnaam = field.name.substring(1,27);		var veldnaam = veldnaam.replace(/_/, " ");           	alert("U bent vergeten '"+veldnaam+"' in te vullen.");		field.focus();		return false;			break;			}		if(field.name=="Remail"){	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;        	if (!filter.test(field.value)){        	alert("Het door u ingevulde emailadres is onjuist");        	return false;        	break        	}				}	};return true;	},		Verzend: function(functie){		//if(functie!=""){	//$('f').value=functie;		//}		//alert(1);	if(this.checkFields()){		this.formulier.send({		update: stappen[0].to_Update,		evalScripts: true		//,onComplete: this.OK	});		}		}});function showVideo(bestandsnaam, preview, w, h){	h=h+10;	so = new SWFObject('mediaplayer/player.swf','intro',w,h,'7');	so.addParam("allowfullscreen","true");	so.addVariable("file", '/media/'+bestandsnaam); 		so.addVariable("backcolor","0xffffff");	so.addVariable("image", '/media/previews/'+preview);	so.addVariable("frontcolor","0xe4106d");	so.addVariable("lightcolor","0xe4106d");	so.addVariable("showicons", "true");	so.addVariable("showdigits", "false");	//so.addVariable("showvolume", this.showvolume);		//this.so.addVariable("enablejs","true");	so.addVariable("javascriptid","mpl");	so.addVariable("width",w);	so.addVariable("height",h);		so.addVariable("autostart", true);	so.write('floatcontent');		/*(parseInt(h)+10)*/	showPopup(w, h, '0.85');}var wfx;function showPopup(w, h, bgtrans){windowhoogte	= Window.getHeight();windowbreedte	= Window.getWidth();	wfx 			= new Fx.Styles('floatwindow', {duration:750, wait:false});//var ttop		= (!ref) ? $('content').getTop() : ref.getTop();//var lleft		= (!ref) ? $('content').getLeft() : ref.getLeft();ttop			= (windowhoogte/2)-(h/2);ttop			= (ttop<300) ? ttop : 300;lleft			= (windowbreedte/2)-(w/2);//console.log($(ref));$('floatwindow').setStyles({'top': ttop, 'left': lleft, display:'block'});	wfx.start({				'height': h+'px',	'width': w+'px',	'top': ttop+'px',	'left': lleft+'px',	'opacity': '1'	});					if(bgtrans>0){	$('bgdiv').setStyles({   	opacity: bgtrans,   	width: windowbreedte,   	height: windowhoogte	});			}	}function closePopup(rreset){$('floatcontent').innerHTML='';wfx.start({				'height': 1+'px',	'width': 1+'px',		'opacity': '0'	});				$('bgdiv').setStyles({   	opacity: 0,   	width: 0,   	height: 0	});	if(rreset){$(rreset).reset();	}}
