/* 	JavaScript Funktionen fuer Susanne Lipp
	geschrieben von Andreas Reichert, elus Media Design GmbH, 14.10.08
*/

function menu(seite) {
	var menu = new Array();
	menu[1] = new Array();
	menu[1][1] = "Startseite";
	menu[1][2] = "index.html";
	menu[2] = new Array();
	menu[2][1] = "Studio";
	menu[2][2] = "studio.html";
	menu[3] = new Array();
	menu[3][1] = "Susanne Lipp";
	menu[3][2] = "susannelipp.html";
	menu[4] = new Array();
	menu[4][1] = "Behandlungen";
	menu[4][2] = "behandlungen.html";
	menu[5] = new Array();
	menu[5][1] = "Zahnpflegetipps";
	menu[5][2] = "zahnpflegetipps.html";
	menu[6] = new Array();
	menu[6][1] = "Mundpflegeartikel";
	menu[6][2] = "mundpflege.html";
	menu[7] = new Array();
	menu[7][1] = "Kontakt";
	menu[7][2] = "kontakt.php";

	if (seite != 1) {
		document.writeln("<td bgcolor=#888888 align=center width=14% id=\"mp1\" onMouseOver=\"tb_select('#666666','mp1');\" onMouseOut=\"tb_select('#888888','mp1');\" onMouseDown=\"tb_link('"+menu[1][2]+"');\"><font class=normal style=\"color:#ffffff;\">"+menu[1][1]+"</font></td>");
	}
	else {
		document.writeln("<td bgcolor=#666666 align=center width=14% id=\"mp1\"><font class=normal style=\"color:#ffffff;\">"+menu[1][1]+"</font></td>");
	}
	if (seite != 2) {
		document.writeln("<td bgcolor=#888888 align=center width=14% id=\"mp2\" onMouseOver=\"tb_select('#666666','mp2');\" onMouseOut=\"tb_select('#888888','mp2');\" onMouseDown=\"tb_link('"+menu[2][2]+"');\"><font class=normal style=\"color:#ffffff;\">"+menu[2][1]+"</font></td>");
	}
	else {
		document.writeln("<td bgcolor=#666666 align=center width=14% id=\"mp2\"><font class=normal style=\"color:#ffffff;\">"+menu[2][1]+"</font></td>");
	}
	if (seite != 3) {
		document.writeln("<td bgcolor=#888888 align=center width=14% id=\"mp3\" onMouseOver=\"tb_select('#666666','mp3');\" onMouseOut=\"tb_select('#888888','mp3');\" onMouseDown=\"tb_link('"+menu[3][2]+"');\"><font class=normal style=\"color:#ffffff;\">"+menu[3][1]+"</font></td>");
	}
	else {
		document.writeln("<td bgcolor=#666666 align=center width=14% id=\"mp3\"><font class=normal style=\"color:#ffffff;\">"+menu[3][1]+"</font></td>");
	}
	if (seite != 4) {
		document.writeln("<td bgcolor=#888888 align=center width=14% id=\"mp4\" onMouseOver=\"tb_select('#666666','mp4');\" onMouseOut=\"tb_select('#888888','mp4');\" onMouseDown=\"tb_link('"+menu[4][2]+"');\"><font class=normal style=\"color:#ffffff;\">"+menu[4][1]+"</font></td>");
	}
	else {
		document.writeln("<td bgcolor=#666666 align=center width=14% id=\"mp4\"><font class=normal style=\"color:#ffffff;\">"+menu[4][1]+"</font></td>");
	}
	if (seite != 5) {
		document.writeln("<td bgcolor=#888888 align=center width=14% id=\"mp5\" onMouseOver=\"tb_select('#666666','mp5');\" onMouseOut=\"tb_select('#888888','mp5');\" onMouseDown=\"tb_link('"+menu[5][2]+"');\"><font class=normal style=\"color:#ffffff;\">"+menu[5][1]+"</font></td>");
	}
	else {
		document.writeln("<td bgcolor=#666666 align=center width=14% id=\"mp5\"><font class=normal style=\"color:#ffffff;\">"+menu[5][1]+"</font></td>");
	}
	if (seite != 6) {
		document.writeln("<td bgcolor=#888888 align=center width=14% id=\"mp6\" onMouseOver=\"tb_select('#666666','mp6');\" onMouseOut=\"tb_select('#888888','mp6');\" onMouseDown=\"tb_link('"+menu[6][2]+"');\"><font class=normal style=\"color:#ffffff;\">"+menu[6][1]+"</font></td>");
	}
	else {
		document.writeln("<td bgcolor=#666666 align=center width=14% id=\"mp6\"><font class=normal style=\"color:#ffffff;\">"+menu[6][1]+"</font></td>");
	}
	if (seite != 7) {
		document.writeln("<td bgcolor=#888888 align=center width=14% id=\"mp7\" onMouseOver=\"tb_select('#666666','mp7');\" onMouseOut=\"tb_select('#888888','mp7');\" onMouseDown=\"tb_link('"+menu[7][2]+"');\"><font class=normal style=\"color:#ffffff;\">"+menu[7][1]+"</font></td>");
	}
	else {
		document.writeln("<td bgcolor=#666666 align=center width=14% id=\"mp7\"><font class=normal style=\"color:#ffffff;\">"+menu[7][1]+"</font></td>");
	}


}

  function bildw(bildname, bildobj)
  {
    window.document.images[bildname].src = bildobj;
  }

  function tb_select(farbe,fid) {
	document.getElementById(fid).style.backgroundColor=farbe;
  }

  function fwechsel(fid, farbe) {
	document.getElementById(fid).style.backgroundColor=farbe;
  }

  function tb_link(nurl) {
	window.location.href = nurl;
  }
  
  function show_ele(id) {
  	document.getElementById(id).style.visibility="visible";
  }
  
  function hide_ele(id) {
  	document.getElementById(id).style.visibility="hidden";
  }

 function hide_ele_it(id,time) {
 	window.setTimeout("hide_ele('"+id+"')", time);
 }



function init(mnummer)
{
	if (parent.nfe) {
		parent.menuw = mnummer;
		parent.frames['nav'].location.href="menu.html";
	}
}

function bildw()
{
	window.setTimeout("bildwechsel(2)",4000);
	window.setTimeout("bildwechsel(3)",6600);
	window.setTimeout("bildwechsel(4)",9200);
	window.setTimeout("bildwechsel(1)",12200);
}

function bildwechsel(bn)
{
	window.document.images['kb'].src = kbild['bild'+bn].src;
}
