function check_params()	// Inhalte in Frames laden
{
	var param = top.location.search.substring(1,top.location.search.length);
	switch (param) 
	{
	case "":	// deutsche Startseite laden
	case "de":
	case "de_welcome":
		window.frames['head_middle'].location.href = 'de_head_middle.html'; 
		window.frames['navi1'].location.href = 'de/menu.html'; 
		window.frames['menu_foot'].location.href = 'de/menu_foot.html'; 
		window.frames['cont1'].location.href = 'de/welcome.html'; 
		break;

	case "en":	// englische Startseite laden
	case "en_welcome":
		window.frames['head_middle'].location.href = 'en_head_middle.html'; 
		window.frames['navi1'].location.href = 'en/menu.html'; 
		window.frames['menu_foot'].location.href = 'en/menu_foot.html'; 
		window.frames['cont1'].location.href = 'en/welcome.html'; 
		break;

	case "de_members":	// deutsche Mitgliederseite laden
		window.frames['head_middle'].location.href = 'de_head_middle.html'; 
		window.frames['navi1'].location.href = 'de/menu.html'; 
		window.frames['menu_foot'].location.href = 'de/menu_foot.html'; 
		window.frames['cont1'].location.href = 'de/members.html'; 
		break;
		
	case "en_members":	// englische Mitgliederseite laden
		window.frames['head_middle'].location.href = 'en_head_middle.html'; 
		window.frames['navi1'].location.href = 'en/menu.html'; 
		window.frames['menu_foot'].location.href = 'en/menu_foot.html'; 
		window.frames['cont1'].location.href = 'en/members.html'; 
		break;
		
	case "de_inhalte":
		window.frames['head_middle'].location.href = 'de_head_middle.html'; 
		window.frames['navi1'].location.href = 'de/menu.html'; 
		window.frames['menu_foot'].location.href = 'de/menu_foot.html'; 
		window.frames['cont1'].location.href = 'de/inhalte.html'; 
		break;

//		case "de_inhalte_embedded_hw_sw":
//			window.frames['head_middle'].location.href = 'de_head_middle.html'; 
//			window.frames['navi1'].location.href = 'de/menu.html'; 
//			window.frames['menu_foot'].location.href = 'de/menu_foot.html'; 
//			window.frames['cont1'].location.href = 'de/inhalte/embedded_hw_sw/index.html'; 
//			break;
		
//		case "de_inhalte_system_integration":
//			window.frames['head_middle'].location.href = 'de_head_middle.html'; 
//			window.frames['navi1'].location.href = 'de/menu.html'; 
//			window.frames['menu_foot'].location.href = 'de/menu_foot.html'; 
//			window.frames['cont1'].location.href = 'de/inhalte/system_integration/index.html'; 
//			break;

//		case "de_inhalte_human_machine_interaction":
//			window.frames['head_middle'].location.href = 'de_head_middle.html'; 
//			window.frames['navi1'].location.href = 'de/menu.html'; 
//			window.frames['menu_foot'].location.href = 'de/menu_foot.html'; 
//			window.frames['cont1'].location.href = 'de/inhalte/human_machine_interaction/index.html'; 
//			break;
		
		case "de_inhalte_assisted_training":
			window.frames['head_middle'].location.href = 'de_head_middle.html'; 
			window.frames['navi1'].location.href = 'de/menu.html'; 
			window.frames['menu_foot'].location.href = 'de/menu_foot.html'; 
			window.frames['cont1'].location.href = 'de/inhalte/assisted_training/index.html'; 
			break;

//		case "de_inhalte_assisted_living":
//			window.frames['head_middle'].location.href = 'de_head_middle.html'; 
//			window.frames['navi1'].location.href = 'de/menu.html'; 
//			window.frames['menu_foot'].location.href = 'de/menu_foot.html'; 
//			window.frames['cont1'].location.href = 'de/inhalte/assisted_living/index.html'; 
//			break;
		
		case "de_inhalte_assisted_working":
			window.frames['head_middle'].location.href = 'de_head_middle.html'; 
			window.frames['navi1'].location.href = 'de/menu.html'; 
			window.frames['menu_foot'].location.href = 'de/menu_foot.html'; 
			window.frames['cont1'].location.href = 'de/inhalte/assisted_working/index.html'; 
			break;

			case "de_inhalte_assisted_working_paperless":
				window.frames['head_middle'].location.href = 'de_head_middle.html'; 
				window.frames['navi1'].location.href = 'de/menu.html'; 
				window.frames['menu_foot'].location.href = 'de/menu_foot.html'; 
				window.frames['cont1'].location.href = 'de/inhalte/assisted_working/paperless/index.html'; 
				break;

			case "de_inhalte_assisted_working_human_centered_manuf":
				window.frames['head_middle'].location.href = 'de_head_middle.html'; 
				window.frames['navi1'].location.href = 'de/menu.html'; 
				window.frames['menu_foot'].location.href = 'de/menu_foot.html'; 
				window.frames['cont1'].location.href = 'de/inhalte/assisted_working/human_centered_manuf/index.html'; 
				break;

	case "en_inhalte":
		window.frames['head_middle'].location.href = 'en_head_middle.html'; 
		window.frames['navi1'].location.href = 'en/menu.html'; 
		window.frames['menu_foot'].location.href = 'en/menu_foot.html'; 
		window.frames['cont1'].location.href = 'en/inhalte.html'; 
		break;

		case "en_inhalte_embedded_hw_sw":
			window.frames['head_middle'].location.href = 'en_head_middle.html'; 
			window.frames['navi1'].location.href = 'en/menu.html'; 
			window.frames['menu_foot'].location.href = 'en/menu_foot.html'; 
			window.frames['cont1'].location.href = 'en/inhalte/embedded_hw_sw/index.html'; 
			break;
		
		case "en_inhalte_system_integration":
			window.frames['head_middle'].location.href = 'en_head_middle.html'; 
			window.frames['navi1'].location.href = 'en/menu.html'; 
			window.frames['menu_foot'].location.href = 'en/menu_foot.html'; 
			window.frames['cont1'].location.href = 'en/inhalte/system_integration/index.html'; 
			break;

		case "en_inhalte_human_machine_interaction":
			window.frames['head_middle'].location.href = 'en_head_middle.html'; 
			window.frames['navi1'].location.href = 'en/menu.html'; 
			window.frames['menu_foot'].location.href = 'en/menu_foot.html'; 
			window.frames['cont1'].location.href = 'en/inhalte/human_machine_interaction/index.html'; 
			break;
		
		case "en_inhalte_assisted_training":
			window.frames['head_middle'].location.href = 'en_head_middle.html'; 
			window.frames['navi1'].location.href = 'en/menu.html'; 
			window.frames['menu_foot'].location.href = 'en/menu_foot.html'; 
			window.frames['cont1'].location.href = 'en/inhalte/assisted_training/index.html'; 
			break;

//		case "en_inhalte_assisted_living":
//			window.frames['head_middle'].location.href = 'en_head_middle.html'; 
//			window.frames['navi1'].location.href = 'en/menu.html'; 
//			window.frames['menu_foot'].location.href = 'en/menu_foot.html'; 
//			window.frames['cont1'].location.href = 'en/inhalte/assisted_living/index.html'; 
//			break;
		
		case "en_inhalte_assisted_working":
			window.frames['head_middle'].location.href = 'en_head_middle.html'; 
			window.frames['navi1'].location.href = 'en/menu.html'; 
			window.frames['menu_foot'].location.href = 'en/menu_foot.html'; 
			window.frames['cont1'].location.href = 'en/inhalte/assisted_working/index.html'; 
			break;

			case "en_inhalte_assisted_working_paperless":
				window.frames['head_middle'].location.href = 'en_head_middle.html'; 
				window.frames['navi1'].location.href = 'en/menu.html'; 
				window.frames['menu_foot'].location.href = 'en/menu_foot.html'; 
				window.frames['cont1'].location.href = 'en/inhalte/assisted_working/paperless/index.html'; 
				break;

			case "en_inhalte_assisted_working_human_centered_manuf":
				window.frames['head_middle'].location.href = 'en_head_middle.html'; 
				window.frames['navi1'].location.href = 'en/menu.html'; 
				window.frames['menu_foot'].location.href = 'en/menu_foot.html'; 
				window.frames['cont1'].location.href = 'en/inhalte/assisted_working/human_centered_manuf/index.html'; 
				break;

	case "de_veranstaltungen":
		window.frames['head_middle'].location.href = 'de_head_middle.html'; 
		window.frames['navi1'].location.href = 'de/menu.html'; 
		window.frames['menu_foot'].location.href = 'de/menu_foot.html'; 
		window.frames['cont1'].location.href = 'de/veranstaltungen.html'; 
		break;
		
  		case "de_veranstaltungen_e_home_tielert_20040902":
			window.frames['head_middle'].location.href = 'de_head_middle.html'; 
  			window.frames['navi1'].location.href = 'de/menu.html'; 
  			window.frames['menu_foot'].location.href = 'de/menu_foot.html'; 
  			window.frames['cont1'].location.href = 'de/veranstaltungen/e_home_tielert_20040902/index.html'; 
  			break;
  		
  		case "de_veranstaltungen_eroeffnung":
			window.frames['head_middle'].location.href = 'de_head_middle.html'; 
  			window.frames['navi1'].location.href = 'de/menu.html'; 
  			window.frames['menu_foot'].location.href = 'de/menu_foot.html'; 
  			window.frames['cont1'].location.href = 'de/veranstaltungen/eroeffnung/index.html'; 
  			break;
  		
  		case "de_veranstaltungen_koq_litz_20031216":
			window.frames['head_middle'].location.href = 'de_head_middle.html'; 
  			window.frames['navi1'].location.href = 'de/menu.html'; 
  			window.frames['menu_foot'].location.href = 'de/menu_foot.html'; 
  			window.frames['cont1'].location.href = 'de/veranstaltungen/koq_litz_20031216/index.html'; 
  			break;
  		
  		case "de_veranstaltungen_koq_troester_20040129":
			window.frames['head_middle'].location.href = 'de_head_middle.html'; 
  			window.frames['navi1'].location.href = 'de/menu.html'; 
  			window.frames['menu_foot'].location.href = 'de/menu_foot.html'; 
  			window.frames['cont1'].location.href = 'de/veranstaltungen/koq_troester_20040129/index.html'; 
  			break;
  		
  		case "de_veranstaltungen_potzberg_20050121":
			window.frames['head_middle'].location.href = 'de_head_middle.html'; 
  			window.frames['navi1'].location.href = 'de/menu.html'; 
  			window.frames['menu_foot'].location.href = 'de/menu_foot.html'; 
  			window.frames['cont1'].location.href = 'de/veranstaltungen/potzberg_20050121/index.html'; 
  			break;
  		
  		case "de_veranstaltungen_symp_ass_liv_20050629":
			window.frames['head_middle'].location.href = 'de_head_middle.html'; 
  			window.frames['navi1'].location.href = 'de/menu.html'; 
  			window.frames['menu_foot'].location.href = 'de/menu_foot.html'; 
  			window.frames['cont1'].location.href = 'de/veranstaltungen/symp_ass_liv_20050629/index.html'; 
  			break;
  		
  		case "de_veranstaltungen_vde_2004_20041018":
			window.frames['head_middle'].location.href = 'de_head_middle.html'; 
  			window.frames['navi1'].location.href = 'de/menu.html'; 
  			window.frames['menu_foot'].location.href = 'de/menu_foot.html'; 
  			window.frames['cont1'].location.href = 'de/veranstaltungen/vde_2004_20041018/index.html'; 
  			break;
		
	case "en_veranstaltungen":
		window.frames['head_middle'].location.href = 'en_head_middle.html'; 
		window.frames['navi1'].location.href = 'en/menu.html'; 
		window.frames['menu_foot'].location.href = 'en/menu_foot.html'; 
		window.frames['cont1'].location.href = 'en/veranstaltungen.html'; 
		break;
		
  		case "en_veranstaltungen_e_home_tielert_20040902":
			window.frames['head_middle'].location.href = 'en_head_middle.html'; 
  			window.frames['navi1'].location.href = 'en/menu.html'; 
  			window.frames['menu_foot'].location.href = 'en/menu_foot.html'; 
  			window.frames['cont1'].location.href = 'en/veranstaltungen/e_home_tielert_20040902/index.html'; 
  			break;
  		
  		case "en_veranstaltungen_eroeffnung":
			window.frames['head_middle'].location.href = 'en_head_middle.html'; 
  			window.frames['navi1'].location.href = 'en/menu.html'; 
  			window.frames['menu_foot'].location.href = 'en/menu_foot.html'; 
  			window.frames['cont1'].location.href = 'en/veranstaltungen/eroeffnung/index.html'; 
  			break;
  		
  		case "en_veranstaltungen_koq_litz_20031216":
			window.frames['head_middle'].location.href = 'en_head_middle.html'; 
  			window.frames['navi1'].location.href = 'en/menu.html'; 
  			window.frames['menu_foot'].location.href = 'en/menu_foot.html'; 
  			window.frames['cont1'].location.href = 'en/veranstaltungen/koq_litz_20031216/index.html'; 
  			break;
  		
  		case "en_veranstaltungen_koq_troester_20040129":
			window.frames['head_middle'].location.href = 'en_head_middle.html'; 
  			window.frames['navi1'].location.href = 'en/menu.html'; 
  			window.frames['menu_foot'].location.href = 'en/menu_foot.html'; 
  			window.frames['cont1'].location.href = 'en/veranstaltungen/koq_troester_20040129/index.html'; 
  			break;
  		
  		case "en_veranstaltungen_potzberg_20050121":
			window.frames['head_middle'].location.href = 'en_head_middle.html'; 
  			window.frames['navi1'].location.href = 'en/menu.html'; 
  			window.frames['menu_foot'].location.href = 'en/menu_foot.html'; 
  			window.frames['cont1'].location.href = 'en/veranstaltungen/potzberg_20050121/index.html'; 
  			break;
  		
  		case "en_veranstaltungen_symp_ass_liv_20050629":
			window.frames['head_middle'].location.href = 'en_head_middle.html'; 
  			window.frames['navi1'].location.href = 'en/menu.html'; 
  			window.frames['menu_foot'].location.href = 'en/menu_foot.html'; 
  			window.frames['cont1'].location.href = 'en/veranstaltungen/symp_ass_liv_20050629/index.html'; 
  			break;
  		
  		case "en_veranstaltungen_vde_2004_20041018":
			window.frames['head_middle'].location.href = 'en_head_middle.html'; 
  			window.frames['navi1'].location.href = 'en/menu.html'; 
  			window.frames['menu_foot'].location.href = 'en/menu_foot.html'; 
  			window.frames['cont1'].location.href = 'en/veranstaltungen/vde_2004_20041018/index.html'; 
  			break;
		
	case "de_stud_mitarbeit":
		window.frames['head_middle'].location.href = 'de_head_middle.html'; 
		window.frames['navi1'].location.href = 'de/menu.html'; 
		window.frames['menu_foot'].location.href = 'de/menu_foot.html'; 
		window.frames['cont1'].location.href = 'de/stud_mitarbeit.html'; 
		break;

		case "de_stud_mitarbeit_wireless":
			window.frames['head_middle'].location.href = 'de_head_middle.html'; 
			window.frames['navi1'].location.href = 'de/menu.html'; 
			window.frames['menu_foot'].location.href = 'de/menu_foot.html'; 
			window.frames['cont1'].location.href = 'de/stud_mitarbeit/wireless/index.html'; 
			break;

		case "de_stud_mitarbeit_tcts":
			window.frames['head_middle'].location.href = 'de_head_middle.html'; 
			window.frames['navi1'].location.href = 'de/menu.html'; 
			window.frames['menu_foot'].location.href = 'de/menu_foot.html'; 
			window.frames['cont1'].location.href = 'de/stud_mitarbeit/tcts/index.html'; 
			break;
		
	case "en_stud_mitarbeit":
		window.frames['head_middle'].location.href = 'en_head_middle.html'; 
		window.frames['navi1'].location.href = 'en/menu.html'; 
		window.frames['menu_foot'].location.href = 'en/menu_foot.html'; 
		window.frames['cont1'].location.href = 'en/stud_mitarbeit.html'; 
		break;

		case "en_stud_mitarbeit_wireless":
			window.frames['head_middle'].location.href = 'en_head_middle.html'; 
			window.frames['navi1'].location.href = 'en/menu.html'; 
			window.frames['menu_foot'].location.href = 'en/menu_foot.html'; 
			window.frames['cont1'].location.href = 'en/stud_mitarbeit/wireless/index.html'; 
			break;

		case "en_stud_mitarbeit_tcts":
			window.frames['head_middle'].location.href = 'en_head_middle.html'; 
			window.frames['navi1'].location.href = 'en/menu.html'; 
			window.frames['menu_foot'].location.href = 'en/menu_foot.html'; 
			window.frames['cont1'].location.href = 'en/stud_mitarbeit/tcts/index.html'; 
			break;
		
	case "de_kontakte":
		window.frames['head_middle'].location.href = 'de_head_middle.html'; 
		window.frames['navi1'].location.href = 'de/menu.html'; 
		window.frames['menu_foot'].location.href = 'de/menu_foot.html'; 
		window.frames['cont1'].location.href = 'de/kontakte.html'; 
		break;
		
	case "en_kontakte":
		window.frames['head_middle'].location.href = 'en_head_middle.html'; 
		window.frames['navi1'].location.href = 'en/menu.html'; 
		window.frames['menu_foot'].location.href = 'en/menu_foot.html'; 
		window.frames['cont1'].location.href = 'en/kontakte.html'; 
		break;
		
	case "de_publika":
		window.frames['head_middle'].location.href = 'de_head_middle.html'; 
		window.frames['navi1'].location.href = 'de/menu.html'; 
		window.frames['menu_foot'].location.href = 'de/menu_foot.html'; 
		window.frames['cont1'].location.href = '_common/publika.html'; 
		break;
		
	case "en_publika":
		window.frames['head_middle'].location.href = 'en_head_middle.html'; 
		window.frames['navi1'].location.href = 'en/menu.html'; 
		window.frames['menu_foot'].location.href = 'en/menu_foot.html'; 
		window.frames['cont1'].location.href = '_common/publika.html'; 
		break;

	case "de_presse":
		window.frames['head_middle'].location.href = 'de_head_middle.html'; 
		window.frames['navi1'].location.href = 'de/menu.html'; 
		window.frames['menu_foot'].location.href = 'de/menu_foot.html'; 
		window.frames['cont1'].location.href = '_common/presse/presse.html'; 
		break;
		
	case "en_presse":
		window.frames['head_middle'].location.href = 'en_head_middle.html'; 
		window.frames['navi1'].location.href = 'en/menu.html'; 
		window.frames['menu_foot'].location.href = 'en/menu_foot.html'; 
		window.frames['cont1'].location.href = '_common/presse/presse.html'; 
		break;
		
	case "de_links":
		window.frames['head_middle'].location.href = 'de_head_middle.html'; 
		window.frames['navi1'].location.href = 'de/menu.html'; 
		window.frames['menu_foot'].location.href = 'de/menu_foot.html'; 
		window.frames['cont1'].location.href = 'de/links.html'; 
		break;
		
	case "en_links":
		window.frames['head_middle'].location.href = 'en_head_middle.html'; 
		window.frames['navi1'].location.href = 'en/menu.html'; 
		window.frames['menu_foot'].location.href = 'en/menu_foot.html'; 
		window.frames['cont1'].location.href = 'en/links.html'; 
		break;
		
	default:	// Fehlermeldung bei unkorrekter Parameteruebergabe	
		// document.write("<h2>Error 404</h2>");
		document.write("<h2>Fehler in Skript frame.js</h2>unbekannter Parameter: \"");
		document.write(param);
		document.write("\"<br>bitte senden Sie eine Mail an<br>");
		document.write("<a href=\"mailto:janz@eit.uni-kl.de?subject=Skriptfehler%20in%20AmI-Website%20:%20");
		document.write(param);
		document.write("\">janz@eit.uni-kl.de</a>");
		document.write("<h2>Skripterror in frame.js</h2>unknown parameter: \"");
		document.write(param);
		document.write("\"<br>please, send a mail to<br>");
		document.write("<a href=\"mailto:janz@eit.uni-kl.de?subject=Skriptfehler%20in%20AmI-Website%20:%20");
		document.write(param);
		document.write("\">janz@eit.uni-kl.de</a><br><br><br>");
		document.write("<form><input type=\"button\" value=\"Zur&uuml;ck / Back\" name=\"zurueck\" onClick=\"javascript:history.back()\"</form>");
	}
}
