if (((navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 3) || parseInt(navigator.appVersion) >= 4) || parseInt(navigator.appVarsion) >= 4) 
{ 
    rollOvers = 1;
} else {
    rollOvers = 0;
}
loaded = 0

function loadImg () {
    if (rollOvers) {

	homeOn = new Image();
	homeOn.src = "/images/bnt_home_on.gif";
	hilfeOn = new Image();
	hilfeOn.src = "/images/bnt_hilfe_on.gif";
	bookOn = new Image();
	bookOn.src = "/images/bnt_book_on.gif";
	englOn = new Image();
	englOn.src = "/images/bnt_engl_on.gif";
	deutschOn = new Image();
	deutschOn.src = "/images/bnt_deutsch_on.gif";
	links1On = new Image();
	links1On.src = "/images/bnt_links_on.gif";
	links2On = new Image();
	links2On.src = "/images/bnt_links_on.gif";
	links3On = new Image();
	links3On.src = "/images/bnt_links_on.gif";
	links4On = new Image();
	links4On.src = "/images/bnt_links_on.gif";
	links5On = new Image();
	links5On.src = "/images/bnt_links_on.gif";
	links6On = new Image();
	links6On.src = "/images/bnt_links_on.gif";
	links7On = new Image();
	links7On.src = "/images/bnt_links_on.gif";
	links8On = new Image();
	links8On.src = "/images/bnt_links_on.gif";
	links9On = new Image();
	links9On.src = "/images/bnt_links_on.gif";
	links10On = new Image();
	links10On.src = "/images/bnt_links_on.gif";
	links11On = new Image();
	links11On.src = "/images/bnt_links_on.gif";
	links12On = new Image();
	links12On.src = "/images/bnt_links_on.gif";
	links13On = new Image();
	links13On.src = "/images/bnt_links_on.gif";
	links14On = new Image();
	links14On.src = "/images/bnt_links_on.gif";
	links15On = new Image();
	links15On.src = "/images/bnt_links_on.gif";

	homeOff = new Image();
	homeOff.src = "/images/bnt_home_off.gif";
	hilfeOff = new Image();
	hilfeOff.src = "/images/bnt_hilfe_off.gif";	
	bookOff = new Image();
	bookOff.src = "/images/bnt_book_off.gif";	
	englOff = new Image();
	englOff.src = "/images/bnt_engl_off.gif";	
	deutschOff = new Image();
	deutschOff.src = "/images/bnt_deutsch_off.gif";	
	links1Off = new Image();
	links1Off.src = "/images/bnt_links_off.gif";
	links2Off = new Image();
	links2Off.src = "/images/bnt_links_off.gif";
	links3Off = new Image();
	links3Off.src = "/images/bnt_links_off.gif";
	links4Off = new Image();
	links4Off.src = "/images/bnt_links_off.gif";
	links5Off = new Image();
	links5Off.src = "/images/bnt_links_off.gif";
	links6Off = new Image();
	links6Off.src = "/images/bnt_links_off.gif";
	links7Off = new Image();
	links7Off.src = "/images/bnt_links_off.gif";
	links8Off = new Image();
	links8Off.src = "/images/bnt_links_off.gif";
	links9Off = new Image();
	links9Off.src = "/images/bnt_links_off.gif";
	links10Off = new Image();
	links10Off.src = "/images/bnt_links_off.gif";
	links11Off = new Image();
	links11Off.src = "/images/bnt_links_off.gif";
	links12Off = new Image();
	links12Off.src = "/images/bnt_links_off.gif";
	links13Off = new Image();
	links13Off.src = "/images/bnt_links_off.gif";
	links14Off = new Image();
	links14Off.src = "/images/bnt_links_off.gif";
	links15Off = new Image();
	links15Off.src = "/images/bnt_links_off.gif";
	loaded = 1
    }
}

function switchOn(imgName) {
	if (loaded == 1) {
	imgOn = eval(imgName + "On.src");
	document[imgName].src = imgOn;
	}
}

function switchOff(imgName) {
	if (loaded == 1) {
	imgOff = eval(imgName + "Off.src");
	document[imgName].src = imgOff;
	}
}

