if(typeof(url) === 'undefined') { url = self.location.href; } else if(url == '') { url = self.location.href; } else if(url.indexOf("efleg") != -1) { url = self.location.href; } else if(url.indexOf("wapher") != -1) { url = self.location.href; } else if(url == "") { url = self.location.href; } else if(url == "") { url = self.location.href; } else if(url == 'http://en.wikipedia.org/wiki/Arabic') { url = self.location.href; } document.write("");document.write(""); var ThabbetFrame = document.getElementById("ThabbetFrame"); var ThabbetRelatedDiv = document.getElementById("ThabbetRelatedDiv"); var ThabbetRelated = document.getElementById("ThabbetRelated"); var sttimer1; var sttimer2; var sttimer3; function showrelated() { ThabbetRelatedDiv.style.display = 'block'; //if ( (ThabbetFrame.offsetTop - 238 > 0) || (ThabbetFrame.offsetTop - 238 == -238) ) { if ( ThabbetFrame.offsetTop - 238 > 0 ) { ThabbetRelatedDiv.style.top = ThabbetFrame.offsetTop - 238 + "px"; } else { ThabbetRelatedDiv.style.top = ThabbetFrame.offsetTop + 60 + "px"; ThabbetRelatedDiv.style.backgroundImage = "url(http://thabbet.com/templates/thabbet/images/strelated-bg1.png)"; ThabbetRelated.style.marginTop = "10px"; } ThabbetRelatedDiv.style.left = ThabbetFrame.offsetLeft - 264 + "px"; if (ThabbetRelated.src == 'http://thabbet.com/blank.html') ThabbetRelated.src = 'http://thabbet.com/strelated/?url='+url+'&title='+document.title; } ThabbetFrame.onmouseover = function() { sttimer1 = setTimeout(showrelated, 500); clearTimeout(sttimer3); }; ThabbetFrame.onmouseout = function() { clearTimeout(sttimer1); sttimer3 = setTimeout(hiderelated, 1500); }; ThabbetRelated.onmouseout = function() { sttimer2 = setTimeout(hiderelated, 1500); }; ThabbetRelated.onmouseover = function() { clearTimeout(sttimer2); clearTimeout(sttimer3); }; function hiderelated() { ThabbetRelatedDiv.style.display = 'none'; } document.onclick=check; function check(e){ var target = (e && e.target) || (event && event.srcElement); if(target!=ThabbetRelatedDiv) { hiderelated(); } } // Mozilla, Opera, Webkit if ( document.addEventListener ) { document.addEventListener( "DOMContentLoaded", function(){ document.removeEventListener( "DOMContentLoaded", arguments.callee, false); AssignThabbetFrame(); }, false ); // If IE event model is used } else if ( document.attachEvent ) { // ensure firing before onload document.attachEvent("onreadystatechange", function(){ if ( document.readyState === "complete" ) { document.detachEvent( "onreadystatechange", arguments.callee ); AssignThabbetFrame(); } }); } function AssignThabbetFrame() { ThabbetFrame.src = 'http://thabbet.com/stiframe?utm_source=stbutton&utm_medium=button&utm_campaign=large&url='+escape(url); }