// JavaScript Document
function res(){
var browser=navigator.appName;
if (browser=="Microsoft Internet Explorer"){

document.getElementById('effects1').style.pixelHeight = document.documentElement.clientHeight - 139;
document.getElementById('effects2').style.pixelHeight = document.documentElement.clientHeight - 158;
}else{

 bao = document.documentElement.clientHeight - 139;
 bao1 = document.documentElement.clientHeight - 158;
document.getElementById('effects1').style.height = bao + "px";
document.getElementById('effects2').style.height = bao1 + "px"

}
}

  if (document.images)
   {
var myimages=new Array()
function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++){
myimages[i]=new Image()
myimages[i].src=preloadimages.arguments[i]
}
}
preloadimages("http://www.valdiscomplex.com/banner/banner.png", "http://www.valdiscomplex.com/buttons/home-se.png", "http://www.valdiscomplex.com/buttons/home-onm.png", "http://www.valdiscomplex.com/menu/pause25p.png", "http://www.valdiscomplex.com/buttons/services.png", "http://www.valdiscomplex.com/buttons/services-onm.png", "http://www.valdiscomplex.com/buttons/prices.png", "http://www.valdiscomplex.com/buttons/prices-onm.png", "http://www.valdiscomplex.com/buttons/contacts.png","http://www.valdiscomplex.com/buttons/contacts-onm.png", "http://www.valdiscomplex.com/buttons/rila.png", "http://www.valdiscomplex.com/buttons/rila-onm.png", "http://www.valdiscomplex.com/menu/right.png", "http://www.valdiscomplex.com/effects/leftsmth.png", "http://www.valdiscomplex.com/effects/rightsmth.png", "http://www.valdiscomplex.com/images/loadingy.png");

 
}




document.write('<div id="loading"><br><br><img src="http://valdiscomplex.com/images/loader.gif" alt="" />Please wait...</div>');

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}
addLoadEvent(function() {
	res();
  document.getElementById("loading").style.display="none";
  if (document.getElementById) { // DOM3 = IE5, NS6 
document.getElementById('menu').style.visibility = 'visible'; 
document.getElementById('textc').style.visibility = 'visible'; 
if (document.getElementById('img_gallery')){
document.getElementById('img_gallery').style.visibility = 'visible'; 
}
document.getElementById('effects1').style.visibility = 'visible'; 
document.getElementById('effects2').style.visibility = 'visible'; 
} 
else { 
if (document.layers) { // Netscape 4 
document.getElementById('menu').style.visibility = 'visible'; 
document.getElementById('textc').style.visibility = 'visible'; 
if (document.getElementById('img_gallery')){
document.getElementById('img_gallery').style.visibility = 'visible'; 
}
document.getElementById('effects1').style.visibility = 'visible'; 
document.getElementById('effects2').style.visibility = 'visible'; 
} 
else { // IE 4 
document.getElementById('menu').style.visibility = 'visible'; 
document.getElementById('textc').style.visibility = 'visible'; 
if (document.getElementById('img_gallery')){
document.getElementById('img_gallery').style.visibility = 'visible'; 
}
document.getElementById('effects1').style.visibility = 'visible'; 
document.getElementById('effects2').style.visibility = 'visible'; 
} 

} 

});
