﻿document.write('<meta http-equiv="expires" content="0"><meta http-equiv="cache-control" content="no-cache"><meta http-equiv="pragma" content="no-cache, no-store, must-revalidate">');if(location.href.toString().search('www0.hab.gov.hk/wkcd/ifp/') != -1){	div_path = 'www0.hab.gov.hk/wkcd/ifp/';}else if (location.href.toString().search('www.hab.gov.hk/wkcd/ifp/') != -1){	div_path = 'www.hab.gov.hk/wkcd/ifp/';}else {	div_path = '';}cv_sc_base_path = "http:" + "//" + "sc.info.gov.hk/gb/" + div_path;cv_nonsc_base_path = "";path = cv_sc_base_path + div_path;tc_path = cv_nonsc_base_path + div_path;front_path = cv_nonsc_base_path + div_path;if (location.href.toString().search('/sc/') != -1 && location.href.toString().search('/text/') == -1 ) {	atgb = "sc_chi";} else if (location.href.toString().search('/chi/') != -1 && location.href.toString().search('/text/') == -1) {	atgb = "chi";}else if (location.href.toString().search('/sc/') != -1 && location.href.toString().search('/text/') != -1 && location.href.toString().search('/eng/') == -1) {	atgb = "sc_textchi";}else if (location.href.toString().search('/chi/') != -1 && location.href.toString().search('/text/') != -1 && location.href.toString().search('/eng/') == -1) {	atgb = "textchi";}else if (location.href.toString().search('/eng/') != -1 && location.href.toString().search('/text/') != -1) {	atgb = "texteng";}function changeVer(lang) {	chi_path = "chi";	eng_path = "eng";	schi_path = "sc";	org_path=window.location.href;	/*org_path_start=org_path.indexOf(div_path) + div_path.length ;	org_path_end=org_path.length;	org_path=org_path.substring(org_path_start, org_path_end);*/	base_path = cv_nonsc_base_path;	if (org_path.indexOf(chi_path) != -1) {		org_lang_path = chi_path;	} 		else if (org_path.indexOf(schi_path) != -1){		org_lang_path = schi_path;	}		else {		org_lang_path = eng_path;	}	if (lang == 'e') {		des_lang_path = eng_path;			} 	else if (lang == 'e_text') {		des_lang_path = "text/" + eng_path  ;			}		else if (lang == 'e_Gra') {		org_lang_path = "text/" + eng_path;		des_lang_path =  eng_path;			}			else if (lang == 's') {		des_lang_path = schi_path;	}			else if (lang == 's_text') {		des_lang_path = "text/" + schi_path  ;			}		else if (lang == 's_Gra') {		org_lang_path = "text/" + schi_path;		des_lang_path =  schi_path  ;					}		else if (lang == 'c') {		des_lang_path =  chi_path  ;			}	else if (lang == 'c_text') {		des_lang_path = "text/" + chi_path  ;			}	else if (lang == 'c_Gra') {		org_lang_path = "text/" + chi_path;		des_lang_path = chi_path;			}				tail = org_path.replace(org_lang_path, des_lang_path);		window.location.href = base_path + tail;}function MM_openBrWindow(theURL,winName,features) { //v2.0  window.open(theURL,winName,features);}