//var title = new Array()
//title[1] = "About CCC";
//title[2] = "Technical Guidelines";
//title[3] = "Training for the Trade";
//title[4] = "Publicity Materials";
//title[5] = "FAQ";
//title[6] = "Useful Links";

//switch language version
function langSwitch(lang) {
	var goPath;
	var pagePath=document.location.pathname;

//	if(location.href.toString().search('ccc') != -1)
//		var translationServer='ht'+'tp://ccc.emsd.com/gb/';
//	else
		var translationServer='http://sc.info.gov.hk/gb/';

		if (lang=='tc') { //change to traditional chinese version
	//		goPath='/tc'+pagePath.substring(3,pagePath.length);
			goPath=pagePath.replace("en/", "tc/");
	}
		if (lang=='sc') { //change to simplified chinese version
//			goPath='/tc'+pagePath.substring(3,pagePath.length);
			goPath=pagePath.replace("en/", "sc/");
			goPath=translationServer+location.host+goPath;
		}
		
	//alert(goPath);
	document.location=goPath;
}

//function getTitle() {
//	var scriptBuffer='';
//	scriptBuffer+='<title>';
//	scriptBuffer+='New Cable Colour Code- '+title[selectedSection];
//	if(selectedSubSection!=0&&selectedSubSection!='') {
//		scriptBuffer+= ' - ' + subTitle[selectedSection][selectedSubSection]
//	}
//	scriptBuffer+='</title>';
//	return scriptBuffer;	
//}

//function getTopic() {
//	var retStr='';
//	retStr = title[selectedSection];
//	if(selectedSubSection!=0&&selectedSubSection!='') {
//		retStr+= ' - ' + subTitle[selectedSection][selectedSubSection];
//	}
//	return retStr;
//}

