/*
 * browser_lang.js
 */

// Pop up window //
function MM_openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
	if(window.screen)if(isCenter)if(isCenter=="true") {
		var myLeft = (screen.width-myWidth)/2;
		var myTop = (screen.height-myHeight)/2;
		features+=(features!='')?',':'';
		features+=',left='+myLeft+',top='+myTop;
	}
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight+',resizable=1');
}

// Jump Menu //
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

// Switch Language //
var domain = "http://" + document.domain + "/";
var thisurl;
thisurl = document.URL.substring(domain.length + 2);

function langSwitch(language)
{
  if (language == "ch") document.location.href = domain + "ch" + thisurl;
  else if (language == "en") document.location.href = domain + "en" + thisurl;
  else if (language == "sc") document.location.href = domain + "sc" + thisurl;
    else if (language == "ct") document.location.href = domain + "ct" + thisurl;
     else if (language == "et") document.location.href = domain + "et" + thisurl;
	 else if (language == "st") document.location.href = domain + "st" + thisurl;
}

// End of browser_lang.js


