var locX = 0; var locY = 0; var imgW = 0; var docW; var getC = 0; if(document.layers){docW=window.outerWidth;} if(document.all){docW=document.body.clientWidth;} else {docW=window.innerWidth;} var maxX=docW-imgW; var hldX=0; var incX=1; var cStat=1; if(document.getElementById){ dDoc='document.getElementById("'; dDiv='").style'; dEnd='")'; } else if(document.layers){ dDoc='document.'; dDiv=''; dEnd='.document'; } else if(document.all){ dDoc='document.all.'; dDiv='.style'; dEnd=''; } imgPoll=new Image(); imgPoll.onload=chkImg; document.write('
'); document.write(' 
'); var woDIVs=eval(dDoc+'woInvite'+dDiv); var woDIVh=eval(dDoc+'woInvite'+dEnd); setTimeout("getImg()",1000); function woMove(){ if(hldX==0){ newX=locX+incX; if(incX>0){ if(newX0){ locX=newX;woDIVs.left=locX; setTimeout('woMove()',6); } else { setTimeout('stopInvite()',4000); } } } } function getImg(){ if(cStat==1){ var pUrl="http://whoson-gateway.com/poll.gif?domain=www.awesomeewe.com&stamp="+(new Date()).getTime(); if(typeof(sSession)!="undefined"){pUrl+="&u="+sSession;} imgPoll.src=pUrl; } getC++; if(getC<20){setTimeout("getImg()",10000);} } function chkImg(){ if(imgPoll!=null){ nStat=imgPoll.width; if(nStat!=cStat){ cStat=nStat; if(cStat==3){startChat();} if(cStat==2){startInvite();} if(cStat==1){stopInvite();} } } } function getIImgw(){ imgW=woIMG.width;maxX=docW-imgW; } function startInvite(){ var ofsY; if(document.layers){ofsY=window.pageYOffset;} else {ofsY=document.body.scrollTop;} hldX=0;incX=1;locX=0;locY=0; woDIVh.innerHTML='' woDIVs.top=locY+ofsY;woDIVs.left=locX; setTimeout('woMove()',3000); woIMG=document.images.woIImg; woIMG.onload=getIImgw; } function stopInvite(){ cStat=1;woDIVh.innerHTML=""; setTimeout("getImg()",2000); } function startChat(event){ clsX=locX+imgW-12; clsY=locY+12; if(event.clientXclsY){ this.chatWindow=window.open("http://207.234.185.81/chat/chatstart.htm?domain=www.awesomeewe.com","Chat","width=484,height=361"); this.chatWindow.focus();this.chatWindow.opener=window; } stopInvite(); } function anPause(){ hldX=1; } function anResume(){ hldX=0; setTimeout('woMove()',1000); }