/* 
******************************************
**   DHTML No-Block PopUp Window Script **
**   (c)2005 Spider WebMaster Tools.com **
**  http://www.SpiderWebMasterTools.com **
******************************************
				
The following variables an be assigned your particuliar values. Keep all values within single quotes ('). Do not use 'auto' or percentages for pop up window width or height if the variable centerPopUpWindow is set to yes.

*/

var install_popWindowWidth = '500'; // pop up window width (in pixels) .

/*
var install_popWindowHeight = '350'; // pop up window height (in pixels).
*/

var install_centerPopUpWindow = 'no'; // do you want the pop up window to be automatically centered in browser window? yes or no. NOTE: Height is somewhat higher than center due to toolbars and browser top height.
var install_popWindowBackgroundColor = '005ebf'; // pop up window background color (named or rgb).

var install_popWindowPadding = '12'; // padding or margin between contents of pop up window and edges of pop up window in pixels.

var install_popWindowPositionTop = '345'; // where top edge of popup window will be displayed (ignored if install_centerPopUpWindow = true - see above).

var install_popWindowPositionLeft = '250'; // where left edge of popup window will be displayed (ignored if install_centerPopUpWindow = true - see above).

var install_popWindowBorderStyle = 'outset'; // type of border for popup (solid,double,grooved,ridged,inset,outset).

var install_popWindowBorderWidth = '5'; // border thickness of popup window (must be at least 3 for double style).

var install_popWindowBorderColor = '0000ff'; // color of border (named or rgb).

var install_popWinFontFamily = 'arial,verdana,sans-serif'; //font-family of text within pop up window. NOTE: Leave empty ('') if defined elsewhere.

var install_popWinFontSize = '11px'; // size of font for text in pop up window. Again, leave empty ('') if defined elsewhere.

var install_popWindowDelay = '200'; // microseconds before pop up is displayed (1000 = 1 second).

var install_popWindowShadowColor = '000000'; //drop shadow color, named or rgb - shows in IE5+ only. 'none'=no shadow.

	var ie=document.all
	var ns6=document.getElementById && !document.all
function showInstallPopUp(){
   var ie=document.all && !window.opera
   var dom=document.getElementById
   iebody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body
   objref=(dom)? document.getElementById("pWinInstallConfg") : document.all.fadeinbox
   var scroll_top=(ie)? iebody.scrollTop : window.pageYOffset
   var docwidth=(ie)? iebody.clientWidth : window.innerWidth
   docheight=(ie)? iebody.clientHeight: window.innerHeight
   var objwidth=objref.offsetWidth
   objheight=objref.offsetHeight
   objref.style.left=docwidth/2-objwidth/2+"px"
   objref.style.top=scroll_top+docheight/2-objheight/2+"px"
   document.getElementById('pWinInstallConfg').style.visibility='visible';
   document.getElementById('dropmsgoption').style.visibility='hidden';
}
function hideInstallPopUp(){
    document.getElementById('pWinInstallConfg').style.visibility='hidden';
    document.getElementById('dropmsgoption').style.visibility='visible';
}   
function startInstallPopUp(){
    timerID=setTimeout('showInstallPopUp()',install_popWindowDelay);
} 
/*
	heres where we set the popup window class properties..
*/
var pWinInstallConfg = "<style>.pWinInstallConfg{\n";
	if(install_popWinFontFamily !== ''){
		pWinInstallConfg += "font-family:"+install_popWinFontFamily+";\n";
	}
	if(install_popWinFontSize !== ''){
		pWinInstallConfg += "font-size:"+install_popWinFontSize+";\n";
	}
pWinInstallConfg += "position:absolute;\n";
pWinInstallConfg += "width:"+install_popWindowWidth+";\n";
/*
pWinInstallConfg += "height:"+install_popWindowHeight+";\n"; 
*/

pWinInstallConfg += "background-color:"+install_popWindowBackgroundColor+";\n";
		if(install_centerPopUpWindow.toLowerCase() == 'yes'){
			var popTop = (screen.height/2.667) - (install_popWindowHeight/2);
			var popLeft = (screen.width/2) - (install_popWindowWidth/2);
			pWinInstallConfg += "top:"+popTop+";\n";
			pWinInstallConfg += "left:"+popLeft+";\n";
		}else{
			pWinInstallConfg += "top:"+install_popWindowPositionTop+";\n";
			pWinInstallConfg += "left:"+install_popWindowPositionLeft+";\n";
		}
pWinInstallConfg += "border-style:"+install_popWindowBorderStyle+";\n";
pWinInstallConfg += "border-width:"+install_popWindowBorderWidth+";\n";
pWinInstallConfg += "border-color:"+install_popWindowBorderColor+";\n";
pWinInstallConfg += "padding:"+install_popWindowPadding+";\n";
pWinInstallConfg += "visibility:hidden;\n";
if(install_popWindowShadowColor != 'none'){
pWinInstallConfg += "@filter: progid:DXImageTransform.Microsoft.Shadow(color="+install_popWindowShadowColor+",direction=135);\n";
}
pWinInstallConfg += "}<\/style>\n";
document.write(pWinInstallConfg);

