WordPress.org

Plugin Directory

Changeset 554422


Ignore:
Timestamp:
06/07/12 17:09:48 (23 months ago)
Author:
TimZ
Message:

reverted to old bubble script

Location:
seekxl-snapr/tags/2.0.5/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • seekxl-snapr/tags/2.0.5/js/bubble-min.js

    r554401 r554422  
    1 var lightboxsupport=0;var disappeardelay=250;var verticaloffset=0;var enablearrowhead=1;var arrowheadimg=["http://snapr.seekxl.de/media/arrow_down.gif","http://snapr.seekxl.de/media/arrow_up.gif"];var arrowheadheight=9;var ie=document.all;var ns6=document.getElementById&&!document.all;verticaloffset=(enablearrowhead)?verticaloffset+arrowheadheight:verticaloffset;if(document.all){verticaloffset+=5}function enableTooltips(key,id){var links,i,tooltip,c,snapr,link,href,anchor=null,para,background,havelightbox;havelightbox=false;if(lightboxsupport&&typeof Lightbox=="function"){if(typeof myLightbox=="undefined"){}havelightbox=true}c=0;if(id==null){links=document.getElementsByTagName("a")}else{links=document.getElementById(id).getElementsByTagName("a")}var size="S";if(typeof seekXLThumbnailSize!="undefined"&&seekXLThumbnailSize!=""&&seekXLShowAll=="true"){size=seekXLThumbnailSize}var maxlength=28;if(havelightbox){disappeardelay+=750}for(i=0;i<links.length;i++){if(links[i].getAttribute("seekxl")||links[i].getAttribute("id")=="prevLink"||links[i].getAttribute("id")=="nextLink"||links[i].getAttribute("id")=="loadingLink"||links[i].getAttribute("id")=="bottomNavClose"||!links[i].getAttribute("href")||!links[i].getAttribute("href").length||!links[i].getAttribute("href").match(/^http/)||links[i].getAttribute("href").match(eval("/"+location.host+"/"))||(seekXLShowAll=="false"&&!(links[i].getAttribute("size")&&links[i].getAttribute("size").length))){continue}c++;if(havelightbox){anchor=document.createElement("a");if(typeof seekXLLogoKey!="undefined"&&seekXLLogoKey!=""){href="http://snapr.seekxl.de?key="+seekXLLogoKey+"&size=L&url="+escape(links[i].getAttribute("href")).replace(/\//g,"%2F")}else{href="http://snapr.seekxl.de?size=L&url="+escape(links[i].getAttribute("href")).replace(/\//g,"%2F")}anchor.setAttribute("href",href);anchor.setAttribute("title",links[i].getAttribute("href"));anchor.setAttribute("seekxl","true");anchor.setAttribute("rel","lightbox[seekxlbubble]")}tooltip=document.createElement("div");tooltip.id="baloon"+c;tooltip.setAttribute("id","baloon"+c);if(key!=null){}tooltip.className="seekxl_bubble";if(document.all){if(navigator.appName=="Microsoft Internet Explorer"){tooltip.style.margin="0px !important"}}tooltip.setAttribute("class","seekxl_bubble");links[i].setAttribute("rel","baloon"+c);if(links[i].getAttribute("size")&&links[i].getAttribute("size").length){if(links[i].getAttribute("size").toLowerCase()=="t"){tooltip.style.width="100px";size="T";maxlength=12}else{if(links[i].getAttribute("size").toLowerCase()=="s"){tooltip.style.width="200px";size="S";maxlength=28}else{if(links[i].getAttribute("size").toLowerCase()=="m"){tooltip.style.width="400px";size="M";maxlength=57}else{if(links[i].getAttribute("size").toLowerCase()=="l"){tooltip.style.width="640px";size="L";maxlength=77}}}}}else{if(size.toLowerCase()=="t"){tooltip.style.width="100px";maxlength=12}else{if(size.toLowerCase()=="s"){tooltip.style.width="200px";maxlength=28}else{if(size.toLowerCase()=="m"){tooltip.style.width="400px";maxlength=57}else{if(size.toLowerCase()=="l"){tooltip.style.width="640px";maxlength=77}}}}}snapr=document.createElement("img");if(havelightbox){snapr.setAttribute("src","http://snapr.seekxl.de/media/loupe_"+size.toLowerCase()+".gif")}else{snapr.setAttribute("src","http://snapr.seekxl.de/media/space_"+size.toLowerCase()+".gif")}snapr.setAttribute("border","0");para=document.createElement("div");if(typeof seekXLLogoKey!="undefined"&&seekXLLogoKey!=""){background="http://snapr.seekxl.de?key="+seekXLLogoKey+"&size="+size+"&url="+escape(links[i].getAttribute("href")).replace(/\//g,"%2F")}else{background="http://snapr.seekxl.de?size="+size+"&url="+escape(links[i].getAttribute("href")).replace(/\//g,"%2F")}tooltip.setAttribute("title",background);if(havelightbox&&anchor){anchor.appendChild(snapr);para.appendChild(anchor)}else{para.appendChild(snapr)}tooltip.appendChild(para);link=document.createElement("h2");link.innerHTML=(links[i].getAttribute("href").length>maxlength?links[i].getAttribute("href").substr(0,maxlength-3)+"...":links[i].getAttribute("href"));document.getElementsByTagName("body")[0].appendChild(tooltip)}if(havelightbox){if(document.all){}if(typeof myLightbox!="undefined"){myLightbox.updateImageList()}}initalizetooltip()}function getposOffset(d,c){var b=(c=="left")?d.offsetLeft:d.offsetTop;var a=d.offsetParent;while(a!=null){b=(c=="left")?b+a.offsetLeft:b+a.offsetTop;a=a.offsetParent}return b}function showhide(b,a){dropmenuobj.style.left=dropmenuobj.style.top="-500px";if(a.type=="mouseover"){b.visibility="visible"}}function iecompattest(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}function clearbrowseredge(c,a){if(a=="rightedge"){edgeoffsetx=0;var b=ie&&!window.opera?iecompattest().scrollLeft+iecompattest().clientWidth-15:window.pageXOffset+window.innerWidth-15;dropmenuobj.contentmeasure=dropmenuobj.offsetWidth;if(b-dropmenuobj.x<dropmenuobj.contentmeasure){edgeoffsetx=dropmenuobj.contentmeasure-c.offsetWidth}return edgeoffsetx}else{edgeoffsety=0;var b=ie&&!window.opera?iecompattest().scrollTop+iecompattest().clientHeight-15:window.pageYOffset+window.innerHeight-18;dropmenuobj.contentmeasure=dropmenuobj.offsetHeight;if(b-dropmenuobj.y<dropmenuobj.contentmeasure){edgeoffsety=dropmenuobj.contentmeasure+c.offsetHeight+(verticaloffset*2)}return edgeoffsety}}function displayballoontip(c,b){if(window.event){event.cancelBubble=true}else{if(b.stopPropagation){b.stopPropagation()}}if(typeof dropmenuobj!="undefined"){}dropmenuobj.style.visibility="hidden";clearhidemenu();dropmenuobj=document.getElementById(c.getAttribute("rel"));if(dropmenuobj.firstChild){var a=dropmenuobj.getAttribute("title");myImage=new Image();myImage.src=a}showhide(dropmenuobj.style,b);dropmenuobj.x=getposOffset(c,"left");dropmenuobj.y=getposOffset(c,"top")+verticaloffset;if(navigator.userAgent.match(/Opera/)){dropmenuobj.y-=4}else{if(document.all){dropmenuobj.y+=7}else{dropmenuobj.y-=3}}if(dropmenuobj.firstChild){dropmenuobj.firstChild.style.backgroundImage="url("+myImage.src+")"}dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(c,"rightedge")+"px";dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(c,"bottomedge")+c.offsetHeight+"px";if(enablearrowhead){displaytiparrow()}}function displaytiparrow(){var a,c;tiparrow=document.getElementById("seekxl_arrowhead");tiparrow.src=(edgeoffsety!=0)?arrowheadimg[0]:arrowheadimg[1];var b=(dropmenuobj.firstChild.filters&&dropmenuobj.firstChild.filters[0])?dropmenuobj.firstChild.filters[0].Strength-1:0;c=(edgeoffsetx!=0)?parseInt(dropmenuobj.style.left)+dropmenuobj.offsetWidth-tiparrow.offsetWidth:parseInt(dropmenuobj.style.left)-1;a=(edgeoffsety!=0)?parseInt(dropmenuobj.style.top)+dropmenuobj.offsetHeight-tiparrow.offsetHeight-b+arrowheadheight+4:parseInt(dropmenuobj.style.top)-arrowheadheight+4;if(navigator.userAgent.match(/Opera/)){}else{if(document.all){if(dropmenuobj.firstChild.filters&&dropmenuobj.firstChild.filters[0]&&edgeoffsety!=0){}a=(edgeoffsety!=0)?parseInt(dropmenuobj.style.top)+dropmenuobj.offsetHeight-tiparrow.offsetHeight-b+arrowheadheight-7:parseInt(dropmenuobj.style.top)-arrowheadheight-6;c=(edgeoffsetx!=0)?parseInt(dropmenuobj.style.left)+dropmenuobj.offsetWidth-tiparrow.offsetWidth-7:parseInt(dropmenuobj.style.left)-6}}tiparrow.style.top=a+"px";tiparrow.style.left=c+"px";tiparrow.style.visibility="visible"}function delayhidemenu(){delayhide=setTimeout("dropmenuobj.style.visibility='hidden'; dropmenuobj.style.left=0; if (enablearrowhead) tiparrow.style.visibility='hidden'",disappeardelay)}function clearhidemenu(){if(typeof delayhide!="undefined"){clearTimeout(delayhide)}}function reltoelement(b){var a=b.getAttribute("rel");return(a!=null&&a!=""&&document.getElementById(a)!=null&&document.getElementById(a).className=="seekxl_bubble")?true:false}function initalizetooltip(){var b=document.getElementsByTagName("a");if(enablearrowhead){tiparrow=document.createElement("img");tiparrow.setAttribute("src",arrowheadimg[0]);tiparrow.setAttribute("id","seekxl_arrowhead");document.body.appendChild(tiparrow)}for(var a=0;a<b.length;a++){if(reltoelement(b[a])){b[a].onmouseover=function(d){var c=window.event?window.event:d;displayballoontip(this,c)};b[a].onmouseout=delayhidemenu}}}function CreateEl(b,d){var a=document.createElement(b);a.className=d;a.style.display="block";return(a)}window.onload=function(){enableTooltips()}; 
     1var lightboxsupport=0;var disappeardelay=250;var verticaloffset=0;var enablearrowhead=1;var arrowheadimg=["http://snapr.seekxl.de/media/arrow_down.gif","http://snapr.seekxl.de/media/arrow_up.gif"];var arrowheadheight=9;var ie=document.all;var ns6=document.getElementById&&!document.all;verticaloffset=(enablearrowhead)?verticaloffset+arrowheadheight:verticaloffset;if(document.all){verticaloffset+=5}function enableTooltips(key,id){var links,i,tooltip,c,snapr,link,href,anchor,para,background,havelightbox;havelightbox=false;if(lightboxsupport&&typeof Lightbox=="function"){if(typeof myLightbox=="undefined"){}havelightbox=true}c=0;if(id==null){links=document.getElementsByTagName("a")}else{links=document.getElementById(id).getElementsByTagName("a")}var size="S";if(typeof seekXLThumbnailSize!="undefined"&&seekXLThumbnailSize!=""&&seekXLShowAll=="true"){size=seekXLThumbnailSize}var maxlength=28;if(havelightbox){disappeardelay+=750}for(i=0;i<links.length;i++){if(links[i].getAttribute("seekxl")||links[i].getAttribute("id")=="prevLink"||links[i].getAttribute("id")=="nextLink"||links[i].getAttribute("id")=="loadingLink"||links[i].getAttribute("id")=="bottomNavClose"||!links[i].getAttribute("href")||!links[i].getAttribute("href").length||!links[i].getAttribute("href").match(/^http/)||links[i].getAttribute("href").match(eval("/"+location.host+"/"))||(seekXLShowAll=="false"&&!(links[i].getAttribute("size")&&links[i].getAttribute("size").length))){continue}c++;if(havelightbox){anchor=document.createElement("a");if(typeof seekXLLogoKey!="undefined"&&seekXLLogoKey!=""){href="http://snapr.seekxl.de?key="+seekXLLogoKey+"&size=L&url="+escape(links[i].getAttribute("href")).replace(/\//g,"%2F")}else{href="http://snapr.seekxl.de?size=L&url="+escape(links[i].getAttribute("href")).replace(/\//g,"%2F")}anchor.setAttribute("href",href);anchor.setAttribute("title",links[i].getAttribute("href"));anchor.setAttribute("seekxl","true");anchor.setAttribute("rel","lightbox[seekxlbubble]")}tooltip=document.createElement("div");tooltip.id="baloon"+c;tooltip.setAttribute("id","baloon"+c);if(key!=null){}tooltip.className="seekxl_bubble";if(document.all){if(navigator.appName=="Microsoft Internet Explorer"){tooltip.style.margin="0px !important"}}tooltip.setAttribute("class","seekxl_bubble");links[i].setAttribute("rel","baloon"+c);if(links[i].getAttribute("size")&&links[i].getAttribute("size").length){if(links[i].getAttribute("size").toLowerCase()=="t"){tooltip.style.width="100px";size="T";maxlength=12}else{if(links[i].getAttribute("size").toLowerCase()=="s"){tooltip.style.width="200px";size="S";maxlength=28}else{if(links[i].getAttribute("size").toLowerCase()=="m"){tooltip.style.width="400px";size="M";maxlength=57}else{if(links[i].getAttribute("size").toLowerCase()=="l"){tooltip.style.width="640px";size="L";maxlength=77}}}}}else{if(size.toLowerCase()=="t"){tooltip.style.width="100px";maxlength=12}else{if(size.toLowerCase()=="s"){tooltip.style.width="200px";maxlength=28}else{if(size.toLowerCase()=="m"){tooltip.style.width="400px";maxlength=57}else{if(size.toLowerCase()=="l"){tooltip.style.width="640px";maxlength=77}}}}}snapr=document.createElement("img");if(havelightbox){snapr.setAttribute("src","http://snapr.seekxl.de/media/loupe_"+size.toLowerCase()+".gif")}else{snapr.setAttribute("src","http://snapr.seekxl.de/media/space_"+size.toLowerCase()+".gif")}snapr.setAttribute("border","0");para=document.createElement("div");if(typeof seekXLLogoKey!="undefined"&&seekXLLogoKey!=""){background="http://snapr.seekxl.de?key="+seekXLLogoKey+"&size="+size+"&url="+escape(links[i].getAttribute("href")).replace(/\//g,"%2F")}else{background="http://snapr.seekxl.de?size="+size+"&url="+escape(links[i].getAttribute("href")).replace(/\//g,"%2F")}tooltip.setAttribute("title",background);if(havelightbox&&anchor){anchor.appendChild(snapr);para.appendChild(anchor)}else{para.appendChild(snapr)}tooltip.appendChild(para);link=document.createElement("h2");link.innerHTML=(links[i].getAttribute("href").length>maxlength?links[i].getAttribute("href").substr(0,maxlength-3)+"...":links[i].getAttribute("href"));document.getElementsByTagName("body")[0].appendChild(tooltip)}if(havelightbox){if(document.all){}if(typeof myLightbox!="undefined"){myLightbox.updateImageList()}}initalizetooltip()}function getposOffset(D,C){var B=(C=="left")?D.offsetLeft:D.offsetTop;var A=D.offsetParent;while(A!=null){B=(C=="left")?B+A.offsetLeft:B+A.offsetTop;A=A.offsetParent}return B}function showhide(B,A){dropmenuobj.style.left=dropmenuobj.style.top="-500px";if(A.type=="mouseover"){B.visibility="visible"}}function iecompattest(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}function clearbrowseredge(D,B){if(B=="rightedge"){edgeoffsetx=0;var C=ie&&!window.opera?iecompattest().scrollLeft+iecompattest().clientWidth-15:window.pageXOffset+window.innerWidth-15;dropmenuobj.contentmeasure=dropmenuobj.offsetWidth;if(C-dropmenuobj.x<dropmenuobj.contentmeasure){edgeoffsetx=dropmenuobj.contentmeasure-D.offsetWidth}return edgeoffsetx}else{edgeoffsety=0;var A=ie&&!window.opera?iecompattest().scrollTop:window.pageYOffset;var C=ie&&!window.opera?iecompattest().scrollTop+iecompattest().clientHeight-15:window.pageYOffset+window.innerHeight-18;dropmenuobj.contentmeasure=dropmenuobj.offsetHeight;if(C-dropmenuobj.y<dropmenuobj.contentmeasure){edgeoffsety=dropmenuobj.contentmeasure+D.offsetHeight+(verticaloffset*2)}return edgeoffsety}}function displayballoontip(C,B){if(window.event){event.cancelBubble=true}else{if(B.stopPropagation){B.stopPropagation()}}if(typeof dropmenuobj!="undefined"){dropmenuobj.style.visibility="hidden"}clearhidemenu();dropmenuobj=document.getElementById(C.getAttribute("rel"));if(dropmenuobj.firstChild){var A=dropmenuobj.getAttribute("title");myImage=new Image();myImage.src=A}showhide(dropmenuobj.style,B);dropmenuobj.x=getposOffset(C,"left");dropmenuobj.y=getposOffset(C,"top")+verticaloffset;if(navigator.userAgent.match(/Opera/)){dropmenuobj.y-=4}else{if(document.all){dropmenuobj.y+=7}else{dropmenuobj.y-=3}}if(dropmenuobj.firstChild){dropmenuobj.firstChild.style.backgroundImage="url("+myImage.src+")"}dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(C,"rightedge")+"px";dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(C,"bottomedge")+C.offsetHeight+"px";if(enablearrowhead){displaytiparrow()}}function displaytiparrow(){var A,C;tiparrow=document.getElementById("seekxl_arrowhead");tiparrow.src=(edgeoffsety!=0)?arrowheadimg[0]:arrowheadimg[1];var B=(dropmenuobj.firstChild.filters&&dropmenuobj.firstChild.filters[0])?dropmenuobj.firstChild.filters[0].Strength-1:0;C=(edgeoffsetx!=0)?parseInt(dropmenuobj.style.left)+dropmenuobj.offsetWidth-tiparrow.offsetWidth:parseInt(dropmenuobj.style.left)-1;A=(edgeoffsety!=0)?parseInt(dropmenuobj.style.top)+dropmenuobj.offsetHeight-tiparrow.offsetHeight-B+arrowheadheight+4:parseInt(dropmenuobj.style.top)-arrowheadheight+4;if(navigator.userAgent.match(/Opera/)){}else{if(document.all){if(dropmenuobj.firstChild.filters&&dropmenuobj.firstChild.filters[0]&&edgeoffsety!=0){}A=(edgeoffsety!=0)?parseInt(dropmenuobj.style.top)+dropmenuobj.offsetHeight-tiparrow.offsetHeight-B+arrowheadheight-7:parseInt(dropmenuobj.style.top)-arrowheadheight-6;C=(edgeoffsetx!=0)?parseInt(dropmenuobj.style.left)+dropmenuobj.offsetWidth-tiparrow.offsetWidth-7:parseInt(dropmenuobj.style.left)-6}}tiparrow.style.top=A+"px";tiparrow.style.left=C+"px";tiparrow.style.visibility="visible"}function delayhidemenu(){delayhide=setTimeout("dropmenuobj.style.visibility='hidden'; dropmenuobj.style.left=0; if (enablearrowhead) tiparrow.style.visibility='hidden'",disappeardelay)}function clearhidemenu(){if(typeof delayhide!="undefined"){clearTimeout(delayhide)}}function reltoelement(B){var A=B.getAttribute("rel");return(A!=null&&A!=""&&document.getElementById(A)!=null&&document.getElementById(A).className=="seekxl_bubble")?true:false}function initalizetooltip(){var B=document.getElementsByTagName("a");if(enablearrowhead){tiparrow=document.createElement("img");tiparrow.setAttribute("src",arrowheadimg[0]);tiparrow.setAttribute("id","seekxl_arrowhead");document.body.appendChild(tiparrow)}for(var A=0;A<B.length;A++){if(reltoelement(B[A])){B[A].onmouseover=function(D){var C=window.event?window.event:D;displayballoontip(this,C)};B[A].onmouseout=delayhidemenu}}}function CreateEl(B,C){var A=document.createElement(B);A.className=C;A.style.display="block";return(A)}window.onload=function(){enableTooltips()}; 
  • seekxl-snapr/tags/2.0.5/js/bubble.js

    r554398 r554422  
    44 
    55//var defaultsize="S"; 
    6 var lightboxsupport = 0; // Lighbox version 2.x 
    7 var disappeardelay = 250; // tooltip disappear delay (in miliseconds) 
    8  
    9 // ///No further editting needed 
    10  
    11 var verticaloffset = 0; 
    12 var enablearrowhead = 1; 
    13 var arrowheadimg = [ "http://snapr.seekxl.de/media/arrow_down.gif", "http://snapr.seekxl.de/media/arrow_up.gif" ]; 
    14 var arrowheadheight = 9; 
    15  
    16 var ie = document.all; 
    17 var ns6 = document.getElementById && !document.all; 
    18 verticaloffset = (enablearrowhead) ? verticaloffset + arrowheadheight : verticaloffset; 
    19 if (document.all) { 
     6var lightboxsupport=0; // Lighbox version 2.x 
     7var disappeardelay=250  //tooltip disappear delay (in miliseconds) 
     8 
     9/////No further editting needed 
     10 
     11var verticaloffset=0  
     12var enablearrowhead=1  
     13var arrowheadimg=["http://snapr.seekxl.de/media/arrow_down.gif", "http://snapr.seekxl.de/media/arrow_up.gif"]  
     14var arrowheadheight=9  
     15 
     16var ie=document.all 
     17var ns6=document.getElementById&&!document.all 
     18verticaloffset=(enablearrowhead)? verticaloffset+arrowheadheight : verticaloffset 
     19if( document.all ) { 
    2020    verticaloffset += 5; 
    2121} 
    2222 
    23 function enableTooltips(key, id) { 
    24  
    25     var links, i, tooltip, c, snapr, link, href, anchor = null, para, background, havelightbox; 
    26  
     23function enableTooltips(key,id){ 
     24 
     25    var links,i,tooltip,c,snapr,link,href,anchor,para,background,havelightbox; 
     26     
    2727    havelightbox = false; 
    28     if (lightboxsupport && typeof Lightbox == 'function') { 
    29         if (typeof myLightbox == 'undefined') { 
    30             // myLightbox = new Lightbox(); 
     28    if( lightboxsupport && typeof Lightbox=='function' ) { 
     29        if( typeof myLightbox=='undefined' ) { 
     30            //myLightbox = new Lightbox(); 
    3131        } 
    3232        havelightbox = true; 
    3333    } 
    34  
    35     c = 0; 
    36  
    37     if (id == null) 
    38         links = document.getElementsByTagName("a"); 
    39     else 
    40         links = document.getElementById(id).getElementsByTagName("a"); 
    41  
     34     
     35    c=0; 
     36 
     37    if(id==null)  
     38        links=document.getElementsByTagName("a"); 
     39    else  
     40        links=document.getElementById(id).getElementsByTagName("a"); 
     41         
    4242    var size = "S"; 
    43  
    44     if (typeof seekXLThumbnailSize != "undefined" && seekXLThumbnailSize != "" && seekXLShowAll == "true") { 
    45         size = seekXLThumbnailSize; 
    46     } 
     43     
     44    if(typeof seekXLThumbnailSize != "undefined" && seekXLThumbnailSize != "" && seekXLShowAll == "true") { 
     45        size = seekXLThumbnailSize; 
     46    } 
    4747 
    4848    var maxlength = 28; 
    49  
    50     if (havelightbox) 
    51         disappeardelay += 750; 
    52  
    53     for (i = 0; i < links.length; i++) { 
    54  
    55         if (links[i].getAttribute("seekxl") || links[i].getAttribute("id") == 'prevLink' || links[i].getAttribute("id") == 'nextLink' || links[i].getAttribute("id") == 'loadingLink' || links[i].getAttribute("id") == 'bottomNavClose' 
    56                 || !links[i].getAttribute("href") || !links[i].getAttribute("href").length || !links[i].getAttribute("href").match(/^http/) || links[i].getAttribute("href").match(eval("/" + location.host + "/")) 
    57                 || (seekXLShowAll == "false" && !(links[i].getAttribute("size") && links[i].getAttribute("size").length))) { 
    58             continue; 
    59         } 
    60  
    61         c++; 
    62  
    63         if (havelightbox) { 
    64  
    65             anchor = document.createElement("a"); 
    66  
    67             if (typeof seekXLLogoKey != "undefined" && seekXLLogoKey != "") { 
    68                 href = 'http://snapr.seekxl.de?key=' + seekXLLogoKey + '&size=L&url=' + escape(links[i].getAttribute("href")).replace(/\//g, '%2F'); 
    69             } else { 
    70                 href = 'http://snapr.seekxl.de?size=L&url=' + escape(links[i].getAttribute("href")).replace(/\//g, '%2F'); 
    71             } 
    72             anchor.setAttribute('href', href); 
    73             anchor.setAttribute('title', links[i].getAttribute("href")); 
    74             anchor.setAttribute('seekxl', 'true'); 
    75             anchor.setAttribute('rel', 'lightbox[seekxlbubble]'); 
    76         } 
    77  
    78         tooltip = document.createElement("div"); 
    79  
    80         tooltip.id = "baloon" + c; 
    81         tooltip.setAttribute("id", "baloon" + c); 
    82         if (key != null) { 
    83  
    84         } 
    85  
    86         tooltip.className = "seekxl_bubble"; 
    87  
    88         if (document.all) { 
    89             if (navigator.appName == "Microsoft Internet Explorer") { 
    90                 tooltip.style.margin = "0px !important"; 
    91             } 
    92         } 
    93  
    94         tooltip.setAttribute("class", "seekxl_bubble"); 
    95  
    96         links[i].setAttribute("rel", "baloon" + c); 
    97  
    98         // tooltip.innerHTML = "Test"; 
    99  
    100         // size = defaultsize; 
    101         if (links[i].getAttribute("size") && links[i].getAttribute("size").length) { 
    102             if (links[i].getAttribute("size").toLowerCase() == 't') { 
    103                 tooltip.style.width = "100px"; 
     49     
     50    if( havelightbox ) disappeardelay += 750; 
     51     
     52    for(i=0;i<links.length;i++){ 
     53         
     54        if(  
     55            links[i].getAttribute("seekxl")  
     56            || links[i].getAttribute("id") == 'prevLink' 
     57            || links[i].getAttribute("id") == 'nextLink' 
     58            || links[i].getAttribute("id") == 'loadingLink' 
     59            || links[i].getAttribute("id") == 'bottomNavClose' 
     60            || !links[i].getAttribute("href") 
     61            || !links[i].getAttribute("href").length 
     62            || !links[i].getAttribute("href").match( /^http/ ) 
     63            || links[i].getAttribute("href").match( eval( "/"+ location.host + "/") ) 
     64            || ( seekXLShowAll == "false" && !( links[i].getAttribute("size") && links[i].getAttribute("size").length ) ) 
     65        ) { 
     66            continue; 
     67        } 
     68         
     69        c++; 
     70         
     71        if( havelightbox ) { 
     72             
     73            anchor=document.createElement("a"); 
     74             
     75            if( typeof seekXLLogoKey != "undefined" && seekXLLogoKey != "" ){ 
     76                href = 'http://snapr.seekxl.de?key=' + seekXLLogoKey + '&size=L&url=' + escape( links[i].getAttribute("href") ).replace( /\//g, '%2F' ); 
     77            } 
     78            else { 
     79                href = 'http://snapr.seekxl.de?size=L&url=' + escape( links[i].getAttribute("href") ).replace( /\//g, '%2F' ); 
     80            }            
     81            anchor.setAttribute( 'href', href ); 
     82            anchor.setAttribute( 'title', links[i].getAttribute("href") ); 
     83            anchor.setAttribute( 'seekxl', 'true' ); 
     84            anchor.setAttribute( 'rel', 'lightbox[seekxlbubble]' );      
     85        } 
     86         
     87        tooltip=document.createElement("div"); 
     88         
     89        tooltip.id="baloon"+c; 
     90        tooltip.setAttribute("id","baloon"+c); 
     91        if(key!=null) { 
     92             
     93        } 
     94         
     95        tooltip.className="seekxl_bubble"; 
     96         
     97        if( document.all ) { 
     98            if ( navigator.appName == "Microsoft Internet Explorer" ) { 
     99                tooltip.style.margin="0px !important"; 
     100            } 
     101        } 
     102 
     103        tooltip.setAttribute("class","seekxl_bubble"); 
     104         
     105        links[i].setAttribute("rel","baloon"+c); 
     106         
     107        //tooltip.innerHTML = "Test"; 
     108         
     109        //size = defaultsize; 
     110        if( links[i].getAttribute("size") && links[i].getAttribute("size").length ) { 
     111            if( links[i].getAttribute("size").toLowerCase() == 't') { 
     112                tooltip.style.width="100px"; 
    104113                size = "T"; 
    105114                maxlength = 12; 
    106             } else if (links[i].getAttribute("size").toLowerCase() == 's') { 
    107                 tooltip.style.width = "200px"; 
     115            } 
     116            else if( links[i].getAttribute("size").toLowerCase() == 's') { 
     117                tooltip.style.width="200px"; 
    108118                size = "S"; 
    109119                maxlength = 28; 
    110             } else if (links[i].getAttribute("size").toLowerCase() == 'm') { 
    111                 tooltip.style.width = "400px"; 
     120            } 
     121            else if( links[i].getAttribute("size").toLowerCase() == 'm') { 
     122                tooltip.style.width="400px"; 
    112123                size = "M"; 
    113124                maxlength = 57; 
    114             } else if (links[i].getAttribute("size").toLowerCase() == 'l') { 
    115                 tooltip.style.width = "640px"; 
     125            } 
     126            else if( links[i].getAttribute("size").toLowerCase() == 'l') { 
     127                tooltip.style.width="640px"; 
    116128                size = "L"; 
    117129                maxlength = 77; 
    118130            } 
    119         } else { 
    120             if (size.toLowerCase() == 't') { 
    121                 tooltip.style.width = "100px"; 
     131        } 
     132        else { 
     133            if( size.toLowerCase() == 't') { 
     134                tooltip.style.width="100px"; 
    122135                maxlength = 12; 
    123             } else if (size.toLowerCase() == 's') { 
    124                 tooltip.style.width = "200px"; 
     136            } 
     137            else if( size.toLowerCase() == 's') { 
     138                tooltip.style.width="200px"; 
    125139                maxlength = 28; 
    126             } else if (size.toLowerCase() == 'm') { 
    127                 tooltip.style.width = "400px"; 
     140            } 
     141            else if( size.toLowerCase() == 'm') { 
     142                tooltip.style.width="400px"; 
    128143                maxlength = 57; 
    129             } else if (size.toLowerCase() == 'l') { 
    130                 tooltip.style.width = "640px"; 
     144            } 
     145            else if( size.toLowerCase() == 'l') { 
     146                tooltip.style.width="640px"; 
    131147                maxlength = 77; 
    132148            } 
    133149        } 
    134         snapr = document.createElement("img"); 
    135  
    136         if (havelightbox) { 
    137             snapr.setAttribute('src', 'http://snapr.seekxl.de/media/loupe_' + size.toLowerCase() + '.gif'); 
    138         } else { 
    139             snapr.setAttribute('src', 'http://snapr.seekxl.de/media/space_' + size.toLowerCase() + '.gif'); 
    140         } 
    141  
    142         snapr.setAttribute("border", "0"); 
    143  
    144         para = document.createElement("div"); 
    145  
    146         if (typeof seekXLLogoKey != "undefined" && seekXLLogoKey != "") { 
    147             background = 'http://snapr.seekxl.de?key=' + seekXLLogoKey + '&size=' + size + '&url=' + escape(links[i].getAttribute("href")).replace(/\//g, '%2F'); 
    148         } else { 
    149             background = 'http://snapr.seekxl.de?size=' + size + '&url=' + escape(links[i].getAttribute("href")).replace(/\//g, '%2F'); 
    150         } 
    151         tooltip.setAttribute("title", background); 
    152  
    153         if (havelightbox && anchor) { 
     150        snapr=document.createElement("img"); 
     151         
     152        if( havelightbox ) { 
     153            snapr.setAttribute( 'src', 'http://snapr.seekxl.de/media/loupe_' + size.toLowerCase() + '.gif' ); 
     154        } 
     155        else { 
     156            snapr.setAttribute( 'src', 'http://snapr.seekxl.de/media/space_' + size.toLowerCase() + '.gif' ); 
     157        } 
     158         
     159        snapr.setAttribute("border","0"); 
     160         
     161        para=document.createElement("div"); 
     162         
     163         
     164         
     165        if( typeof seekXLLogoKey != "undefined" && seekXLLogoKey != "" ) { 
     166            background='http://snapr.seekxl.de?key=' + seekXLLogoKey + '&size=' + size + '&url=' + escape( links[i].getAttribute("href") ).replace( /\//g, '%2F' ); 
     167        } 
     168        else { 
     169            background='http://snapr.seekxl.de?size=' + size + '&url=' + escape( links[i].getAttribute("href") ).replace( /\//g, '%2F' ); 
     170        } 
     171        tooltip.setAttribute("title",background); 
     172         
     173        if( havelightbox && anchor ) { 
    154174            anchor.appendChild(snapr); 
    155175            para.appendChild(anchor); 
    156         } else { 
     176        } 
     177        else { 
    157178            para.appendChild(snapr); 
    158179        } 
    159180        tooltip.appendChild(para); 
    160  
    161         link = document.createElement("h2"); 
    162  
    163         link.innerHTML = (links[i].getAttribute("href").length > maxlength ? links[i].getAttribute("href").substr(0, maxlength - 3) + "..." : links[i].getAttribute("href")); 
    164  
     181         
     182        link=document.createElement("h2"); 
     183         
     184        link.innerHTML = ( links[i].getAttribute("href").length>maxlength ? links[i].getAttribute("href").substr(0,maxlength - 3)+"..." : links[i].getAttribute("href") ); 
     185         
    165186        document.getElementsByTagName("body")[0].appendChild(tooltip); 
    166     } 
    167  
    168     if (havelightbox) { 
    169         if (document.all) { 
    170             // var myLightbox; 
    171         } 
    172         if (typeof myLightbox != 'undefined') { 
    173             myLightbox.updateImageList(); 
    174         } 
    175         // document.observe('dom:loaded', function () { new Lightbox(); }); 
    176     } 
    177  
     187    } 
     188     
     189    if( havelightbox ) { 
     190        if( document.all ) { 
     191            //var myLightbox; 
     192        } 
     193        if( typeof myLightbox!='undefined' ) { 
     194            myLightbox.updateImageList(); 
     195        } 
     196        //document.observe('dom:loaded', function () { new Lightbox(); }); 
     197    }  
     198     
    178199    initalizetooltip(); 
    179200} 
    180201 
    181 function getposOffset(what, offsettype) { 
    182     var totaloffset = (offsettype == "left") ? what.offsetLeft : what.offsetTop; 
    183     var parentEl = what.offsetParent; 
    184     while (parentEl != null) { 
    185         totaloffset = (offsettype == "left") ? totaloffset + parentEl.offsetLeft : totaloffset + parentEl.offsetTop; 
    186         parentEl = parentEl.offsetParent; 
     202function getposOffset(what, offsettype){ 
     203    var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop; 
     204    var parentEl=what.offsetParent; 
     205    while (parentEl!=null){ 
     206    totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop; 
     207    parentEl=parentEl.offsetParent; 
    187208    } 
    188209    return totaloffset; 
    189210} 
    190211 
    191 function showhide(obj, e) { 
    192     dropmenuobj.style.left = dropmenuobj.style.top = "-500px"; 
    193     if (e.type == "mouseover") 
    194         obj.visibility = "visible"; 
    195 } 
    196  
    197 function iecompattest() { 
    198     return (document.compatMode && document.compatMode != "BackCompat") ? document.documentElement : document.body; 
    199 } 
    200  
    201 function clearbrowseredge(obj, whichedge) { 
    202     if (whichedge == "rightedge") { 
    203         edgeoffsetx = 0; 
    204         var windowedge = ie && !window.opera ? iecompattest().scrollLeft + iecompattest().clientWidth - 15 : window.pageXOffset + window.innerWidth - 15; 
    205         dropmenuobj.contentmeasure = dropmenuobj.offsetWidth; 
    206         if (windowedge - dropmenuobj.x < dropmenuobj.contentmeasure) 
    207             edgeoffsetx = dropmenuobj.contentmeasure - obj.offsetWidth; 
    208         return edgeoffsetx; 
    209     } else { 
    210         edgeoffsety = 0; 
    211         //var topedge = ie && !window.opera ? iecompattest().scrollTop : window.pageYOffset; 
    212         var windowedge = ie && !window.opera ? iecompattest().scrollTop + iecompattest().clientHeight - 15 : window.pageYOffset + window.innerHeight - 18; 
    213         dropmenuobj.contentmeasure = dropmenuobj.offsetHeight; 
    214         if (windowedge - dropmenuobj.y < dropmenuobj.contentmeasure) // move 
    215             // up? 
    216             edgeoffsety = dropmenuobj.contentmeasure + obj.offsetHeight + (verticaloffset * 2); 
    217         return edgeoffsety; 
    218     } 
    219 } 
    220  
    221 function displayballoontip(obj, e) { // main ballooon tooltip function 
    222  
    223     if (window.event) 
    224         event.cancelBubble = true; 
    225     else if (e.stopPropagation) 
    226         e.stopPropagation(); 
    227     if (typeof dropmenuobj != "undefined"); // hide previous tooltip? 
    228         dropmenuobj.style.visibility = "hidden"; 
    229  
    230     clearhidemenu(); 
    231     // obj.onmouseout=delayhidemenu 
    232     dropmenuobj = document.getElementById(obj.getAttribute("rel")); 
    233     if (dropmenuobj.firstChild) { 
     212function showhide(obj, e){ 
     213    dropmenuobj.style.left=dropmenuobj.style.top="-500px" 
     214    if (e.type=="mouseover") 
     215    obj.visibility="visible" 
     216} 
     217 
     218function iecompattest(){ 
     219    return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body 
     220} 
     221 
     222function clearbrowseredge(obj, whichedge){ 
     223    if (whichedge=="rightedge"){ 
     224    edgeoffsetx=0 
     225    var windowedge=ie && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15 
     226    dropmenuobj.contentmeasure=dropmenuobj.offsetWidth 
     227    if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure) 
     228    edgeoffsetx=dropmenuobj.contentmeasure-obj.offsetWidth 
     229    return edgeoffsetx 
     230} 
     231else{ 
     232    edgeoffsety=0 
     233    var topedge=ie && !window.opera? iecompattest().scrollTop : window.pageYOffset 
     234    var windowedge=ie && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18 
     235    dropmenuobj.contentmeasure=dropmenuobj.offsetHeight 
     236    if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure) //move up? 
     237    edgeoffsety=dropmenuobj.contentmeasure+obj.offsetHeight+(verticaloffset*2) 
     238    return edgeoffsety 
     239} 
     240} 
     241 
     242function displayballoontip(obj, e){ //main ballooon tooltip function 
     243     
     244    if (window.event) event.cancelBubble=true 
     245    else if (e.stopPropagation) e.stopPropagation() 
     246    if (typeof dropmenuobj!="undefined") //hide previous tooltip? 
     247    dropmenuobj.style.visibility="hidden" 
     248     
     249    clearhidemenu() 
     250    //obj.onmouseout=delayhidemenu 
     251    dropmenuobj=document.getElementById(obj.getAttribute("rel")) 
     252    if( dropmenuobj.firstChild ) { 
    234253        var bg = dropmenuobj.getAttribute('title'); 
    235254        myImage = new Image(); 
    236         myImage.src = bg; 
    237     } 
    238     showhide(dropmenuobj.style, e); 
    239     dropmenuobj.x = getposOffset(obj, "left"); 
    240     dropmenuobj.y = getposOffset(obj, "top") + verticaloffset; 
    241     if (navigator.userAgent.match(/Opera/)) { 
    242         dropmenuobj.y -= 4; 
    243     } else if (document.all) { 
    244         dropmenuobj.y += 7; 
    245     } else { 
    246         dropmenuobj.y -= 3; 
    247     } 
    248     if (dropmenuobj.firstChild) { 
    249  
    250         dropmenuobj.firstChild.style.backgroundImage = "url(" + myImage.src + ")"; 
    251     } 
    252     dropmenuobj.style.left = dropmenuobj.x - clearbrowseredge(obj, "rightedge") + "px"; 
    253     dropmenuobj.style.top = dropmenuobj.y - clearbrowseredge(obj, "bottomedge") + obj.offsetHeight + "px"; 
     255        myImage.src = bg;  
     256    } 
     257    showhide(dropmenuobj.style, e) 
     258    dropmenuobj.x=getposOffset(obj, "left") 
     259    dropmenuobj.y=getposOffset(obj, "top")+verticaloffset 
     260    if( navigator.userAgent.match(/Opera/) ) { 
     261        dropmenuobj.y-=4; 
     262    } 
     263    else if(document.all) { 
     264        dropmenuobj.y+=7; 
     265    } 
     266    else { 
     267        dropmenuobj.y-=3; 
     268    } 
     269    if( dropmenuobj.firstChild ) { 
     270         
     271        dropmenuobj.firstChild.style.backgroundImage="url(" + myImage.src + ")"; 
     272    } 
     273    dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px" 
     274    dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px" 
    254275    if (enablearrowhead) 
    255         displaytiparrow(); 
    256 } 
    257  
    258 function displaytiparrow() { // function to display optional arrow image 
    259     // associated with tooltip 
    260     var ptop, pleft; 
    261     tiparrow = document.getElementById("seekxl_arrowhead"); 
    262     tiparrow.src = (edgeoffsety != 0) ? arrowheadimg[0] : arrowheadimg[1]; 
    263     var ieshadowwidth = (dropmenuobj.firstChild.filters && dropmenuobj.firstChild.filters[0]) ? dropmenuobj.firstChild.filters[0].Strength - 1 : 0; 
    264     // var ieshadowheight=(dropmenuobj.filters && dropmenuobj.filters[0])? 
    265     // dropmenuobj.filters[0].Strength-1 : 0 
    266     // modify "left" value depending on whether there's no room on right edge of 
    267     // browser to display it, respectively 
    268     pleft = (edgeoffsetx != 0) ? parseInt(dropmenuobj.style.left) + dropmenuobj.offsetWidth - tiparrow.offsetWidth : parseInt(dropmenuobj.style.left) - 1; 
    269     // modify "top" value depending on whether there's no room on right edge of 
    270     // browser to display it, respectively 
    271     ptop = (edgeoffsety != 0) ? parseInt(dropmenuobj.style.top) + dropmenuobj.offsetHeight - tiparrow.offsetHeight - ieshadowwidth + arrowheadheight + 4 : parseInt(dropmenuobj.style.top) - arrowheadheight + 4; 
    272     if (navigator.userAgent.match(/Opera/)) { 
    273  
    274     } else if (document.all) { 
    275         if (dropmenuobj.firstChild.filters && dropmenuobj.firstChild.filters[0] && edgeoffsety != 0) { 
    276             // dropmenuobj.firstChild.filters[0].Direction = -45; 
    277         } 
    278         ptop = (edgeoffsety != 0) ? parseInt(dropmenuobj.style.top) + dropmenuobj.offsetHeight - tiparrow.offsetHeight - ieshadowwidth + arrowheadheight - 7 : parseInt(dropmenuobj.style.top) - arrowheadheight - 6; 
    279         pleft = (edgeoffsetx != 0) ? parseInt(dropmenuobj.style.left) + dropmenuobj.offsetWidth - tiparrow.offsetWidth - 7 : parseInt(dropmenuobj.style.left) - 6; 
    280     } 
    281     tiparrow.style.top = ptop + "px"; 
    282     tiparrow.style.left = pleft + "px"; 
    283     tiparrow.style.visibility = "visible"; 
    284 } 
    285  
    286 function delayhidemenu() { 
    287     delayhide = setTimeout("dropmenuobj.style.visibility='hidden'; dropmenuobj.style.left=0; if (enablearrowhead) tiparrow.style.visibility='hidden'", disappeardelay); 
    288 } 
    289  
    290 function clearhidemenu() { 
    291     if (typeof delayhide != "undefined") 
    292         clearTimeout(delayhide); 
    293 } 
    294  
    295 function reltoelement(linkobj) { // tests if a link has "rel" defined and 
    296     // it's the ID of an element on page 
    297     var relvalue = linkobj.getAttribute("rel"); 
    298     return (relvalue != null && relvalue != "" && document.getElementById(relvalue) != null && document.getElementById(relvalue).className == "seekxl_bubble") ? true : false; 
    299 } 
    300  
    301 function initalizetooltip() { 
    302     var all_links = document.getElementsByTagName("a"); 
    303     if (enablearrowhead) { 
    304         tiparrow = document.createElement("img"); 
    305         tiparrow.setAttribute("src", arrowheadimg[0]); 
    306         tiparrow.setAttribute("id", "seekxl_arrowhead"); 
    307         document.body.appendChild(tiparrow); 
    308     } 
    309     for ( var i = 0; i < all_links.length; i++) { 
    310         if (reltoelement(all_links[i])) { // if link has "rel" defined and 
    311             // it's the ID of an element on page 
    312             all_links[i].onmouseover = function(e) { 
    313                 var evtobj = window.event ? window.event : e; 
    314                 displayballoontip(this, evtobj); 
    315             }; 
    316             all_links[i].onmouseout = delayhidemenu; 
    317         } 
    318     } 
    319 } 
    320  
    321 function CreateEl(t, c) { 
    322     var x = document.createElement(t); 
    323     x.className = c; 
    324     x.style.display = "block"; 
    325     return (x); 
    326 } 
    327  
    328 window.onload = function() { 
    329     enableTooltips(); 
    330 }; 
     276    displaytiparrow() 
     277} 
     278 
     279function displaytiparrow(){ //function to display optional arrow image associated with tooltip 
     280    var ptop,pleft; 
     281    tiparrow=document.getElementById("seekxl_arrowhead") 
     282    tiparrow.src=(edgeoffsety!=0)? arrowheadimg[0] : arrowheadimg[1] 
     283    var ieshadowwidth=(dropmenuobj.firstChild.filters && dropmenuobj.firstChild.filters[0])? dropmenuobj.firstChild.filters[0].Strength-1 : 0 
     284    //var ieshadowheight=(dropmenuobj.filters && dropmenuobj.filters[0])? dropmenuobj.filters[0].Strength-1 : 0 
     285    //modify "left" value depending on whether there's no room on right edge of browser to display it, respectively 
     286    pleft=(edgeoffsetx!=0)? parseInt(dropmenuobj.style.left)+dropmenuobj.offsetWidth-tiparrow.offsetWidth : parseInt(dropmenuobj.style.left)-1 
     287    //modify "top" value depending on whether there's no room on right edge of browser to display it, respectively 
     288    ptop=(edgeoffsety!=0)? parseInt(dropmenuobj.style.top)+dropmenuobj.offsetHeight-tiparrow.offsetHeight-ieshadowwidth+arrowheadheight+4 : parseInt(dropmenuobj.style.top)-arrowheadheight+4 
     289    if( navigator.userAgent.match(/Opera/) ) { 
     290     
     291    } 
     292    else if(document.all) { 
     293        if( dropmenuobj.firstChild.filters && dropmenuobj.firstChild.filters[0] && edgeoffsety!=0 ) { 
     294            //dropmenuobj.firstChild.filters[0].Direction = -45; 
     295        } 
     296        ptop=(edgeoffsety!=0)? parseInt(dropmenuobj.style.top)+dropmenuobj.offsetHeight-tiparrow.offsetHeight-ieshadowwidth+arrowheadheight-7 : parseInt(dropmenuobj.style.top)-arrowheadheight-6 
     297        pleft=(edgeoffsetx!=0)? parseInt(dropmenuobj.style.left)+dropmenuobj.offsetWidth-tiparrow.offsetWidth-7: parseInt(dropmenuobj.style.left)-6 
     298    } 
     299    tiparrow.style.top = ptop+"px"; 
     300    tiparrow.style.left = pleft+"px"; 
     301    tiparrow.style.visibility="visible" 
     302} 
     303 
     304function delayhidemenu(){ 
     305    delayhide=setTimeout("dropmenuobj.style.visibility='hidden'; dropmenuobj.style.left=0; if (enablearrowhead) tiparrow.style.visibility='hidden'",disappeardelay) 
     306} 
     307 
     308function clearhidemenu(){ 
     309    if (typeof delayhide!="undefined") 
     310    clearTimeout(delayhide) 
     311} 
     312 
     313function reltoelement(linkobj){ //tests if a link has "rel" defined and it's the ID of an element on page 
     314    var relvalue=linkobj.getAttribute("rel") 
     315    return (relvalue!=null && relvalue!="" && document.getElementById(relvalue)!=null && document.getElementById(relvalue).className=="seekxl_bubble")? true : false 
     316} 
     317 
     318function initalizetooltip(){ 
     319    var all_links=document.getElementsByTagName("a") 
     320    if (enablearrowhead){ 
     321        tiparrow=document.createElement("img") 
     322        tiparrow.setAttribute("src", arrowheadimg[0]) 
     323        tiparrow.setAttribute("id", "seekxl_arrowhead") 
     324        document.body.appendChild(tiparrow) 
     325    } 
     326    for (var i=0; i<all_links.length; i++){ 
     327        if (reltoelement(all_links[i])){ //if link has "rel" defined and it's the ID of an element on page 
     328            all_links[i].onmouseover=function(e){ 
     329                var evtobj=window.event? window.event : e 
     330                displayballoontip(this, evtobj) 
     331            } 
     332            all_links[i].onmouseout=delayhidemenu 
     333        } 
     334    } 
     335} 
     336 
     337function CreateEl(t,c){ 
     338    var x=document.createElement(t); 
     339    x.className=c; 
     340    x.style.display="block"; 
     341    return(x); 
     342} 
     343 
     344window.onload=function(){enableTooltips();} 
Note: See TracChangeset for help on using the changeset viewer.