function scrolltop()
{
var bodyHeight = document.body.clientHeight;
var screenHeight = document.documentElement.clientHeight;
var screenWidth =  document.documentElement.clientWidth;
var scrollHeight = document.documentElement.scrollTop;


timer=setTimeout("scrolltop()",10)
}

function stoptimer()
{
clearTimeout(timer)
}


var Div2 = document.createElement("DIV");
Div2.id = "overlay"
document.body.appendChild(Div2);


var OverLay =  document.getElementById("overlay");


function IsIE()
{
	
xp= navigator.appVersion

return (xp.substr(17,8)=="MSIE 6.0" );

}

function HidePopupDiv()
{

if (IsIE())
{
var pagelinks = document.getElementsByTagName("select")
for (var i=0; i<pagelinks.length; i++){ pagelinks[i].style.visibility = "visible" }
}

}

function ShowPopupDiv()
{

if (!IsIE())
{

return;

}

var pagelinks = document.getElementsByTagName("select")
for (var i=0; i<pagelinks.length; i++){ pagelinks[i].style.visibility = "hidden" }

}

function opacity(y) {
	//if (y == "") { document.getElementById("thumbimgs").style.display = "none"
	//document.getElementById("formsDraw").style.display = ""}
	 //document.getElementById("thumbimgs").style.display = "" 

//document.getElementById("thumbimgs").src  = "http://www.comverse.com" + y;
var bodyHeight = document.body.clientHeight;
var screenHeight = document.documentElement.clientHeight;
var screenWidth =  document.documentElement.clientWidth;
var scrollHeight = document.documentElement.scrollTop;


if (y != "") {

}
else
{

}
	
scrolltop()
	




if (screenHeight > bodyHeight){ 
OverLay.style.height = screenHeight + "px";
}else  {
OverLay.style.height = bodyHeight + "px";	
} 
if (OverLay.style.height  == ""){
OverLay.style.height = "100%"
}
OverLay.style.visibility = "visible"


    //speed for each frame

	var opacStart = 0;
	var opacEnd = 100;
	var millisec = 500;
    var speed = Math.round(millisec / 100);
    var timer = 0;

    //determine the direction for the blending, if start and end are the same nothing happens
    if(opacStart > opacEnd) {
        for(i = opacStart; i >= opacEnd; i--) {
            setTimeout("changeOpac(" + i + ")",(timer * speed));
            timer++;
        }
    } else if(opacStart < opacEnd) {
        for(i = opacStart; i <= opacEnd; i++)
            {
            setTimeout("changeOpac(" + i + ")",(timer * speed));
            timer++;
        }
    }
}

//change the opacity for different browsers
function changeOpac(opacity) {

}
function hideImg (){
OverLay.style.visibility = "hidden"
	stoptimer();
	//document.getElementById("thumbimgs").src ="" 


}


