var pro_lo=0;
var pro_to=-606;

function pro_cd()
{
	if (pro_lo==1) {
		var box=document.getElementById("pro_aa");
		var shadow=document.getElementById("pro_ab");
		var pro_blnk=document.getElementById("pro_blnk");
	    var w_s=pro_gw();
	    var h_s=pro_gh();
	    var ctop=document.documentElement.scrollTop+((h_s/2)-(box.offsetHeight/2));
	    var cleft=(w_s/2)-(box.offsetWidth/2);
		
		    
	    box.style.top=ctop+"px";
	    box.style.left=cleft + "px";
	    shadow.style.top=(ctop+6)+"px";
	    shadow.style.left=(cleft+6)+"px";
	}		
}

function pro_in()
{
	var box=document.getElementById("pro_aa");
	var shadow=document.getElementById("pro_ab");
	var pro_emi=document.getElementById("pro_emi");
    var w_s=pro_gw();
    var h_s=pro_gh();
    var ctop=document.documentElement.scrollTop+((h_s/2)-(box.offsetHeight/2));
    var cleft=(w_s/2)-(box.offsetWidth/2);
    
    box.style.left=cleft+"px";
    shadow.style.left=(cleft+6)+"px";
    
    if (pro_to>=ctop)
    {
    	window.clearTimeout(id);
    	pro_lo=1;
    	pro_emi.focus();
    }
    else
    {
    	pro_to+=10;
    	box.style.top=pro_to+"px";
    	shadow.style.top=(pro_to+6)+"px";
    	id = window.setTimeout("pro_in()",7);
    }
}

function showprocontent() {
	var cont=document.getElementById("pro_content");
	cont.style.visibility='visible';
}

function pro_closeall()
{
	var box=document.getElementById("pro_aa");
	var shadow=document.getElementById("pro_ab");
	
	shadow.style.top="-600px";
	box.style.top="-606px";
	pro_lo=0;
	pro_to=-606;

}

function checkemailser()
{
	var email=document.getElementById("pro_emi");
	
	with (email)
	{
	apos=value.indexOf("@");
	dotpos=value.lastIndexOf(".");
	if (apos<1||dotpos-apos<2) 
	  { alert("You must enter a valid email address to enter."); email.focus(); return false; }
	else { return true; }
	}
}

pro_gh=function() {
	if (window.innerHeight!=window.undefined) return window.innerHeight;
	if (document.compatMode=='CSS1Compat') return document.documentElement.clientHeight;
	if (document.body) return document.body.clientHeight; 
	return window.undefined;
}

pro_gw=function()
{
	if (window.innerWidth!=window.undefined) return window.innerWidth; 
	if (document.compatMode=='CSS1Compat') return document.documentElement.clientWidth; 
	if (document.body) return document.body.clientWidth; 
	return window.undefined;
}
onscroll=pro_cd;