 var isNS4 = (document.layers) ? true : false;
 var isIE4 = (document.all && !document.getElementById) ? true : false;
 var isIE5 = (document.all && document.getElementById) ? true : false;
 var isNS6 = (!document.all && document.getElementById) ? true : false;
 var bolVisible=false;

function test()
{
var strDivName='testdiv';
//get element name
var objElement;
 if (isNS4) {
   objElement = document.layers[strDivName];
 } else if (isIE4) {
   objElement = document.all[strDivName].style;
 } else if (isIE5 || isNS6) {
   objElement = document.getElementById(strDivName).style;
 }

 if(isNS4){
       objElement.visibility ="hidden"
	   
 }else if(isIE4){
       objElement.visibility = "hidden";
	   
 } else if (isIE5 || isNS6) {
         objElement.display = "none";
      }
}

function closeme()
{
var strDivName="testdiv";
//get element name
var objElement;
 if (isNS4) {
   objElement = document.layers[strDivName];
 } else if (isIE4) {
   objElement = document.all[strDivName].style;
 } else if (isIE5 || isNS6) {
   objElement = document.getElementById(strDivName).style;
 }

 if(isNS4){
       objElement.visibility ="hidden"
 }else if(isIE4){
       objElement.visibility = "hidden";
 } else if (isIE5 || isNS6) {
         objElement.display = "none";
      }
}

var ie=document.all
var dom=document.getElementById
var ns4=document.layers
var ns6=document.getElementById&&!document.all
var calunits=document.layers? "" : "px"

var bouncelimit=32 //(must be divisible by 8)
var direction="up"
var lpos

function initbox(){
if (!dom&&!ie&&!ns4)
return
crossobj=(dom)?document.getElementById("dropin").style : ie? document.all.dropin : document.dropin
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
crossobj.top=scroll_top-250+calunits
crossobj.visibility=(dom||ie)? "visible" : "show"
dropstart=setInterval("dropin()",50)
}

function dropin(){
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
if (parseInt(crossobj.top)<lpos)
crossobj.top=parseInt(crossobj.top)+25+calunits
else{
clearInterval(dropstart)
bouncestart=setInterval("bouncein()",50)
}
}

function bouncein(){
crossobj.top=parseInt(crossobj.top)-bouncelimit+calunits
if (bouncelimit<0)
bouncelimit+=8
bouncelimit=bouncelimit*-1
if (bouncelimit==0){
clearInterval(bouncestart)
}
}

function dismissbox(){
if (window.bouncestart) clearInterval(bouncestart)
crossobj.visibility="hidden"
}

function truebody(){
return (document.compatMode!="BackCompat")? document.documentElement : document.body
}
function delay(x)
{
	var d=new Date()
	d=d.getSeconds()+x
	if (d>=60) d=d-60
	while (true)
	{
		var d1=new Date()
		if(d==d1.getSeconds())
			break;
	}	
}
function SetCooKie(name,value)
{
	var argv=SetCooKie.arguments;
	var argc=SetCooKie.arguments.length
	var expires=(argc>2) ? argv[2] : null
	var path=(argc>3) ? argv[3] : null
	var domain=(argc>4) ? argv[4] : null
	var secure=(argc>5) ? argv[5] : false
	document.cookie=name + "=" +escape(value) + 
	((expires==null) ? "" :( ";expires=" + expires.toGMTString())) +
	((path==null) ? "" :( ";path=" + path)) +
	((domain==null) ? "" :( ";domain=" + domain)) +
	((secure==true) ? "; secure " : "")
	
}

function DeleteCookie (name,path,domain) 
{
if (GetCookie(name)) {
		document.cookie = name + "=" +
		((path) ? "; path=" + path : "") +
		((domain) ? "; domain=" + domain : "") +
		"; expires=Thu, 01-Jan-70 00:00:01 GMT";
	}
}


function GetCookie(name)
{	
	var arg=name + "=" 
	var alen=arg.length
	var clen=document.cookie.length
	var i=0,prev=0;next=0;
	var retval=false;
	while(true)
	{
		next=document.cookie.indexOf("; ", prev);
		if(next<=0)
		{
			var chkval=document.cookie.substring(prev,clen);
			var eqpos=chkval.indexOf("=", 0);
			if(eqpos>0)
			{
				if((chkval.substring(0,eqpos+1))==arg)
				{
					retval=true;
					break;
				}	
			}	
			break;				
		}
		if(next>0)
		{
			var chkval=document.cookie.substring(prev,next);
			var eqpos=chkval.indexOf("=", 0);
			if(eqpos>0)
			{
				if((chkval.substring(0,eqpos+1))==arg)
				{
					retval=true;
					break;
				}	
			}
		}
		prev=next+2;	
	}
	return retval;
}


function getCookieVal(offset)
{
	var endstr=document.cookie.indexOf(";",offset)
	if(endstr==-1)
	{
		endstr=document.cookie.length;
	}
	return unescape(document.cookie.substring(offset,endstr));
}

function Delaynew()
{
	if (!ns4)
	{	
		document.getElementById("dropin").style.visibility="visible";
	}	
	else
		document.dropin.visibility="show";
	return;
}


function DropIn(top,sec,showeverytime)
{
	lpos = top
	ans="no"
	//delay(sec)
	var chkshow=false;
	if (!showeverytime)
	{
		chkshow=GetCookie('popDropin');
		if (!chkshow)
		{
			SetCooKie('popDropin','added')
		}
	}
	else
	{
		DeleteCookie('popDropin','','')
	}
	if(!chkshow)
	{ 
		if (ns4)
		{
			templayer=document.layers[0]				
		}
		setTimeout("initbox()",(sec*1000));	
	}
}
var html;
html="<DIV id=dropin ";
html+="style='LEFT: 200px; VISIBILITY: hidden; WIDTH: 504px; POSITION: absolute; TOP: 100px; HEIGHT: 400px;" 
html+="font-family:Arial; font-size:10px; border:2px solid #313583; background-color:#EBF2F4;'>"
html+="<form name='form1' method='post' action='http://www.govesiebold.com/register.aspx?s=1'>"
html+="<table id=tbl border='0' width='100%' cellspacing='0' cellpadding='0' >"
html+="<tr>"
html+="<td width='100%'  background='http://www.govesiebold.com/popups/images/mentaltoughnessback.gif' align='right'>"
html+="<A onclick='dismissbox();return false' href='http://www.govesiebold.com/#' style='color:#000000; font-weight:bold;'>[<U>Close</U>] </A></td>"
html+="</tr>"
html+="<tr>"
html+="<td width='100%' valign='top' align='center'><img border='0' src='http://www.govesiebold.com/popups/images/mentaltougness.gif'"
html+=" width='500' height='78'>"
html+="<p> Invest 7 seconds of your week absorbing the intellectual capital of the"
html+=" world's most successful people. Travel inside their minds, learn their"
html+=" secrets and manifest your destiny!</p>"
      
html+="First Name:<br>  "
html+="<input type='text' name='fname' maxlength='50'><br>  "
html+="Last Name:<br>  "
html+="<input type='text' name='lname' maxlength='50'><br> " 
html+="Email:<br> " 
html+="<input type='text' name='email' maxlength='50'><br>&nbsp;<br> " 
html+="<input type='submit' value='Subscribe Now!'>"
html+="</td>"
html+="</tr>"
html+="</table>"
html+="</form>"
html+="</DIV>"
document.write(html);
DropIn('100',0,false);