<!-- NIE ZMIENIAJ PONIŻEJ! -->

var ie=document.all
var ns6=document.getElementById && !document.all

function showPopUp(){
    document.getElementById('pWinConfg').style.display='block';
}

function hidePopUp(){
    document.getElementById('pWinConfg').style.display='none';
}

function autoHidePopUp(){
    timerID=setTimeout('hidePopUp()',popWindowDelayHide);
}

function startPopUp(){
    timerID=setTimeout('showPopUp()',popWindowDelay);
}
/*
	ustawienia okna
*/

if (typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }


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+"px;\n";
pWinConfg += "height:"+popWindowHeight+"px;\n";
pWinConfg += "background-color:"+popWindowBackgroundColor+";\n";
		if(centerPopUpWindow.toLowerCase() == 'yes'){
			var popTop = (myHeight/2) - (popWindowHeight/2);
			var popLeft = (myWidth/2) - (popWindowWidth/2);
			pWinConfg += "top:"+popTop+"px;\n";
			pWinConfg += "left:"+popLeft+"px;\n";
		}else{
			pWinConfg += "top:"+popWindowPositionTop+"px;\n";
			pWinConfg += "left:"+popWindowPositionLeft+"px;\n";
		}
pWinConfg += "border-style:"+popWindowBorderStyle+";\n";
pWinConfg += "border-width:"+popWindowBorderWidth+"px;\n";
pWinConfg += "border-color:"+popWindowBorderColor+";\n";
pWinConfg += "padding:"+popWindowPadding+"px;\n";
pWinConfg += "z-index:1000;\n";
pWinConfg += "display:none;\n";
if(popWindowShadowColor != 'none'){
pWinConfg += "@filter: progid:DXImageTransform.Microsoft.Shadow(color="+popWindowShadowColor+",direction=135);\n";
}
pWinConfg += "}<\/style>\n";
document.write(pWinConfg);

startPopUp();
autoHidePopUp();
