
	   var value = 0;
	   var div_login_top = 0;
	   var statesetOpacity=1;

    function setOpacitylogin(url) {
		setTimeout('div_login_visible()', 250);
		setOpacitylogin2();
		if(navigator.appName == "Microsoft Internet Explorer") {
			document.getElementById('div_blackout').style.position = "absolute";
			document.getElementById('div_login').style.position = "absolute";
		}
		document.getElementById('from_page_input').value=url;
		return false;
    }
	function setOpacitylogin2() {
		
       value += .3;
       var testObj = document.getElementById('div_blackout');
       testObj.style.width = "100%";
       testObj.style.height = "100%";
       testObj.style.display = "block";
       testObj.style.opacity = value/10;
       testObj.style.filter = 'alpha(opacity=' + value*10 + ')';
       myTimeout = setTimeout("setOpacitylogin2()", 1);

       if ((value/10) >= .5) {
          clearTimeout(myTimeout);
       }
		return false;
    }

    function removeOpacity() {
       value -= .3;
       var testObj = document.getElementById('div_blackout');
       
       myTimeout2 = setTimeout("removeOpacity()", 1);
       testObj.style.opacity = value/10;
       testObj.style.filter = 'alpha(opacity=' + value*10 + ')';
       
       if ((value/10) <= 0) {
          testObj.style.display = "none";
          clearTimeout(myTimeout2);
       }
	   div_login_none();
  		return false;
    }
	
	function getClientWidth()
	{
	  return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientWidth:document.body.clientWidth;
	}

	function getClientHeight()
	{
	  return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;
	}
	 function  div_login_none(){
	if(document.getElementById('div_login').style.display == 'block') 
		document.getElementById('div_login').style.display = 'none';
	} 

	function  div_login_visible(){
		if(document.getElementById('div_login').style.display == 'none') {
			document.getElementById('div_login').style.display = 'block';
			var div_login_height=document.getElementById('div_login').clientHeight;
			var div_login_width=document.getElementById('div_login').clientWidth;
			div_login_top=div_login_height;
			document.getElementById('div_login').style.top=(getClientHeight()/2)-(div_login_height/2) + 'px';
			document.getElementById('div_login').style.left=(getClientWidth()/2)-(div_login_width/2) + 'px';
			document.getElementById('login').focus();
		}
	}
	
	function getBodyScrollTop_ff()  
		{  
			 return self.pageYOffset || (document.documentElement && document.documentElement.scrollTop) || (document.body && document.body.scrollTop);  
		}  

	function getBodyScrollLeft_ff()  
		{  
			return self.pageXOffset || (document.documentElement && document.documentElement.scrollLeft) || (document.body && document.body.scrollLeft);  
		}
	
	window.onscroll = function  () {
		if(navigator.appName == "Microsoft Internet Explorer") {
			document.getElementById('div_blackout').style.top = getBodyScrollTop_ff();
			document.getElementById('div_login').style.top = div_login_top+getBodyScrollTop_ff();
		}
	}