function popup(target) {

window.open(target, "WynnMacau", "status = 0, height = 640, width = 1017, resizable = 0, scrollbars = 0" )

};

function chLang(target) {

var path = location.href;

if (target == "en") {

target = path.replace("/tc/", "/en/");
target = target.replace("/sc/", "/en/");

} else if (target == "tc") {

target = path.replace("/en/", "/tc/");
target = target.replace("/sc/", "/tc/");

} else if (target == "sc") {

target = path.replace("/en/", "/sc/");
target = target.replace("/tc/", "/sc/");

}

window.location=(target);

};