<script language= "javascript">
var type = null;
if (document.all)
type="IE";
if (!document.all && document.getElementById)
type="MO";
function hideSplash(){
if(type == "IE")//IE specific code
document.all.SplashScreen1.style.visibility= "hidden";
else if(type == "MO") //Mozilla specific code
document.getElementById("SplashScreen1").style.visibility= "hidden";
}
function showSplash(){
if(type == 'IE'){
splash = document.all.SplashScreen1;
splash.style.visibility="visible";
splash.style.left = (document.body.offsetWidth - splash.offsetWidth) / 2;
splash.style.top = (document.body.offsetHeight - splash.offsetHeight) / 2;
}
else if(type == 'MO'){
splash = document.getElementById("SplashScreen1");
// little hack for div in FireFox to display
// correctly(it does not display the <p> tag as expected)
splash.innerHTML = "Please wait,<BR> the page is loading..";
splash.align="center";
splash.style.left = (document.body.clientWidth - splash.offsetWidth) / 2;
splash.style.top = (document.body.clientHeight - splash.offsetHeight) / 2;
splash.style.visibility="visible";
}
}
// And now we call the function that displays the div
showSplash();
</script>