/* —————————————————————————————————————————————————————————————————————————————— *
 *  tools.js 
 * —————————————————————————————————————————————————————————————————————————————— */
 
   function MM_moveScroll(co,md,op,dy,cy) { //v2.9
   var g,d,dd,x,y,h,w,tt,ff,m=false,pa="";
   op=parseInt(op);cy=parseInt(cy);dy=parseInt(dy);
   if((parseInt(navigator.appVersion)>4 || navigator.userAgent.indexOf("MSIE")>-1)&& navigator.userAgent.indexOf("Opera")==-1){pa="px";}
   if((g=MM_findObj(co))==null){return;}
   if((d=MM_findObj(g.MMScroll))==null){return;}
   var sp=parseInt(sp=g.MMSsp),fr=parseInt(g.MMSfr),ff=fr;
   if(op==2){g.MMsCycle=0;g.MMsCycDy=(dy>0)?dy:g.MMsCycDy;dy=0;op=3;}
   if(op==3){g.MMsCycle+=sp;ff=fr;if(parseInt(g.MMsCycle)>cy){
    op=2;g.MMsCycle=0;ff=g.MMsCycDy;}}g.MMSop=op;if(dy>0){ff=dy;}
   var ti="g.MMMagic=setTimeout(\"MM_moveScroll('"+co+"','"+md+"',"+op+",0,"+cy+")\","+ff+")";
   if(op==2 || dy>0){clearTimeout(g.MMMagic);eval(ti);return;}
   dd=(document.layers)?d:d.style;x=parseInt(dd.left);y=parseInt(dd.top);
   if(document.all || document.getElementById){
    h=parseInt(d.offsetHeight);w=parseInt(d.offsetWidth);
    if(!h){h=parseInt(d.style.pixelHeight);w=parseInt(d.style.pixelWidth);}
   }else if(document.layers){h=parseInt(d.clip.height);w=parseInt(d.clip.width);}
   var st=0,rStart=parseInt(g.MMsStartLeft),tStart=parseInt(g.MMsStartTop);g.MMsH=h;g.MMsW=w;
   if(md=="Down"){tt=y-sp;st=parseInt(g.MMsBot)-h-tStart;
    if(tStart<0 && tt<tStart){dd.top=tStart+pa;
    }else if(tStart>=0 && tt<st){dd.top=st+pa;}else{dd.top=tt+pa;m=true;}}
   if(md=="Up"){tt=sp+y;var rEnd=tStart+h;if(tStart<0 && tt>rEnd){dd.top=rEnd+pa;
    }else if(tStart>=0 && tt>tStart){dd.top=tStart+pa;}else{dd.top=tt+pa;m=true;}}
   if(md=="Right"){tt=x-sp;st=parseInt(g.MMsRight)-w-rStart;
    if(rStart<0 && tt<rStart){dd.left=rStart+pa;
    }else if (rStart>=0 && tt<st){dd.left=st+pa;}else{dd.left=tt+pa;m=true;}}
   if(md=="Left"){tt=x+sp;var rEnd=rStart+w;if(rStart<0 && tt>rEnd){dd.left=rEnd+pa;
    }else if (rStart>=0 && tt>rStart){dd.left=rStart+pa;}else{dd.left=tt+pa;m=true;}}
   if(m && g.toMove){eval(ti);}else{if(g.MMSflip==1){clearTimeout(g.MMMagic);var tj=0;
    eval("g.MMMagic=setTimeout(\"MM_runScroller('"+co+"','Reverse','Medium',0,0,0,1)\","+tj+")");
   }else{if(op>0 && g.toMove){
    g.MMsCycle=0;dd.top=g.MMsStartTop+pa;dd.left=g.MMsStartLeft+pa;eval(ti);}}}
  }
  
  function MM_runScroller(co,md,spd,op,dy,cy,flp) { //v2.9
   var g,d,dd,rl=0;rt=0;pa='',sp=2,fr=10,slw=true,kl=true;
   if((parseInt(navigator.appVersion)>4 || navigator.userAgent.indexOf("MSIE")>-1)&& navigator.userAgent.indexOf("Opera")==-1){pa="px";}
   if(navigator.userAgent.indexOf("NT")>-1 || navigator.userAgent.indexOf("Windows 2000")>-1 ){slw=false;}
   if((g=MM_findObj(co))!=null){if(g.MMScroll){
   if((d=MM_findObj(g.MMScroll))!=null){dd=(document.layers)?d:d.style;
   if(md=="Resume" && g.MMSspd){spd=g.MMSspd;md=g.MMSmd;op=g.MMSop;dy=0;cy=g.MMScy;flp=g.MMSflip;kl=false;}
   if(md=="Reverse" && g.MMSspd){spd=g.MMSspd;md=g.MMSmd;op=g.MMSop;flp=g.MMSflip;dy=0;cy=g.MMScy;kl=false;g.MMsCycle=0;
    if(g.MMSmd == "Down"){md="Up";if(g.MMSop>0){g.MMsStartTop=g.MMsStartTop-g.MMsH;}}
    if(g.MMSmd == "Up"){md="Down";if(g.MMSop>0){g.MMsStartTop=g.MMsStartTop+g.MMsH;}}
    if(g.MMSmd == "Left"){md="Right";if(g.MMSop>0){g.MMsStartLeft=g.MMsStartLeft+g.MMsW;}}
    if(g.MMSmd == "Right"){md="Left";if(g.MMSop>0){g.MMsStartLeft=g.MMsStartLeft-g.MMsW;}}}
   if(spd=="Slow"){sp=(slw)?2:1;fr=(slw)?40:30;
   }else if(spd=="Medium"){sp=(slw)?4:1;fr=(slw)?40:10;
   }else{sp=(slw)?8:4;fr=(slw)?40:10;}
   if(md=="Stop"){g.toMove=false;clearTimeout(g.MMMagic);}else if(md=="Reset"){
    g.toMove=false;dd.top=g.MMsStartTop+pa;dd.left=g.MMsStartLeft+pa;
   }else{if(kl){g.MMSsp=sp;g.MMSfr=fr;}if(md=="Speed"){return;}
    g.toMove=true;clearTimeout(g.MMMagic);
    g.MMSmd=md;g.MMSspd=spd;g.MMSop=op;g.MMSdy=dy;g.MMScy=cy;g.MMSflip=flp;
    eval("MM_moveScroll('"+co+"','"+md+"',"+op+","+dy+","+cy+")");}}}}
  }
  
  function MM_setScroller(a,b,x,y) { //v2.9
   var g,d,dd,w,ww,pa="";
   if((parseInt(navigator.appVersion)>4 || navigator.userAgent.indexOf("MSIE")>-1)&& navigator.userAgent.indexOf("Opera")==-1){pa="px";}
   if((g=MM_findObj(a))!=null && (d=MM_findObj(b))!=null){
    if(g.MMScroll){if((w=MM_findObj(g.MMScroll))!=null){
     ww=(document.layers)?w:w.style;ww.visibility="hidden";}}
   g.MMScroll=b;dd=(document.layers)?d:d.style;dd.left=parseInt(x)+pa;
   dd.top=parseInt(y)+pa;dd.visibility="visible";g.MMsCycle=0;
   if(document.layers){g.MMsTop=g.clip.top;g.MMsBot=g.clip.bottom;
    g.MMsRight=g.clip.right;g.MMsLeft=g.clip.left;g.MMsStartTop=parseInt(y);g.MMsStartLeft=parseInt(x);
   }else if(g.style.clip){var tc=g.style.clip;var j=tc.indexOf("(");
    tc=tc.substring(j+1,tc.length-1);var tr=tc.split(" ");
    if(tc.length < 1){tr[0]=0;tr[3]=0;tr[2]=g.style.pixelHeight;tr[1]=g.style.pixelWidth;}
    g.MMsTop=parseInt(tr[0]);g.MMsRight=parseInt(tr[1]);g.MMsBot=parseInt(tr[2]);
    g.MMsLeft=parseInt(tr[3]);g.MMsStartTop=parseInt(y);g.MMsStartLeft=parseInt(x);
   }else{g.MMsTop=0;g.MMsRight=g.offsetWidth;g.MMsBot=g.offsetHeight;
    g.MMsLeft=0;g.MMsStartTop=parseInt(y);g.MMsStartLeft=parseInt(x);}}
    g.toMove=true;
  }
  function MM_autoLayers() { //v1.2
 var g,b,k,f,args=MM_autoLayers.arguments;
 var a = parseInt(args[0]);if(isNaN(a))a=0;
 if(!document.MMsetc) {MMc=new Array();document.MMsetc=true;
  for (var u=0;u<10;u++) {MMc[u] = new Array();}}
 for(k=0; k<MMc[a].length; k++) {
  if((g=MM_findObj(MMc[a][k]))!=null) {
   b=(document.layers)?g:g.style;b.visibility="hidden";}}
 for(k=1; k<args.length; k++) {
  if((g=MM_findObj(args[k])) != null) {
   b=(document.layers)?g:g.style;b.visibility="visible";f=false;
   for(j=0;j<MMc[a].length;j++) {
    if(args[k]==MMc[a][j]) {f=true;}}
  if(!f) {MMc[a][MMc[a].length++]=args[k];}}}
}
function MM_reloadPage(init) {  //v3.0
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

MM_reloadPage(true);
   function MM_preloadImages() 
  { 
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  }

  function MM_swapImgRestore() 
  {
    var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
  }
 
  function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

  function MM_swapImage() 
  { 
    var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
    if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  }
/* ------------------------------------------------------------------------------ */
  var oldProductAmountString;
  function checkAmountInput(obj)
  {
    var text = obj.value;
    if(isNaN(text)==true)
    {
      obj.value = oldProductAmountString;
    }
    else
    {
      oldProductAmountString = text;
      if(text=="" || text=="undefined")
      {
        text="";
      }
    }    
  }
/* ------------------------------------------------------------------------------ */
  function checkForm() 
  {
    if ((document.kontform.name.value == "")||(document.kontform.email.value == ""))
    {
      alert("Bitte geben Sie Ihren Namen und Ihre E-Mail-Adresse an.");
      return false;
    }
    else
    {
      var rx = /^([^\s@,:"<>]+)@([^\s@,:"<>]+\.[^\s@,:"<>.\d]{2,}|(\d{1,3}\.){3}\d{1,3})$/;
      var part = document.kontform.email.value.match(rx);
      if(part)
      {
      }
      else 
      { 
        alert("Bitte geben Sie eine E-Mail-Adresse an.");
        return false; 
      }
    }
    return true;
  }
/* ------------------------------------------------------------------------------ */
  function statusText(text)
  {
    name1=text;
    setTimeout("window.status=name1;",0.1);
    return true;
  }
/* ------------------------------------------------------------------------------ */
  function hoverIE() 
  {
    var LI = document.getElementById("mnav").firstChild.firstChild;
    do
    {
      if (sucheUL(LI.firstChild)) 
      {           
          LI.onmouseover=einblenden; LI.onmouseout=ausblenden;
      }
      LI = LI.nextSibling;
    }
    while(LI);
  }
  
  function hoverIE2() 
  {
    var LI = document.getElementById("hnav").firstChild.firstChild; 
    do
    {
      if (sucheUL(LI.firstChild)) 
      {           
          LI.onmouseover=einblenden; LI.onmouseout=ausblenden;
      }
      LI = LI.nextSibling;
    }
    while(LI);
  }

/* ------------------------------------------------------------------------------ */
  function sucheUL(UL)
  {      
    do 
    {
      if(UL) UL = UL.nextSibling;
      if(UL && UL.nodeName == "UL") return UL;
    }
    while(UL);
    return false;
  }
/* ------------------------------------------------------------------------------ */
  function einblenden()
  {
    var UL = sucheUL(this.firstChild);
    
    if (navigator.userAgent.indexOf("MSIE 6") != -1)
    {      
      if(window.navigator.systemLanguage && !window.navigator.language) 
      {
        UL.style.visibility = "visible";
      }
    }
    
    //---------------------------------------
    var windowHeight = getWindowWize();
    var topUL = getTop(UL);
    if(topUL+UL.offsetHeight > windowHeight) {
      UL.style.top = -1*(UL.offsetHeight-(windowHeight-topUL)) + 'px';
    }
    //---------------------------------------
    

    
    if (navigator.userAgent.indexOf("MSIE 6") != -1)
    {      
      if(window.navigator.systemLanguage && !window.navigator.language) 
      {
        var hoehe = UL.offsetHeight;
        
        if(hoehe < 0)
          hoehe = 0
          
        if(this.childNodes[1] != null)
        {
        //alert(this.nodeName);
        
//          this.style.zIndex = "999";
          if(topUL+UL.offsetHeight > windowHeight) {
            this.childNodes[1].style.top = -1*(UL.offsetHeight-(windowHeight-topUL)) + 'px';
          }
        }
      }
    }
  }
/* ------------------------------------------------------------------------------ */
  function ausblenden() 
  {

  
    if (navigator.userAgent.indexOf("MSIE 6") != -1)
    {      
      if(window.navigator.systemLanguage && !window.navigator.language) 
      {
        sucheUL(this.firstChild).style.visibility = "hidden";
        if(this.childNodes[1] != null && this.childNodes[1].nodeName == "IFRAME")
        {
          this.childNodes[1].style.display = "none";
        }
        //this.style.zIndex = "998";
      }
    }
  }
/* ------------------------------------------------------------------------------ */
  function getTop(Element){
    var Parent = Element;
    var layerTop = 0;
    while (Parent) {
      layerTop = layerTop + Parent.offsetTop;
      Parent = Parent.offsetParent;
    }
    var scrollY = 0;
    if (typeof( window.innerHeight ) == 'number') { //Non-IE
      scrollY = window.pageYOffset;
    }
    else if (document.documentElement && (document.documentElement.clientHeight)) { //IE 6+ in 'standards compliant mode'
      scrollY = document.documentElement.scrollTop;
    }
    else if (document.body && (document.body.clientHeight)) { //IE 4 compatible
      scrollY = document.body.scrollTop;
    }
    return layerTop-scrollY;
  }
/* ------------------------------------------------------------------------------ */
  // Höhe des Anzeigebereichs ermitteln
  function getWindowWize() {
   var myHeight = 0;
   if (typeof( window.innerHeight ) == 'number') { //Non-IE
    myHeight = window.innerHeight;
   }
   else if (document.documentElement && (document.documentElement.clientHeight)) { //IE 6+ in 'standards compliant mode'
    myHeight = document.documentElement.clientHeight;
   }
   else if (document.body && (document.body.clientHeight)) { //IE 4 compatible
    myHeight = document.body.clientHeight;
   }
   return myHeight;
  }


/*- Alle Felder ausgefüllt? ----------------------------------------------------------- */
function checkLoginandPW(language)
{

  if (document.loginform.vorname.value == "" || document.loginform.nachname.value == "" ||
      document.loginform.strasse.value == "" || document.loginform.plz.value == "" ||
      document.loginform.ort.value == "" || document.loginform.tel.value == "" || document.loginform.email.value == "" || document.loginform.land.value.indexOf("-") == 0) 
  {
    switch (language)
    {
      case "de": { alert("Überprüfen Sie ihre Eingaben! Alle mit * gekennzeichneten Felder müssen ausgefüllt werden!"); break }
      case "en": { alert("Überprüfen Sie ihre Eingaben! Alle mit * gekennzeichneten Felder müssen ausgefüllt werden!"); break }
      case "fr": { alert("Check your Inputs! All with * characterized fields habe to be filled out!"); break }
      case "it": { alert("Check your Inputs! All with * characterized fields habe to be filled out!"); break }
    }
    document.loginform.vorname.focus(); 
    return false;
  }
  else
  {  
    if (document.loginform.pw.value != "" || document.loginform.pw2.value == " ")
    {
      if (document.loginform.pw.value != document.loginform.pw2.value)
      {
        switch (language)
        {
          case "de": { alert("Das Passwort und die Passwortbestätigung stimmen nicht überein"); break }
          case "en": { alert("The password and the password confirmation do not agree"); break }
          case "fr": { alert("The password and the password confirmation do not agree"); break }
          case "it": { alert("The password and the password confirmation do not agree"); break }
        }
        document.loginform.pw.focus();
        return false;
      }
      else
      {
        if (document.loginform.pw.value.length < 6)
        {
          switch (language)
          {
            case "de": { alert("Das Passwort muss aus mindestens 6 Zeichen bestehen!"); break }
            case "en": { alert("The password must consist of at least 6 indications!"); break }
            case "fr": { alert("The password must consist of at least 6 indications!"); break }
            case "it": { alert("The password must consist of at least 6 indications!"); break }
          }
          document.loginform.pw.focus();
          return false;
        }
        else
        {
          document.loginform.submit();
        }
      }
    }
    else
    {
      switch (language)
      {
        case "de": { alert("Geben Sie ein Passwort und die Passwortbestätigung ein!"); break }
        case "en": { alert("Enter a password and the password confirmation"); break }
        case "fr": { alert("Enter a password and the password confirmation"); break }
        case "it": { alert("Enter a password and the password confirmation"); break }
      }
      document.loginform.pw.focus();
      return false;
    }
  }
}

/*- Alle Felder ausgefüllt? Passwort=Zufall, wenn nicht ausgefüllt--------------------- */
function checkLoginandPWZufall(language)
{
  if (document.loginform.vorname.value == "" || document.loginform.nachname.value == "" ||
      document.loginform.strasse.value == "" || document.loginform.plz.value == "" ||
      document.loginform.ort.value == "" || document.loginform.tel.value == "" || document.loginform.email.value == "" || document.loginform.land.value.indexOf("-") == 0
     )
  {
    switch (language)
    {
      case "de": { alert("Überprüfen Sie ihre Eingaben! Alle mit * gekennzeichneten Felder müssen ausgefüllt werden!"); break }
      case "en": { alert("Check your Inputs! All with * characterized fields habe to be filled out!"); break }
      case "fr": { alert("Check your Inputs! All with * characterized fields habe to be filled out!"); break }
      case "it": { alert("Check your Inputs! All with * characterized fields habe to be filled out!"); break }
    }
    document.loginform.vorname.focus(); 
    return false;
  }
  else
  {  
    if (document.loginform.pw.value != "" || document.loginform.pw2.value == " ")
    {
      if (document.loginform.pw.value != document.loginform.pw2.value)
      {
        switch (language)
        {
          case "de": { alert("Das Passwort und die Passwortbestätigung stimmen nicht überein"); break }
          case "en": { alert("The password and the password confirmation do not agree"); break }
          case "fr": { alert("The password and the password confirmation do not agree"); break }
          case "it": { alert("The password and the password confirmation do not agree"); break }
        }
        document.loginform.pw.focus();
        return false;
      }
      else
      {
        if (document.loginform.pw.value.length < 6)
        {
          switch (language)
          {
            case "de": { alert("Das Passwort muss aus mindestens 6 Zeichen bestehen!"); break }
            case "en": { alert("The password must consist of at least 6 indications!"); break }
            case "fr": { alert("The password must consist of at least 6 indications!"); break }
            case "it": { alert("The password must consist of at least 6 indications!"); break }
          }
          document.loginform.pw.focus();
          return false;
        }
        else
        {
          document.loginform.submit();
        }
      }
    }
    else
    {
      var startTag = new Date();
      var DatumString = String.fromCharCode((startTag.getYear() - 2000 + 65),(startTag.getMonth() + 65),(startTag.getDay() + 65));
      var jetztstd = (startTag.getHours() + 60);
      var jetztmin = (startTag.getMinutes() + 60);
      var jetztsec = (startTag.getSeconds() + 60);
      var jetzt = DatumString+""+jetztstd +""+jetztmin+""+jetztsec;
      document.loginform.pw.value = jetzt;
      document.loginform.pw2.value = jetzt;        
      document.loginform.submit();
    }
  }
}

/*- Abfrage Lieferadresse ändern ----------------------------------------------------------- */
function checkShippingForm(language){
  if (document.shippingform.vorname.value == "" || document.shippingform.nachname.value == "" ||
      document.shippingform.strasse.value == "" || document.shippingform.plz.value == "" ||
      document.shippingform.ort.value == "" || document.shippingform.tel.value == "" || document.shippingform.email.value == "" || document.shippingform.firma.value == ""
     )
  {
    alert("Überprüfen Sie ihre Eingaben! Alle mit * gekennzeichneten Felder müssen ausgefüllt werden!");
    document.shippingform.vorname.focus(); 
    return false;
  }
  else
  {  
    document.shippingform.submit();
  }
}


/*- Abfrage AGB einverstanden - Select Payment Method ----------------------------------------------------------- */
function checkagb(language)
{
  if (document.pform.paymentmethod.options[document.pform.paymentmethod.options.selectedIndex].value == "1" && (document.pform.kontonummer.value == "" || document.pform.bankleitzahl.value == "" || document.pform.bankname.value == ""))
  {
    switch (language)
    {
      case "de": { alert("Sie haben die Zahlungsmethode \"Bankeinzug\" gewählt.\nBitte füllen Sie die Felder Kontonummer, Bankleitzahl und Name der Bank aus."); break }
      case "en": { alert("In order to accept your order, it is necessary\nto recognize our general trading conditions."); break }
      case "fr": { alert("In order to accept your order, it is necessary\nto recognize our general trading conditions."); break }
      case "it": { alert("In order to accept your order, it is necessary\nto recognize our general trading conditions."); break }
    }  
    document.pform.paymentmethod.focus();
  }
  else
  {
    if ((document.pform.agb.checked == false))
    {  
      switch (language)
      {
        case "de": { alert("Um die Bestellung auszuführen, ist es notwendig,\ndass Sie unsere Allgemeine Geschäftsbedingungen anerkennen."); break }
        case "en": { alert("In order to accept your order, it is necessary\nto recognize our general trading conditions."); break }
        case "fr": { alert("In order to accept your order, it is necessary\nto recognize our general trading conditions."); break }
        case "it": { alert("In order to accept your order, it is necessary\nto recognize our general trading conditions."); break }
      }
      document.pform.agb.focus();
    }
    else
    {
      document.pform.submit();
    }
  }
}


/* —————————————————————————————————————————————————————————————————————————————— *
 *  searchhi.js 
 *  -----------
 *  http://www.kryogenix.org/code/browser/searchhi/
 *
 *  Modified 17.01.2008 by multi-INTER-media GmbH
 * ------------------------------------------------------------------------------
 * <span class="nosearchhi"> ... TEXT ... </span>      ->   is still working
 *
 * .searchword0 {color: #222; background-color: #ff0; border: 1px dotted #ff0;}
 * ...
 * .searchword5 = CSS-Style with different colors for differnt searchterms
 * —————————————————————————————————————————————————————————————————————————————— */

  function highlightWord(node,word,wordnr) 
  {
    if (node.hasChildNodes) 
    {
      var hi_cn;
      for (hi_cn=0;hi_cn<node.childNodes.length;hi_cn++) 
      {
        highlightWord(node.childNodes[hi_cn],word,wordnr);
      }
    }
    if (node.nodeType == 3) 
    { 
      tempNodeVal = node.nodeValue.toLowerCase();
      tempWordVal = word.toLowerCase();
      if (tempNodeVal.indexOf(tempWordVal) != -1) 
      {
        pn = node.parentNode;
        klasse = "searchword"+wordnr;
        checkn = pn;
        while (checkn.nodeType != 9 && 
        checkn.nodeName.toLowerCase() != 'body') 
        { 
          if ((checkn.className.match(/\bnosearchhi\b/)) || (checkn.className.match(/\bhornav\b/))) 
          { 
            return; 
          }
          checkn = checkn.parentNode;
        }
        if (pn.className != klasse) 
        {
          nv = node.nodeValue;
          ni = tempNodeVal.indexOf(tempWordVal);
          before = document.createTextNode(nv.substr(0,ni));
          docWordVal = nv.substr(ni,word.length);
          after = document.createTextNode(nv.substr(ni+word.length));
          hiwordtext = document.createTextNode(docWordVal);
          hiword = document.createElement("span");
          hiword.className = klasse;
          hiword.appendChild(hiwordtext);
          pn.insertBefore(before,node);
          pn.insertBefore(hiword,node);
          pn.insertBefore(after,node);
          pn.removeChild(node);
        }
      }
    }
  }
/* —————————————————————————————————————————————————————————————————————————————— */
  function SearchHighlight(qs) 
  {
    if (!document.createElement) return;
    if (qs.length < 3) return;
    words = unescape(qs.replace(/\+/g,' ')).split(/\s+/);
    for (w=0;w<words.length;w++) 
    {
       highlightWord(document.getElementById("suchergebnisbereich"),words[w],w);
    }
  }
/* —————————————————————————————————————————————————————————————————————————————— *
 * (C) multi-INTER-media GmbH
 *     Letzte Aenderung : 23.07.2009
 * —————————————————————————————————————————————————————————————————————————————— */
