div_path = "/";

cv_nonsc_base_path = "http:" + "//" + "www.riccimac.org";

function language(lang) {

	big5_path = "big5";
	eng_path = "eng";
	gb_path = "gb";

	org_path=window.location.pathname;
	org_path_start=org_path.indexOf(div_path);
	org_path_end=org_path.length;
	org_path=org_path.substring(org_path_start, org_path_end);

	if (org_path.indexOf(big5_path) != -1) {
		org_lang_path = big5_path;
	} else if (org_path.indexOf(eng_path) != -1) {
		org_lang_path = eng_path;
	} else {org_lang_path = gb_path;
	}

	if (lang == 'eng') {
		des_lang_path = eng_path;
	} else if (lang == 'big5') {
		des_lang_path = big5_path;
	} else {
		des_lang_path = gb_path;
	}

    base_path = cv_nonsc_base_path;
	tail = org_path.replace(org_lang_path, des_lang_path);
	
//	alert(base_path + tail);
 
	window.location.href = base_path + tail;
}
function show (targetId) {
	if (document.getElementById) {
	target = document.getElementById (targetId);
	if (target.style.display == "none") {
	target.style.display = ""; }
		else { target.style.display= "none";} }}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
 