function wechsel_sprache() {
  var URL_alt = document.URL;
  var URL_neu;
  if (URL_alt.search(/\/en\//) != -1) {
    URL_neu = URL_alt.replace(/\/en\//,"\/de\/");
    window.location.href = URL_neu;
    return;
  }
  if (URL_alt.search(/\/de\//) != -1) {
    if ( (URL_alt.search(/\/shop\//) != -1) || 
         (URL_alt.search(/\/auktion\//) != -1) ) {
      window.parent.location.href = "/en/";
      return;
    } else {
      URL_neu = URL_alt.replace(/\/de\//,"\/en\/");
      window.location.href = URL_neu;
      return;
    }
  }
  window.location.href = "/en/";
  return;
}

function Go(url) {
  if(url == "nix") {
    document.forms[0].reset();
    document.forms[0].elements[0].blur();
    return;
  } else {
    location.href = url;
    document.forms[0].reset();
    document.forms[0].elements[0].blur();
  }
}

function SM_de(Banner,Parameter) {
  if (Banner != 0) { document.banner.src = "/images/banner/ban_gr_"+Banner+".gif"; }
  smwindow = open('','Objekt','width=235,height=520,resizable=yes');
  smwindow.document.open();
  smwindow.document.writeln('<html><head><title>Suchmodul</title></head>');
  smwindow.document.writeln('<frameset rows="*,35" border=0 frameborder=0 framespacing=0>');
  smwindow.document.writeln('<frame name="Hauptframe" src="/cgi-bin/sm.cgi?'+Parameter+'">');
  smwindow.document.writeln('<frame name="NavFrame" src="/de/smnav.htm"  scrolling="no" noresize target="Hauptframe">');
  smwindow.document.writeln('<noframes><body>');
  smwindow.document.writeln('<p>Diese Seite verwendet Frames. Frames werden von Ihrem Browser aber nicht');
  smwindow.document.writeln('unterstützt.</p></body></noframes></frameset></html>');
  smwindow.focus();
}

function SM_en(Banner,Parameter) {
  if (Banner != 0) { document.banner.src = "/images/banner/ban_gr_"+Banner+".gif"; }
  smwindow = open('','Objekt','width=235,height=520,resizable=yes');
  smwindow.document.open();
  smwindow.document.writeln('<html><head><title>Search modul</title></head>');
  smwindow.document.writeln('<frameset rows="*,35" border=0 frameborder=0 framespacing=0>');
  smwindow.document.writeln('<frame name="Hauptframe" src="/cgi-bin/sm.cgi?SP=en&'+Parameter+'">');
  smwindow.document.writeln('<frame name="NavFrame" src="/en/smnav.htm"  scrolling="no" noresize target="Hauptframe">');
  smwindow.document.writeln('<noframes><body>');
  smwindow.document.writeln('<p>This site uses frames. Your browser does not support frames.');
  smwindow.document.writeln('</p></body></noframes></frameset></html>');
  smwindow.focus();
}

function Firma() {
  if (document.URL.search(/\/en\//) != -1) {
    window.location.href = "/consulting/en/firmenprofil.htm";
    return;
  }
  window.location.href = "/consulting/de/firmenprofil.htm";
  return;
}

function ZeigeObjekt(objekttitel, objektbeschreibung, objektimage, objektwidth, objektheight) {
  objektwindow = open('','Objekt','width='+objektwidth+',height='+objektheight+',resizable=yes');
  objektwindow.document.open();
  objektwindow.document.writeln('<html><head></head><title>'+objekttitel+'</title><body bgcolor="#aaddff">');
  objektwindow.document.writeln('<p align="center"><img border="0" src="/images/'+objektimage+'"></p>');
  objektwindow.document.writeln('<p align="center">'+objektbeschreibung+'</p>');
  objektwindow.document.writeln('</body></html>');
  objektwindow.document.close();
}

function empfehlen() {
  if (document.URL.search(/\/en\//) != -1)
    empfehlung = open('/en/empfehlung.htm','Recommendation','width=200,height=400');
  else 
    empfehlung = open('/de/empfehlung.htm','Empfehlung','width=200,height=400');
}

function news() {
  <!-- document.banner.src = '<!-- BEGIN PARTNER PROGRAM - DO NOT CHANGE THE PARAMETERS OF THE HYPERLINK --><a href="http://partners.webmasterplan.com/click.asp?ref=11244&site=325&type=b1" target="_top"><img src="http://www.online-favoriten.de/banrotate/affili/banonl1.gif" border="0" alt="Online-Favoriten.de" width="468" height="60"></a><!-- END PARTNER PROGRAM -->'; -->
  news = open('','news','width=500,height=500,resizable=yes');
  news.document.open();
  news.document.writeln('<html><head><title>WAP-News</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>');
  news.document.writeln('<frameset rows="100,*,70" border=0 frameborder=0 framespacing=0>');
  news.document.writeln('<frame src="/header.htm" name="Header" scrolling=no>');
  news.document.writeln('<frameset cols="100,*" border=0 frameborder=0 framespacing=0>');
  news.document.writeln('<frame src="/rand.htm" name="Rand" scrolling=no>');
  news.document.writeln('<frame src="http://www.unety.de/wap4fun_news/db_news.shtml" name="script">');
  news.document.writeln('</frameset>');
  news.document.writeln('<frame src="/footer.htm" name="Footer" scrolling=no>');
  news.document.writeln('</frameset>');
  news.document.writeln('<noframes><body bgcolor="#FFFFFF">');
  news.document.writeln('F&uuml;r die WAP-News muß Ihr Browser Frames unterst&uuml;tzen</body></noframes></html>');
  news.document.close();
}

function popup(popuptitle, popupimage, popupurl, popupwidth, popupheight) {
  popupwindow = open('','Popup','width='+popupwidth+',height='+popupheight+',resizable=no');
  popupwindow.document.open();
  popupwindow.document.writeln('<html><head></head><title>'+popuptitle+'</title><body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" bgcolor="#fffffff">');
  popupwindow.document.writeln('<p align="center"><a href="'+popupurl+'" target="_blank"><img border="0" src="'+popupimage+'"></a></p>');
  popupwindow.document.writeln('</body></html>');
  popupwindow.document.close();
}

function datum(sprache) {
  jetzt = new Date();
  Tag = jetzt.getDate();
  Monat = jetzt.getMonth();
  Jahr = jetzt.getYear();
  if(Jahr < 100) Jahr+=1900;
  if (sprache == "de") {
     if(Tag < 10) Tag="0"+Tag;
     if(Monat < 10) Monat="0"+Monat;
     document.write(Tag + "." + Monat + "." + Jahr);
  } else {
    var Month = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
    document.write(Month[Monat] + " " + Tag + ", " + Jahr);
  }
}
