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";

	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";
	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 Firma() {
  if (document.URL.search(/\/en\//) != -1) {
    window.location.href = "/en/agenturinfo/";
    return;
  }
  window.location.href = "/de/agenturinfo/";
  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 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);
  }
}
