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

    $(window).scroll(function () { 
		if(navigator.appName == "Microsoft Internet Explorer") {
			$("#div_blackout").css({
				"position" : "absolute",
				"top" : $(window).scrollTop() + "px"
			});
		}
    });

	
	
    function setOpacityWindow(url, window_id) {
		window_obj=document.getElementById(window_id);
		setTimeout('ShowWindow()', 250);
		setOpacityWindow2();
		//Ξοπεδελθμ Internet Explorer
		if(navigator.appName == "Microsoft Internet Explorer") {
			document.getElementById('div_blackout').style.position = "absolute";
			window_obj.style.position = "absolute";
			//document.body.style.overflow = "hidden";
		}
		if(document.getElementById('from_page_input')!=null){
			document.getElementById('from_page_input').value=url;
		}
       document.getElementById('div_blackout').style.width = "100%";
       document.getElementById('div_blackout').style.height = "100%";
       document.getElementById('div_blackout').style.display = "block";
		return false;
    }
	function setOpacityWindow2() {
		
       value += .3;
       var testObj = document.getElementById('div_blackout');
       testObj.style.opacity = value/10;
       testObj.style.filter = 'alpha(opacity=' + value*10 + ')';
       myTimeout = setTimeout("setOpacityWindow2()", 1);

       if ((value/10) >= .6) {
          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(navigator.appName == "Microsoft Internet Explorer") {
		//	document.body.style.overflow = "scroll";
		//}
		
       if ((value/10) <= 0) {
          testObj.style.display = "none";
          clearTimeout(myTimeout2);
       }
	   window_hide();
  		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  window_hide(){
	if(window_obj.style.display == 'block') 
		window_obj.style.display = 'none';
	} 

	function  ShowWindow(){
		if(window_obj.style.display == 'none') {
			window_obj.style.display = 'block';
			var div_login_height=window_obj.clientHeight;
			var div_login_width=window_obj.clientWidth;
			div_login_top=div_login_height;
			window_obj.style.top=$(window).scrollTop()+(getClientHeight()/2)-(div_login_height/2) + 'px';
			window_obj.style.left=(getClientWidth()/2)-(div_login_width/2) + 'px';

			if(document.getElementById('login')!=null && document.getElementById('div_login').style.display == 'block'){
				document.getElementById('login').focus();
			}
		}
	}
	

	



	function getBodyScrollTop(){
		return self.pageYOffset || (document.documentElement && document.documentElement.scrollTop) || (document.body && document.body.scrollTop);
	}
	

