<!-- Begin

// **********************************************************************************
// Pop-up windows
// **********************************************************************************
// Open gecentreerd window met afmetingen van opgegeven Image  MET WATERMERK
function winfoto(pagina,picWidth,picHeight) {
	winHeight = picHeight-4;
	winWidth = picWidth;
	LeftPos = (screen.width) ? (screen.width-winWidth)/2 : 0;
	TopPos = (screen.height) ? (screen.height-winHeight)/2 : 0;
	strProperty = "width=" + winWidth + ",height=" + winHeight + ", left=" + LeftPos + ", top=" + TopPos  +", location=0, scrollbars=0;"
	window.open('../galery/showfoto.php?foto=' + pagina + '&w=' + picWidth + '&h=' + picHeight, '', strProperty);
}

// Open gecentreerd window met afmetingen van opgegeven Image.
function wincenter2(pagina,iWidth,iHeight) {
	strTitel = '';
	LeftPos = (screen.width) ? (screen.width-iWidth)/2 : 0;
	TopPos = (screen.height) ? (screen.height-iHeight)/2 : 0;
//	strProperty = "width=" + iWidth + ",height=" + iHeight + ", left=" + LeftPos + ", top=" + TopPos +", scrollbars=1;"
	strProperty = "width=" + iWidth + ",height=" + iHeight + ", left=" + LeftPos + ", top=" + TopPos +", titlebar=0, menubar=0, location=0, directories=0, scrollbars=1, resizable=1;"
	window.open(pagina, strTitel, strProperty);
}

// Open gecentreerd window met afmetingen van opgegeven Image  MET WATERMERK
function winfotonav(pagina,picWidth,picHeight,fotonr,nfotoos) {
	winHeight = screen.height-10;
	winWidth = screen.width-10;
	LeftPos = 0;
	TopPos = 0;
	strProperty = "width=" + winWidth + ",height=" + winHeight + ", left=" + LeftPos + ", top=" + TopPos  +", location=0, scrollbars=1, address=0;"
	window.open('../galery/showfotonav.php?lib=' + pagina + '&w=' + picWidth + '&h=' + picHeight + '&nr=' + fotonr + '&alb=' + nfotoos, '', strProperty);
}

// Open gecentreerd window met FLASH-filmpje
function winflv(pagina,iWidth,iHeight) {
	strTitel = '';
	tHeight = iHeight-4;
	tWidth = iWidth;
	
	LeftPos = (screen.width) ? (screen.width-iWidth)/2 : 0;
	TopPos = (screen.height) ? (screen.height-iHeight)/2 : 0;
	strProperty = "width=" + iWidth + ",height=" + iHeight + ", left=" + LeftPos + ", top=" + TopPos  +", scrollbars=1;"
	msg=window.open('', '', strProperty);
	msg.document.write("<html>");
	msg.document.write("<title>...</title>");
	msg.document.write("<body topmargin=0 rightmargin=0 bottommargin=0 leftmargin=0>");

	//msg.document.write("<div id='container'><a href='http://www.macromedia.com/go/getflashplayer'>Get the Flash Player</a> to see this player.</div>");
/*
	msg.document.write("<div id='container'>");
	msg.document.write("<table><tr><td background='../pics/flv.jpg' align='center' valign='center'>");
	msg.document.write("<a href='javascript:location.reload(true)'>Start de film</a>");
	msg.document.write("</td></tr><table>");
	msg.document.write("</div>");
*/

	msg.document.write("<div id='container'>");
	msg.document.write("<center><br><br>");
	msg.document.write("Als je niks ziet: ververs de pagina (ctl-R)<br>");
	//msg.document.write("<a href='javascript:location.reload(true)'><h2>Start de film</h2></a>");
	msg.document.write("</center>");
	msg.document.write("</div>");
	
	msg.document.write("<script type='text/javascript' src='../js/swfobject.js'></script>");
	msg.document.write("<script type='text/javascript'>");
	msg.document.write("var s1 = new SWFObject('../js/player.swf','ply','620','480','9','#FFFFFF');");
	msg.document.write("s1.addParam('allowfullscreen','true');");
	msg.document.write("s1.addParam('allowscriptaccess','always');");
	msg.document.write("s1.addParam('flashvars','logo=../pics/watermerk.gif&file=../trainer/" + pagina + "&autostart=true');");
	msg.document.write("s1.write('container');");
	msg.document.write("</script>");

/*
	msg.document.write("<embed ");
	msg.document.write("src='player.swf' ");
	msg.document.write("width='300' ");
	msg.document.write("height='300' ");
	msg.document.write("allowscriptaccess='always' ");
	msg.document.write("allowfullscreen='true' ");
	msg.document.write("flashvars='logo=../pics/watermerk.gif&file=" + pagina + "&autostart=true' ");
	msg.document.write("/> ");
*/
}
// End -->

