var fail=function(a){throw Error(a);},throwable=function(a){if(a===fail)fail();else if(a instanceof Array&&a[0]===fail)fail(a[1]);else return a},match=function(a,b,c){for(var d=0;d<b.length;d++)if(a===b[d][0])return throwable(b[d][1]);return throwable(c)};
String.prototype.format=function(){for(var a=this.toString(),b=[],c=0;c<a.length;c++){var d=a.substr(c,1),e=a.substr(c+1,1);if(d==="{"&&e==="{"){b.push("{","");c++}else if(d==="}"&&e==="}"){b.push("}","");c++}else if(d==="{"&&e>="0"&&e<="9"&&a.substr(c+2,1)==="}"){b.push(arguments[parseInt(e,10)].toString(),"","");c+=2}else b.push(d)}return b.join("")};
String.prototype.encodeToXmlComponent=function(a){var b=this.toString().replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;");if(!(a===undefined||a==="value"))if(a==="attr_quot")b=b.replace(/"/g,"&quot;");else if(a==="attr_apos")b=b.replace(/'/g,"&apos;");else throw Error("Kind error.");return b};String.prototype.toBoolean=function(){var a=this.toString().toLowerCase();if(a==="true")return true;else if(a==="false")return false;else throw Error("Cannot convert.");};
Date.extParse=function(a){var b=new Date(a),c=b.getTime();if(isNaN(c)){a=/^(\d{4})(?:-(\d{2})(?:-(\d{2})(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{1,15}))?)?(Z|(?:\+|-)\d{2}:\d{2}))?)?)?$/.exec(a);if(a===null)throw Error("Cannot parse.");b=a[1];c=isUndefinedOrEmpty(a[2])?"01":a[2];var d=isUndefinedOrEmpty(a[3])?"01":a[3],e=isUndefinedOrEmpty(a[4])?"00":a[4],f=isUndefinedOrEmpty(a[5])?"00":a[5],g=isUndefinedOrEmpty(a[6])?"00":a[6],h=isUndefinedOrEmpty(a[8])?"":" "+(a[8]==="Z"?"GMT":a[8].substr(0,3)+a[8].substr(4,
2));b=Date.parse("{0}/{1}/{2} {3}:{4}:{5}{6}".format(b,c,d,e,f,g,h));if(isNaN(b))throw Error("Cannot parse.");a=isUndefinedOrEmpty(a[7])?0:Math.round(parseFloat("0."+a[7])*1E3);return new Date(b+a)}else return b};
var isUndefinedOrNull=function(a){return a===undefined||a===null},isUndefinedOrEmpty=function(a){return a===undefined||a===""},everythingToString=function(a){return a===undefined?"undefined":a===null?"null":a.toString()},getElementPositionInPage=function(a){var b=0,c=0;a=a;if(a===null)throw Error("Cannot get.");for(var d=0;d<64;d++){b+=a.offsetLeft;c+=a.offsetTop;a=a.offsetParent;if(a===null)return[b,c]}throw Error("Overflow.");},ZIZISITE={morpher:{}};
ZIZISITE.url={parse:function(a){a=a.match(/^([^?#]*)([^#]*)(.*)$/);return{beforeQuery:a[1],query:a[2],hash:a[3]}},appendQuery:function(a,b,c){a=this.parse(a);var d=a.query;b=b+"="+c;b=d===""||d==="?"?"?"+b:d.substr(d.length-1,1)==="&"?d+b:d+"&"+b;return a.beforeQuery+b+a.hash},getParameterByName:function(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");a=RegExp("[\\?&]"+a+"=([^&#]*)").exec(window.location.href);return a===null?null:decodeURIComponent(a[1].replace(/\+/g," "))},getUrlBeforeQuery:function(){var a=
window.location;return"{0}//{1}{2}".format(a.protocol,a.hostname,a.pathname)},goToHttpsIfHttp:function(){var a=window.location;if(a.protocol==="http:")a.href="https://"+HTTPS_HOSTNAME+a.pathname+a.search},getHostname:function(a){return a.match(/^(?:http|https):\/\/([^\/?# ]+)/i)[1].toString()}};ZIZISITE.getAntiCacheString=function(){return(new Date).getTime().toString()+"_"+Math.floor(Math.random()*1E9).toString()};
ZIZISITE.culture={initHeadCulture:function(){var a=this.getCurrentCulture();if(a==="en"||a==="zh-Hans"||a==="zh-Hant"||a==="ja"||a==="es"){var b=document.getElementById("headCulture");if(b!==null)b.value=a}},getCurrentCulture:function(){return ZIZISITE.cookie.getCookie("Culture")},getCultureShortName:function(a){if(a==="en")a="en";else if(a==="zh-Hans")a="cs";else if(a==="zh-Hant")a="ct";else if(a==="ja")a="jp";else if(a==="es")a="es";else throw Error("Invalid culture.");return a},updateCulture:function(){var a=
document.getElementById("headCulture").value;ZIZISITE.cookie.setCookie("Culture",a);var b=window.location.href;a=this.getCultureShortName(a);a=a==="en"?"":"?c="+a;b=b.replace(/#.*$/,"");b=b.indexOf("?",0)===-1?b+a:b.replace(/\?.*$/,a);window.location.href=b}};
ZIZISITE.cookie={setCookie:function(a,b,c,d,e,f){var g=new Date;document.cookie=a+"="+encodeURIComponent(b===null?"":b)+(";expires="+(new Date(g.getTime()+(c===undefined?31536E7:c))).toUTCString())+(";path="+(d===undefined?"/":d))+(e===undefined?"":";domain="+e)+(f===undefined||f===false?"":";secure")},getCookie:function(a){for(var b=document.cookie.split(";"),c="",d=0;d<b.length;d++){c=b[d].split("=");if(c[0].replace(/^\s+|\s+$/g,"")===a)return c.length<=1?"":decodeURIComponent(c[1].replace(/^\s+|\s+$/g,
""))}return null},deleteCookie:function(a,b,c){this.setCookie(a,null,-1,b,c)}};$(document).ready(function(){ZIZISITE.culture.initHeadCulture()});

