function trailer(){
	var w = 430;
	var h = 360;
	var t = (screen.availHeight-h)/2;
	var l = (screen.availWidth-w)/2;
	window.open('/overige/trailer.htm','trailer','width='+w+',height='+h+',top='+t+',left='+l+',statusbar=0,menubar=0');
}


function showvideo(source){
	if(!document.getElementById('main_mid_fade1_player')){
		div = document.createElement('div');
		div.id = 'main_mid_fade1_player';
		div.style.margin = '0 0 0 91px';
		document.getElementById('main_mid_fade1').appendChild(div);
	}
	var so = new SWFObject('/swf/flvplayer.swf','mpl','470','300','7'); 
		so.addParam('allowfullscreen','true'); 
		so.addParam('allowscriptaccess','always'); 
		so.addVariable('displayheight','300'); 
		so.addVariable('file', source); 
		so.addVariable('height','300'); 
		so.addVariable('width','470'); 
		so.addVariable('showdigits','false'); 
		so.addVariable('autostart','true'); 
		so.write('main_mid_fade1_player'); 

}
function hover(source){
	
	if(!document.getElementById('main_mid_fade1_player')){
		
	} else {
		document.getElementById('main_mid_fade1_player').innerHTML = '';
		document.getElementById('main_mid_fade1').removeChild(document.getElementById('main_mid_fade1_player'));	
	}
	
	
	elem = document.getElementById('main_mid');
	fade1 = document.getElementById('main_mid_fade1');
	fade2 = document.getElementById('main_mid_fade2');
	
	
	elem.style.background = "";
	fade1.style.background = "";
	fade2.style.background = "";
	
	
	elem.style.backgroundImage = "url(" +  source + ")";
	fade1.style.backgroundImage = "url(" +  source + ")";
	fade2.style.backgroundImage = "url(" +  source + ")";
	
	
	elem.style.backgroundPosition = "80px 0px";
	fade1.style.backgroundPosition = "-125px 0px";
	fade2.style.backgroundPosition = "-325px 0px";
	
}

var scrollPos = 0;
var scrollSpeed = 20;

function scrollAchtergrond(){
	var elm = document.getElementById('main_mid');
	elm.style.backgroundPosition = scrollPos+'px 0';
	scrollPos--;
	setTimeout("scrollAchtergrond();", scrollSpeed);
}
