﻿// JScript File
ie5 = (document.all && document.getElementById);
ns6 = (!document.all && document.getElementById);


function fadeOut() {
if(opac2 > 0){
opac = 0;
opac2-=100;
if(ie5) document.getElementById('divLoading').style.filter = 'alpha(opacity='+opac2+')';
if(ns6) document.getElementById('divLoading').style.MozOpacity = opac2/100;
setTimeout('fadeOut()', 0);
}
else {

if (document.layers)
document.getElementById("divLoading").visibility = 'hide';
else
document.getElementById("divLoading").style.visibility = 'hidden';

if(ie5) document.getElementById('divLoading').style.filter = 'alpha(opacity='+100+')';
if(ns6) document.getElementById('divLoading').style.MozOpacity = 1;

return true; 
}
}



var go=0
var c=0
var t

function resetCount()
{
c=0
}

function timedCount()
{
c=c+1
t=setTimeout("timedCount()",1000)
}

function stopCount()
{
if (go == 1)
{

opac2 = 100;
doneLoading=setTimeout("stopCount()",1000)
if (c > 1)
{
clearTimeout(t);
clearTimeout(doneLoading);
c=0;
go=0

fadeOut();
}
}
}
   
//initializetabcontent("maintab")
//expandtab("maintab", 0);

_loadingTime = 0

function submitPageLoading()
{
go = 1;
timedCount();
if (document.layers)
	document.getElementById("divLoading").visibility = 'show';
else
	document.getElementById("divLoading").style.visibility = 'visible';
return true; 
}


var currentItemOpacity;
var currentItemOpacityMoz;

function Highlight(thisOne)
{
if(ie5) currentItemOpacity = document.getElementById(thisOne).style.filter;
if(ns6) currentItemOpacityMoz = document.getElementById(thisOne).style.MozOpacity;

if(ie5) document.getElementById(thisOne).style.filter = 'alpha(opacity='+100+')';
if(ns6) document.getElementById(thisOne).style.MozOpacity = 1;
}

function UnHighlight(thisOne)
{
if(ie5) document.getElementById(thisOne).style.filter = currentItemOpacity;
if(ns6) document.getElementById(thisOne).style.MozOpacity = currentItemOpacityMoz;
}
















function fadeOutPopUp() {
if(opac2PopUp > 0){
opacPopUp = 0;
opac2PopUp-=100;
if(ie5) document.getElementById('divLoadingPopup').style.filter = 'alpha(opacity='+opac2PopUp+')';
if(ns6) document.getElementById('divLoadingPopup').style.MozOpacity = opac2PopUp/100;
setTimeout('fadeOutPopUp()', 0);
}
else {

if (document.layers)
document.getElementById("divLoadingPopup").visibility = 'hide';
else
document.getElementById("divLoadingPopup").style.visibility = 'hidden';

if(ie5) document.getElementById('divLoadingPopup').style.filter = 'alpha(opacity='+100+')';
if(ns6) document.getElementById('divLoadingPopup').style.MozOpacity = 1;

return true; 
}
}



var goPopUp=0
var cPopUp=0
var tPopUp

function resetCountPopUp()
{
cPopUp=0
}

function timedCountPopUp()
{
cPopUp=cPopUp+1
tPopUp=setTimeout("timedCountPopUp()",1000)
}

function stopCountPopUp()
{
if (goPopUp == 1)
{

opac2PopUp = 100;
doneLoadingPopUp=setTimeout("stopCountPopUp()",1000)
if (cPopUp > 1)
{
clearTimeout(tPopUp);
clearTimeout(doneLoadingPopUp);
cPopUp=0;
goPopUp=0

fadeOutPopUp();
}
}
}
   

_loadingTimePopUp = 0

function submitPageLoadingPopUp()
{
goPopUp = 1;
timedCountPopUp();
if (document.layers)
	document.getElementById("divLoadingPopup").visibility = 'show';
else
	document.getElementById("divLoadingPopup").style.visibility = 'visible';
return true; 
}














































