// JavaScript Document<!--var ret;var theLink;var name;var linkTo;//class='"menuNotActive"'var theClass = 'class="menuNotActive"';//'class="menuActive"';var theWindow = 'target="_blank"';//Link im html Dokument://javascript:parent.frames['scriptFrame'].setFrames('3','2','2')/*Diese Funktion wird nur für die Menus verwendet!Die Linkadressen werden wie folgt eingegeben: Nur die Inhalte in den Klammern müssen geändert werden. Also nur die jeweiligen Positionen zwischen den Kommas.('1','2','1','1') Die erste Position in der Klammer beschreibt die Navigationshirarchie. In welchem Unterordner befindet sich die neue Seite. Oder welches Level, beginnend mit 1 für erstes Level, 2 für zweites Level usw. Die zweite Position gibt die erste Menunummer an. Von oben nach unten. Also Produkte 1, Facts 2, Treffpunkt 3, Stoffladen 4, Mein Account 5.Die dritte Position gibt die zweite Menunummer an. Auch von oben nach unten.Die vierte Position gibt das Fenster an, in dem die neu Seite erscheinen soll.Die fünfte Position gibt die CSS Class an. Ist das Menu weiss oder rot.	*/	function setMenu(thePfad, mainMenu, subMenu, myWindow, myClass){	switch(Math.round(thePfad)){		case 1:		this.ret = '';		break;		case 2:		this.ret = '../';		break;		case 3:		this.ret = '../../';		break;		default:		this.ret = '';		break;	}	switch(Math.round(myClass)){		case 1:		this.theClass = 'class="menuNotActive"';		break;		case 2:		this.theClass = 'class="menuActive"';		break;		case 3:		this.theClass = 'class="text12schwarz"';		break;		case 4:		this.theClass = 'class="text12Weiss"';		break;		case 5:		this.theClass = 'class="text12Rot"';		break;	}	switch(Math.round(myWindow)){		case 1:		this.theWindow = 'target="_blank"';		break;		case 2:		this.theWindow = 'target="_parent"';		break;		case 3:		this.theWindow = 'target="_self"';		break;		case 4:		this.theWindow = 'target="_top"';		break;		default:		this.theWindow = 'target="_parent"';		//alert("Hallo");		break;	}	//document.write('<a href="home_1.html" class="menuActive">HOME</a>');	var linkTo = mainMenu+subMenu;	//alert("linkTo"+ linkTo);	switch(Math.round(linkTo)) {		case 11: //Menu "LEER"			this.theLink = ret + '';			this.name = "";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass + '>' + name + '</a>');			break;		case 12: //Menu "LEER"			this.theLink = ret + '';			this.name = "";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass +  '>' + name + '</a>');			break;		case 13: //Menu "LEER"			this.theLink = ret + '';			this.name = "";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;		case 14: //Menu "LEER"			this.theLink = ret + '';			this.name = "";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;		case 15: //Menu "LEER"			this.theLink = ret + '';			this.name = "";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;		case 16: //Menu "LEER"			this.theLink = ret + '';			this.name = "";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;/*--------------------------------------------------------------------------------------------------------*/		case 21: //Menu "LEER"			this.theLink = ret + '';			this.name = "";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;		case 22: //Menu "LEER"			this.theLink = ret + '';			this.name = "";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;		case 23: //Menu "LEER"			this.theLink = ret + '';			this.name = "";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;		case 24: //Menu "LEER"			this.theLink = ret + '';			this.name = "";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;		case 25: //Menu "LEER"			this.theLink = ret + '';			this.name = "";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;		case 26: //Menu "LEER"			this.theLink = ret + '';			this.name = "";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;/*--------------------------------------------------------------------------------------------------------*/		case 31: //Menu "HOME"			this.theLink = ret + 'frame.html';			this.name = "HOME";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass + '>' + name + '</a>');			break;		case 32: //Menu "HOME"			this.theLink = ret + '';			this.name = "";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass + '>' + name + '</a>');			break;		case 33: //Menu "HOME"			this.theLink = ret + '';			this.name = "";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass + '>' + name + '</a>');			break;		case 34: //Menu "HOME"			this.theLink = ret + '';			this.name = "";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass + '>' + name + '</a>');			break;		case 35: //Menu "HOME"			this.theLink = ret + '';			this.name = "";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass + '>' + name + '</a>');			break;		case 36: //Menu "HOME"			this.theLink = ret + '';			this.name = "";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass + '>' + name + '</a>');			break;/*--------------------------------------------------------------------------------------------------------*//*KONTAKT*/		case 41: //Menu "KONTAKT"			this.theLink = ret + 'who_1.html';			this.name = "KONTAKT";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass + '>' + name + '</a>');			break;		case 42: //Menu "WHO IS WHO"			this.theLink = ret + 'who_1.html';			this.name = "TEAM";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass + '>' + name + '</a>');			break;		case 43: //Menu "VERTRETER"			this.theLink = ret + 'ver_frame.html';			this.name = "VERTRETER";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass + '>' + name + '</a>');			break;		case 44: //Menu "TELEFONLISTE"			this.theLink = ret + 'tel_frame.html';			this.name = "TELEFONLISTE";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass + '>' + name + '</a>');			break;		case 45: //Menu "LAGEPLAN"			this.theLink = ret + 'lageplan_1.html';			this.name = "LAGEPLAN/ADRESSE";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass + '>' + name + '</a>');			break;/*--------------------------------------------------------------------------------------------------------*//*PRODUKTE*/		case 51: //Menu "PRODUKTE"			this.theLink = ret + 'bekleid_1.html';			this.name = "STOFFE";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;		case 52: //Menu "BEKLEIDUNG"			this.theLink = ret + 'bekleid_1.html';			this.name = "BEKLEIDUNG";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;		case 53: //Menu "KRAWATTE"			this.theLink = ret + 'krawatten_1.html';			this.name = "SEIDEN KRAWATTEN";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;		case 54: //Menu "DEKORATION"			this.theLink = ret + 'deko_1.html';			this.name = "DEKORATION";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;		case 55: //Menu "SPEZIALITÄTEN"			this.theLink = ret + 'spez_1.html';			this.name = "SPEZIALIT&Auml;TEN";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;/*--------------------------------------------------------------------------------------------------------*//* TREFFPUNKT*/		case 61: //Menu "TREFFPUNKT"			this.theLink = ret + 'messe_1.html';			this.name = "TREFFPUNKT";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;		case 62: //Menu "MESSEN"			this.theLink = ret + 'messe_1.html';			this.name = "MESSEN";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;		case 63: //Menu "JOBS"			this.theLink = ret + 'jobs_1.html';			this.name = "JOBS";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;		case 64: //Menu "ANLÄSSE"			this.theLink = ret + 'anlaesse_1.html';			this.name = "ANL&Auml;SSE";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;		case 65: //Menu "PRESSE"			this.theLink = ret + 'press_1.html';			this.name = "PRESSE";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;		case 66: //Menu "LINKS"			this.theLink = ret + 'links_1.html';			this.name = "LINKS";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;/*--------------------------------------------------------------------------------------------------------*//*FACTS*/		case 71: //Menu "FACTS"			this.theLink = ret + 'philo_1.html';			this.name = "FAKTEN ZUR FIRMA";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;		case 72: //Menu "FABRIK"			this.theLink = ret + 'fabrik_1.html';			this.name = "DIE FABRIK";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;		case 73: //Menu "KREATION"			this.theLink = ret + 'kreation_1.html';			this.name = "KREATION";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;		case 74: //Menu "GESCHICHTE"			this.theLink = ret + 'geschichte_1.html';			this.name = "GESCHICHTE";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;		case 75: //Menu "ZAHLEN"			this.theLink = ret + 'zahlen_1.html';			this.name = "ZAHLEN";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;		case 76: //Menu "PHILOSOPHIE"			this.theLink = ret + 'philo_1.html';			this.name = "PHILOSOPHIE";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;/*--------------------------------------------------------------------------------------------------------*//*VERTRETER*/		case 81: //Menu "VERTRETER"			this.theLink = ret + 'ver_frame.html';			this.name = "VERTRETER";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;/*--------------------------------------------------------------------------------------------------------*//*STOFFLADEN*/		case 91: //Menu "STOFFLADEN"			this.theLink = ret + 'stoffladen/home_1.html';			this.name = "LADENLOKALE";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;		case 92: //Menu "STOFFLADEN"			this.theLink = ret + 'stoffladen/stoffe_1.html';			this.name = "STOFFE";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;		case 93: //Menu "STOFFLADEN"			this.theLink = ret + 'stoffladen/kollektion_1.html';			this.name = "KOLLEKTION";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;		case 94: //Menu "SONDERANGEBOTE"			this.theLink = ret + 'stoffladen/angebote_1.html';			this.name = "SONDERANGEBOTE";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;		case 95: //Menu "ÖFFNUNGSZEITEN"			this.theLink = ret + 'stoffladen/zeiten_1.html';			this.name = "&Ouml;FFNUNGSZEITEN";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;		case 96: //Menu "LAGEPLAN"			this.theLink = ret + 'stoffladen/lageplan_1.html';			this.name = "KONTAKT/TEAM/LAGEPLAN";			document.write('<a href="' + theLink + '"' + theWindow  + theClass + '>' + name + '</a>');			break;/*--------------------------------------------------------------------------------------------------------*/		case 111: //Menu "LADENLOKALE"			this.theLink = ret + 'shop.html';			this.name = "LADENLOKALE";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass + '>' + name + '</a>');			break;		case 112: //Menu "HOME"			this.theLink = ret + '';			this.name = "";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass + '>' + name + '</a>');			break;		case 113: //Menu "HOME"			this.theLink = ret + '';			this.name = "";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass + '>' + name + '</a>');			break;		case 114: //Menu "HOME"			this.theLink = ret + '';			this.name = "";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass + '>' + name + '</a>');			break;		case 115: //Menu "HOME"			this.theLink = ret + '';			this.name = "";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass + '>' + name + '</a>');			break;		case 116: //Menu "HOME"			this.theLink = ret + '';			this.name = "";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass + '>' + name + '</a>');			break;/*--------------------------------------------------------------------------------------------------------*/		case 121: //Menu "WEB SHOPS"			this.theLink = ret + 'webshop.html';			this.name = "WEB-SHOPS";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass + '>' + name + '</a>');			break;		case 122: //Menu "WEBSHOPS"			this.theLink = ret + 'http://www.weisbrod.ch/krawatten/jsp/enter.jsp?langIdentifier=de';			this.name = "KRAWATTEN-SHOP";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass + '>' + name + '</a>');			break;		case 123: //Menu "HOME"			this.theLink = ret + 'http://www.weisbrod.ch/krawatten/jsp/enter.jsp?langIdentifier=de';			this.name = "ACCESSORY-SHOP";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass + '>' + name + '</a>');			break;		case 124: //Menu "HOME"			this.theLink = ret + '';			this.name = "";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass + '>' + name + '</a>');			break;		case 125: //Menu "HOME"			this.theLink = ret + '';			this.name = "";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass + '>' + name + '</a>');			break;		case 126: //Menu "HOME"			this.theLink = ret + '';			this.name = "";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass + '>' + name + '</a>');			break;/*--------------------------------------------------------------------------------------------------------*//*DEALER LOG IN*/		case 101: //Menu "DEALER LOG IN"			this.theLink = ret + 'http://qserve.dyndns.org/weisbrod/';			this.name = "DEALER LOG IN";			this.theWindow = theWindow;			document.write('<a href="' + theLink + '"' + theWindow  + theClass + theWindow +'>' + name + '</a>');			break;/*--------------------------------------------------------------------------------------------------------*/		case 131: //Menu "VERTRETER"			this.theLink = ret + 'ver_index_frame.html';			this.name = "VERTRETER";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass + '>' + name + '</a>');			break;		case 141: //Menu "TREFFPUNKT"			this.theLink = ret + 'messe_1.html';			this.name = "TREFFPUNKT";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass + '>' + name + '</a>');			break;		case 151: //Menu "NEWSLETTER"			this.theLink = ret + 'newsletter_index.html';			this.name = "NEWSLETTER";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass + '>' + name + '</a>');			break;		case 161: //Menu "PRESSE"			this.theLink = ret + 'press_1.html';			this.name = "PRESSE";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass + '>' + name + '</a>');			break;		case 171: //Menu "INDEX"			this.theLink = ret + 'http://www.weisbrod.ch';			this.name = "HOME";			document.write('<a href="' + theLink + '"' + theWindow  + theWindow  + theClass + '>' + name + '</a>');			break;/*------------------------------------------------------------------------------------------------------*/	}}