<!--
b01 = new Image();
b01.src = '/fileadmin/av/image/hmenu1_einbaumonitore_o.gif';

b02 = new Image();
b02.src = '/fileadmin/av/image/hmenu2_deckenmonitore_o.gif';

b03 = new Image();
b03.src = '/fileadmin/av/image/hmenu3_dvdplayer_o.gif';

b04 = new Image();
b04.src = '/fileadmin/av/image/hmenu4_headunits_o.gif';

b05 = new Image();
b05.src = '/fileadmin/av/image/hmenu5_videobags_o.gif';

b06 = new Image();
b06.src = '/fileadmin/av/image/hmenu6_einparkhilfen_o.gif';

b07 = new Image();
b07.src = '/fileadmin/av/image/hmenu7_zubehoer_o.gif';

b08 = new Image();
b08.src = '/fileadmin/av/image/hmenu8_lifestyleentertainment_o.gif';

b10 = new Image();
b10.src = '/fileadmin/av/image/hmenu10_navigationssysteme_o.gif';

b11 = new Image();
b11.src = '/fileadmin/av/image/hmenu11_testberichte_o.gif';

b12 = new Image();
b12.src = '/fileadmin/av/image/hmenu12_homebase_o.gif';


var nx_path = "/fileadmin/av/";

menuid=0;

function SetMenuId(id){
  menuid=id+'';
  if (menuid.length==1) {
    menuid="b0"+id;
  } else {
    menuid="b"+id;
  }
  
  if (menuid!="b00"){
    document[menuid].src = eval(menuid).src;
  }
}

function MouseOverOut(img_name,img_src){
  imgid=img_name;
  if (menuid==imgid){
  
  }
  else {
    document[img_name].src = nx_path+img_src;
  }
  
  if (location.href.indexOf(id=16)>=0){
    LayerEinAusblenden('rightmouseover','visible');
    if (img_src.indexOf("_o")>=0){
      if (imgid=="b01"){
        document["rightmo"].src = nx_path+"image/moright1_einbaumonitore.gif";
      }
      else if (imgid=="b02"){
        document["rightmo"].src = nx_path+"image/moright2_deckenmonitore.gif";
      }
      else if (imgid=="b03"){
        document["rightmo"].src = nx_path+"image/moright3_dvdplayer.gif";
      }
      else if (imgid=="b04"){
        document["rightmo"].src = nx_path+"image/moright4_moniceiver.gif";
      }
      else if (imgid=="b05"){
        document["rightmo"].src = nx_path+"image/moright5_videobags.gif";
      }
      else if (imgid=="b06"){
        document["rightmo"].src = nx_path+"image/moright6_einparkhilfen.gif";
      }
      else if (imgid=="b07"){
        document["rightmo"].src = nx_path+"image/moright7_zubehoer.gif";
      }
    }
    else {
      document["rightmo"].src = nx_path+"image/dummy.gif";
    }
    
  }
  else {
    LayerEinAusblenden('rightmouseover','hidden');
  }
}

function MouseOverOutIL(img_name,img_src){
  if (document.layers) {
    document['submenu'].document[img_name].src = nx_path+img_src;
  }
  else {
    document[img_name].src = nx_path+img_src;
  }
}

function Fenster(url){
  a=window.open(url,'nx_popup','top=100,left=100,width=543,height=369,scrollbars=yes,resizable=no');
  a.focus();
}

function Fenster2(url){
  a=window.open(url,'nx_popup','top=100,left=100,width=500,height=380,scrollbars=yes,resizable=no');
  a.focus();
}

function Fenster3(url){
  a=window.open(url,'nx_popup','top=100,left=100,width=480,height=380,scrollbars=no,resizable=no');
  a.focus();
}

function LayerEinAusblenden(LName,EinAus){
  if (document.layers) {
    document[LName].visibility = EinAus;
  }
  else
  if (document.getElementById){
    document.getElementById(LName).style.visibility = EinAus;
  }
  else
  if (document.all && !document.getElementById){
    document.all[LName].style.visibility = EinAus;
  }
  else {
    document.write("Ihr Browser unterstützt diese Funktion nicht. Bitte updaten Sie Ihren Browser.");
  }
}

function nx_send(){
  nx_win = window.open("/nx_mail_news.php?url="+escape(document.location)+"&title="+escape(document.title), "_danke", 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=360,height=420');
  nx_win.focus();
  return false;
}

//check for flash
var flashversionMin = 7;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

if (plugin) {
  for (f = 0; f < 20; f++) {
    var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
    if (plugin.description.indexOf(f+".")>=0){
      flashversion = f;
      
      if (flashversion >= flashversionMin){
        plugin = true;
        break;
      }
    }
  }
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) {
  document.write('<SCRIPT LANGUAGE=VBScript\> \n');
  document.write('on error resume next \n');
  document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+flashversionMin+'")))\n');
  document.write('</SCRIPT\> \n');
}

function playSWF(file,id,vars,width,height,wmode,bgcolor,baseurl,wLName) {
  fsource='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
  fsource+=' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" ';
  fsource+=' ID='+id+' WIDTH="'+width+'"; HEIGHT="'+height+'">';
  fsource+=' <PARAM NAME="allowScriptAccess" VALUE="sameDomain" /> <PARAM NAME=movie VALUE="'+file+'"> <PARAM NAME=FlashVars VALUE="page_vars='+vars+'"> <PARAM NAME=menu VALUE=false>  <PARAM NAME="BASE" VALUE='+baseurl+'> <PARAM NAME=quality VALUE=high> <PARAM NAME=wmode value='+wmode+'> <PARAM NAME=bgcolor VALUE='+bgcolor+'>';
    if(navigator.userAgent.indexOf("Opera")==-1) {
      fsource+=' <EMBED src="'+file+'" FlashVars="page_vars='+vars+'" wmode='+wmode+' menu=false quality=high bgcolor='+bgcolor+'';
      fsource+=' swLiveConnect=FALSE allowScriptAccess="sameDomain" NAME='+id+' WIDTH="'+width+'" HEIGHT="'+height+'"';
      fsource+=' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" BASE='+baseurl+'>';
      fsource+=' </EMBED>';
    }
    else  {
      fsource+=' <EMBED src="'+file+'" FlashVars="page_vars='+vars+'" wmode='+wmode+' menu=false quality=high bgcolor='+bgcolor+'';
      fsource+=' swLiveConnect=FALSE allowScriptAccess="sameDomain" ID='+id+' WIDTH="'+width+'" HEIGHT="'+height+'"';
      fsource+=' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" BASE='+baseurl+'>';
      fsource+=' </EMBED>';
    }
  fsource+=' </OBJECT>';

  if (document.getElementById){
    document.getElementById(wLName).innerHTML=fsource;
  }

}
//-->
