// JavaScript Document
function Popper(Page,Breedte,Hoogte,Rand) {
window.open(Page,"home"+Breedte+"","height="+Hoogte+",width="+Breedte+",menubar=0,resizable=0,scrollbars="+Rand+",status=0,titlebar=1,toolbar=0");
}

var screenwidth, windowwidth, positionLeft, positionTop, Fenster;

function PopUpMicroSite(Page,b,h,Rand) {
Fenster = window.open(Page,"microsite","height="+h+",width="+b+",menubar=0,resizable=0,scrollbars="+Rand+",status=0,titlebar=1,toolbar=0");
positionLeft = ((screen.width/2)-(b/2));
positionTop = ((screen.height/2)-(h/2));

Fenster.moveTo(positionLeft,positionTop);
}

function layerMaken(Laag,Breed,Hoog,Foto) {
	if (document.all) {
				leftpos = ((document.body.offsetWidth)/2)-(Breed/2);
				toppos = ((document.body.offsetHeight)/2)-(Hoog/2);
				} else if (document.layers || document.getElementById) {
				leftpos = ((window.innerWidth)/2)-(Breed/2);
				toppos = ((window.innerHeight)/2)-(Hoog/2);
			}
	//if ((Laag == 1 || Laag == 2)) { leftpos-=10; toppos-=80; }
			
	document.write("<div id='fokus"+Laag+"' style='position:absolute; width:"+Breed+"px; height:"+Hoog+"px; z-index:"+(156+Laag)+"; left:"+(leftpos+40)+"; top:"+toppos+"; visibility: hidden;'>\n");
	document.write("<table width='"+Breed+"' height='"+Hoog+"' border='0' cellspacing='0' cellpadding='0'>\n");
	document.write("<tr>\n");
	document.write("<td height='12' align='right' bgcolor='#506FA6' class='borderall'><a href='javascript:verstoppen("+Laag+");' class='menu'>Close X </a></td>\n");
	document.write("</tr>\n");
	document.write("<tr>\n");
	document.write("<td height="+(Hoog-14)+"' align='center' valign='middle' class='borderbottomrightleft'><img src='../images/"+Foto+"' border='0' name='magic"+Laag+"'></td>\n");
	document.write("</tr>\n");
	document.write("</table>\n");
	document.write("</div>\n");

}


function verstoppen(Laag) {

	theLayer = "fokus"+Laag;
	
	if (document.all){
		document.all[theLayer].style.visibility = "hidden";
	}else if (document.layers){
	//NOP
	}else if (document.getElementById){
		document.getElementById(theLayer).style.visibility = "hidden";
		}
   }

function terugtoveren(Laag) {
	
	theLayer = "fokus"+Laag;

	if (document.all){
		document.all[theLayer].style.visibility = "visible";
	}else if (document.layers){
	//NOP
	}else if (document.getElementById){
		document.getElementById(theLayer).style.visibility = "visible";
		}
   }