var ssg = ssg || {}; ssg.global = ssg.global || {}; ssg.global.jsPath = "/js"; ssg.global.cssPath = "/css"; ssg.global.imgPath = "/img"; ssg.global.toolsPath = "/tools"; ssg.global.zone = "prod"; window.orgAlert = window.alert; window.orgConfirm = window.confirm; window.orgPrompt = window.prompt; function getDrmProxyUrl(url) { if (url.indexOf("/") != 0) { alert("invalide path url"); return; } if (ssg.global.zone != "local") { return "/proxy" + url; } return url; }