﻿// JScript File
var c=1;
var t,t2;

function ExitPopup()
{
    clearTimeout(t);
    var x=document.getElementById("UnderConstructionBox");
       
    c=c-3;
    if (c < 0)
    {
        x.style.zIndex=-500;
        c=1;
    }
    else
    {
        setOpacity(c);        
        t=setTimeout("ExitPopup()",1);
    }               
}


function UnderConstruction()
{
   
    clearTimeout(t2);

    var x=document.getElementById("UnderConstructionBox");
    x.style.zIndex=500;
       
    c=c+3;
    if (c > 100)
    {
        c=100;
        t2=setTimeout("ExitPopup()",6000);      
    }
    else
    {
        setOpacity(c);        
        t=setTimeout("UnderConstruction()",1);
    }               
}

function setOpacity(value) {

    var x=document.getElementById("UnderConstructionBox");
	x.style.opacity = value/100;
	x.style.filter = 'alpha(opacity=' + value + ')';
}
    


