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() { //v3.0
  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];}
}
function MM_swapImgRestore() { //v3.0
  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_preloadImages() { //v3.0
 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 mmLoadMenus() {
  if (window.mm_menu_0326164208_0) return;
  window.mm_menu_0326164208_0 = new Menu("root",150,21,"Verdana, Arial, Helvetica, sans-serif",11,"#ffffff","#ffffff","#999999","#515151","left","middle",5,0,10,-5,13,true,false,true,3,false,true);
  mm_menu_0326164208_0.addMenuItem("PKW-Reifen","location='pkw_reifen.htm'");
  mm_menu_0326164208_0.addMenuItem("Reifenservice","location='pkw_reifenservice.htm'");
  //mm_menu_0326164208_0.addMenuItem("Reifenversicherung","location='pkw_reifenversicherung.htm'");
  mm_menu_0326164208_0.addMenuItem("PKW-R&auml;der","location='pkw_raeder.htm'");
  mm_menu_0326164208_0.addMenuItem("PC-Aluradberatung","location='pkw_pcberatung.htm'");
  mm_menu_0326164208_0.addMenuItem("Leasingfahrzeuge","location='leasingfahrzeuge.htm'");
    mm_menu_0326164208_0.bgImageUp="img/mmmenu4_150x21_up.gif";
    mm_menu_0326164208_0.bgImageOver="img/mmmenu4_150x21_over.gif";
    mm_menu_0326164208_0.fontWeight="bold";
    mm_menu_0326164208_0.hideOnMouseOut=true;
    mm_menu_0326164208_0.bgColor='#d4d0c8';
  window.mm_menu_0326165436_1 = new Menu("root",150,21,"Verdana, Arial, Helvetica, sans-serif",11,"#ffffff","#ffffff","#999999","#515151","left","middle",5,0,10,-5,13,true,false,true,3,false,true);
  mm_menu_0326165436_1.addMenuItem("LKW-Reifen","location='lkw_reifen.htm'");
  mm_menu_0326165436_1.addMenuItem("Reifenservice","location='lkw_reifenservice.htm'");
    mm_menu_0326165436_1.bgImageUp="img/mmmenu3_150x21_up.gif";
    mm_menu_0326165436_1.bgImageOver="img/mmmenu3_150x21_over.gif";
    mm_menu_0326165436_1.fontWeight="bold";
    mm_menu_0326165436_1.hideOnMouseOut=true;
    mm_menu_0326165436_1.bgColor='#d4d0c8';
  window.mm_menu_0913140419_2 = new Menu("root",150,21,"Verdana, Arial, Helvetica, sans-serif",11,"#ffffff","#ffffff","#999999","#515151","left","middle",5,0,10,-5,13,true,false,true,3,false,true);
  mm_menu_0913140419_2.addMenuItem("Endverbraucher","window.open('b2c/anzeigen.php', '_blank');");
  mm_menu_0913140419_2.addMenuItem("Wiederverkäufer","window.open('b2b/b2b_login.php', '_blank');");
    mm_menu_0913140419_2.bgImageUp="img/mmmenu1_150x21_up.gif";
    mm_menu_0913140419_2.bgImageOver="img/mmmenu1_150x21_over.gif";
    mm_menu_0913140419_2.fontWeight="bold";
    mm_menu_0913140419_2.hideOnMouseOut=true;
    mm_menu_0913140419_2.bgColor='#d4d0c8';
  window.mm_menu_0326170045_2 = new Menu("root",150,17,"Verdana, Arial, Helvetica, sans-serif",11,"#ffffff","#ffffff","#999999","#515151","left","middle",3,0,10,-5,13,true,true,true,3,false,true);
  mm_menu_0326170045_2.addMenuItem("Aurich","window.open('filialen_aurich.php', '_self');");
  mm_menu_0326170045_2.addMenuItem("Beckum","window.open('filialen_beckum.php', '_self');");
  mm_menu_0326170045_2.addMenuItem("Cloppenburg","window.open('filialen_cloppenburg.php', '_self');");
  mm_menu_0326170045_2.addMenuItem("Delmenhorst","window.open('filialen_delmenhorst.php', '_self');");
  mm_menu_0326170045_2.addMenuItem("Diepholz","window.open('filialen_diepholz.php', '_self');");
  mm_menu_0326170045_2.addMenuItem("Dreye","window.open('filialen_dreye.php', '_self');");
  mm_menu_0326170045_2.addMenuItem("Espelkamp","window.open('filialen_espelkamp.php', '_self');");
  mm_menu_0326170045_2.addMenuItem("Hannover","window.open('filialen_hannover.php', '_self');");
  mm_menu_0326170045_2.addMenuItem("Hoya","window.open('filialen_hoya.php', '_self');");
  mm_menu_0326170045_2.addMenuItem("Minden","window.open('filialen_minden.php', '_self');");
  mm_menu_0326170045_2.addMenuItem("Nienburg","window.open('filialen_nienburg.php', '_self');");
  mm_menu_0326170045_2.addMenuItem("Oldenburg","window.open('filialen_oldenburg.php', '_self');");
  mm_menu_0326170045_2.addMenuItem("Osnabrück","window.open('filialen_osnabrueck.php', '_self');");
  mm_menu_0326170045_2.addMenuItem("Preußisch&nbsp;Oldendorf","window.open('filialen_pr_oldendorf.php', '_self');");
  mm_menu_0326170045_2.addMenuItem("Quakenbrück","window.open('filialen_quakenbrueck.php', '_self');");
  mm_menu_0326170045_2.addMenuItem("Schüttorf","window.open('filialen_schuettorf.php', '_self');");
  mm_menu_0326170045_2.addMenuItem("Sulingen","window.open('filialen_sulingen.php', '_self');");
  mm_menu_0326170045_2.addMenuItem("Twistringen","window.open('filialen_twistringen.php', '_self');");
  mm_menu_0326170045_2.addMenuItem("Vechta","window.open('filialen_vechta.php', '_self');");
  mm_menu_0326170045_2.addMenuItem("Werl","window.open('filialen_werl.php', '_self');");
  mm_menu_0326170045_2.addMenuItem("Wildeshausen","window.open('filialen_wildeshausen.php', '_self');");
  mm_menu_0326170045_2.addMenuItem("Wilhelmshaven","window.open('filialen_wilhelmshaven.php', '_self');");
  mm_menu_0326170045_2.addMenuItem("Wunstorf","window.open('filialen_wunstorf.php', '_self');");
    mm_menu_0326170045_2.bgImageUp="img/mmmenu2_150x17_up.gif";
    mm_menu_0326170045_2.bgImageOver="img/mmmenu2_150x17_over.gif";
    mm_menu_0326170045_2.fontWeight="bold";
    mm_menu_0326170045_2.hideOnMouseOut=true;
    mm_menu_0326170045_2.bgColor='#d4d0c8';

  mm_menu_0326170045_2.writeMenus();
} // mmLoadMenus()

function MM_showMenu(menu, x, y, child, imgname) {
  if (!window.mmWroteMenu) return;
  MM_clearTimeout();
  if (menu) {
    var obj = FIND(imgname) || document.images[imgname] || document.links[imgname] || document.anchors[imgname];
    x = moveXbySlicePos (x, obj);
    y = moveYbySlicePos (y, obj);
  }
  if (document.layers) {
    if (menu) {
      var l = menu.menuLayer || menu;
      l.top = l.left = 1;
      hideActiveMenus();
      if (this.visibility) l = this;
      window.ActiveMenu = l;
    } else {
      var l = child;
    }
    if (!l) return;
    for (var i=0; i<l.layers.length; i++) {          
      if (!l.layers[i].isHilite) l.layers[i].visibility = "inherit";
      if (l.layers[i].document.layers.length > 0) MM_showMenu(null, "relative", "relative", l.layers[i]);
    }
    if (l.parentLayer) {
      if (x != "relative") l.parentLayer.left = x || window.pageX || 0;
      if (l.parentLayer.left + l.clip.width > window.innerWidth) l.parentLayer.left -= (l.parentLayer.left + l.clip.width - window.innerWidth);
      if (y != "relative") l.parentLayer.top = y || window.pageY || 0;
      if (l.parentLayer.isContainer) {
        l.Menu.xOffset = window.pageXOffset;
        l.Menu.yOffset = window.pageYOffset;
        l.parentLayer.clip.width = window.ActiveMenu.clip.width +2;
        l.parentLayer.clip.height = window.ActiveMenu.clip.height +2;
        if (l.parentLayer.menuContainerBgColor && l.Menu.menuBgOpaque ) l.parentLayer.document.bgColor = l.parentLayer.menuContainerBgColor;
      }
    }
    l.visibility = "inherit";
    if (l.Menu) l.Menu.container.visibility = "inherit";
  } else if (FIND("menuItem0")) {
    var l = menu.menuLayer || menu; 
    hideActiveMenus();
    if (typeof(l) == "string") l = FIND(l);
    window.ActiveMenu = l;
    var s = l.style;
    s.visibility = "inherit";
    if (x != "relative") {
      s.pixelLeft = x || (window.pageX + document.body.scrollLeft) || 0;
      s.left = s.pixelLeft + 'px';
    }
    if (y != "relative") {
      s.pixelTop = y || (window.pageY + document.body.scrollTop) || 0;
      s.top = s.pixelTop + 'px';
    }
    l.Menu.xOffset = document.body.scrollLeft;
    l.Menu.yOffset = document.body.scrollTop;
  }
  if (menu) window.activeMenus[window.activeMenus.length] = l;
  MM_clearTimeout();
}

