document.write('<div id="KOL_PopupAds_B2T_1" style="Z-INDEX: 99999; LEFT: 65px; VISIBILITY: hidden; WIDTH: 256px; POSITION: absolute; TOP: 622px; HEIGHT: 137px">');
document.write('<div align="right">');
document.write('<img src="http://tin8.com/images/tin8gg.gif" border="0" usemap="#Map">');
document.write('<map name="Map">');
if(document.domain.toLowerCase()=="tin8.com")
{
document.write('<area shape="rect" coords="0,15,217,136" href="http://tin8.com/User_Reg.Asp">');
}
else
{
document.write('<area shape="rect" coords="0,15,217,136" target=_blank href="http://tin8.com/">');
}
document.write(' <area shape="rect" coords="202,0,217,15" href="javascript:" onClick="javascript:closeDiv();">');
document.write('</map></div></div>');

document.write('</div>');


var divTop,divLeft,divWidth,divHeight,docHeight,docWidth,objTimer,i = 0; 
function getMsg() 
{ 
try{ 
divTop = parseInt(document.getElementById("KOL_PopupAds_B2T_1").style.top,10) 
divLeft = parseInt(document.getElementById("KOL_PopupAds_B2T_1").style.left,10) 
divHeight = parseInt(document.getElementById("KOL_PopupAds_B2T_1").offsetHeight,10) 
divWidth = parseInt(document.getElementById("KOL_PopupAds_B2T_1").offsetWidth,10) 
docWidth = document.body.clientWidth; 
docHeight = document.body.clientHeight; 
document.getElementById("KOL_PopupAds_B2T_1").style.top = parseInt(document.body.scrollTop,10) + docHeight + 10;// divHeight 
document.getElementById("KOL_PopupAds_B2T_1").style.left = parseInt(document.body.scrollLeft,10) + docWidth - divWidth 
document.getElementById("KOL_PopupAds_B2T_1").style.visibility="visible" 
objTimer = window.setInterval("moveDiv()",10) 
} 
catch(e){} 
} 

function resizeDiv() 
{ 
try{ 
divHeight = parseInt(document.getElementById("KOL_PopupAds_B2T_1").offsetHeight,10) 
divWidth = parseInt(document.getElementById("KOL_PopupAds_B2T_1").offsetWidth,10) 
docWidth = document.body.clientWidth; 
docHeight = document.body.clientHeight; 
document.getElementById("KOL_PopupAds_B2T_1").style.top = docHeight - divHeight + parseInt(document.body.scrollTop,10) 
document.getElementById("KOL_PopupAds_B2T_1").style.left = docWidth - divWidth + parseInt(document.body.scrollLeft,10) 
} 
catch(e){} 
} 

function moveDiv() 
{ 
try 
{ 
if(parseInt(document.getElementById("KOL_PopupAds_B2T_1").style.top,10) <= (docHeight - divHeight + parseInt(document.body.scrollTop,10))) 
{ 
window.clearInterval(objTimer) 
objTimer = window.setInterval("resizeDiv()",1) 
} 
divTop = parseInt(document.getElementById("KOL_PopupAds_B2T_1").style.top,10) 
document.getElementById("KOL_PopupAds_B2T_1").style.top = divTop - 1 
} 
catch(e){} 
} 
function closeDiv() 
{ 
document.getElementById('KOL_PopupAds_B2T_1').style.visibility='hidden'; 
if(objTimer) window.clearInterval(objTimer) 
} 
getMsg(); 
window.onresize = resizeDiv; 
window.onerror = function(){} 