// JavaScript Document
/* E M A I L */
function ghostmail(name, domain, display) {
displayed=(typeof(display)=="undefined") ? name+"@"+domain : display
document.write('<a class="mail" href=mailto:' + name + '@' + domain + '>' + displayed + '</a>');
}


/* FAVORITEN ICON */
document.writeln("<link rel='icon' href='/favicon.ico'>");
document.writeln("<link rel='shortcut icon' href='/favicon.ico'>");



/* N E T S C A P E  4   R E L O A D */
function reload(init) {
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.pgW=innerWidth; document.pgH=innerHeight; onresize=reload; }}
  else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
}
reload(true);

/* P O P U P  */
function plan(page) {
OpenWin = this.open(page, "CtrlWindow", "width=451px,height=580px,toolbar=no,menubar=yes,location=no,scrollbars=no,resizable=no,top=30px,left=30px;");
}

/* S E I T E   A U S D R U C K E N */
function printit() {
bV = parseInt(navigator.appVersion);
if (bV >= 4) window.print();
}

/* B I L D E R  W E C H S E L N */
// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/
if (document.images) { 
  img01 = new Image();
  img01.src = "./images/port_home_on.gif";
  img012 = new Image();
  img012.src = "./images/port_home_ov.gif";
  img02 = new Image();
  img02.src = "./images/angebot_home_on.gif";
  img022 = new Image();
  img022.src = "./images/angebot_home_ov.gif";
  img03 = new Image();
  img03.src = "./images/team_home_on.gif";
  img032 = new Image();
  img032.src = "./images/team_home_ov.gif";
  img04 = new Image();
  img04.src = "./images/ref_home_on.gif";
  img042 = new Image();
  img042.src = "./images/ref_home_ov.gif";
  img07 = new Image();
  img07.src = "./images/links_home_on.gif";
  img072 = new Image();
  img072.src = "./images/links_home_ov.gif";
}
function OnImage(name) {
	if (document.images) {
		fullname = eval(name + "2");
		document[name].src = fullname.src;
	}
}
function OffImage(name) {
  if (document.images) {
    fullname = eval(name);
	if (fullname.complete) {
      document[name].src = fullname.src;
	}
  }
}

/* M I T T E I L U N G */
function MM_popupMsg(msg) { //v1.0
  alert(msg);
}
