
adTime = 5;  // º¸¿©ÁÙ ÃÊ ÀÔ·Â

var ie=(document.all); 
adCount=0; 

function initAd()
{ 
        adDiv = eval('document.all.sponsorAdDiv.style'); 
        adDiv.visibility="visible"; 
     //   showAd(); 
} 

function showAd()
{     
    if (adCount < adTime*10)
    {
        adCount += 1; 

        // À§Ä¡ ÁöÁ¤
        documentWidth  = document.body.offsetWidth / 2 + document.body.scrollLeft - 20; 
        documentHeight = document.body.offsetHeight / 2 + document.body.scrollTop - 20; 
        adDiv.left = documentWidth - 100;
        adDiv.top  = documentHeight - 200; 

        setTimeout("showAd()", 100);
    }
  //  else
  //      closeAd(); 
} 

function hidelayer()
{ 
    adDiv.display="none"; 
} 
onload=initAd; 

//rainbow
function id(number){
var crossobj=document.all? eval("document.all.text"+number) : document.getElementById("text"+number)
return crossobj
}

