popups = Array();
function popup( url, winName, w, h, x, y )
{
	if(w == undefined) w = 460;	//default width
	if(h == undefined) h = 400; //default height
	if(x == undefined) x = screen.width/2-(w/2); //default Xpos (is now centered)
	if(y == undefined) y = screen.height/2-(h/2); //default Ypos (is now centered)

	winprops = 'height='+h+',width='+w+',top='+y+',left='+x+',scrollbars=no';

	popups[winName] = window.open(url, winName, winprops);
	if (popups[winName]) {
		setTimeout("popups['"+winName+"'].focus()",100);
	} else {
		alert("Error: Nieuw venster openen...\nUw browser blokkeert wellicht popup vensters.\n\nControleer uw popup blocker instellingen");
	}
}
function positionMenu() {
	markerFinalPos = 534;
	oMenuList = document.getElementById('menuList');
	iMarker = document.getElementById('marker');
	if( oMenuList && iMarker )
	{
		oMenuListOffsetLeft = oMenuList.offsetLeft;
		iMarkerOffsetLeft = iMarker.offsetLeft;	
		iNewMargin = oMenuListOffsetLeft + (534 - iMarkerOffsetLeft);
		oMenuList.style.marginLeft = iNewMargin + "px";
	}
}
