var _CMBILD=0;
// START Werbung Positionierung
      var adlWallPaperTop=0;
      var adlWallPaperLeft=815;
// ENDE  Werbung Positionierung


/* START Top-Navi Ebene3 topnavi_e2.tpl */ 
var browserName = navigator.appName;
//document.write(browserName);
var obj_old="qwer";
var curr_id=0;
   
function findPos(el)
{
    var xPos    = 0;
    var yPos    = 0;
    if (document.layers)
    {
        // simply done with nc4x
        //
        xPos = el.x;
        yPos = el.y;
    }
    else
      {
        // loop through all offsets
        //
        while(el)
        {
            xPos += el.offsetLeft;
            yPos += el.offsetTop;
            el  = el.offsetParent;
        }
    }
    return {xPos: xPos, yPos: yPos};
}

function ps_subnav(id)
{
      var ps_bildname="pul_"+id;
      var ps_divname="div_"+id;
      var x=y=0;
      var ps_el = document.getElementById(ps_bildname);
      x = findPos(ps_el).xPos;
      y = findPos(ps_el).yPos;
      curr_id=id;

      //alert('ps_el = '+ps_el+'; x = '+x+'; y = '+y);
      if(obj_old!="qwer")
      {
        obj_old.style.display='none';
        obj_old="qwer";
      }

      if(document.getElementById(ps_divname))
      {
          x-=9;
          y+=8;
        
        var ps_div_el = document.getElementById(ps_divname);
        ps_div_el.style.left=x+'px';
        ps_div_el.style.top=y+'px';
        ps_div_el.style.display='inline';
        obj_old=ps_div_el;
        if(typeof ps_timer != "undefined")
        {
          window.clearTimeout(ps_timer);
          document.getElementById('subNavMenu'+curr_id).className="tab_nothover";
          ps_timer="";
        }
      }
}

function setactiv (id,classname) {
    if (obj = document.getElementById(id)) {
        obj.className = classname;
        ps_activ = 0;
    }
}
 

function hidediv()
{
  document.getElementById('subNavMenu'+curr_id).className="tab_nothover";
  if(obj_old!="qwer")
  {
    if(typeof ps_timer != "undefined")
    {
      //alert('hihi ps_timer = '+ps_timer);
      obj_old.style.display='none';
      obj_old="qwer";
      reset_timer();
      window.clearTimeout(ps_timer);
      ps_timer="";
    }
  }
}

function reset_timer()
{
  if(obj_old!="qwer")
  {
    if(typeof ps_timer != "undefined")
    {
      window.clearTimeout(ps_timer);
    }
    document.getElementById('subNavMenu'+curr_id).className="tab_hover";
  } else {
    document.getElementById('subNavMenu'+curr_id).className="tab_nothover";
    curr_id=0;
  }    
}

function start_timer()
{
  document.getElementById('subNavMenu'+curr_id).className="tab_nothover";
  if(obj_old!="qwer")
  {
    ps_timer = window.setTimeout("hidediv()",50);
  }
}
/* ENDE Top-Navi Ebene3 topnavi_e2.tpl */


/* START Top-Navi Ebene3 topnavi_e3.tpl */


