var IE=document.all?true:false; if(!IE)document.captureEvents(Event.MOUSEMOVE); var borderWidth=20; var divWidth=400; var divHeight=300; var AccountID=516687; var instanceCnt=0; var hKey=''; function JSONscriptRequest(fullUrl){ this.fullUrl=fullUrl; this.noCacheIE='?noCacheIE='+(new Date()).getTime(); this.headLoc=document.getElementsByTagName("head").item(0); this.scriptId='ezB_Id'; var scriptTag=document.getElementById('ezB_Id'); if(scriptTag){ this.headLoc.removeChild(scriptTag); } } JSONscriptRequest.scriptCounter=1; JSONscriptRequest.prototype.buildScriptTag=function(){ this.scriptObj=document.createElement("script"); this.scriptObj.setAttribute("type","text/javascript"); this.scriptObj.setAttribute("src",this.fullUrl+this.noCacheIE); this.scriptObj.setAttribute("id",this.scriptId); } JSONscriptRequest.prototype.removeScriptTag=function(){ this.headLoc.removeChild(this.scriptObj); } JSONscriptRequest.prototype.addScriptTag=function(){ this.headLoc.appendChild(this.scriptObj); } function displayTarget(jsonData){ var t=eval(jsonData); var tDiv=returnObjById('ezB_i'); var iframe=document.createElement("iframe"); iframe.id="myFrame"; iframe.name=iframe.id; iframe.style.width=divWidth-2*borderWidth+"px"; iframe.style.height=divHeight-4*borderWidth+"px"; iframe.scrolling="auto"; iframe.src="http://ezBubbles.com/ezB/iframe.aspx?aid="+AccountID+"&hid="+hKey; iframe.setAttribute("frameBorder","0"); iframe.marginheight='0px'; iframe.marginwidth='0px'; tDiv.innerHTML=""; tDiv.appendChild(iframe); } function createMsgDiv(x,y) { delMainDiv(); var imgPoint="arr_"; var lr='left'; var tb='top'; if(x"); } function goForIt(callerID,hid){ hKey=hid; var obj=returnObjById(callerID); var m=findPos(obj)[0]+obj.offsetWidth/2; var n=findPos(obj)[1]+obj.offsetHeight/2; createMsgDiv(m,n); p='http://ezBubbles.com/ezB/json.aspx'; try{ aObj=new JSONscriptRequest(p); aObj.buildScriptTag(); aObj.addScriptTag(); } catch(err){ alert(err); } } function findPos(obj){ var curleft=curtop=0; if(obj.offsetParent){ curleft=obj.offsetLeft curtop=obj.offsetTop while(obj=obj.offsetParent){ curleft+=obj.offsetLeft curtop+=obj.offsetTop } } return[curleft,curtop]; } function returnObjById(id) { if(document.getElementById) var returnVar=document.getElementById(id); else if(document.all) var returnVar=document.all[id]; else if(document.layers) var returnVar=document.layers[id]; return returnVar; } function pageWidth() { return window.innerWidth!=null?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:document.body!=null?document.body.clientWidth:null; } function pageHeight() { return window.innerHeight!=null?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:document.body!=null?document.body.clientHeight:null; } function posLeft() { return typeof window.pageXOffset!='undefined'?window.pageXOffset:document.documentElement&&document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft?document.body.scrollLeft:0; } function posTop() { return typeof window.pageYOffset!='undefined'?window.pageYOffset:document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop?document.body.scrollTop:0; }