//#############################################################################
//#### Java Funktionen (C)2010 by Bert Gerlach 			###########################
//#### www.finitus.de									              ###########################
//#############################################################################

// ######################## Loader für Mainframe ##########
function LM(name) {	
	top.f_main.location.href = name;
}
// ######################## Loader für Top-Menue ###########
function LT(name) {	
	top.f_menue.location.href = name;
}

//#### Visibility Objekt nach ID ##########################
function Show(id1,x){
	if (x==1) wert="visible"
	else wert="hidden";
	window.document.getElementById(id1).style.visibility = wert;
}
function Show_m(id1,x){
	if (x==1) wert="visible"
	else wert="hidden";
	top.f_menue.window.document.getElementById(id1).style.visibility = wert;
}

//#### lädt Pics ##########################################
function LoadPic(nr, obj) {
	window.document.images[nr].src = obj.src;
}
function LoadPic_m(nr, obj) {
	top.f_menue.window.document.images[1].src = "menue_top_hochzeit.gif";
	top.f_menue.window.document.images[2].src = "menue_top_geburtstag.gif";
	top.f_menue.window.document.images[3].src = "menue_top_trauerfeier.gif";
	top.f_menue.window.document.images[4].src = "menue_top_event.gif";
	top.f_menue.window.document.images[5].src = "menue_top_showprogramm.gif";
	top.f_menue.window.document.images[nr].src = obj.src;
}

//#### Objekte und Referenzen #############################
n=new Array(16);
//### Menü Images #########################################
n[0] = new Image();
n[0].src = "menue_top_hochzeit.gif";
n[1] = new Image();
n[1].src = "menue_top_hochzeit_hl.gif";

n[2] = new Image();
n[2].src = "menue_top_geburtstag.gif";
n[3] = new Image();
n[3].src = "menue_top_geburtstag_hl.gif";

n[4] = new Image();
n[4].src = "menue_top_trauerfeier.gif";
n[5] = new Image();
n[5].src = "menue_top_trauerfeier_hl.gif";

n[6] = new Image();
n[6].src = "menue_top_event.gif";
n[7] = new Image();
n[7].src = "menue_top_event_hl.gif";

n[8] = new Image();
n[8].src = "menue_top_showprogramm.gif";
n[9] = new Image();
n[9].src = "menue_top_showprogramm_hl.gif";

n[10] = new Image();
n[10].src = "menue_top_bg.gif";
n[11] = new Image();
n[11].src = "menue_top_bg_hochzeit.jpg";
n[12] = new Image();
n[12].src = "menue_top_bg_geburtstag.jpg";
n[13] = new Image();
n[13].src = "menue_top_bg_trauerfeier.jpg";
n[14] = new Image();
n[14].src = "menue_top_bg_event.jpg";
n[15] = new Image();
n[15].src = "menue_top_bg_showprogramm.jpg";
