function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  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 menu_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=menu_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function menue_findObj(n){
	var x,t; if((n.indexOf("?"))>0&&parent.frames.length){t=n.split("?");
	x=eval("parent.frames['"+t[1]+"'].document.getElementById('"+t[0]+"')");
	}else{x=document.getElementById(n)}return x;
}

function menu_show() { //v3.0A Modified by Al Sparber and Massimo Foti for NN6 Compatibility
  var i,p,v,obj,args=menu_show.arguments;if(document.getElementById){
   for (i=0; i<(args.length-2); i+=3){ obj=menue_findObj(args[i]);v=args[i+2];
   v=(v=='show')?'visible':(v='hide')?'hidden':v;
   if(obj)obj.style.visibility=v;}} else{
  for (i=0; i<(args.length-2); i+=3) if ((obj=menu_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }}
}

function hideall() {
menu_show('lhome','','hide','lharley','','hide','lbuell','','hide','lcustom','','hide','lfashion','','hide','ldienstleistungen','','hide','lueberuns','','hide');
out(0); out(1); out(2); out(3); out(4); out(5); out(6); out(7); out(8); out(9);
}

function hidetitles() {
menu_show('events','','hide','presse','','hide','downloads','','hide','modelle','','hide','zubehoer','','hide','tuning','','hide','leasing','','hide','miete','','hide','harley','','hide','buell','','hide','show','','hide','occasionen','','hide','parts','','hide','schnaeppchen','','hide','werkstatt','','hide','pruefstand','','hide','portrait','','hide','team','','hide','domizil','','hide','links','','hide','kontakt','','hide');
}

function change(x,y) {
hideall();
over(x);
menu_show(''+y+'','','show')
}

function title(x) {
parent.frames.head.hidetitles();
parent.frames.head.menu_show(''+x+'','','show')
}

function plan(w,x)
{window.open(w,x,"toolbar=no,location=no,directories=no,scrollbars=no,status=no,menubar=no,resizable=no,width=650,height=579")};

function plan2(w,x)
{window.open(w,x,"toolbar=no,location=no,directories=no,scrollbars=no,status=no,menubar=no,resizable=no,width=650,height=615")};

function story(w,x)
{window.open(w,x,"toolbar=no,location=no,directories=no,scrollbars=no,status=no,menubar=no,resizable=no,width=680,height=455")};

function fashion(w,x)
{window.open(w,x,"toolbar=no,location=no,directories=no,scrollbars=no,status=no,menubar=no,resizable=no,width=500,height=430")};