	function SwitchToDE() {
		hauptframeloc = parent.frames[2].location.href;
		len = hauptframeloc.length;
		langsuffix = hauptframeloc.substr(len-7,3);
		if(langsuffix == "_en") {
			dehauptframeloc = hauptframeloc.replace(/_en/, "_de");
			parent.frames[2].location.href = dehauptframeloc;
		} else if(langsuffix == "_nl") {
			dehauptframeloc = hauptframeloc.replace(/_nl/, "_de");
			parent.frames[2].location.href = dehauptframeloc;
		}
	}

	function SwitchToEN() {
		hauptframeloc = parent.frames[2].location.href;
		len = hauptframeloc.length;
		langsuffix = hauptframeloc.substr(len-7,3);
		if(langsuffix == "_de") {
			enhauptframeloc = hauptframeloc.replace(/_de/, "_en");
			parent.frames[2].location.href = enhauptframeloc;
		} else if(langsuffix == "_nl") {
			enhauptframeloc = hauptframeloc.replace(/_nl/, "_en");
			parent.frames[2].location.href = enhauptframeloc;
		}
	}

	function SwitchToNL() {
		hauptframeloc = parent.frames[2].location.href;
		len = hauptframeloc.length;
		langsuffix = hauptframeloc.substr(len-7,3);
		if(langsuffix == "_en") {
			nlhauptframeloc = hauptframeloc.replace(/_en/, "_nl");
			parent.frames[2].location.href = nlhauptframeloc;
		} else if(langsuffix == "_de") {
			nlhauptframeloc = hauptframeloc.replace(/_de/, "_nl");
			parent.frames[2].location.href = nlhauptframeloc;
		}
	}
	
	function SynchronizeLanguage() {
		menuframeloc = parent.frames[0].location.href;
		mlen = menuframeloc.length;
		menulangsuffix = menuframeloc.substr(mlen-7,3);
		hauptframeloc = parent.frames[2].location.href;
		hlen = hauptframeloc.length;
		hauptlangsuffix = hauptframeloc.substr(hlen-7,3);
		if(IsALanguageSuffix(hauptlangsuffix) && (menulangsuffix != hauptlangsuffix)) {
		  parent.frames[0].location.href = "htdocs\/3sprachig\/menu"+hauptlangsuffix+".htm";
		}
	}
	
	function IsALanguageSuffix(suffix) {
		if(suffix == "_de") {
			return true;
		} else if(suffix == "_en") {
			return true;
		} else if(suffix == "_nl") {
			return true;
		} else {
			return false;
		}
	}

	function BackToOverview() {
		menuframeloc = parent.frames[0].location.href;
		len = menuframeloc.length;
		langsuffix = menuframeloc.substr(len-7,3);
		if(langsuffix == "_de") {
			parent.frames[2].location.href = "..\/..\/3sprachig\/duebersicht_de.htm";
		} else if(langsuffix == "_en") {
			parent.frames[2].location.href = "..\/..\/3sprachig\/duebersicht_en.htm";
		} else if(langsuffix == "_nl") {
			parent.frames[2].location.href = "..\/..\/3sprachig\/duebersicht_nl.htm";
		}
	}

	function ShowCarillonneur(name, pictname) {
    Carillonneur = new Image();
    Carillonneur.src = pictname;
    WindowParams = "resizable=no,left=200,top=100,width=" + Carillonneur.width + ",height=" + Carillonneur.height;
    open(name, "smallwindow", WindowParams);
  }

  function ShowPictFixedSize(name, width, height) {
    WindowParams = "resizable=no,left=200,top=100,width=" + width + ",height=" + height;
    open(name, "smallwindow", WindowParams);
  }
	
	function ShowDocumentFixedSize(name, width, height) {
    WindowParams = "resizable=yes,scrollbars=yes,left=200,top=100,width=" + width + ",height=" + height;
    open(name, "smallwindow", WindowParams);
  }
	
	function CheckRequestWithoutFrames() {
	  if(parent == self) {
			file_to_load = self.location.href;
			window.location.href = "..\/..\/..\/index.htm";
			document.write("<html>\n");
			document.write("<head>\n");
			document.write("<title>Deutsche Glockenspielvereinigung e.V.</title>\n");
			document.write("<meta name=\"robots\" content=\"follow\">\n");
			document.write("<meta name=\"description\" content=\"Deutsche Glockenspielvereinigung, der zentrale Ansprechpartner zum Thema Carillon in Deutschland\">\n");
			document.write("<meta name=\"author\" content=\"Deutsche Glockenspielvereinigung\">\n");
			document.write("<meta name=\"keywords\" content=\"Carillon, Glockenspiel, Glockenmusik, Glockenspieler, Turmglockenspiel\">\n");
			document.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1252\">\n");
			document.write("<script src=\"scripts/helpfuncs.js\" type=\"text/javascript\"></script>\n");
			document.write("</head>\n");
			document.write("<frameset framespacing=\"0\" frameborder=\"no\" border=\"0\" cols=\"155,*\">\n");
			document.write("<frame src=\"../../3sprachig/menu_de.htm\" name=\"Menus\" scrolling=\"auto\" target=\"Hauptframe\">\n");
			document.write("<frameset rows=\"74,*\">\n");
			document.write("<frame name=\"Banner\" scrolling=\"no\" noresize src=\"../../banner.htm\">\n");
			document.write("<frame src=\"./muenchen.htm\" name=\"Hauptframe\" scrolling=\"auto\"\n"); //onload=\"javascript:SynchronizeLanguage()\">\n");
			document.write("</frameset>\n");
			document.write("</frameset>\n");
			document.write("</html>\n");
			window.location.reload();
		}
	}
