var mobosx = 15; var mobosy = -30; var mobft = 0.01; var mobie = (document.all); var mobns = (document.getElementById && !mobie); var mobon = false; var mobfr = false; var mobcx, mobcy, mobre, mobbe, moble; if (mobie || mobns) var mobobj = (mobie) ? document.all["mob"] : document.getElementById ? document.getElementById("mob") : ""; (mobie && !window.opera) ? mobft *= 1 : mobft *= 1; function mob(mobt, mobc, mobw) { if (mobns || mobie) { if (typeof(mobw) != "undefined") mobobj.style.width = mobw + "px"; if (typeof(mobc) != "undefined" && mobc != "") mobobj.style.backgroundColor = mobc; mobobj.innerHTML = mobt; if (mobie && !window.opera) mobobj.style.filter = 'alpha(opacity = 100)'; else mobobj.style.opacity = 1; mobfr = false; mobon = true; return false; } } function mobp(e) { if (mobon) { mobietb = (document.compatMode && document.compatMode != "BackCompat") ? document.documentElement : document.body; mobcx = (mobns) ? e.pageX : event.clientX + mobietb.scrollLeft; mobcy = (mobns) ? e.pageY : event.clientY + mobietb.scrollTop; mobre = (mobie && !window.opera) ? mobietb.clientWidth - event.clientX - mobosx : window.innerWidth - e.clientX - mobosx - 20; mobbe = (mobie && !window.opera) ? mobietb.clientHeight - event.clientY - mobosy : window.innerHeight - e.clientY - mobosy - 20; moble = (mobosx < 0) ? -(mobosx * 1) : -1000; if (mobre < mobobj.offsetWidth) mobobj.style.left = mobie ? mobietb.scrollLeft + event.clientX - mobobj.offsetWidth + "px" : window.pageXOffset + e.clientX - mobobj.offsetWidth + "px"; else if (mobcx < moble) mobobj.style.left = "5px"; else mobobj.style.left = mobcx + mobosx + "px"; if (mobbe < mobobj.offsetHeight) mobobj.style.top = mobie ? mobietb.scrollTop + event.clientY - mobobj.offsetHeight - mobosy + "px" : window.pageYOffset + e.clientY - mobobj.offsetHeight - mobosy + "px"; else mobobj.style.top = mobcy + mobosy + "px"; mobobj.style.visibility = "visible"; } } function mobh() { if (mobns || mobie) { mobfr = true; mobf(mobft); } } function mobf(ft, ftr) { if (mobfr) { if (!ftr) var ftr = ft; if (ft > 0) { mobop = (--ft)/ftr; (mobie && !window.opera) ? mobobj.style.filter = 'alpha(opacity = ' + (mobop * 100) + ')' : mobobj.style.opacity = mobop; setTimeout("mobf("+ft+", "+ftr+")", 1); } else mobfr = false; } } document.onmousemove = mobp;