document.onmousemove = function(e) {cI();} var h_padding=10; var v_padding=10; function is_right_available(box,e) { if ((box.clientWidth+e.clientX+h_padding)>=winWidth){ return false; } return true; } function is_top_available(box,e) { if ((e.clientY-box.clientHeight-v_padding) < 0){ return false; } return true; } function is_bot_available(box,e) { if ((e.clientY+box.clientHeight+v_padding) > winHeight){ return false; } return true; } function is_left_available(box,e) { if ((e.clientX-box.clientWidth-h_padding)<0){ return false; } return true; } function boxFinishedMoving(box) { var y=box.offsetTop; var x=box.offsetLeft; if ((ybox.ypos)||(xbox.xpos)) { return false; } else { return true; } } function moveBox() { var box = document.getElementById('bubble'); var y=box.offsetTop; var x=box.offsetLeft; var diffx; var diffy; diffx = Math.abs(x-box.xpos); diffy = Math.abs(y-box.ypos); if (!boxFinishedMoving(box)) { if (ybox.ypos) { y-=Math.round(diffy*(0.01))+1; box.style.top = y + "px"; } if (xbox.xpos){ x-=Math.round(diffx*(0.01))+1; ; box.style.left = x + "px"; } window.setTimeout("moveBox()", 10); } } function moveBox2() { var box = document.getElementById('bubble'); var y=box.offsetTop; var x=box.offsetLeft; var diffx; var diffy; diffx = Math.abs(x-box.xpos); diffy = Math.abs(y-box.ypos); if (!boxFinishedMoving(box)) { if (ybox.ypos) { y=y-diffy; box.style.top = y + "px"; } if (xbox.xpos) { x=x-diffx; box.style.left = x + "px"; } window.setTimeout("moveBox2()", 10); } } var winWidth=0; var winHeight=0; initFrameSize(); function initFrameSize() { winWidth=window.innerWidth; winHeight=window.innerHeight; } var pos = 'right'; var strCache = new Array(); var lastStr; var trip_count = 0; function isBrowserCompatible() { var xmlhttp=false; if (!xmlhttp && typeof XMLHttpRequest!='undefined') { xmlhttp = new XMLHttpRequest(); } if (!xmlhttp) { return false } return true; } function fillAdContent(aid, bubble) { if (!isBrowserCompatible()) { return false; } if (strCache[aid]) { bubble.innerHTML = strCache[aid]; return true; } var xmlhttp=false; if (!xmlhttp && typeof XMLHttpRequest!='undefined') { xmlhttp = new XMLHttpRequest(); } xmlhttp.open("GET", "ga.php?AID="+aid+"&t=1714262846", true); if (trip_count != 0){} xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4) { if (xmlhttp.responseText.length > 0) { bubble.innerHTML = xmlhttp.responseText; strCache[''+aid] = xmlhttp.responseText } else { bubble.innerHTML = bubble.innerHTML.replace('',''); } trip_count--; } } xmlhttp.send(null) } function sB(e, str, area, aid) { window.clearTimeout(timeoutId); var relTarg; var bubble = document.getElementById('bubble'); if (!e) var e = window.event; if (e.relatedTarget) relTarg = e.relatedTarget; else if (e.fromElement) relTarg = e.fromElement; b = bubble.style if ((lastStr!=str)) { lastStr=str; hideBubble(e); if (bubble.filters) { bubble.filters[0].transition=23; bubble.filters[0].duration=1; bubble.filters[0].Apply(); } document.getElementById('content').innerHTML=str; trip_count++ fillAdContent(aid, document.getElementById('content')); if (bubble.filters) { bubble.filters[0].Play(); } } var mytop = is_top_available(bubble,e); var mybot = is_bot_available(bubble, e); var myright = is_right_available(bubble,e); var myleft = is_left_available(bubble,e); if (mytop) { bubble.ypos=(e.clientY-bubble.clientHeight-v_padding); } if (myright) { bubble.xpos=(e.clientX+h_padding); } if (myleft) { bubble.xpos=(e.clientX-bubble.clientWidth-h_padding); } if (mybot) { bubble.ypos=(e.clientY+v_padding); } b.visibility='visible'; moveBox() window.setTimeout("moveBox()", 10); } function hBTimeout(e) { lastStr=''; hideBubble(e); } function hideBubble(e) { window.clearTimeout(timeoutId); var bubble = document.getElementById('bubble'); b = bubble.style; if (bubble.filters) { bubble.filters[0].transition=23; bubble.filters[0].duration=1; bubble.filters[0].Apply(); } b.visibility='hidden'; if (bubble.filters) { bubble.filters[0].Play(); } } var timeoutId=0; function hI() { if (timeoutId==0) { timeoutId = window.setTimeout('hBTimeout()', '500') } } function cI() { if (timeoutId!=0) { timeoutId=0; } } function po(block_id) { block_clicked=true; window.open('click.php?block_id=' + block_id + '&BID=','',''); return false; } var block_clicked=false;