function _hbxStrip(a){
a = a.split("|").join("");a = a.split("&").join("-");a = a.split("'").join("");a = a.split("#").join("");
a = a.split("$").join("");a = a.split("%").join("");a = a.split("^").join("");a = a.split("*").join("");
a = a.split(":").join("");a = a.split("!").join("");a = a.split("<").join("");a = a.split(">").join("");
a = a.split("~").join("");a = a.split(";").join("");a = a.split(",").join("");
return a;
}

_hud="undefined";
_ec=0;
function __A(a){return unescape(a)}
function _II(a,b,c){return a.indexOf(b,c?c:0)}
function _IL(a){return a!=_hud?a.length:0}
function _IS(a,b,c){return b>_IL(a)?"":a.substring(b,c!=null?c:_IL(a))}
function _LVP(a,b,c,d,e){c=_II(a,"&"+b+"=");c=c<0?_II(a,"?"+b+"="):c;if(c>-1){d=_II(a,'&',c+_IL(b)+2);e=_IS(a,c+_IL(b)+2,d>-1?d:_IL(a));
if(!_ec){if(!(_II(e,"//")==0))return e}else return e}return ""}
function _RPV(a){return(__A(_LVP(document.URL,a)))}


function _hbOnInit(){
	var a=_VN(hbx.mlc);
	if(a.indexOf('/')!=0)a='/'+a;
        var mlc_language="/English";

	if (_II(hbx.pu,"citigold.citibank.com.hk")>0 || _II(hbx.pu,"citigold.com.hk")>0){
		hbx.mlc="/APAC/Hong+Kong/Citigold"+mlc_language+a;
	}else{
		hbx.mlc="/APAC/Hong+Kong/Citibank"+mlc_language+a;
	}
}

var _hbEC=0,_hbE=new Array;function _hbEvent(a,b){b=_hbE[_hbEC++]=new Object();b._N=a;b._C=0;return b;}
var hbx=_hbEvent("pv");hbx.vpc="HBX0100u";hbx.gn="vendorweb.citibank.com";

hbx.acct="DM57061446AB;DM5506081BNE;DM550608CPRR";
hbx.pndef='file';
hbx.lt="auto";
hbx.pu=document.URL;
hbx.dlf="!.do";

if(_II(hbx.pu,'tabId=')>0 || _II(hbx.pu,'path=')>0){
	hbx.mlc=_RPV("tabId");
	hbx.pn=_RPV("path");
	if(hbx.pn==""){
		hbx.pn=hbx.mlc;
		hbx.mlc="";
	}
}else if(_II(hbx.pu,'sourcecode=')>0){
	hbx.mlc="/Application Form";
	hbx.pn=_RPV("sourcecode");

}else if(_II(hbx.pu,'source_code=')>0){
	hbx.mlc="/Application Form";
	hbx.pn=_RPV("source_code");

}else if(_II(hbx.pu,"ICARD")>0){
	hbx.mlc="/ICARD+Application+Form";
	if ((typeof sourceCode!="undefined") && (typeof productCode!="undefined") && (typeof giftCode!="undefined")){
		hbx.pn=sourceCode+"-"+productCode+"-"+giftCode;
		if(_II(hbx.pu,"forward=")>0){
			hbx.pn=hbx.pn+"-"+_RPV("forward");
		}
	}

} else if(_II(hbx.pu,'https://www.citibank.com.hk/HKGCB/apfa/hkgcb/cbwmcrf/Index.do')==0){
    hbx.pn="Citigold Account Opening Enquiry Form";
    hbx.mlc="/Citigold";

} else if(_II(hbx.pu,'https://www.citibank.com.hk/HKGCB/apfa/hkgcb/citicrf/Index.do')==0){
    hbx.pn="Citibanking Account Opening Enquiry Form";
    hbx.mlc="/Citibanking";

} else if(_II(hbx.pu,'https://www.citibank.com.hk/HKGCB/apfa/hkgcb/ipbcrf/Index.do')==0){
    hbx.pn="IPB Account Opening Enquiry Form";
    hbx.mlc="/IPB";
 
} else if(_II(hbx.pu,'https://www.citibank.com.hk/HKGCB/apfa/hkgcb/genenq/Index.do')==0){
    hbx.pn="General Enquiry";
    hbx.mlc="/Enquiry";
 
} else if(_II(hbx.pu,'https://www.citibank.com.hk/HKGCB/apfa/hkgcb/broreq/Index.do')==0){
    hbx.pn="Brochure Request";
    hbx.mlc="/Enquiry";
 
} else if(_II(hbx.pu,'https://www.citibank.com.hk/HKGCB/apfa/hkgcb/sugcom/Index.do')==0){
    hbx.pn="Suggestions/Comments";
    hbx.mlc="/Enquiry";

}else{
	hbx.mlc="/not+categorized";
	hbx.pn=_hbxStrip(location.pathname+location.search);
	if (hbx.pn=='/' || hbx.pn=="") { 
		hbx.mlc="/Home"; 
		hbx.pn="Home"; 
	} 

}