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 DropIn(top,sec,showeverytime)
{
	var dd;
	dd=ScreenWidth()
	var pleft;	
	var endleft;
	lpos = top
	ans="no"
	//delay(sec)
	var chkshow=false;
	if (!showeverytime)
	{
		chkshow=GetCookie('popDropin');
		if (!chkshow)
		{
			SetCooKie('popDropin','added')
		}
	}
	else
	{
		DeleteCookie('popDropin','','')
	}
	
	

	
	if (document.layers){
			screenW =window.innerWidth;
			pleft=document.layers[0].left;
			pleft=pleft.replace("px","");
			if (dd>pleft){
			endleft=(dd-pleft)/2;
			}else{
			endleft=0;
			}
			document.layers["dropin"].left=endleft +'px';
	}	else {
	
			pleft=document.getElementById("dropin").style.left;
			pleft=pleft.replace("px","");
			if (dd>pleft){
			endleft=(dd-pleft)/2;
			}else{
			endleft=0;
			}
			document.getElementById("dropin").style.left=endleft +'px';
	
	}
	
	
	
	if(!chkshow)
	{ 
		if (ns4)
		{
			
			templayer=document.layers[0]	
		
		}
		setTimeout("initbox()",(sec*1000));	
	}
}
function ScreenWidth(){

var screenW = 800, screenH = 480;
if (document.all)
{screenW =document.body.offsetWidth;}
else
{screenW =window.innerWidth;}

	return screenW
}

var html;

html="<DIV id=dropin style='VISIBILITY: hidden; LEFT: 300px;  WIDTH: 304px; POSITION: absolute; TOP: 100px; HEIGHT: 320px;"
html+="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; border:2px solid #019342; background-color:#D2FFE7;'>"
html+="<table width='500'  border='0' align='center' cellpadding='0' cellspacing='0'>"
html+="<tr>"
html+="<td width='100%' bgcolor='#0A522D' align='right'>"
html+="<A onclick='dismissbox();return false' "
html+="href='#' style='color:#FFFFFF; font-weight:bold; font-size:14px;'>[<U>Close</U>] </A></td>"
html+="</tr>"
html+="<tr>"
html+="<td><table width='650' border='0' cellspacing='0' cellpadding='0'><tr><td><img src='images/pop_img1.jpg' width='650' height='163' /></td></tr><tr><td height='2'></td></tr><tr><td align='center' bgcolor='#FF9900'><table width='96%' border='0' cellspacing='0' cellpadding='0'><tr><td align='center' bgcolor='#D6C8C8'><table width='96%' border='0' cellspacing='0' cellpadding='0'><tr><td><p>Dear All Registered Members,</p><p class='style1'>We Welcome you all and thank you for registering you in our Website.<br />Most of our Registered Members has given a part of the Profile details only.<br />After filling the First part of your details, the site will ask to you click  Submit, and your name will be registered.<br />After that you have to login once again by giving your User Name and Password.<br />And you have to click 'My Profile', and there you can see three links,  1. Profile, 2. Additional Details, and 3. Photos.<br /><br />Kindly fill all the particluars in these three links in full   details. kindly do not omitt any detail, and also try to upload your photo. YOU   HAVE TO CLICK&nbsp; 'submit' &nbsp;BUTTON FOR EACH PAGE SEPERATELY<strong>, </strong>page by page.<br /><br />We request all the Registered Members, Particularly those who are searching for their Life Partners, to act immidiadely to give all the details without   delay. This will enable us to render the Best Service in future&nbsp;to you.<br /><br />Thank you with Regards,<br />N Bellie-General Secretary<br /><br /><br /></p></td></tr></table></td></tr><tr><td width='12'>&nbsp;</td></tr></table></td></tr></table></td>"
html+="</tr>"
html+="</table>"
html+="</DIV>"


document.write(html);


DropIn('100',0,false);
