function $(d){return document.getElementById(d);}
var i = 0;
var s;
var h;
var div;
function change_show(){
   var obj = $(div);
   i=i+5; 
   obj.style.filter = "Alpha(Opacity=" + i + ")"; 
   obj.style.opacity = i/100; 
   if(i>=100){
		clearInterval(s);
		i=0;
   }
}
var j = 100;
function change_hidden(){
   var obj = $(div);
   j=j-5; 
   obj.style.filter = "Alpha(Opacity=" + j + ")"; 
   obj.style.opacity = j/100; 
   if(j<=0){
		obj.style.display='none';
		clearInterval(h);
		j=100;
   }
}

function show(x){
	div = x;
	$(x).style.display = 'block';
   if(s){clearInterval(s);}
   s = setInterval("change_show()",1);
}

function hidden(x){
	div = x;
	h = setInterval("change_hidden()",1);
}

var second = 0;
var g;
function gotourl(x){
	second = x;
	if(g){clearInterval(g);}
	g = setInterval("showgoto()", 1000);
}

function showgoto(){
	second = second - 1;
	$('second').innerHTML = second;
	if(second <= 0){
		clearInterval(g);
		show('iframe');
		$('main').style.display='none';
		if (vip) {
			$('vip').style.display='none';
		}
	}
}

function killErrors() {
         return true;
}
window.onerror = killErrors;
