
    //<![CDATA[

  function show_hm(element){

           element.className += "hover";

   }

 function hide_hm(element){

           element.className = element.className = "";

     }



var NS4 = (!document.all);
var IE4 = (document.all);
var zaehler = 0;

function suchen(suchtext)
  {
  var txt, i, found;
  
  if (suchtext == "") {
    return false;
  }
  
  if (NS4) {

    if (!this.find(suchtext)) {

    } else {
      zaehler++;
    }
    document.getElementById('notfound').innerHTML= "";

    
    if (zaehler == 0) {

jQuery().ready(function(){
  // simple accordion
  var acObj = jQuery('#accordionDIV').accordion({
    header: 'div.ac_title',
    autoheight: false,
    active: false, 
    alwaysOpen: false
  });

  jQuery('#searchtxt').change(function() {
    acObj.accordion('destroy');
  });

});
   
      document.getElementById('notfound').innerHTML= "Mitarbeiter nicht gefunden!";
    }
  }

  if (IE4)
    {

    txt = this.document.body.createTextRange();
    for (i = 0; i <= zaehler && (found = txt.findText(suchtext)) != false; i++)
      {
      txt.moveStart("character", 1);
      txt.moveEnd("textedit");
      }
    if (found)
      {
      txt.moveStart("character", -1);
      txt.findText(suchtext);
            try {
                txt.select();
                // This range was successfully applied. Reset the cache.
            } catch (e) {
                // "Could not complete the operation due to error 800a025e"
                // This range probably starts or ends inside a hidden element. In order to make the selection work for
                // hidden elements (without visual representation, of course) we have to cache this range and return it
                // next time if the selection doesn't change in the mean time.
                //this.ownerDocument.parentWindow.__xwe_cachedRange = @org.xwiki.gwt.dom.client.internal.ie.NativeRange::duplicate(Lorg/xwiki/gwt/dom/client/internal/ie/NativeRange;)(this);
                // The cache expires when the witness range is not anymore selected.
                //this.ownerDocument.parentWindow.__xwe_cachedRangeWitness = this.ownerDocument.selection.createRange();
            }

      txt.scrollIntoView();
      zaehler++;
      }
    else
      {
      if (zaehler > 0)
        {
        zaehler = 0;
        suchen(suchtext);
        document.getElementById('notfound').innerHTML= "";
        }
      else
        {
          
        
        document.getElementById('notfound').innerHTML= "Mitarbeiter nicht gefunden!";
        }
      }
    }
  return false;
  }



    //]]>



