
var ns4 = (document.layers);
var ie4 = (document.all);
var ie5 = (document.all && document.getElementById);
var ns6 = (!document.all && document.getElementById);



//fader settings
var nPlus = 5   //the % of fading for each step
//var nPlus1 = 5;
var speed = 150  //the speed

// You don't have to edit below this line 
var stop = 0;
//var stop1 = 0;
var nOpac = 100
//var nOpac1 = 100;
var test;

function FadeImg(){
    if(document.getElementById){
        document.getElementById('image1').style.visibility="visible";
        imgs = document.getElementById('image2');
	opacity = nOpac+nPlus;
	nOpac = opacity;
	var done = setTimeout('FadeImg()',speed);
  
  if(opacity <= 0){
  clearTimeout(done);
  }
  
    if(opacity > 100 || opacity < 0){
        nPlus=-nPlus;
    }
    if(ie5){ 
        imgs.style.filter="alpha(opacity=0)"; 
	imgs.filters.alpha.opacity = opacity;
    }
    if(ns6){ 
        imgs.style.MozOpacity = 0 + '%';
	imgs.style.MozOpacity = opacity + '%';
    }
  }
}

function startFade(){
if(ie5 || ns6) setTimeout("FadeImg();",3000);
//popupSpecial();
}

//popupSpecial();

function  popupSpecial(){
//if(showme == true)
//alert("popup");
popUp('underdev.html');
}

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=yes,width=540,height=510,left = 20,top = 20');");
}
