//* global.js - Globale JavaScript Bibliothek f�r die Seite von Nina und Beata*/



function galwe(bid1, bildobj1, bid2, bildobj2)
{
    window.document.images[bid1].src = bildobj1;
    if (uebersicht == 1) {
    	window.document.images[bid2].src = bildobj2;
    }
}

function get_anz_mp () {
	var anzahl = menuf.length -1;
	return anzahl
}

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

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

  function tb_select(farbe,fid) {
	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 menu(mp) 
{
	menup = new Array();
	menup[1] = new Array();
	menup[2] = new Array();
	menup[3] = new Array();
	menup[4] = new Array();
	menup[5] = new Array();
	menup[6] = new Array();
	menup[7] = new Array();
	menup[1][0] = "START";
	menup[1][1] = "index.html";
	menup[2][0] = "STUDIO";
	menup[2][1] = "kosmetikstudio.html";
	menup[3][0] = "TEAM";
	menup[3][1] = "delys-team.html";
	menup[4][0] = "BEHANDLUNGEN";
	menup[4][1] = "behandlungen.html";
	menup[5][0] = "PARTNER";
	menup[5][1] = "partner.html";
	menup[6][0] = "TERMIN";
	menup[6][1] = "termine.html";
	menup[7][0] = "KONTAKT";
	menup[7][1] = "kontakt.html";
	
	mfarbe = new Array();
	mfarbe[1] = "#000000";		// schwarz, wie Menu-Hintergrund
	mfarbe[2] = "#000000";		// 
	mfarbe[3] = "#000000";		// 
	
	for (i=1;i<8;i++) {
		id = "mf"+i;
		if (i == mp) {
			document.writeln ("<td align=\"center\" width=\"14%\" id=\""+id+"\" class=\"menufeld\" style=\"background-color:"+mfarbe[3]+"\";><font class=\"menu\">"+menup[i][0]+"</font></td>");
		}
		else {
			document.writeln ("<td align=center width=\"14%\" id=\""+id+"\" class=\menufeld\" onMouseOver=\"fwechsel('"+id+"','"+mfarbe[2]+"')\" onMouseOut=\"fwechsel('"+id+"','"+mfarbe[1]+"')\"onMouseDown=\"window.location.href='"+menup[i][1]+"'\">");
			document.writeln ("<font class=\"menu\">"+menup[i][0]+"</font></td>");
		}
	}
}
