// paolo remonato (c) 2006-2011 for assiplan.it
// script dhtml js popup

var ie=document.all
	var ns6=document.getElementById && !document.all
function showPopUp(){
    document.getElementById('pWinConfg').style.visibility='visible';
}
function hidePopUp(){
    document.getElementById('pWinConfg').style.visibility='hidden';
}   
function startPopUp(){
    timerID=setTimeout('showPopUp()',popWindowDelay);
} 
/*
	heres where we set the popup window class properties..
*/
var pWinConfg = "<style>.pWinConfg{\n";
	if(popWinFontFamily !== ''){
		pWinConfg += "font-family:"+popWinFontFamily+";\n";
	}
	if(popWinFontSize !== ''){
		pWinConfg += "font-size:"+popWinFontSize+";\n";
	}
pWinConfg += "position:absolute;\n";
pWinConfg += "width:"+popWindowWidth+";\n";
pWinConfg += "height:"+popWindowHeight+";\n";
pWinConfg += "background-color:"+popWindowBackgroundColor+";\n";
		if(centerPopUpWindow.toLowerCase() == 'yes'){
			var popTop = (screen.height/2.667) - (popWindowHeight/2);
			var popLeft = (screen.width/2) - (popWindowWidth/2);
			pWinConfg += "top:"+popTop+";\n";
			pWinConfg += "left:"+popLeft+";\n";
		}else{
			pWinConfg += "top:"+popWindowPositionTop+";\n";
			pWinConfg += "left:"+popWindowPositionLeft+";\n";
		}
pWinConfg += "border-style:"+popWindowBorderStyle+";\n";
pWinConfg += "border-width:"+popWindowBorderWidth+";\n";
pWinConfg += "border-color:"+popWindowBorderColor+";\n";
pWinConfg += "padding:"+popWindowPadding+";\n";
pWinConfg += "visibility:hidden;\n";
if(popWindowShadowColor != 'none'){
pWinConfg += "@filter: progid:DXImageTransform.Microsoft.Shadow(color="+popWindowShadowColor+",direction=135);\n";
}
pWinConfg += "}<\/style>\n";
document.write(pWinConfg);

