text: 
  Array.prototype.last=function(){return this[this.length-1]}(function(){if(Element&&!Element.prototype.matches){var a=Element.prototype;a.matches=a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}}());if(typeof Object.assign!="function"){Object.assign=function(d,f){if(d==null){throw new TypeError("Cannot convert undefined or null to object")}var e=Object(d);for(var c=1;c<arguments.length;c++){var b=arguments[c];if(b!=null){for(var a in b){if(Object.prototype.hasOwnProperty.call(b,a)){e[a]=b[a]}}}}return e}}if(!Date.now){Date.now=function(){return new Date().getTime()}}(function(){var d=["webkit","moz"];for(var b=0;b<d.length&&!window.requestAnimationFrame;++b){var a=d[b];window.requestAnimationFrame=window[a+"RequestAnimationFrame"];window.cancelAnimationFrame=(window[a+"CancelAnimationFrame"]||window[a+"CancelRequestAnimationFrame"])}if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){var c=0;window.requestAnimationFrame=function(g){var f=Date.now();var e=Math.max(c+16,f);return setTimeout(function(){g(c=e)},e-f)};window.cancelAnimationFrame=clearTimeout}}());if(!Array.prototype.find){Object.defineProperty(Array.prototype,"find",{value:function(b){if(this==null){throw new TypeError('"this" is null or not defined')}var f=Object(this);var a=f.length>>>0;if(typeof b!=="function"){throw new TypeError("predicate must be a function")}var c=arguments[1];var d=0;while(d<a){var e=f[d];if(b.call(c,e,d,f)){return e}d++}return undefined}})}var com=com||{};$msRoot=com.mseifert=function(){var c="com";var b="mseifert";function e(k){var j=k.split("."),g=this;if(j.length>=2&&j[0]==c&&j[1]==b){j=j.slice(2)}for(var f=0,h=j.length;f<h;f++){g[j[f]]=g[j[f]]||{};g=g[j[f]]}return g}function a(h,g){if(typeof g=="undefined"){var f;if(typeof $msRoot!=="undefined"){f=$msRoot}}else{f=$msRoot[g]}if(f){for(var i in f){if(f.hasOwnProperty(i)){h[i]=f[i]}}}}var d={createNS:e,getChildClasses:a};a(d);return d}();$ms=$msRoot.common=function(){var an=function(v){return document.getElementById(v)};function ai(aO){var v;try{aO=typeof aO!=="undefined"?aO:"";var aM=document.getElementsByTagName("div");for(v=0;v<aM.length;v++){if(aM[v].id.substr(0,2)=="s-"){if(aO!==""){o(aM[v].id,aO)}else{if(p(aM[v].id)!=="show"&&aM[v].getAttribute("data-show")!=="show"){if(aM[v].id.substr(0,7)!=="s-show-"){o(aM[v].id,"hide")}}}}}}catch(aN){alert("closeAllDivs()"+aN.message)}}function i(aM,v){var aN=an(aM);if(!aN){return}if(v=="imgmore"){aN.innerHTML="\u25ba"}else{aN.innerHTML="\u25bc"}}function o(aP,aO,v){if(typeof v=="undefined"){v=false}try{aO=typeof aO!=="undefined"?aO:"";var aM=an(aP);if(aM){if((aM.style.display=="none"||aK(aM,"display-none")||aO=="show")&&aO!=="hide"){if(aK(aM,"display-none")||aK(aM,"display-none-off")){aC(aM,"display-none");aA(aM,"display-none-off")}else{an(aP).style.display="block"}i(("img"+aP),"imgless");if(!v){al(aP,"show",15)}}else{if(aK(aM,"display-none-off")||aK(aM,"display-none")){aC(aM,"display-none-off");aA(aM,"display-none")}else{an(aP).style.display="none"}i(("img"+aP),"imgmore");if(!v){at(aP)}}}}catch(aN){if(aN.message.indexOf("images")==-1){}else{}}}function ap(v){if(v>=0){document.body.style.visibility="hidden";window.scrollTo(0,v);document.body.style.visibility="visible"}}function aD(v){var aM=v.href.indexOf("#");if(aM>0){v.href=v.href.substring(0,aM)}v.href+="&scroll="+document.documentElement.scrollTop}function au(aM){var v=an(aM);var aN=v.action.indexOf("#");if(aN>0){v.action=v.action.substring(0,aN)}v.action+="&scroll="+document.documentElement.scrollTop}function I(aN){if(typeof aN=="undefined"){aN={}}if(typeof aN.inputLinkId=="undefined"){aN.inputLinkId="downloadlink"}if(typeof aN.divId=="undefined"){aN.divId="datadiv"}if(typeof aN.cookieKey=="undefined"){aN.cookieKey="gemdownload"}if(typeof aN.iframeId=="undefined"){aN.iframeId="iframe"}if(an(aN.inputLinkId)){var aO=an(aN.divId);var aM=av(an(aN.inputLinkId).value);var v=document.createElement("iframe");v.src=aM;v.id=aN.iframeId;v.height=0;v.width=0;v.hidden=true;aO.appendChild(v);al(aN.cookieKey,"true",-1)}}function al(aM,aO,aN){aN=typeof aN!=="undefined"?aN:60;var v=new Date();if(aN<0){expires="Thu, 01 Jan 1970 00:00:01 GMT"}else{v.setTime(v.getTime()+(aN*60*1000));expires=v.toUTCString()}var aO=escape(aO)+"; expires="+expires;document.cookie=aM+"="+aO+";domain="+$ms.DOMAIN+";path=/"}function p(aM){var aN=document.cookie;var aO=aN.indexOf(" "+aM+"=");if(aO==-1){aO=aN.indexOf(aM+"=")}if(aO==-1){aN=null}else{aO=aN.indexOf("=",aO)+1;var v=aN.indexOf(";",aO);if(v==-1){v=aN.length}aN=unescape(aN.substring(aO,v))}return aN}function at(v){al(v,null,-1)}function D(){var aO="",v=false;for(var aP=0;aP<arguments.length;aP++){if((arguments[aP]=="alert"||arguments[aP]=="a")&&aP==(arguments.length-1)){v=true}else{if(typeof arguments[aP]=="object"){for(var aN in arguments[aP]){if(!arguments[aP].hasOwnProperty(aN)){continue}if(typeof arguments[aP][aN]=="object"){for(var aM in arguments[aP][aN]){aO+=aN+"=> "+aM+": "+arguments[aP][aN][aM]+"\n"}}else{aO+=aN+": "+arguments[aP][aN]+"\n"}}}else{aO+=arguments[aP]+"\n"}}}if(v){alert(aO)}else{console.log(aO)}return aO}function az(aU,aO,v){v=v||"get";var aM=document.createElement("form");aM.method=v;aM.action=aU;if(v=="get"){if(Object.prototype.toString.call(aO)!=="[object Object]"){aO={}}var aQ=aU.split("?");if(aQ.length>1){var aS=aQ[1].split("&");for(var aP=0;aP<aS.length;aP++){var aR=aS[aP].split("=");if(aR.length==2){aO[aR[0]]=aR[1]}}}}for(var aT in aO){if(aO.hasOwnProperty(aT)){var aN=document.createElement("input");aN.setAttribute("type","hidden");aN.setAttribute("name",aT);aN.setAttribute("value",aO[aT]);aM.appendChild(aN)}}document.body.appendChild(aM);aM.submit()}function j(aX,aP,v,aM){if(typeof aM=="undefined"){aM=document.body}else{if(typeof aM=="string"){aM=an(aM)}}v=v||"get";var aN=document.createElement("form");aN.method=v;aN.action=aX;aN.id="post-form";if(v=="get"){if(Object.prototype.toString.call(aP)!=="[object Object]"){aP={}}var aS=aX.split("?");if(aS.length>1){var aU=aS[1].split("&");for(var aR=0;aR<aU.length;aR++){var aT=aU[aR].split("=");if(aT.length==2){aP[aT[0]]=aT[1]}}}}for(var aW in aP){var aV;if(aP.hasOwnProperty(aW)){var aO=document.createElement("input");aO.setAttribute("type","hidden");aO.setAttribute("name",aW);if(typeof aP[aW]=="object"){aV=JSON.stringify(aP[aW])}else{aV=aP[aW]}aO.setAttribute("value",aV);aN.appendChild(aO)}}var aQ=document.createElement("iframe");aQ.id="post-iframe";aQ.name="post-iframe";aQ.height=1000;aQ.width=1000;aQ.hidden=true;aN.target="post-iframe";aM.appendChild(aN);aM.appendChild(aQ);aN.submit()}function x(aN,aS,aR,aM){var aP=0,aO=0,aQ=false;if(typeof aS==="undefined"||aS===null){aS=2}aN=aN.toString();if(aM!==false){aN=aN.replace(/&/g,"&amp;")}aN=aN.replace(/</g,"&lt;").replace(/>/g,"&gt;");var v={ENT_NOQUOTES:0,ENT_HTML_QUOTE_SINGLE:1,ENT_HTML_QUOTE_DOUBLE:2,ENT_COMPAT:2,ENT_QUOTES:3,ENT_IGNORE:4};if(aS===0){aQ=true}if(typeof aS!=="number"){aS=[].concat(aS);for(aO=0;aO<aS.length;aO++){if(v[aS[aO]]===0){aQ=true}else{if(v[aS[aO]]){aP=aP|v[aS[aO]]}}}aS=aP}if(aS&v.ENT_HTML_QUOTE_SINGLE){aN=aN.replace(/'/g,"&#039;")}if(!aQ){aN=aN.replace(/"/g,"&quot;")}return aN}function O(aM,aQ){var aO=0,aN=0,aP=false;if(typeof aQ==="undefined"){aQ=2}aM=aM.toString().replace(/&lt;/g,"<").replace(/&gt;/g,">");var v={ENT_NOQUOTES:0,ENT_HTML_QUOTE_SINGLE:1,ENT_HTML_QUOTE_DOUBLE:2,ENT_COMPAT:2,ENT_QUOTES:3,ENT_IGNORE:4};if(aQ===0){aP=true}if(typeof aQ!=="number"){aQ=[].concat(aQ);for(aN=0;aN<aQ.length;aN++){if(v[aQ[aN]]===0){aP=true}else{if(v[aQ[aN]]){aO=aO|v[aQ[aN]]}}}aQ=aO}if(aQ&v.ENT_HTML_QUOTE_SINGLE){aM=aM.replace(/&#039;/g,"'")}if(!aP){aM=aM.replace(/&quot;/g,'"')}aM=aM.replace(/&amp;/g,"&");return aM}function Q(aO,aN,v,aM){if(typeof aN=="undefined"){aN=0}if(typeof v=="undefined"){v="UTF-8"}if(typeof aM=="undefined"){aM=true}var aQ=0;var aP=(16|32);var aR=2;if(aN==0){aN=aR|aQ}aO=x(aO,aN,v,aM);return aO}function av(v){return O(v)}function T(aT){var aP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var aO,aN,aM,aX,aW,aV,aU,aY,aS=0,aZ=0,aR="",aQ=[];if(!aT){return aT}do{aO=aT.charCodeAt(aS++);aN=aT.charCodeAt(aS++);aM=aT.charCodeAt(aS++);aY=aO<<16|aN<<8|aM;aX=aY>>18&63;aW=aY>>12&63;aV=aY>>6&63;aU=aY&63;aQ[aZ++]=aP.charAt(aX)+aP.charAt(aW)+aP.charAt(aV)+aP.charAt(aU)}while(aS<aT.length);aR=aQ.join("");var v=aT.length%3;return(v?aR.slice(0,v-3):aR)+"===".slice(v||3)}function c(aS){var aO="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var aN,aM,v,aW,aV,aU,aT,aX,aR=0,aY=0,aP="",aQ=[];if(!aS){return aS}aS+="";do{aW=aO.indexOf(aS.charAt(aR++));aV=aO.indexOf(aS.charAt(aR++));aU=aO.indexOf(aS.charAt(aR++));aT=aO.indexOf(aS.charAt(aR++));aX=aW<<18|aV<<12|aU<<6|aT;aN=aX>>16&255;aM=aX>>8&255;v=aX&255;if(aU==64){aQ[aY++]=String.fromCharCode(aN)}else{if(aT==64){aQ[aY++]=String.fromCharCode(aN,aM)}else{aQ[aY++]=String.fromCharCode(aN,aM,v)}}}while(aR<aS.length);aP=aQ.join("");return aP.replace(/\0+$/,"")}function e(v){v=(v+"").toString();return encodeURIComponent(v).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")}function ab(v){return decodeURIComponent((v+"").replace(/%(?![\da-f]{2})/gi,function(){return"%25"}).replace(/\+/g,"%20"))}function f(v){return e(T(v))}function aK(aM,v){if(aM&&typeof aM.className!=="undefined"){return(" "+aM.className+" ").indexOf(" "+v+" ")>-1}return false}function aA(aM,v){if(aM&&typeof aM.classList!=="undefined"&&v.length>0){aM.classList.add(v)}else{if(!aK(aM,v)){aM.setAttribute("class",aM.getAttribute("class")+" "+v)}}}function aC(aM,v){if(aM&&typeof aM.classList!=="undefined"){aM.classList.remove(v)}else{if(aK(aM,v)){aM.setAttribute("class",aM.getAttribute("class").replace(v," "))}}}function C(aM,v){try{var aO=JSON.parse(aM,v);if(typeof aO==="object"){return aO}}catch(aN){}return false}function z(aO,aM){aM=aM?+aM:0;var aP=aO+"",v=aP.indexOf("."),aN=Math.pow(10,aM);if(v===-1||aM<0){return Math.round(aO*aN)/aN}aO=+aO;if(aP[v+aM+1]>=5){aO+=(aO<0?-1:1)/(aN*10)}return +aO.toFixed(aM)}function ax(aM,v){if(typeof aM=="undefined"){aM=0}if(typeof v=="undefined"){v=1000000}aM=Math.ceil(aM);v=Math.floor(v);return Math.floor(Math.random()*(v-aM+1))+aM}function ao(aN){var v=an(aN).innerHTML;var aM=window.open("","","height=400,width=600");aM.document.write("<html><head><title>Print</title>");aM.document.write("</head><body>");aM.document.write(v);aM.document.write("</body></html>");aM.document.close();aM.onload=function(){aM.focus();aM.print();aM.close()}}function U(v){var aN=v.requestFullScreen||v.webkitRequestFullScreen||v.mozRequestFullScreen||v.msRequestFullScreen;if(aN){aN.call(v)}else{if(typeof window.ActiveXObject!=="undefined"){var aM=new ActiveXObject("WScript.Shell");if(aM!==null){aM.SendKeys("{F11}")}}}}function N(){var aM=document.cancelFullScreen||document.webkitCancelFullScreen||document.mozCancelFullScreen||document.exitFullscreen||document.webkitExitFullScreen||document.mozCancelFullScreen;if(aM){aM.call(document)}else{if(typeof window.ActiveXObject!=="undefined"){var v=new ActiveXObject("WScript.Shell");if(v!==null){v.SendKeys("{F11}")}}}}function k(){return(("ontouchstart" in window)||(navigator.maxTouchPoints>0)||(navigator.msMaxTouchPoints>0))}function ar(aR,aN,aQ,aO,aS,aM){var aU;if(typeof aN=="undefined"){aN=0}if(typeof aQ=="undefined"){aQ=1}if(typeof aO=="undefined"){aO=2000}if(aN==aQ){return}aR.style.opacity=aN;if(aN>aQ){aU=-1}else{aU=1;aR.style.display=aS||"block"}var aT=Math.abs((aN-aQ)/0.1);var v=aO/aT;var aV;(function aP(aW){if(!aV){aV=aW}var aX=aW-aV;if(aX>v){var aY=parseFloat(aR.style.opacity);if(aU==1){if(!((aY+=0.1)>1)){aR.style.opacity=aY;requestAnimationFrame(aP)}else{return}}else{if((aR.style.opacity-=0.1)<0){aR.style.display="none";return}else{requestAnimationFrame(aP)}}aV=aW}requestAnimationFrame(aP)})()}function am(aQ,aM,aO,aN,aT){var aR;if(typeof aT=="undefined"){aT=""}if(typeof aM=="undefined"){aM=1}if(typeof aO=="undefined"){aO=1}if(typeof aN=="undefined"){aN=10}var aS=aM;if(aM==aO){aR=0}else{if(aM>aO){aR=-1}else{aR=1}}aQ.style.display="block";var aP=false;var v=setInterval(function(){var aV=false;if((aR==1&&aS>=aO)||(aR==-1&&aS<=aO)||(aV&&aR==0)){clearInterval(v);aS=aO}aV=true;aT=" "+aT;aT=aT.trim();var aU="scale("+aS+")"+aT;aQ.style.transform=aU;aQ.style["-o-transform"]=aU;aQ.style["-webkit-transform"]=aU;aQ.style["-moz-transform"]=aU;aS+=aS*0.1},aN)}var M={queued:[],loading:[],source:[],fileInfo:[],versionCheck:[],versionCheckPaths:[],doVersionChecking:function(aM){var v=[{file:new Function("return function versionChecking"+M.versionCheck.length+"(){$ms.sourceFiles.versionChecking("+JSON.stringify(aM)+")}")()}];M.add(v);M.load()},add:function(aP){if(!Array.isArray(aP)){aP=[aP]}for(var aN=0;aN<aP.length;aN++){if(M.alreadyLoadedNs(aP[aN].ns)){continue}if(typeof aP[aN].file=="function"){var aR=M.functionName(aP[aN].file);aP[aN].baseFile=aR;aP[aN].loaded=false;aP[aN].type="function";if(aR=="onload"){if(document.readyState==="complete"||document.readyState==="interactive"){M.onload({target:{src:M.source[aN].baseFile}})}else{window.addEventListener("load",M.load)}}}else{aP[aN].baseFile=aP[aN].file.split("?")[0];var aO=aP[aN].baseFile.substr(aP[aN].baseFile.lastIndexOf(".")+1);if(aO=="js"){aP[aN].type="js"}else{if(aO=="css"){aP[aN].type="css"}else{if(aO=="php"){if(aP[aN].baseFile.indexOf("css.php")!==-1){aP[aN].type="css"}else{aP[aN].type="unknown";console.log("Don't know what to do with source file type `php`: "+aP[aN].file)}}else{if(["jpg","png","gif"].indexOf(aO)!==-1){aP[aN].type="img"}else{aP[aN].type="unknown";console.log("Source File unknown type for: "+aP[aN].file)}}}}var aM=M.buildUrlPath(aP[aN].baseDir,aP[aN].type);var aQ="";if(typeof aP[aN].subDir!=="undefined"){aQ=(aP[aN].subDir.indexOf("/")!==0?"/":"")+aP[aN].subDir}aP[aN].file=aM+aQ+"/"+aP[aN].file;aP[aN].loaded=false}if(M.queued.indexOf(aP[aN].baseFile)!==-1){continue}if(aP[aN].dependencies){for(var v=0;v<aP[aN].dependencies.length;v++){M.add(aP[aN].dependencies[v])}}else{aP[aN].dependencies=[]}M.queued.push(aP[aN].baseFile);M.source.push(aP[aN])}},onloadTest:function ae(){},load:function(){var aO=M.versionCheck.length;for(var aN=0;aN<M.versionCheck.length;aN++){if(M.versionCheck[aN].timeStamp>0&&!M.versionCheck[aN].complete){if(typeof M.versionCheck[aN].interval!=="undefined"){return}M.versionCheck[aN].interval=setInterval(function(){if(M.versionCheck[aN].complete||Date.now()-M.versionCheck[aN].timeStamp>=M.versionCheckingTimeout){clearInterval(M.versionCheck[aN].interval);if(!M.versionCheck[aN].complete){console.log("Timeout checking js version ("+aN+")")}M.versionCheck[aN].complete=true;M.load()}},10);return}}for(var aN=0;aN<M.source.length;aN++){if(aO!==M.versionCheck.length){M.load();return}M.removeDependencies(M.source[aN]);if(M.source[aN].dependencies.length==0){if(M.source[aN].loaded){continue}else{if(typeof M.source[aN].file=="function"){var aP=M.functionName(M.source[aN].file);if(aP=="onload"){var v=(document.readyState==="complete"||document.readyState==="interactive")}else{var v=M.source[aN].file()}if(v!==false){M.source[aN].loaded=true;M.onload({target:{src:M.source[aN].baseFile}})}continue}}if(M.alreadyLoadedNs(M.source[aN].ns)){continue}if(M.loading.indexOf(M.source[aN].baseFile)!==-1){continue}var aM="";if(M.fileInfo.find(function(aQ){if(aQ.baseFile==M.source[aN].baseFile){aM="."+aQ.time+".";return true}})){M.source[aN].file=M.source[aN].file.replace(/\.(?!.*?\.)/,aM)}M.loading.push(M.source[aN].baseFile);X(M.source[aN].file,M.source[aN].type,M.onload)}}},alreadyLoadedNs:function(aM){if(typeof aM=="undefined"){return false}var aN=true;var aO=aM.split(".");for(var v=0;v<aO.length;v++){if(typeof $msRoot[aO[v]]=="undefined"){return false}}return true},onload:function(aO){var aN=aO.target.src.substr(aO.target.src.lastIndexOf("/")+1);var aM=aN.split("?");aN=aM[0];aN=aN.replace(/(.+)\.([0-9])+\.(js|css|php|jpg|gif|png)$/,"$1.$3");for(var v=0;v<M.source.length;v++){if(M.source[v].baseFile==aN){M.source[v].loaded=true;if(M.source[v].onload){M.source[v].onload()}break}}M.load()},removeDependencies:function(aO){if(!aO.loaded){for(var aN=aO.dependencies.length-1;aN>=0;aN--){if(typeof aO.dependencies[aN].ns!=="undefined"&&M.alreadyLoadedNs(aO.dependencies[aN].ns)){aO.dependencies.splice(aN,1);continue}for(var aM=0;aM<M.source.length;aM++){var v=M.source[aM];if(v.baseFile==aO.dependencies[aN].baseFile){if(v.loaded){aO.dependencies.splice(aN,1)}break}}}}},versionChecking:function(aP){if(!Array.isArray(aP)){aP=[aP]}M.versionCheck.push({});var aO=M.versionCheck[M.versionCheck.length-1];aO.id=M.versionCheck.length;aO.timeStamp=Date.now();aO.complete=false;aO.path=aP;var aM=M.buildUrlPath("site")+"/moddate.php";var aN={path:aP};aN=JSON.stringify(aN);var v=new XMLHttpRequest();var aQ="id=moddate-js&url="+aM+"&otherData="+aN;v.open("POST",aM,true);v.setRequestHeader("Content-type","application/x-www-form-urlencoded");v.onreadystatechange=function(){if(v.readyState==4&&v.status==200){var aR=v.responseText;var aT=JSON.parse(aR);var aS=false;if(typeof aT!=="object"||!aT.status){console.log("Invalid version checking response: "+aR);aS=true}else{if(aT.status.toLowerCase().indexOf("error")!==-1){console.log(aT.status);aS=true}else{if(aT.status.toLowerCase().indexOf("success")==-1){console.log("Unknown response (missing success): "+aR);aS=true}}}if(!aS){console.log("Version information loaded");M.fileInfo=M.fileInfo.concat(aT.result)}aO.complete=true;M.load()}};v.send(aQ)},functionName:function(aM){if(typeof aM=="function"){aM=aM.toString()}var v=/^function\s+(?:bound\s*)?([^\(\s]+)/.exec(aM);return v?v[1]:""},buildUrlPath:function(aN,aM){aN=aN||aM||"";var v=function(aO){if(aO.indexOf("/")!==-1){return aO}else{if(aO.indexOf("js")!==-1){return"STATIC_JS_COMMON"}else{if(aO.indexOf("css")!==-1){return"STATIC_CSS_COMMON"}else{if(aO.indexOf("img")!==-1){return"STATIC_IMG_COMMON"}else{if(aO.indexOf("static-site")!==-1){return"STATIC_SITE_ROOT"}else{if(aO.indexOf("site")!==-1){return"LINK_SITE_ROOT"}else{if(aO.indexOf("root")!==-1||aO==""){return"STATIC_TOP_ROOT"}else{return aO}}}}}}}}(aN);if(typeof $ms[v]!=="undefined"){if($ms[v]==""){return M.currentDir()}return $ms[v]}else{return M.currentDir()+v}},currentDir:function(){var v=window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.host;var aN=window.location.pathname;var aM=aN.substring(0,aN.lastIndexOf("/"));return v+aM}};function X(v,aN,aM,aQ){if(typeof aN=="undefined"){aN=v.substr(v.lastIndexOf(".")+1)}if(aN=="js"){var aO=document.createElement("script");aO.type="text/javascript";aO.src=v}else{if(aN=="css"){var aO=document.createElement("link");aO.rel="stylesheet";aO.type="text/css";aO.href=v}else{if(aN=="img"){var aO=document.createElement("img");aO.style.display="none";aO.src=v}}}if(typeof aM!=="undefined"){aO.onload=aM}if(typeof aQ!=="undefined"){aO.id=aQ}if(typeof aO!="undefined"){if(aN=="img"){try{document.body.appendChild(aO)}catch(aP){console.log("Error loading Image file: "+v)}}else{document.head.appendChild(aO)}}}function L(aN,aP){var aM=(aP=="js")?"script":(aP=="css")?"link":"none";var v=(aP=="js")?"src":(aP=="css")?"href":"none";var aQ=document.getElementsByTagName(aM);for(var aO=aQ.length;aO>=0;aO--){if(aQ[aO]&&aQ[aO].getAttribute(v)!==null&&aQ[aO].getAttribute(v).indexOf(aN)!=-1){aQ[aO].parentNode.removeChild(aQ[aO])}}}function aJ(aM){var v;aM=aM||window.event;if(aM.which==null){v=(aM.button<2)?"left":((aM.button==4)?"middle":"right")}else{v=(aM.which<2)?"left":((aM.which==2)?"middle":"right")}return v}function aB(aN,aP,aM){var aO=aN.toString().toLowerCase().trim();for(var v=0;v<aP.length;v++){if(typeof aM!=="undefined"){if(aP[v][aM].toString().toLowerCase().trim()==aO){return v}}else{if(aP[v].toString().toLowerCase().trim()==aO){return v}}}return false}function S(v){return v.replace(/\w\S*/g,function(aM){return aM.charAt(0).toUpperCase()+aM.substr(1).toLowerCase()})}function aq(v){var aM=v.getBoundingClientRect();var aO=aM.left+window.pageXOffset;var aN=aM.top+window.pageYOffset;return{x:aO,y:aN,left:aO,top:aN,width:aM.width,height:aM.height}}function G(aN,aQ,aM){var aP;if(typeof aM=="undefined"){aM={}}if(!aM.getComputedStyle){aP=aN.style[aQ]}if(isNaN(parseFloat(aP))){var aP=getComputedStyle(aN).getPropertyValue(aQ)}if(isNaN(parseFloat(aP))&&(aQ=="left"||aQ=="top")){var aR=aN;while(isNaN(parseFloat(aP))){if(aR.offsetParent.nodeName!=="TD"){var v=parseFloat(G(aR.offsetParent,aQ));aP=v+aR.offsetLeft}aR=aR.parentNode}}if(isNaN(parseFloat(aP))){var aO=aN.getBoundingClientRect();if(typeof aO.property!=="undefined"){aP=aO[aQ]+"px"}}return aP}function b(aO,aM){var v={};for(var aN in aO){if(aO.hasOwnProperty(aN)){v[aN]=aO[aN]}}if(typeof aM!=="undefined"){for(var aN in aM){if(aM.hasOwnProperty(aN)){if(typeof aM[aN]=="object"&&aM[aN]!==null&&!Array.isArray(aM[aN])&&!(aM[aN] instanceof Element)&&typeof aM[aN].id=="undefined"){v[aN]=b(v[aN],aM[aN])}else{v[aN]=aM[aN]}}}}return v}function aG(aS,aO){var aN=511;var aR=document.createElement("div");aR.style.visibility="hidden";aR.style.position="absolute";aR.style.height="auto";aR.style.width="auto";aR.style.whiteSpace="nowrap";aR.innerHTML="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";if(!aO){aO=document.body}else{var aQ=aK(aO,"visibility-hidden");aA(aO,"visibility-hidden");aA(aO,"display-block")}aO.appendChild(aR);var aT=(aR.clientHeight+1);var aM=(aR.clientWidth+1);if(aM==0){console.log("Testing Font: width = 0");return}var aP=(aS/100)*aN;var v=aP/aM;var aU=parseInt((v*100))+"%";aR.style.fontSize=aU;var aT=(aR.clientHeight+1);var aM=(aR.clientWidth+1);aO.removeChild(aR);aC(aO,"display-block");if(!aQ){aC(aO,"visibility-hidden")}return(aU)}function ay(aN){if(window.clipboardData&&window.clipboardData.setData){return clipboardData.setData("Text",aN)}else{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){var v=document.createElement("textarea");v.textContent=aN;v.style.position="fixed";document.body.appendChild(v);v.select();try{return document.execCommand("copy")}catch(aM){console.warn("Copy to clipboard failed.",aM);return false}finally{document.body.removeChild(v)}}}}function aj(aO){var aN=aO.getBoundingClientRect();var aU=parseInt(aN.width);var aS=parseInt(aN.height);var a0=getComputedStyle(aO);var a3=parseInt(a0.borderLeftWidth)+parseInt(a0.borderRightWidth);var aR=parseInt(a0.borderTopWidth)+parseInt(a0.borderBottomWidth);var a2=parseInt(a0.paddingLeft)||0;var v=parseInt(a0.paddingLeft)||0;var a1=parseInt(a0.paddingTop)||0;var aP=parseInt(a0.paddingBottom)||0;if(u()>0){var aV=aU;var aW=aS;var aT=a3;var aZ=aR;var aY=0;var aQ=0}else{var aV=aU-v-a2-a3;var aW=aS-a1-aP-aR;var aT=0;var aZ=0;var aY=a3;var aQ=aR;var aX=v-a2;var aM=a1-aP}return{x:aV,y:aW,width:aV,height:aW,ieBorder:{x:aT,y:aZ},ffBorder:{x:aY,y:aQ},ffPadding:{x:aX,y:aM}}}function u(){var aM=window.navigator.userAgent;var v=aM.indexOf("MSIE");if(v>0){return parseInt(aM.substring(v+5,aM.indexOf(".",v)))}else{if(!!navigator.userAgent.match(/Trident\/7\./)){return 11}else{return 0}}}function aL(aN){var aO=aN.parentNode;var aQ=0;while(aO instanceof HTMLElement){if($ms.hasVerticalScroll(aO)){break}aO=aO.parentNode}if(!aO){return}if($ms.hasHorizontalScroll(aO)){aQ=$ms.getScrollBarSize()}var aM=(aO.offsetHeight-aO.clientHeight)/2;var v=(aO.scrollTop+(aO.offsetHeight-aM-aQ)-aN.offsetHeight);var aP=aO.scrollTop+aM;if(aN.offsetTop<=aP){aO.scrollTop=aN.offsetTop-aM}else{if(aN.offsetTop>=v){aO.scrollTop=aN.offsetTop-((aO.offsetHeight-aM-aQ)-aN.offsetHeight)}}}function d(){var aN=document.createElement("p");aN.style.width="100%";aN.style.height="200px";var aO=document.createElement("div");aO.style.position="absolute";aO.style.top="0px";aO.style.left="0px";aO.style.visibility="hidden";aO.style.width="200px";aO.style.height="150px";aO.style.overflow="hidden";aO.appendChild(aN);document.body.appendChild(aO);var aM=aN.offsetWidth;aO.style.overflow="scroll";var v=aN.offsetWidth;if(aM==v){v=aO.clientWidth}document.body.removeChild(aO);return(aM-v)}function E(){var v=window.getComputedStyle(document.documentElement,""),aM=(Array.prototype.slice.call(v).join("").match(/-(moz|webkit|ms)-/)||(v.OLink===""&&["","o"]))[1],aN=("WebKit|Moz|MS|O").match(new RegExp("("+aM+")","i"))[1];return{dom:aN,lowercase:aM,css:"-"+aM+"-",js:aM[0].toUpperCase()+aM.substr(1)}}function ac(aR,aM,aQ,aS){var aP=["","-webkit-","-moz-","-ms-","-o-"];var v=document.createElement("div");var aO;if(typeof aS=="undefined"){aS=aQ}if(typeof aM=="string"){for(var aN=0;aN<aP.length;++aN){if(aN==0){aO=aP[aN]+aM+aQ}else{aO=aP[aN]+aM+aS}v.style[aR]=aO;if(v.style[aR]!=""){return aP[aN]}}}else{for(var aN=0;aN<aM.length;++aN){if(aN==0){aO=aM[aN]+aQ}else{aO=aM[aN]+aS}v.style[aR]=aO;if(v.style[aR]!=""){return aM[aN]}}}return null}function A(){var aM=document.createElement("div");aM.innerHTML="<!--[if lte IE 9]><i></i><![endif]-->";var v=(aM.getElementsByTagName("i").length==1);return v}function ak(){var aM=document.createElement("div");aM.innerHTML="<!--[if lte IE 8]><i></i><![endif]-->";var v=(aM.getElementsByTagName("i").length==1);return v}function m(aM,aN){if(!aM){return}if(q()){aM.addEventListener("animationstart",aN,false);aM.addEventListener("MSAnimationStart",aN,false);aM.addEventListener("webkitAnimationStart",aN,false);$ms.addClass(aM,"ms-onload")}else{if(aM.id.length==0){aM.id=aM.nodeName+ax(10000,99999)}var v=setInterval(function(){if($ms.$(aM.id)){clearInterval(v);aN({animationName:"ms-onload"})}},100)}}function ag(v,aM){if(!v){return}v.removeEventListener("animationstart",aM,false);v.removeEventListener("MSAnimationStart",aM,false);v.removeEventListener("webkitAnimationStart",aM,false);$ms.removeClass(v,"ms-onload")}function q(){var aO=false,aQ="animation",aN="",aM="Webkit Moz O ms Khtml".split(" "),aP="",aR=document.createElement("div");if(aR.style.animationName!==undefined){aO=true}if(aO===false){for(var v=0;v<aM.length;v++){if(aR.style[aM[v]+"AnimationName"]!==undefined){aP=aM[v];aQ=aP+"Animation";aN="-"+aP.toLowerCase()+"-";aO=true;break}}}}function K(aM,aP){var v;if(typeof aP!=="undefined"){if(typeof aP.select!=="undefined"){v=aP.select}else{v=document.createElement("select")}if(typeof aP.onchange!=="undefined"){v.onchange=aP.onchange}if(typeof aP.defaultValue!=="undefined"&&aP.defaultValue<aM.length){v.selectedIndex=aP.defaultValue}}if(typeof v=="undefined"){v=document.createElement("select")}if(typeof aM=="undefined"){aM=[];if(typeof aP!=="undefined"&&typeof aP.cbOptions!=="undefined"){if(typeof aP.inputId=="undefined"){aP.inputId=undefined}aM=aP.cbOptions(aP.inputId);if(typeof aM!=="object"){aM=[]}}}for(var aN=0;aN<aM.length;aN++){var aO=document.createElement("option");if(typeof aM[aN]=="string"){var aQ=aM[aN];aM[aN]={};aM[aN].value=aM[aN]}else{if(typeof aM[aN].value=="undefined"){if(typeof aM[aN].label!=="undefined"){aM[aN].value=aM[aN].label}else{if(typeof aM[aN].text!=="undefined"){aM[aN].value=aM[aN].text}}}}aO.value=aM[aN].value;if(typeof aP!=="undefined"&&typeof aP.propName!=="undefined"){if(aP.propName.indexOf("font-family")!==-1){aO.innerHTML="<span style='font-family:"+aM[aN].label+"'>"+aM[aN].label+"</>"}else{if(typeof aM[aN].label!=="undefined"){aO.text=aM[aN].label}else{if(typeof aM[aN].name!=="undefined"){aO.text=aM[aN].name}}}}else{if(typeof aM[aN].label!=="undefined"){aO.text=aM[aN].label}else{if(typeof aM[aN].text!=="undefined"){aO.text=aM[aN].text}else{aO.text=aM[aN].value}}}if(aM[aN].hasOwnProperty("tooltip")){aO.title=aM[aN].tooltip}v.appendChild(aO)}return v}function l(aO,aM,aN){var v=new listboxCombo(aN.inputId,aN.listComboSettings);v.type="combo";v.options=aM;v.prop=aN;v.columns=aN.columns;v.columnWidth=aN.columnWidth;v.columnType=aN.columnType;v.columnGap=aN.columnGap;if(aN.parentClass){v.parentClass=aN.parentClass}if(typeof aN.listComboSettings!=="undefined"){v.settings=aN.listComboSettings}v.init();return v}function Y(v,aM){var aN=new $msRoot.EditableCombo(v,aM);return aN}function aa(aP,v,aO){var aN=0;var aV=100;var aS=1;var aU="px";var aT;if(typeof v.slider.min!=="undefined"){aN=v.slider.min}if(typeof v.slider.max!=="undefined"){aV=v.slider.max}if(typeof v.slider.snapX!=="undefined"){aS=v.slider.snapX}aV=aV*aS;aN=aN*aS;if(typeof v.slider.units!=="undefined"){aU=v.slider.units}var aW=document.createElement("input");aW.style.width=v.inputWidth+"px";v.scale=1;if(v.units){aT=R(aO.style[v.name]).unit||aU;v.scale=aP.propUnitsScale(aT);var aM=K(aP,v.units);aM.id=v.inputId+"-units";aM.className="ms-slider-units";aM.onchange=function(){var aZ=R(aO.style[v.name]).unit||aU;var aY=aF(aW.value+aZ,aM.value);aW.value=aY.numeric;v.scale=aP.propUnitsScale(aM.value);aW.onchange();aX.onValuesChanged()}}var aR=document.createElement("div");aR.className="ms-slider-bar-container";var aQ=document.createElement("div");aQ.id="ms-slider-bar-"+ ++aP.itemCounter;aQ.className="ms-slider-bar";aQ.style.width=v.slider.sliderWidth+"px";aR.appendChild(aQ);var aX=new $msRoot.Slider(aQ,{xMinValue:1,xMaxValue:aV,yMinValue:1,yMaxValue:1,arrowImage:$ms.STATIC_IMG_COMMON+"/slider.gif",container:aR,direction:"horizontal",target:v.inputId,snapX:aS,parentClass:aP});aX.onValuesChanged=function(){var aY=aW;aY.value=Math.round((Math.round(aX.xValue/aX.settings.snapX)*aX.settings.snapX)/aX.settings.snapX);aY.value=aY.value/v.scale;if(typeof v.units=="undefined"&&typeof v.slider.units!=="undefined"){aY.value+=v.slider.units}aP.updateSource(aO,v,aW)};aW.onchange=function(){if(aW.value==""){aX.xValue=0;aX.setArrowPositionFromValues()}else{var aY=(aW.value*1)||0;aY=aY*v.scale;aX.xValue=Math.round((aY*v.slider.slider.settings.snapX)/v.slider.slider.settings.snapX)*v.slider.slider.settings.snapX;aX.setArrowPositionFromValues()}};return{input:aW,sliderContainer:aR,slider:aX,units:aM}}function r(aM){var v=document.createElement("label");if(typeof aM.id!=="undefined"){v.id=aM.id}if(typeof aM.inputId!=="undefined"){v.htmlFor=aM.inputId}if(typeof aM.className!=="undefined"){v.className=aM.className}if(typeof aM.labelText=="undefined"){aM.labelText=""}v.appendChild(document.createTextNode(aM.labelText));return v}function Z(aM){var v=document.createElement("input");v.type="checkbox";v.id=aM.id;v.style.verticalAlign="middle";v.className="ms-checkbox";if(typeof aM.labelposition=="undefined"){aM.labelposition="right"}if(aM.labelposition=="left"){v.style.marginLeft="3px"}else{v.style.marginRight="3px"}if(typeof aM.className!=="undefined"){v.className=aM.className}if(typeof aM.value!=="undefined"){v.value=aM.value}if(typeof aM.checked!=="undefined"){v.checked=aM.checked}if(typeof aM.label=="undefined"){aM.label=document.createElement("label");if(typeof aM.labelText!=="undefined"){aM.label.innerText=aM.labelText}}aM.label.style.display="inline-block";if(aM.labelposition=="right"){var aN=aM.label.innerText;aM.label.innerText="";aM.label.appendChild(v);aM.label.appendChild(document.createTextNode(aN))}else{aM.label.appendChild(v)}return v}function F(aO){var aQ=document.createElement("div");aQ.id=aO.id+"-radio";if(aO.includeLabel){if(typeof aO.label=="undefined"){aQ.appendChild(aO.label)}else{if(aO.labelText!=="undefined"){aO.label=document.createElement("label");aO.label.innerText=aO.labelText;aQ.appendChild(aO.label)}}}for(var aN=0;aN<aO.options.length;aN++){var v=document.createElement("input");v.type="radio";v.name=aO.id;v.id=aO.id+"-"+aN;v.style.verticalAlign="middle";v.className="d-item d-radio";aO.options[aN].input=v;if(typeof aO.labelposition=="undefined"){aO.labelposition="right"}if(aO.labelposition=="left"){v.style.marginLeft="3px"}else{v.style.marginRight="3px"}if(typeof aO.className!=="undefined"){v.className=aO.className}var aM=document.createElement("label");aM.innerText=aO.options[aN].label;aM.style.display="block";if(!aO.options[aN].hasOwnProperty("value")){aO.options[aN].value=aO.options[aN].label}if(typeof aO.defaultValue!=="undefined"){if(aO.defaultValue==aO.options[aN].value){v.checked=true}}if(aO.labelposition=="right"){var aP=aM.innerText;aM.innerText="";aM.appendChild(v);aM.appendChild(document.createTextNode(aP))}else{aM.appendChild(v)}aQ.appendChild(aM)}return aQ}function ad(aO){var aT=document.createElement("table");aT.id=aO.id;aT.className="d-item d-table target";if(typeof aO.border!=="undefined"){if(aO.border.length>0){aT.style.border="1px solid black"}}else{aT.style.border="1px solid black"}aT.style.margin="0";var aV=1,aS=3;if(typeof aO.rows!=="undefined"){aV=aO.rows}if(typeof aO.cols!=="undefined"){aS=aO.cols}var aP=document.createElement("colgroup");aT.appendChild(aP);for(var aQ=0;aQ<aS;aQ++){var aM=document.createElement("col");aM.id="d-child-col-"+(++aO.counter);aM.className="d-child d-col";aP.appendChild(aM)}for(var aU=0;aU<aV;aU++){var aR=document.createElement("tr");aR.id="d-child-tr-"+(++aO.counter);aR.className="d-child d-tr target";aT.appendChild(aR);for(var aM=0;aM<aS;aM++){var aN=document.createElement("td");aN.id="d-child-td-"+(++aO.counter);aN.className="d-child d-td target resizable";aN.style.border="1px solid green";var v=document.createElement("div");v.id="design-item-child-container-panel-div-"+(++aO.counter);v.className="d-child d-table-cell-div target";if(aO.listener){aO.listener.call(aO._this,v)}if(aO.sampletext){v.innerHTML="row: "+aU+" column: "+aM}aN.appendChild(v);aR.appendChild(aN)}}aT.setAttribute("data-rows",aV);aT.setAttribute("data-cols",aS);return aT}function aF(aV,aS,aM){var aO=100;var aY;var v={pixel:"px",percent:"%",inch:"in",cm:"cm",mm:"mm",point:"pt",pica:"pc",em:"em",ex:"ex"};var aR={};var aP={};var aQ=R(aV);if(aQ==false){return""}var aU=aQ.numeric;var aT=aQ.unit;var aX;for(aY in v){if(v[aY]==aT){aX=aY;break}}if(!aX){throw"Unit not found in map"}var aN=false;if(aS&&(typeof aS=="string")){for(aY in v){if(v[aY]==aS){aN=aY;continue}else{if(aY==aX){continue}}delete v[aY]}}var aW=document.createElement("div");aW.style.overflow="hidden";aW.style.visibility="hidden";if(!aM){aM=document.body}aM.appendChild(aW);for(aY in v){aW.style.width=aO+v[aY];aR[aY]=aO/aW.offsetWidth}for(aY in v){aP[aY]={numeric:Math.round((aU*(aR[aY]/aR[aX]))*1000)/1000,units:v[aY]}}aM.removeChild(aW);if(aN!==false){return aP[aN]}return aP}function R(aN){var v=aN.match(/[0-9]+(\.[0-9]{1,2})?/);if(v===null){return false}v=v[0];var aM=aN.match(/\D+$/);aM=(aM==null)?"px":aM[0];return{numeric:v,unit:aM}}function aE(v){v=(typeof v==="string")?document.querySelector(v):v;var aM=window.getComputedStyle(v);var aN=parseFloat(aM.marginTop)+parseFloat(aM.marginBottom);return Math.ceil(v.offsetHeight+aN)}function H(){var aM=document.documentElement;var v=(window.pageXOffset||aM.scrollLeft)-(aM.clientLeft||0);var aN=(window.pageYOffset||aM.scrollTop)-(aM.clientTop||0);return{x:v,y:aN}}function J(aN,aP){var aQ=aN.scrollTop;var aM=aN.selectionStart;var aO=(aN.value).substring(0,aM);var v=(aN.value).substring(aN.selectionEnd,aN.value.length);aN.value=aO+aP+v;aM=aM+aP.length;aN.selectionStart=aM;aN.selectionEnd=aM;aN.focus();aN.scrollTop=aQ}function W(aM){if(typeof aM=="undefined"||aM.nodeName=="#document"){aM=document.body}var aN=aM.scrollHeight>aM.clientHeight;var v=aM.currentStyle||window.getComputedStyle(aM,"");aN=v.overflow=="scroll"||v.overflowY=="scroll"||(aN&&v.overflow=="visible"&&aM.nodeName=="BODY")||(aN&&v.overflowY=="visible"&&aM.nodeName=="BODY")||(aN&&v.overflow=="auto")||(aN&&v.overflowY=="auto");return aN}function n(aN){if(typeof aN=="undefined"||aN.nodeName=="#document"){aN=document.body}var aM=aN.scrollWidth>aN.clientWidth;var v=aN.currentStyle||window.getComputedStyle(aN);aM=v.overflow=="scroll"||v.overflowX=="scroll"||(aM&&v.overflow=="visible"&&aN.nodeName=="BODY")||(aM&&v.overflowX=="visible"&&aN.nodeName=="BODY")||(aM&&v.overflow=="auto")||(aM&&v.overflowX=="auto");return aM}function h(aO,aM,aN){if(!aM){return}var v=$ms.innerSize(aM);var aP="";if(typeof aN=="undefined"){aN={allow:{right:true,bottom:true,left:false,top:false}}}if(typeof aN.allow.right=="undefined"){aN.allow.right=true}if(typeof aN.allow.bottom=="undefined"){aN.allow.bottom=true}if(aN.allow.right&&parseInt(aO.offsetX)>=parseInt(v.x-Math.max(6,v.ieBorder.x))){aA(aM,"cursor-col-resize");aC(aM,"cursor-row-resize");aP="right"}else{if(aN.allow.bottom&&parseInt(aO.offsetY)>=parseInt(v.y-Math.max(6,v.ieBorder.y))){aA(aM,"cursor-row-resize");aC(aM,"cursor-col-resize");aP="bottom"}else{if(aN.allow.left&&aO.offsetX<=6){aA(aM,"cursor-col-resize");aC(aM,"cursor-row-resize");aP="left"}else{if(aN.allow.top&&aO.offsetY<=6){aA(aM,"cursor-row-resize");aC(aM,"cursor-col-resize");aP="top"}else{aC(aM,"cursor-row-resize");aC(aM,"cursor-col-resize")}}}}return aP}function aI(aQ){var v=getComputedStyle(aQ);var aO=0;var aP=0;var aU=parseFloat(v.height)-aO;var aM=parseFloat(v.width)-aP;if(isNaN(aU)||isNaN(aM)){var aT=aQ.getBoundingClientRect();aU=aT.height;aM=aT.width;if(isNaN(aU)||isNaN(aM)){if(v.getPropertyValue("display")=="none"){var aR=aK(aQ,"visibility-hidden");aA(aQ,"visibility-hidden");aA(aQ,"display-block");var aN=aQ.style.left;var aS=aQ.style.top;aQ.style.left="-10000px";aQ.style.top="-10000px";aT=aQ.getBoundingClientRect();aU=aT.height;aM=aT.width;aQ.style.left=aN;aQ.style.top=aS;if(!aR){aC(aQ,"visibility-hidden")}aC(aQ,"display-block")}}else{if(aU==0||aM==0){if(aU==0){aU=v.getPropertyValue("line-height")}if(aM==0){}}}}return{height:aU,width:aM}}function s(aM){var v=document.getElementsByTagName("link");if(aM=="portrait"){document.getElementById("portrait-stylesheet").disabled==false;document.getElementById("landscape-stylesheet").disabled==true}else{document.getElementById("portrait-stylesheet").disabled==true;document.getElementById("landscape-stylesheet").disabled==false}}function P(aO,aN,aM){if(aM>=aO.length){var v=aM-aO.length;while((v--)+1){this.push(undefined)}}aO.splice(aM,0,aO.splice(aN,1)[0]);return aO}function aH(aN,aM,v){if(aM<v){aN.splice(v-1,0,aN.splice(aM,1)[0])}else{aN.splice(v,0,aN.splice(aM,1)[0])}return aN}function a(aM,v){if(typeof v=="undefined"){v=true}if(v){aC(aM,"display-none");aA(aM,"display-none-off")}else{aC(aM,"display-none-off");aA(aM,"display-none")}}function w(aP,aX){var aN=new Date(aP);var aT=aN.getFullYear();var aS=("0"+(aN.getMonth()+1)).slice(-2);var aO=("0"+aN.getDate()).slice(-2);var aV=("0"+aN.getHours()).slice(-2);var aQ=("0"+aN.getMinutes()).slice(-2);var aW=("0"+aN.getSeconds()).slice(-2);var aU=aN.getDay();var aM=["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"];var v=["SUN","MON","TUE","WED","THU","FRI","SAT"];var aR="";switch(aX){case"YYYY-MMM-DD DDD":aR=aT+"-"+aM[parseInt(aS)-1]+"-"+aO+" "+v[parseInt(aU)];break;case"YYYY-MM-DD":default:aR=aT+"-"+aS+"-"+aO;break}return aR}function t(aM){for(var v=0;v<aM.childNodes.length;v++){if(aM.childNodes[v].nodeName=="COLGROUP"){return aM.childNodes[v]}}}function V(aM){for(var v=0;v<aM.childNodes.length;v++){if(aM.childNodes[v].nodeName=="TBODY"){return aM.childNodes[v]}}}function B(v,aN){var aM=document.createElement("div");aM.id=v+"close-button";aM.className="ms-close-button";aM.addEventListener("click",aN);return aM}function g(){var aM=window,aP=document,aO=aP.documentElement,aN=aP.getElementsByTagName("body")[0],v=aM.innerWidth||aO.clientWidth||aN.clientWidth,aQ=aM.innerHeight||aO.clientHeight||aN.clientHeight;return{x:v,y:aQ}}function af(v){switch(v){case"%":case"pt":case"px":return 1;break;case"in":return 100;break;case"pc":case"em":return 10;break;default:return 1}}function ah(aN){var aS={colorPicker:undefined,gradient:undefined,startColor:"",startGradient:"",parentNode:document.body,divClassName:"",input:undefined,inputClassName:"",inputWidth:"100px",inputHeight:undefined,cbClose:undefined,cbChange:undefined,cbCreate:undefined,target:undefined,source:undefined,elementProperty:undefined,openGradient:false,tool:[]};var aM=$ms.cloneSettings(aS,aN);var v=document.createElement("div");v.className=aM.divClassName;if(aM.input){aU=aM.input}else{var aU=document.createElement("input");if(aM.inputWidth){aU.style.width=parseInt(aM.inputWidth)-16+"px"}if(aM.inputHeight){aU.style.height=parseInt(aM.inputHeight)+"px"}}if(aU.className){aU.className=aM.inputClassName}v.appendChild(aU);if(!aM.parentNode){aM.parentNode=document.body}aM.parentNode.appendChild(v);var aV=$ms.elementSize(aU).height;var aR=document.createElement("div");aR.className="ms-gradient-button ms-button-tool";aR.style.height=aV+"px";aR.style.lineHeight=aV+"px";aR.innerHTML="►";aR.style.verticalAlign="top";v.appendChild(aR);aM.source=aU;if(!aM.target){aM.target=[]}if(aM.element&&aM.elementProperty){aM.target.push({element:aM.element,property:aM.elementProperty})}if(aM.gradient){aM.target.push({element:aU,property:"background",valueAttribute:"value",textColor:"contrast"})}else{aM.target.push({element:aU,property:"backgroundColor",valueAttribute:"value",textColor:"contrast"})}var aP=function(aW){aM.tool.push(aW)};var aT=function(aW){for(var aX=0;aX<aM.tool.length;aX++){if(aM.tool[aX].id==aW.id){aM.tool.splice(aX,1);break}}};if(aM.cbCreate){aM.cbCreate=[aM.cbCreate,aP]}else{aM.cbCreate=aP}if(aM.cbClose){aM.cbClose=[aM.cbClose,aT]}else{aM.cbClose=aT}var aQ=function(){if(aM.tool.length>0){return}var aX=false;if((aM.openGradient&&aU.style.background.length==0)||aU.style.background.indexOf("gradient")!==-1||aU.style.backgroundImage.indexOf("gradient")!==-1){aX=true}if(aU.style.backgroundImage.indexOf("gradient")!==-1){aM.startColor=aU.style.backgroundImage}else{if(aU.style.backgroundColor!==-1){aM.startColor=aU.style.backgroundColor}else{aM.startColor=aU.style.background}}var aW=$ms.getOffset(aU);aM.startPos={top:aW.top+aW.height,left:aW.left+20};if(aX){new $msRoot.Gradient(aM)}else{new $msRoot.ColorPicker(aM)}};aR.addEventListener("click",aQ);var aO=function(){var aX,aW=false,a2=false;if(aU.value.trim().length==0){aW=true}else{if(aU.value.trim().substr(0,1)=="#"){var a1="#"+$msRoot.colorMethods.validateHex(aU.value.substr(1));if(a1.length<4){aW=true}else{aU.style.background=aU.value;aX=$msRoot.colorMethods.hexToRgb(aU.value);aU.style.color=$msRoot.colorMethods.highlightcolor(aX.r,aX.g,aX.b)}}else{if(aU.value.trim().substr(0,3)=="rgb"){aX=$msRoot.colorMethods.colorInfo(aU.value);if(aX.rgbString.length==0){aW=true}else{aU.style.background=aX.rgbString;aU.style.color=$msRoot.colorMethods.highlightcolor(aX.r,aX.g,aX.b)}}else{if(aU.value.indexOf("gradient")!==-1){aX={};aX.gradient=aU.value;aU.style.background=aU.value}else{aX=$msRoot.colorMethods.colorNameInfo(aU.value,"hex");if(!aX){aW=true;a2=true}else{aU.style.background=aX;aX=$msRoot.colorMethods.hexToRgb(aX);aU.style.color=$msRoot.colorMethods.highlightcolor(aX.r,aX.g,aX.b)}}}}}if(aW){aU.style.removeProperty("background-color");aU.style.removeProperty("background-image");aU.style.removeProperty("color");if(aM.element){aM.element.style.removeProperty("background-color");aM.element.style.removeProperty("background-image");aM.element.style.removeProperty("color")}}var aY;for(var a0=0;a0<aM.tool.length;a0++){if(aM.tool[a0].offsetParent!==null){aY=aM.tool[a0];break}}if(!aY){return}if(aM.cbChange){aM.cbChange(aY)}if(!aW){if(aY.container.parentNode){if(aM.tool.indexOf("colorpicker")){aM.tool.setColor(aX)}else{if(aX.gradient){aM.gradient.setColor(aX.gradient)}else{aM.gradient.setColor(aX.rgbString)}}}else{if(!a2){var aZ="";if(aX.gradient){aM.startColor=aX.gradient;aZ=aX.gradient}else{aM.startColor=aX.rgbString;aZ=aX.rgbString}for(var a0=0;a0<aM.target.length;a0++){aM.target[a0].element.style[aM.target[a0].property]=aZ}}}}};aU.addEventListener("keyup",function(aW){aO()});return{div:v,button:aR,input:aU,settings:aM}}function aw(aO,aN){if(typeof aN=="undefined"){aN=1}var aQ=performance.now();var v=Array.prototype.slice.call(arguments,2);for(var aM=0;aM<aN;aM++){aO.apply(this,v)}var aP=/function ([^\(]+)?/.exec(aO.toString())[0];console.log("Time to run "+aP+" for "+aN+" time(s): "+(performance.now()-aQ));return performance.now()-aQ}var y={$:an,closeAllDivs:ai,shoh:o,setShohArrow:i,scrollPage:ap,setScrollURL:aD,setScrollAction:au,downloadfile:I,setCookie:al,getCookie:p,deleteCookie:at,v:D,post_to_url:az,postToIframe:j,htmlspecialchars:x,htmlspecialchars_decode:O,hx:Q,hdx:av,base64_encode:T,base64_decode:c,urlencode:e,urldecode:ab,encodestr:f,hasClass:aK,addClass:aA,removeClass:aC,parseJSON:C,round:z,randomNumber:ax,printDiv:ao,requestFullScreen:U,cancelFullScreen:N,isTouchDevice:k,fade:ar,scale:am,loadSourceFile:X,removeSourceFile:L,detectButton:aJ,arraySearch:aB,toTitleCase:S,getOffset:aq,getPropertyValue:G,cloneSettings:b,targetFontSize:aG,copyToClipboard:ay,innerSize:aj,scrollIntoView:aL,getScrollBarSize:d,vendorFunctionPrefix:ac,setOnLoad:m,removeOnLoad:ag,sourceFiles:M,createCombo:K,createListboxCombo:l,createEditableCombo:Y,createSliderInput:aa,createLabel:r,createCheckbox:Z,createRadio:F,createTable:ad,convertUnits:aF,splitUnit:R,getAbsoluteHeight:aE,getScroll:H,insertIntoTextarea:J,hasVerticalScroll:W,hasHorizontalScroll:n,hoverBorder:h,elementSize:aI,setOrientation:s,arrayMove:P,arrayInsertBefore:aH,display:a,formatDate:w,getColgroup:t,getTbody:V,createCloseButton:B,windowSize:g,propUnitsScale:af,createColorPickerInput:ah,timerTest:aw,ie9OrBelow:A,ie8OrBelow:ak};$msRoot.getChildClasses(y,"common");return y}();$ms.MutationObserver=(function(){var a={observe:{attributes:true,attributeOldValue:true,attributeFilter:["style"]},querySelectorAll:false,cb:undefined,property:["height","width"],};function b(){var c=this;this.observerList=[];this.MutationObserver=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(!this.MutationObserver){return}this.cb=function(e,d){e.map(function(f){c.attrModified.call(c,f,d)})};this.observer=new this.MutationObserver(this.cb)}b.prototype.observe=function(c,d){if(!this.MutationObserver){return}var f;this.settings=$ms.cloneSettings(a,d);if(this.settings.querySelectAll){f=document.querySelectorAll(c)}else{f=document.querySelector(c)}if(!f){console.log("MutationObserver - No matches for: "+c);return}else{if(!Array.isArray(f)){f=[f]}}this.observerList=f;for(var e=0;e<f.length;e++){this.observer.observe(f[e],this.settings.observe)}};b.prototype.attrModified=function(f,j){var d=f.attributeName;if(d){if(d=="style"){if(f.oldValue==null){return}var n=f.oldValue.split(";");var l=[];var h=false;var m,c,e,k;for(var g=0;g<n.length;g++){k=n[g].split(":");m=k[0];if(!m){continue}m=m.trim();if(k.length>1){c=k[1].trim()}e=f.target.style[m];l.push({property:m,oldValue:c,newValue:e});if(this.settings.property.indexOf(l.property!==-1)){h=true}}if(!h){console.log("Mutation - Different property changed: "+c);return}if(this.settings.cb){this.settings.cb(f.target,l)}}else{if(this.settings.cb){var e=f.target.getAttribute(d);var c=f.oldValue;this.settings.cb(f.target,d,e)}else{console.log("Mutation - No callback for attribute: "+d);console.log(f)}}}};b.prototype.disconnect=function(){if(this.MutationObserver){this.observer.disconnect()}};return b})();