/* Initialisierung
	collapsible List und
	topnavigation preload 

>>>>	Veränderungen an Bilder-Anzahl etc in fli_flo_nav.js einbauen

BoCo 2006.08.08
Erweiterung für Accessability  title

*/

/*  MM = Hauptmenu Nr, MS = Submenü Nr  */
/*					*/
function init(MM,MS) 
{
/*  Browserfenstergrösse anpassen  - IE ist für diese Funktion immun reagiert nur bei load*/
//BoCo 2005-12-07
//	resize();
	
/*	Bilder fürs Menu rechts oben (sitemap etc.): function defined in flipflop.js */
/* parameter AKTIV , welche Seite von TOPNavigation ist aktiv */
	preloadImg();

/* 	Bilder preload für Collapsible List: function defined in fli_flo_nav.js */
	img_prep();
/*  collapsible List	*/
	var width = 195;
	var height = 33;
	var height_sub = 16;
/*	var bgColor = "#CCCCCC"; */
	var bgColor = "";

/* pfad der bilder  pdb */
	var pdb = "images/menu/";
	
	
/* 	damit wir  bei Click (Seitenaufruf) das richtige
	Submenü visible und der gewählte menüpunkt (e.g. Gastro) aktiv setzten
	müssen wir das startbild im Menü beim Aufruf richtig, dynamisch defninieren,
	eine Tabelle  soll alle menüunterpunkte mit entsprechenden initbild versehen
	am ende der initialiserung wir das entsprechen Menu visible und der Unterpunkt aktiv gesetzt.
	Die Infos bekommen wird über die init("parameter");
*/
/* Tabelle aller submenü punkte */
/* Konvention
	M_nm
	M = Menu_
	n = position im Hauptmenü
	m = position im Submenü
	M_01 = 1. Position im obersten Hauptmenü 
	M_32 = 2. Position im 4ten (!) Hauptpunkt
*/
/* Untermenü visble or hidden */
bool_00 = false;
bool_10 = false;
bool_20 = false;
bool_30 = false;
bool_40 = false;
bool_50 = false;
bool_60 = false;

/* Submenüs init bilder */ 
/* BoCo 2010.04 keine Bilder im Menu
 M_01_img = "m_01_f.gif"; fS_01 = false;
M_02_img = "m_02_f.gif"; fS_02 = false;
M_03_img = "m_03_f.gif"; fS_03 = false;
M_04_img = "m_04_f.gif"; fS_04 = false;
M_11_img = "m_11_f.gif"; fS_11 = false;
//M_12_img = "m_12_f.gif"; fS_12 = false; 
M_13_img = "m_13_f.gif"; fS_13 = false; 
M_14_img = "m_14_f.gif"; fS_14 = false; 
M_15_img = "m_15_f.gif"; fS_15 = false; 
M_16_img = "m_16_f.gif"; fS_16 = false; 
M_21_img = "m_21_f.gif"; fS_21 = false; 
M_22_img = "m_22_f.gif"; fS_22 = false;  
M_23_img = "m_23_f.gif"; fS_23 = false;  
M_24_img = "m_24_f.gif"; fS_24 = false;  
M_25_img = "m_25_f.gif"; fS_25 = false;  
M_31_img = "m_31_f.gif"; fS_31 = false;  
M_32_img = "m_32_f.gif"; fS_32 = false;  
M_33_img = "m_33_f.gif"; fS_33 = false;  
M_34_img = "m_34_f.gif"; fS_34 = false;  
//M_35_img = "m_35_f.gif"; fS_35 = false;  
M_36_img = "m_36_f.gif"; fS_36 = false;  
M_37_img = "m_37_f.gif"; fS_37 = false;  
M_41_img = "m_41_f.gif"; fS_41 = false;  
M_51_img = "m_51_f.gif"; fS_51 = false;  
M_61_img = "m_61_f.gif"; fS_61 = false;  
*/


if 	(MM == "00")
{
	bool_00 = true;
	if 	(MS == "01") 	{ M_01_img = "m_01_t.gif"; fS_01 = true;}
	else if	 (MS == "02") {M_02_img = "m_02_t.gif"; fS_02 = true;}
	else if	 (MS == "03") {M_03_img = "m_03_t.gif"; fS_03 = true;}
	else if	 (MS == "04") {M_04_img = "m_04_t.gif"; fS_04 = true;}
}
else
if 	(MM	== "10")
{
	bool_10 = true;
	if 	(MS == "11") 	{ M_11_img = "m_11_t.gif"; fS_11 = true; }
//	else if	 (MS == "12") 	{ M_12_img = "m_12_t.gif"; fS_12 = true; }
	else if	 (MS == "13") 	{ M_13_img = "m_13_t.gif"; fS_13 = true; }
	else if	 (MS == "14") 	{ M_14_img = "m_14_t.gif"; fS_14 = true; }
	else if	 (MS == "15") 	{ M_15_img = "m_15_t.gif"; fS_15 = true; }
	else if	 (MS == "16") 	{ M_16_img = "m_16_t.gif"; fS_16 = true; }
}
else
if 	(MM	== "20")
{
	bool_20 = true;
	if 	(MS == "21") 	{ M_21_img = "m_21_t.gif"; fS_21 = true; }
	else if	 (MS == "22") 	{ M_22_img = "m_22_t.gif"; fS_22 = true; }
	else if	 (MS == "23") 	{ M_23_img = "m_23_t.gif"; fS_23 = true; }
	else if	 (MS == "24") 	{ M_24_img = "m_24_t.gif"; fS_24 = true; }
	else if	 (MS == "25") 	{ M_25_img = "m_25_t.gif"; fS_25 = true; }
}
else
if 	(MM	== "30")
{
	bool_30 = true;
	if 	(MS == "31") 	{ M_31_img = "m_31_t.gif"; fS_31 = true;}
	else if	 (MS == "32") 	{ M_32_img = "m_32_t.gif"; fS_32 = true; }
	else if	 (MS == "33") 	{ M_33_img = "m_33_t.gif"; fS_33 = true; }
	else if	 (MS == "34") 	{ M_34_img = "m_34_t.gif"; fS_34 = true; }
//	else if	 (MS == "35") 	{ M_35_img = "m_35_t.gif"; fS_35 = true; }
	else if	 (MS == "36") 	{ M_36_img = "m_36_t.gif"; fS_36 = true; }
	else if	 (MS == "37") 	{ M_37_img = "m_37_t.gif"; fS_37 = true; }
}
else
if 	(MM	== "40")
{
	bool_40 = true;
	if 	(MS == "41") 	{ M_41_img = "m_41_t.gif"; fS_41 = true;}
}
else
if 	(MM	== "50")
{
	bool_50 = true;
	if 	(MS == "51")    { M_51_img = "m_51_t.gif"; fS_51 = true;}
}
else
if 	(MM	== "60")
{
	bool_60 = true;
	if 	(MS == "61")    { M_61_img = "m_61_t.gif"; fS_61 = true;}
}

/*  List: Top Level - Liste der Liste */
/*	var l = new List(true, width, height, "", "mt.gif", "true.gif" ); */
/*	neues Object "List"  */
	var l = new List(true, width, height);
	l.setFont("<font FACE='Myriad,Arial,Helvetica' SIZE=-1'><B>","<\/B><\/font>");

/* Container fuer die ganze Liste
	l.parentElement = document.layers.container;
*/

/* test ob boolsche auch als variable mitggeben werden kann */


/*	======================== */
/*	1. Untergruppe: PROFIL */
/*	======================== */
	var m = new List(bool_00, width, height_sub);
	m.addItem("<a class='submenu' id='M01' title=\"Leitbild\" href='leitbild.html'>Leitbild</a>");
	m.addItem("<a class='submenu' id='M02' title=\"Mitglieder/Vorstand\" href='mitglieder.html'>Mitglieder/Vorstand</a>");
	m.addItem("<a class='submenu' id='M03' title=\"Standorte\" href='standorte.html'>Standorte</a>");
	m.addItem("<a class='submenu' id='M04' title=\"Jahresbericht\" href='jahresbericht.html'>Jahresbericht</a>");
	m.addItem("<a class='submenu' id='M05' title=\"Drehscheibe\" href='A_37.html'>Drehscheibe</a>");
	l.addList(m, "");


/*	======================== */
/*	3. Untergruppe: FÖRDERUNG */
/*	======================== */
	var collapsedImageURL = "mt.gif";
	var expandedImageURL = "mt.gif";
	
	var d = new List(bool_20, width, height_sub);
	d.addItem("<a class='submenu' id='M21' title=\"Coaching - Ausbildungen\" href='coaching_aus.html'>Ausbildungen</a>");
	d.addItem("<a class='submenu' id='M22' title=\"Coaching - Berufliche Massnahmen\" href='coaching_bab.html'>Berufliche Massnahmen</a>");
	d.addItem("<a class='submenu' id='M23' title=\"Coaching - Gesch&uuml;tzte Arbeitspl&auml;tze\" href='coaching_gap.html'>Gesch&uuml;tzte Arbeitspl&auml;tze</a>");
	d.addItem("<a class='submenu' id='M24' title=\"Wohnen\" href='wohnen.html'>Wohnen</a>");
	l.addList(d, "");

/*	======================== */
/*	2. Untergruppe: DIENSTLEISTUNGEN */
/*	======================== */
	var o = new List(bool_10, width, height_sub);
	o.addItem("<a class='submenu' id='M11' title=\"Catering\" href='catering.html'>Catering</a>");
	o.addItem("<a class='submenu' id='M13' title=\"Logistics\" href='logistics.html'>Logistics</a>");
	o.addItem("<a class='submenu' id='M14' title=\"Detailhandel\" href='migros.html'>Detailhandel</a>");
	o.addItem("<a class='submenu' id='M15' title=\"Gasparini\" href='gasparini.html'>Gasparini</a>");
	o.addItem("<a class='submenu' id='M16' title=\"Hausdienst und Lingerie\" href='hausdienst.html'>Hauswirtschaft</a>");
	l.addList(o, "");

/*	======================== */
/*	4. Untergruppe: Ausbildung */
/*	======================== */
/*	var w = new List(bool_30, width, height_sub);
	w.addItem("<a class='submenu' id='M31' title=\"Lehrvorbereitung\" href='A_31.html'>Lehrvorbereitung</a>");
	w.addItem("<a class='submenu' id='M32' title=\"B&uuml;ro\" href='A_32.html'>B&uuml;ro</a>");
	w.addItem("<a class='submenu' id='M33' title=\"Hauswirtschaft\" href='A_33.html'>Hauswirtschaft</a>");
	w.addItem("<a class='submenu' id='M34' title=\"K&uuml;che\" href='A_34.html'>K&uuml;che</a>");
	w.addItem("<a class='submenu' id='M35' title=\"Verkauf\" href='A_36.html'>Verkauf</a>");
	l.addList(w, "");
*/	
	
/*	======================== */
/*	5. Untergruppe: LINKS */
/*	======================== */
	var t = new List(bool_40, width, height_sub);
	t.addItem("<a class='submenu' id='M41' title=\"Unsere Partner\" href='links.html'>Unsere Partner</a>");
	l.addList(t, "");

/*	======================== */
/*	6. Untergruppe: KONTAKTE */
/*	======================== */
	var q = new List(bool_50, width, height_sub);
	q.addItem("<a class='submenu' id='M51' title=\"Kontakt\" href='kontakt_mail_HS.html'>Kontakt</a>");
	l.addList(q, "");

/*	======================== */
/*	7. Untergruppe: Offene Stellen */
/*	======================== */
	var u = new List(bool_60, width, height_sub);
	u.addItem("<a class='submenu' id='M61' title=\"Offene Stellen\" href='os.html'>Offene Stellen</a>");
	l.addList(u, "");

/* 	*/
/*	neue Untergruppe mit neuer VARIABLE initialisieren var w = new ..... !!! */
/* 	*/

/* bleibt immer letzte Anweisung */
/*  konstruiere die Liste mit submenüs x, y Koordinaten!!!*/
	l.build(0, 95);
}
