var interupt=true;function findPos(obj){var curleft=curtop=0;if(obj.offsetParent){do{curleft+=obj.offsetLeft;curtop+=obj.offsetTop;}while(obj=obj.offsetParent);}return[curleft,curtop];}
function applyEvent(theObj,theEvent,theFunction){if(window.addEventListener){theObj.addEventListener(theEvent,theFunction,false);}else{theObj.attachEvent('on'+theEvent,theFunction);}}
function closeIt(){try{var curr=document.getElementById("curropenhl2l");}catch(e){}
if(curr){curr.parentNode.removeChild(curr);}
interupt=true;}
function hl2l(e){var rightclick;if(!e)var e=window.event;if(e.which)rightclick=(e.which==3);else if(e.button)rightclick=(e.button==2);if(!rightclick)return true;closeIt();var tw=150;var th=150;var thisele;if(!(typeof event=="undefined")){thisele=event.srcElement;th=th-10;}else if(this){thisele=e.currentTarget;}
var tpage=document.location.href;var tsrc=thisele.getAttribute("src");if(tsrc.substr(0,4).toLowerCase()!="http"){var base;if(tpage.substr(tpage.length-1,1)=="/"){base=tpage;}else if(tpage.indexOf("/",9)==-1){base=tpage+"/";}else{base=tpage.substr(0,tpage.lastIndexOf("/")+1);}
var root=base.substr(0,base.indexOf("/",9));if(tsrc.substr(0,1)!="/"){tsrc=base+tsrc;}else{tsrc=root+tsrc;}}
var talt=thisele.getAttribute("alt");if(talt){talt=talt.replace("'","");}else{talt="";}
var nd=document.createElement("div");nd.style.width=tw+"px";nd.style.height=th+"px";nd.style.border="1px solid #000000";nd.style.position="absolute";nd.style.fontSize="12px";nd.style.fontFamily="Arial";texy=findPos(thisele);nd.style.left=((texy[0]+(thisele.offsetWidth/2))-(tw/2))+"px";nd.style.top=((texy[1]+(thisele.offsetHeight/2))-(th/2))+"px";nd.style.backgroundColor="#68c256";nd.setAttribute("id","curropenhl2l");var ndic=document.createElement("div");var ndc=document.createElement("div");ndc.style.cssFloat="right";ndc.style.styleFloat="right";ndc.style.border="1px solid #444444";ndc.style.backgroundColor="#aaaaba";ndc.style.width=35+"px";ndc.style.cursor="pointer";ndc.innerHTML="Close";ndic.appendChild(ndc);applyEvent(ndc,"click",closeIt);var ndi=document.createElement("div");ndi.style.width=(tw-50)+"px";ndi.style.padding="3px";ndi.innerHTML="<a href=\"http://www.websiteribbon.com/\">Diagonal Advertising Banner</a> - To make a similar diagonal banner, please visit <a href=\"http://www.websiteribbon.com/\">Diagonal Ad Banner</a>";ndic.appendChild(ndi);nd.appendChild(ndic);var r1=document.createElement("span");r1.style.width=0+"px";r1.style.border="0px solid black";r1.style.padding="0px";r1.style.backgroundColor="#68c256";r1.style.cursor="pointer";r1.style.marginLeft="0px";r1.innerHTML="";r1.setAttribute("id","hl2lr1");applyEvent(r1,"click",function(){useHTML(thtml)});var s1=document.createElement("span");s1.innerHTML="&nbsp;";s1.style.width=10+"px";var b1=document.createElement("br");var b2=document.createElement("br");var r2=document.createElement("span");r2.style.width=0+"px";r2.style.border="0px solid black";r2.style.padding="0px";r2.style.backgroundColor="#68c256";r2.style.cursor="pointer";r2.setAttribute("id","hl2lr2");nd.appendChild(r1);nd.appendChild(s1);nd.appendChild(r2);nd.appendChild(b2);var ta=document.createElement("textarea");ta.setAttribute("cols","0");ta.setAttribute("rows","0");ta.setAttribute("wrap","soft");ta.setAttribute("id","hl2lta");ta.style.margin="0px";applyEvent(ta,"mousemove",function(){document.getElementById("hl2lta").select()});document.body.appendChild(nd);r1.checked=true;thisele.oncontextmenu=function(){if(interupt){interupt=false;return false;};};nd.oncontextmenu=function(){if(interupt){interupt=false;return false;};};}