// LPS Scl Luzi Schucan added the SetLanguageCookie function in this script for AWK Group on 2008-12-09
function SetLanguageCookie(language) {
      var today = new Date();
      var expire = new Date();
      expire.setTime(today.getTime() + 100000000);
      document.cookie = "l="+escape(language)
                 + ";expires="+expire.toGMTString()+"; path=/";
}

function SwitchLangDE()
{
	SetLanguageCookie("en"); 
      Path1 = window.top.location.href;
	PathArray = new Array;
	PathArray = Path1.split("/deutsch/");
	Path2 = PathArray.join("/english/");
	window.top.location.href = Path2
}

function SwitchLangDF()
{
	SetLanguageCookie("fr"); 
	Path1 = window.top.location.href;
	PathArray = new Array;
	PathArray = Path1.split("/deutsch/");
	Path2 = PathArray.join("/francais/");
	window.top.location.href = Path2
}

function SwitchLangFD()
{
	SetLanguageCookie("de"); 
	Path1 = window.top.location.href;
	PathArray = new Array;
	PathArray = Path1.split("/francais/");
	Path2 = PathArray.join("/deutsch/");
	window.top.location.href = Path2
}


function SwitchLangFE()
{
	SetLanguageCookie("en"); 
	Path1 = window.top.location.href;
	PathArray = new Array;
	PathArray = Path1.split("/francais/");
	Path2 = PathArray.join("/english/");
	window.top.location.href = Path2
}

function SwitchLangED()
{
	SetLanguageCookie("de"); 
	Path1 = window.top.location.href;
	PathArray = new Array;
	PathArray = Path1.split("/english/");
	Path2 = PathArray.join("/deutsch/");
	window.top.location.href = Path2
}

function SwitchLangEF()
{
	SetLanguageCookie("fr"); 
	Path1 = window.top.location.href;
	PathArray = new Array;
	PathArray = Path1.split("/english/");
	Path2 = PathArray.join("/francais/");
	window.top.location.href = Path2
}

