function enableTooltips(D){var A,B,C;if(!document.getElementById||!document.getElementsByTagName){return }C=document.createElement("span");C.id="btc";C.setAttribute("id","btc");C.style.position="absolute";document.getElementsByTagName("body")[0].appendChild(C);if(D==null){A=document.getElementsByTagName("a")}else{A=document.getElementById(D).getElementsByTagName("a")}for(B=0;B<A.length;B++){Prepare(A[B])}}function Prepare(el){var snapr,tooltip,t,b,s,l;if(!el.getAttribute("href")||!el.getAttribute("href").match(/http:\/\//)||el.getAttribute("href").match(eval("/"+location.host+"/"))){return }if(typeof seekXLThumbnailSize!="undefined"&&seekXLThumbnailSize!=""&&seekXLShowAll=="true"){seekxlsnaprclass="seekxlsnapr"+seekXLThumbnailSize.toLowerCase()}else{seekxlsnaprclass="seekxlsnaprs"}if(el.getAttribute("class")||el.getAttribute("className")){if(navigator.appName=="Microsoft Internet Explorer"){catr=el.getAttribute("className")}else{catr=el.getAttribute("class")}result=catr.toLowerCase().search(/seekxlsnapr[tsmlTSML]/);if(result!=-1){seekxlsnaprclass=catr.toLowerCase().substr(result,12)}}else{if(seekXLShowAll=="false"){return }}tooltip=CreateEl("span","tooltip");switch(seekxlsnaprclass){case"seekxlsnaprt":tooltip.style.width="102px";var background="url(http://snapr.seekxl.de/media/bubble_t.gif) no-repeat";size="T";maxlength=12;break;case"seekxlsnaprs":default:tooltip.style.width="202px";var background="url(http://snapr.seekxl.de/media/bubble_s.gif) no-repeat";size="S";maxlength=28;break;case"seekxlsnaprm":tooltip.style.width="402px";var background="url(http://snapr.seekxl.de/media/bubble_m.gif) no-repeat";size="M";maxlength=57;break;case"seekxlsnaprl":tooltip.style.width="642px";var background="url(http://snapr.seekxl.de/media/bubble_l.gif) no-repeat";size="L";maxlength=77;break}snapr=CreateEl("img","top");if(typeof seekXLLogoKey!="undefined"&&seekXLLogoKey!=""){key="&key="+seekXLLogoKey}else{key=""}snapr.setAttribute("src","http://snapr.seekxl.de?size="+size+"&url="+escape(el.getAttribute("href")).replace(/\//g,"%2F")+key);if(t==null||t.length==0){t="link:"}s=CreateEl("span","top");s.style.background=background+" top";s.appendChild(snapr);tooltip.appendChild(s);b=CreateEl("b","bottom");b.style.background=background+" bottom";l=el.getAttribute("href");if(l.length>maxlength){l=l.substr(0,maxlength-3)+"..."}b.appendChild(document.createTextNode(l));tooltip.appendChild(b);setOpacity(tooltip);el.tooltip=tooltip;el.onmouseover=showTooltip;el.onmouseout=hideTooltip;el.onmousemove=Locate}function showTooltip(A){document.getElementById("btc").appendChild(this.tooltip);Locate(A)}function hideTooltip(A){var B=document.getElementById("btc");if(B.childNodes.length>0){B.removeChild(B.firstChild)}}function setOpacity(A){A.style.filter="alpha(opacity:95)";A.style.KHTMLOpacity="0.95";A.style.MozOpacity="0.95";A.style.opacity="0.95"}function CreateEl(B,C){var A=document.createElement(B);A.className=C;A.style.display="block";return(A)}function Locate(B){var A=0,C=0;if(B==null){B=window.event}if(B.pageX||B.pageY){A=B.pageX;C=B.pageY}else{if(B.clientX||B.clientY){if(document.documentElement.scrollTop){A=B.clientX+document.documentElement.scrollLeft;C=B.clientY+document.documentElement.scrollTop}else{A=B.clientX+document.body.scrollLeft;C=B.clientY+document.body.scrollTop}}}document.getElementById("btc").style.top=(C+10)+"px";document.getElementById("btc").style.left=(A-20)+"px"}window.onload=function(){enableTooltips()}