

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}


function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}


function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function getElt() {
  if (document.all) { // IE4+
    var elt = eval('document.all[\'' + getElt.arguments[getElt.arguments.length - 1] + '\']');
    if (elt.length) {
      return elt[0];
    } else {
      return elt;
    }
  } else if (document.layers) { //NS4
    var currentLayer = document.layers[getElt.arguments[0]];

    for (var i = 1; i < getElt.arguments.length && currentLayer; i++) {
       currentLayer = currentLayer.document.layers[getElt.arguments[i]];
    }

    return currentLayer;
  } else if (document.getElementById) { // NS6
    return document.getElementById(getElt.arguments[getElt.arguments.length - 1]);
  }
}


function bepaalBrowser() {
	browser="";
    if(document.layers){
    	browser="NN4";
		}
    if(document.all){
    	browser="IE";
		}
    if(!document.all && document.getElementById){
    	browser="NN6";
		}
	return(browser);	
}




/**********************************************************************************************/    
 /* MENU */
var CurrentMenu=0;

function lite(obj) {
	if(document.all&&!window.opera) {
	 		//obj.style.filter="blendTrans(duration=0.1)";
			//obj.filters.blendTrans.apply()
			obj.style.visibility = 'visible';
			//obj.filters.blendTrans.play()
				
	} else{
		obj.style.visibility = 'visible';
	}
} 

function liteOut(obj) {
	//alert(obj.id);
	//alert(CurrentMenu);
	if(document.all&&!window.opera) {
		obj.style.filter="blendTrans(duration=0.4)";
		obj.filters.blendTrans.apply(); 
		obj.style.visibility = 'hidden';
		obj.filters.blendTrans.play(); 
		document.getElementById(CurrentMenu).className="bottomMenu";
	} else{
		obj.style.visibility = 'hidden';
		getElt(CurrentMenu).className="bottomMenu";
	}
} 

 
var menuwidth='220px' //default menu width
var menubgcolor=''  //menu bgcolor
var disappeardelay=0;  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

var elementId;

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+';" onMouseover="clearhidemenu();" onMouseout="dynamichide(event);"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover"){
lite(dropmenuobj)

}
else if (e.type=="click")
//obj.visibility=hidden
liteOut(dropmenuobj)
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18

dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
 dropmenuobj.innerHTML=what.join("");
}


function dropdownmenu(obj, e, menucontents, menuwidth, start){

document.getElementById(obj.id).className='bottomMenu_over';

CurrentMenu=obj.id;

if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)


if (ie4||ns6){
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18

showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge") +"px"

dropmenuobj.style.top= dropmenuobj.y - dropmenuobj.offsetHeight - 11 + "px";
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
MM_swapImgRestore(0)
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
liteOut(dropmenuobj)

}

//cMenu.className='menu_volg_profiel_over';
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)

//MM_showHideLayers('flash','visible');
}

function clearhidemenu(){
if (typeof delayhide!="undefined"){
clearTimeout(delayhide);
}
//MM_showHideLayers('flash','hidden');
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

/**********************************************************************************************/    
 /* Einde MENU */
 
 
  function maakPercentage(){
  try{
		browser=bepaalBrowser();
		if(browser != 'IE'){
			document.getElementById('vervolgContent').style.height = document.documentElement.offsetHeight - 58 - 115;
		}else{
			document.getElementById('vervolgContent').style.height = "100%";
		}
		}catch(e){}
	}

function switchKind(val){
 getObj('dynamicField').style.visibility=val;
}


  function getObj(name) {
    if (document.getElementById) 
	{
      return document.getElementById(name);
    } 
	else
      if (document.all) 
	{
        return document.all[name];
      } 
	else
      if (document.layers) 
	{
        return document.layers[name];
      }
  }
  
// Flash-bestanden toevoegen
function includeFlash(holder, width, height, videoUrl) {
	var swf = '/interface/flash/player.swf';
  var version = "9.0.0";
  var expressInstall = "/interface/flash/expressInstall.swf";

  var params = {};
  params.menu = 'false';
  params.quality = 'high';
  params.bgcolor = 'ffffff';
  params.wmode = 'opaque';
  params.allowFullScreen = 'true';
  params.allowscriptaccess = 'always';

  var attributes = {};
  attributes.name = 'player';
  attributes.id = 'player';
  attributes.align = 'left';
  attributes.border = '0';

  var flashvars = {};

	flashvars.url = videoUrl;		//video file;
	flashvars.image = '/interface/flash/oerol_screen.jpg';	//preview image;
	//--------------------------------------------------------------------------------------------------
	//DEBUG
	//--------------------------------------------------------------------------------------------------
	flashvars.externalDebug = 'false';										//external controls(javascript);
	flashvars.debug = 'false';												//show debug screen;
	//--------------------------------------------------------------------------------------------------
	//PLAYER 
	//--------------------------------------------------------------------------------------------------
	flashvars.autoplay = 'false';											//autoplay;
	flashvars.smoothing = 'true';											//smooth video;
	flashvars.keyboard = 'true';					
	flashvars.scale = 'uniform';											//scale uniform/exactfit/none;
	flashvars.looping = 'false';											//loop video;
	//--------------------------------------------------------------------------------------------------
	//SKIN 
	//--------------------------------------------------------------------------------------------------
	flashvars.cornerradius = '0';											//corner radius of skin/buttons;
	flashvars.skin = 'true';												//enable/disable skin;
	flashvars.autohide = 'true';											//autohide skin;
	flashvars.backgroundcolor = '000000';									//background color of skin;
	flashvars.iconcolor = '6bac46';									//background color of skin;
  flashvars.maincolor = '621960';

  swfobject.embedSWF(swf, holder, width, height, version, expressInstall, flashvars, params, attributes);
}



