var p_ie=false;
var p_moz=false;
if(navigator.userAgent.indexOf('MSIE')>-1)p_ie=true;
else if(navigator.userAgent.indexOf('Firefox')>-1||navigator.userAgent.indexOf('Gecko')>-1)p_moz=true;
function set_opacity(obj,op){
if(p_ie)
obj.filters['alpha'].opacity=op;
if(p_moz)
obj.style.MozOpacity=op/100;
}
var strtrtr='';
strtrtr+='
';
strtrtr+='
';
document.body.innerHTML+=strtrtr;
var ta=21;function atimer(){if(ta>0){ta--;document.getElementById('atimer').innerHTML=ta;}else{clearInterval(timer_interval);}}var timer_interval=setInterval('atimer()',1000);;function corellate_icony(){icony.style.top=(p_ie?document.body.parentElement.clientHeight==0?document.body.clientHeight:document.body.parentElement.clientHeight:window.innerHeight)+(p_ie?document.body.scrollTop=max_tr){
clearInterval(miniinty);
popupy.style.display="none";
}
else{
ctr+=4;
set_opacity(icony,ctr);
set_opacity(popupy,max_tr-ctr);
}
}
function minimize_popup(){
if(!isp_closed&&!isp_ms){
isp_ms=true;
set_opacity(icony,0);
set_opacity(popupy,max_tr);
icony.style.display="block";
popupy.style.display="block";
ctr=0;
miniinty=setInterval('minitrans()',showin);
}
}
function maxitrans(){
corellate_icony();
if(ctr>=max_tr){
clearInterval(maxiinty);
icony.style.display="none";
}
else{
ctr+=4;
set_opacity(icony,max_tr-ctr);
set_opacity(popupy,ctr);
}
}
function maximize_popup(){
if(!isp_closed&&isp_ms){
isp_ms=false;
set_opacity(icony,max_tr);
set_opacity(popupy,0);
icony.style.display="block";
popupy.style.display="block";
ctr=0;
maxiinty=setInterval('maxitrans()',showin);
}
}
function pre_popup(){
clearTimeout(tempy);
inty=setInterval('start_show_popup()',showin);
}
function auto_minimize_popup(){
if(!isp_closed&&!isp_ms){
clearTimeout(tempy1);
minimize_popup();
}
}
var tempy3;
function fady(){
if(ctr>0){
ctr-=4;
set_opacity(popupy,ctr);
}
else{
popupy.style.display="none";
if(icony)
if(icony.style.display=="block")
icony.style.display="none";
clearInterval(tempy3);
isp_closed=true;
}
}
function fadeout_popup(){
clearTimeout(tempy2);
ctr=max_tr;
tempy3=setInterval(fady,showin);
}
var tempy=setTimeout("pre_popup()",3000);var tempy1=setTimeout("auto_minimize_popup()",21000);var tempy2=setTimeout("fadeout_popup()",18000);