Array.prototype.search=function(a,b,d){if(void 0===a)return null;b||(b=function(a,b){return a==b?0:a<b?-1:1});for(var f=!1,e=0,i=this.length-1;e<=i;){var n=parseInt((e+i)/2);switch(b(this[n],a)){case -1:var g=n,e=n+1;break;case 1:var h=n,i=n-1;break;default:f=!0,d?e=n+1:i=n-1}}return!f?(this.insertIndex=g+1||h||0,-1):d?i:e};Array.prototype.indexOf=function(a,b){return this.search(a,b,!1)};Array.prototype.lastIndexOf=function(a,b){return this.search(a,b,!0)};
"function"!==typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/,"")});function getHTTPRequestObject(){var a;window.XMLHttpRequest?a=new XMLHttpRequest:window.ActiveXObject&&(a=new ActiveXObject("Microsoft.XMLHTTP"));return a}
"undefined"==typeof DOMParser&&(DOMParser=function(){},DOMParser.prototype.parseFromString=function(a,b){if("undefined"!=typeof ActiveXObject){var d=new ActiveXObject("MSXML.DomDocument");d.async=!1;d.loadXML(a);return d}if("undefined"!=typeof XMLHttpRequest)return d=new XMLHttpRequest,b||(b="application/xml"),d.open("GET","data:"+b+";charset=utf-8,"+encodeURIComponent(a),!1),d.overrideMimeType&&d.overrideMimeType(b),d.send(null),d.responseXML});
var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode_blocks:function(a){for(var b="",d,f,e,i,n,g=0,h=[],g=0;g<a.length;g++)h[4*g]=a[g]&255,h[4*g+1]=a[g]>>>8&255,h[4*g+2]=a[g]>>>16&255,h[4*g+3]=a[g]>>>24&255;for(g=0;g<h.length;)d=h[g++],a=h[g++],f=h[g++],e=d>>2,d=(d&3)<<4|a>>4,i=(a&15)<<2|f>>6,n=f&63,isNaN(a)?i=n=64:isNaN(f)&&(n=64),b=b+this._keyStr.charAt(e)+this._keyStr.charAt(d)+this._keyStr.charAt(i)+this._keyStr.charAt(n);delete h;return b},decode_blocks:function(a){var b=
"",d,f,e,i,n,g=0,h,b=[];for(h=0;g<a.length;)d=this._keyStr.indexOf(a.charAt(g++)),f=this._keyStr.indexOf(a.charAt(g++)),i=this._keyStr.indexOf(a.charAt(g++)),n=this._keyStr.indexOf(a.charAt(g++)),d=d<<2|f>>4,f=(f&15)<<4|i>>2,e=(i&3)<<6|n,b[h++]=d,64!=i&&(b[h++]=f),64!=n&&(b[h++]=e);a=[];h=(h-h%4)/4;for(g=0;g<h;g++)a[g]=b[4*g]|b[4*g+1]<<8|b[4*g+2]<<16|b[4*g+3]<<24;delete b;return a},encode:function(a){for(var b="",d,f,e,i,n,g,h=0,a=Base64._utf8_encode(a);h<a.length;)d=a.charCodeAt(h++),f=a.charCodeAt(h++),
e=a.charCodeAt(h++),i=d>>2,d=(d&3)<<4|f>>4,n=(f&15)<<2|e>>6,g=e&63,isNaN(f)?n=g=64:isNaN(e)&&(g=64),b=b+this._keyStr.charAt(i)+this._keyStr.charAt(d)+this._keyStr.charAt(n)+this._keyStr.charAt(g);return b},decode:function(a){for(var b="",d,f,e,i,n,g=0,a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");g<a.length;)d=this._keyStr.indexOf(a.charAt(g++)),f=this._keyStr.indexOf(a.charAt(g++)),i=this._keyStr.indexOf(a.charAt(g++)),n=this._keyStr.indexOf(a.charAt(g++)),d=d<<2|f>>4,f=(f&15)<<4|i>>2,e=(i&3)<<6|n,b+=String.fromCharCode(d),
64!=i&&(b+=String.fromCharCode(f)),64!=n&&(b+=String.fromCharCode(e));return b=Base64._utf8_decode(b)},_utf8_encode:function(a){for(var a=a.replace(/\r\n/g,"\n"),b="",d=0;d<a.length;d++){var f=a.charCodeAt(d);128>f?b+=String.fromCharCode(f):(127<f&&2048>f?b+=String.fromCharCode(f>>6|192):(b+=String.fromCharCode(f>>12|224),b+=String.fromCharCode(f>>6&63|128)),b+=String.fromCharCode(f&63|128))}return b},_utf8_decode:function(a){for(var b="",d=0,f=c1=c2=0;d<a.length;)f=a.charCodeAt(d),128>f?(b+=String.fromCharCode(f),
d++):191<f&&224>f?(c2=a.charCodeAt(d+1),b+=String.fromCharCode((f&31)<<6|c2&63),d+=2):(c2=a.charCodeAt(d+1),c3=a.charCodeAt(d+2),b+=String.fromCharCode((f&15)<<12|(c2&63)<<6|c3&63),d+=3);return b}},Abcd={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",encode:function(a){for(var b="",a=Base64._utf8_encode(a),d=0;d<a.length;d++)var f=a.charCodeAt(d),b=b+(this._keyStr.charAt(f&15)+this._keyStr.charAt(f>>>4));return b}};function testStorage(){return window.localStorage}
function setCookieEx(a,b){window.localStorage?window.localStorage.setItem(a,escape(b)):setCookie(a,b)}function getCookieEx(a){return window.localStorage?unescape(window.localStorage.getItem(a)):getCookie(a)}function deleteCookieEx(a){window.localStorage?window.localStorage.removeItem(a):deleteCookie(a)}
function setCookie(a,b,d,f,e,i){d=a+"="+escape(b)+(d?"; expires="+d.toGMTString():"")+(f?"; path="+f:"")+(e?"; domain="+e:"")+(i?"; secure":"");4E3>=(a+"="+escape(b)).length?document.cookie=d:confirm("Cookie \u00ef\u00f0\u00e5\u00e2\u00fb\u00f8\u00e0\u00e5\u00f2 4KB \u00e8 \u00e1\u00f3\u00e4\u00e5\u00f2 \u00e2\u00fb\u00f0\u00e5\u00e7\u00e0\u00ed !")&&(document.cookie=d)}
function GetCookie(a){var a=a+"=",b=document.cookie.indexOf(a);if(-1==b)return null;var d=document.cookie.indexOf(";",b+a.length);-1==d&&(d=document.cookie.length);return unescape(document.cookie.substring(b+a.length,d))}function getCookie(a){a=GetCookie(a);null==a&&(a="");return a}function deleteCookie(a,b,d){getCookie(a)&&(document.cookie=a+"="+(b?"; path="+b:"")+(d?"; domain="+d:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT")}
function date(a,b){var d=this,f="undefined"==typeof b?new Date:"number"==typeof b?new Date(1E3*b):new Date(b),e=function(a,b){return(a+="").length<b?Array(++b-a.length).join("0")+a:a},i="",n="Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),g={1:"st",2:"nd",3:"rd",21:"st",22:"nd",23:"rd",31:"st"},h=",January,February,March,April,May,June,July,August,September,October,November,December".split(","),o={d:function(){return e(o.j(),2)},D:function(){return o.l().substr(0,3)},j:function(){return f.getDate()},
l:function(){return n[o.w()]},N:function(){return o.w()?o.w():7},S:function(){return g[o.j()]?g[o.j()]:"th"},w:function(){return f.getDay()},z:function(){return(f-new Date(f.getFullYear()+"/1/1"))/864E5>>0},W:function(){var a=o.z(),b=364+o.L()-a,e=((new Date(f.getFullYear()+"/1/1")).getDay()||7)-1;if(2>=b&&(f.getDay()||7)-1<=2-b)return 1;return 2>=a&&4<=e&&a>=6-e?(a=new Date(f.getFullYear()-1+"/12/31"),d.date("W",Math.round(a.getTime()/1E3))):(a=1+(3>=e?(a+e)/7:(a-(7-e))/7)>>0)?a:53},F:function(){return h[o.n()]},
m:function(){return e(o.n(),2)},M:function(){return o.F().substr(0,3)},n:function(){return f.getMonth()+1},t:function(){var a;return 2==(a=f.getMonth()+1)?28+o.L():a&1&&8>a||!(a&1)&&7<a?31:30},L:function(){var a=o.Y();return!(a&3)&&(a%100||!(a%400))?1:0},o:function(){return 12===o.n()&&1===o.W()?f.getFullYear()+1:1===o.n()&&52<=o.W()?f.getFullYear()-1:f.getFullYear()},Y:function(){return f.getFullYear()},y:function(){return(f.getFullYear()+"").slice(2)},a:function(){return 11<f.getHours()?"pm":"am"},
A:function(){return o.a().toUpperCase()},B:function(){var a=60*(f.getTimezoneOffset()+60),a=3600*f.getHours()+60*f.getMinutes()+f.getSeconds()+a,a=Math.floor(a/86.4);1E3<a&&(a-=1E3);0>a&&(a+=1E3);1==(""+a).length&&(a="00"+a);2==(""+a).length&&(a="0"+a);return a},g:function(){return f.getHours()%12||12},G:function(){return f.getHours()},h:function(){return e(o.g(),2)},H:function(){return e(f.getHours(),2)},i:function(){return e(f.getMinutes(),2)},s:function(){return e(f.getSeconds(),2)},u:function(){return e(1E3*
f.getMilliseconds(),6)},e:function(){return"UTC"},I:function(){var a=new Date(f.getFullYear(),0,1,0,0,0,0),b=new Date(f.getFullYear(),6,1,0,0,0,0),d=a.toUTCString(),e=new Date(d.slice(0,d.lastIndexOf(" ")-1)),d=b.toUTCString(),d=new Date(d.slice(0,d.lastIndexOf(" ")-1));return(a-e)/36E5===(b-d)/36E5?0:1},O:function(){var a=e(Math.abs(100*(f.getTimezoneOffset()/60)),4);return a=0<f.getTimezoneOffset()?"-"+a:"+"+a},P:function(){var a=o.O();return a.substr(0,3)+":"+a.substr(3,2)},T:function(){return"UTC"},
Z:function(){return 60*-f.getTimezoneOffset()},c:function(){return o.Y()+"-"+o.m()+"-"+o.d()+"T"+o.h()+":"+o.i()+":"+o.s()+o.P()},r:function(){return o.D()+", "+o.d()+" "+o.M()+" "+o.Y()+" "+o.H()+":"+o.i()+":"+o.s()+" "+o.O()},U:function(){return Math.round(f.getTime()/1E3)}};return a.replace(/[\\]?([a-zA-Z])/g,function(a,b){return i=a!=b?b:o[b]?o[b]():b})}function time(){return Math.round((new Date).getTime()/1E3)}
function mktime(){for(var a=0,b=0,d=0,f=0,e=new Date,i=new Date,n=arguments,g=n.length,h={"0":function(a){return e.setHours(a)},1:function(a){return e.setMinutes(a)},2:function(a){a=e.setSeconds(a);f=e.getDate()-i.getDate();return a},3:function(a){a=e.setMonth(parseInt(a,10)-1);d=e.getFullYear()-i.getFullYear();return a},4:function(a){return e.setDate(a+f)},5:function(a){0<=a&&69>=a?a+=2E3:70<=a&&100>=a&&(a+=1900);return e.setFullYear(a+d)}},b=0;b<g;b++){var o;o=3==b?4:4==b?3:b;a=parseInt(1*n[o],
10);if(isNaN(a)||!h[o](a))return!1}for(b=g;6>b;b++){switch(b){case 0:a=i.getHours();break;case 1:a=i.getMinutes();break;case 2:a=i.getSeconds();break;case 3:a=i.getDate();break;case 4:a=i.getMonth()+1;break;case 5:a=i.getFullYear()}o=3==b?4:4==b?3:b;h[o](a)}return Math.floor(e.getTime()/1E3)}function toggleDisabled(a){toggleDisabled1(document.getElementById(a))}
function toggleDisabled1(a){try{a.disabled=a.disabled?!1:!0}catch(b){}if(a.childNodes&&0<a.childNodes.length)for(var d=0;d<a.childNodes.length;d++)toggleDisabled1(a.childNodes[d])}function getElement(a){return document.getElementById(a)}function submitForm(a){try{document.getElementById(a).submit()}catch(b){}}function getElementHTML(a){try{return document.getElementById(a).innerHTML}catch(b){return""}}
function setElementHTML(a,b){try{"lost"==a&&""!=b?($("#"+a).hide(),document.getElementById(a).innerHTML=b,$("#"+a).show("slow")):(document.getElementById(a).innerHTML=b,$("#"+a).show())}catch(d){}resizeMainContent()}function resizeMainContent(){$(".autoHeight").css("min-height",$(".autoHeight").height()+($(window).height()-$("body").outerHeight()))}function setElementHTML_OLD(a,b){try{document.getElementById(a).innerHTML=b}catch(d){}}
function getElementValue(a){try{return document.getElementById(a).value}catch(b){return""}}function setElementValue(a,b){try{document.getElementById(a).value=b}catch(d){}}function write(a){document.writeln(a)}function writeln(a){write(a+"<br>")}function write_r(a){for(var b=0;b<a.length;b++)writeln(a[b])}function RightShift(a,b){return a>>>b}function ROTL32(a,b){a%=4294967296;b&=31;return a<<b&4294967295|RightShift(a,32-b)}function ROTR32(a,b){a%=4294967296;b&=31;return a>>>b|a<<32-b}
function Ord(a){return a.charCodeAt(0)}function Chr(a){return String.fromCharCode(a)+""}function getIntegerFromString(a){for(var b=0,d=0;4>d;d++){var f=0;d<a.length&&(f=Ord(a.charAt(d)));b|=f<<8*d}return b}function getStringFromInteger(a){for(var b="",d=0;4>d;d++)0!=(a>>>8*d&255)&&(b+=Chr(a>>>8*d&255));return b}
function fromStringToIntArray(a,b){for(var d=a.length,d=(d-d%16)/16+(0<d%16),f=[],e=0;e<d;e++)for(var i=0;4>i;i++){var n=a.substr(0,4);f[4*e+i]=getIntegerFromString(n);f[4*e+i]+=parseInt(b&4294967295,10);f[4*e+i]&=4294967295;a=a.substr(4)}return f}function fromIntArrayToString(a){for(var b=a.length/4,d="",f=0;f<b;f++)for(var e=0;4>e;e++)d+=getStringFromInteger(a[4*f+e]);return d}
function rc6_key(a,b,d){var f,e,i,n;f=2*d+4;if(null==a||1>a.length)a="";a=a.substr(0,16);a=fromStringToIntArray(a,b);c={};c.nr=d;c.xk=[];c.xk[0]=3084996963;for(b=1;b<f;b++)c.xk[b]=c.xk[b-1]+2654435769,c.xk[b]%=4294967296;b=i=n=0;f=4>f?12:3*f;for(e=0;0<f;f--)c.xk[e]=ROTL32(c.xk[e]+i+n,3),i=c.xk[e],a[b]=ROTL32(a[b]+i+n,i+n),n=a[b],e=(e+1)%(2*d+4),b=(b+1)%4;delete a;return c}
function multiply(a,b){var d=0,a=a%4294967296;0>a&&(a+=4294967296);b%=4294967296;0>b&&(b+=4294967296);d=a*(b%65536)%4294967296;0>d&&(d+=4294967296);var f;f=a*(b>>>16)<<16;0>f&&(f+=4294967296);f=(f+d)%4294967296;0>f&&(f+=4294967296);return f}
function rc6_encrypt(a,b){for(var d=fromStringToIntArray(a,0),f=(d.length-d.length%4)/4,e=0;e<f;e++){d[1+4*e]+=b.xk[0];d[1+4*e]%=4294967296;d[3+4*e]+=b.xk[1];d[3+4*e]%=4294967296;for(var i=1;i<=b.nr;i++){var n=ROTL32(multiply(d[1+4*e],2*d[1+4*e]+1),5),n=n%4294967296,g=ROTL32(multiply(d[3+4*e],2*d[3+4*e]+1),5),g=g%4294967296;d[0+4*e]=ROTL32(d[0+4*e]^n,g)+b.xk[2*i];d[0+4*e]%=4294967296;d[2+4*e]=ROTL32(d[2+4*e]^g,n)+b.xk[2*i+1];d[2+4*e]%=4294967296;n=d[0+4*e];d[0+4*e]=d[1+4*e];d[1+4*e]=d[2+4*e];d[2+
4*e]=d[3+4*e];d[3+4*e]=n}d[0+4*e]+=b.xk[2*b.nr+2];d[0+4*e]%=4294967296;d[2+4*e]+=b.xk[2*b.nr+3];d[2+4*e]%=4294967296}return d}
function rc6_decrypt(a,b){for(var d=a.length/4,f=b.nr,e=0;e<d;e++){a[2+4*e]-=b.xk[2*f+3];a[0+4*e]-=b.xk[2*f+2];for(var i=f;1<=i;i--){var n=a[3+4*e];a[3+4*e]=a[2+4*e];a[2+4*e]=a[1+4*e];a[1+4*e]=a[0+4*e];a[0+4*e]=n;var g=ROTL32(multiply(a[3+4*e],2*a[3+4*e]+1),5),n=ROTL32(multiply(a[1+4*e],2*a[1+4*e]+1),5);a[2+4*e]=ROTR32(a[2+4*e]-b.xk[2*i+1],n)^g;a[0+4*e]=ROTR32(a[0+4*e]-b.xk[2*i],g)^n}a[3+4*e]-=b.xk[1];a[1+4*e]-=b.xk[0]}return fromIntArrayToString(a)}
function rc6encrypt(a,b,d){b=rc6_key(b,d,20);a=rc6_encrypt(a,b);delete b;return a}function rc6decrypt(a,b,d){b=rc6_key(b,d,20);a=rc6_decrypt(a,b);delete b;return a}function strtolower(a){return(a+"").toLowerCase()}function isTrue(a){return!0==a||"true"==strtolower(a)}function fixVParam(a){return a=webprint(a+"")}
function JXMLMessage(){this.str='<?xml version="1.0" encoding="utf-8"?><body>';this.name="";this.addXMLBlock=function(a){this.str+="<"+a+">";this.name=a};this.closeXMLBlock=function(){this.str+="</"+this.name+">";this.name=""};this.addVXMLBlock=function(a){this.str+="<"+a};this.closeVXMLBlock=function(){this.str+="/>"};this.addVXMLData=function(a,b){this.str+=" "+a+'="'+fixVParam(b)+'"'};this.addXMLData=function(a,b){this.str+="<"+a+">"+b+"</"+a+">"};this.getString=function(){return this.str+"</body>"}}
function getIP(a){return(a&255)+"."+(a>>8&255)+"."+(a>>16&255)+"."+(a>>>24)}function inet_addr(a){a=a.split(".");return 4==a.length?parseInt(a[0],10)+256*parseInt(a[1])+65536*parseInt(a[2])+16777216*parseInt(a[3]):0}function webprint(a){return a.replace(/&/g,"&amp;").replace(/\</g,"&lt;").replace(/\>/g,"&gt;").replace(/\"/g,"&quot;").replace(/\'/g,"&apos;")}
function sizeString(a){if("DIR"==a)return a;for(var a=a+"",b=(a.length+2)%3+1,d=a.substring(0,b);b+3<=a.length;)d=d+","+a.substring(b,b+3),b+=3;return d}
function sizeString1(a){if("DIR"==a)return a;var b=0,a=parseFloat(a);1073741824<=a?(b=parseInt(100*(a/1073741824)+0.5),b=0==b%100?b/100+" gb":0==b%10?div(b,100)+"."+b%100/10+" gb":b/100+" gb"):1048576<=a?(b=parseInt(100*(a/1048576)+0.5),b=0==b%100?b/100+" mb":0==b%10?div(b,100)+"."+b%100/10+" mb":b/100+" mb"):1024<=a?(b=parseInt(100*(a/1024)+0.5),b=0==b%100?b/100+" kb":0==b%10?div(b,100)+"."+b%100/10+" kb":b/100+" kb"):b=a;return b}function div(a,b){return parseInt((a-a%b)/b)}
function timeStr(a){var b=div(a,3600),a=a%3600,d=div(a,60);10>d&&(d="0"+d);a=a%60%60;10>a&&(a="0"+a);d=d+":"+a;0<b&&(10>b&&(b="0"+b),d=b+":"+d);return d}
function md5(a){var b=function(a,b){var d,e,f,g,h;f=a&2147483648;g=b&2147483648;d=a&1073741824;e=b&1073741824;h=(a&1073741823)+(b&1073741823);return d&e?h^2147483648^f^g:d|e?h&1073741824?h^3221225472^f^g:h^1073741824^f^g:h^f^g},d=function(a,d,e,f,g,h,i){a=b(a,b(b(d&e|~d&f,g),i));return b(a<<h|a>>>32-h,d)},f=function(a,d,e,f,g,h,i){a=b(a,b(b(d&f|e&~f,g),i));return b(a<<h|a>>>32-h,d)},e=function(a,d,e,f,g,h,i){a=b(a,b(b(d^e^f,g),i));return b(a<<h|a>>>32-h,d)},i=function(a,d,e,f,g,h,i){a=b(a,b(b(e^(d|
~f),g),i));return b(a<<h|a>>>32-h,d)},n=function(a){var b="",d="",e;for(e=0;3>=e;e++)d=a>>>8*e&255,d="0"+d.toString(16),b+=d.substr(d.length-2,2);return b},g=[],h,o,p,q,r,j,k,l,m,g=function(a){var b,d=a.length;b=d+8;for(var e=16*((b-b%64)/64+1),f=Array(e-1),g=0,h=0;h<d;)b=(h-h%4)/4,g=8*(h%4),f[b]|=a.charCodeAt(h)<<g,h++;b=(h-h%4)/4;f[b]|=128<<8*(h%4);f[e-2]=d<<3;f[e-1]=d>>>29;return f}(a);j=1732584193;k=4023233417;l=2562383102;m=271733878;a=g.length;for(h=0;h<a;h+=16)o=j,p=k,q=l,r=m,j=d(j,k,l,m,g[h+
0],7,3614090360),m=d(m,j,k,l,g[h+1],12,3905402710),l=d(l,m,j,k,g[h+2],17,606105819),k=d(k,l,m,j,g[h+3],22,3250441966),j=d(j,k,l,m,g[h+4],7,4118548399),m=d(m,j,k,l,g[h+5],12,1200080426),l=d(l,m,j,k,g[h+6],17,2821735955),k=d(k,l,m,j,g[h+7],22,4249261313),j=d(j,k,l,m,g[h+8],7,1770035416),m=d(m,j,k,l,g[h+9],12,2336552879),l=d(l,m,j,k,g[h+10],17,4294925233),k=d(k,l,m,j,g[h+11],22,2304563134),j=d(j,k,l,m,g[h+12],7,1804603682),m=d(m,j,k,l,g[h+13],12,4254626195),l=d(l,m,j,k,g[h+14],17,2792965006),k=d(k,l,
m,j,g[h+15],22,1236535329),j=f(j,k,l,m,g[h+1],5,4129170786),m=f(m,j,k,l,g[h+6],9,3225465664),l=f(l,m,j,k,g[h+11],14,643717713),k=f(k,l,m,j,g[h+0],20,3921069994),j=f(j,k,l,m,g[h+5],5,3593408605),m=f(m,j,k,l,g[h+10],9,38016083),l=f(l,m,j,k,g[h+15],14,3634488961),k=f(k,l,m,j,g[h+4],20,3889429448),j=f(j,k,l,m,g[h+9],5,568446438),m=f(m,j,k,l,g[h+14],9,3275163606),l=f(l,m,j,k,g[h+3],14,4107603335),k=f(k,l,m,j,g[h+8],20,1163531501),j=f(j,k,l,m,g[h+13],5,2850285829),m=f(m,j,k,l,g[h+2],9,4243563512),l=f(l,
m,j,k,g[h+7],14,1735328473),k=f(k,l,m,j,g[h+12],20,2368359562),j=e(j,k,l,m,g[h+5],4,4294588738),m=e(m,j,k,l,g[h+8],11,2272392833),l=e(l,m,j,k,g[h+11],16,1839030562),k=e(k,l,m,j,g[h+14],23,4259657740),j=e(j,k,l,m,g[h+1],4,2763975236),m=e(m,j,k,l,g[h+4],11,1272893353),l=e(l,m,j,k,g[h+7],16,4139469664),k=e(k,l,m,j,g[h+10],23,3200236656),j=e(j,k,l,m,g[h+13],4,681279174),m=e(m,j,k,l,g[h+0],11,3936430074),l=e(l,m,j,k,g[h+3],16,3572445317),k=e(k,l,m,j,g[h+6],23,76029189),j=e(j,k,l,m,g[h+9],4,3654602809),
m=e(m,j,k,l,g[h+12],11,3873151461),l=e(l,m,j,k,g[h+15],16,530742520),k=e(k,l,m,j,g[h+2],23,3299628645),j=i(j,k,l,m,g[h+0],6,4096336452),m=i(m,j,k,l,g[h+7],10,1126891415),l=i(l,m,j,k,g[h+14],15,2878612391),k=i(k,l,m,j,g[h+5],21,4237533241),j=i(j,k,l,m,g[h+12],6,1700485571),m=i(m,j,k,l,g[h+3],10,2399980690),l=i(l,m,j,k,g[h+10],15,4293915773),k=i(k,l,m,j,g[h+1],21,2240044497),j=i(j,k,l,m,g[h+8],6,1873313359),m=i(m,j,k,l,g[h+15],10,4264355552),l=i(l,m,j,k,g[h+6],15,2734768916),k=i(k,l,m,j,g[h+13],21,
1309151649),j=i(j,k,l,m,g[h+4],6,4149444226),m=i(m,j,k,l,g[h+11],10,3174756917),l=i(l,m,j,k,g[h+2],15,718787259),k=i(k,l,m,j,g[h+9],21,3951481745),j=b(j,o),k=b(k,p),l=b(l,q),m=b(m,r);return(n(j)+n(k)+n(l)+n(m)).toLowerCase()}function getSoundbyID(a){var b="";160==a&&(b="GSM");176==a&&(b="GSM 48kHz");161==a&&(b="AAC");177==a&&(b="AAC 48kHz");162==a&&(b="GSM Low");178==a&&(b="GSM Low 48kHz");163==a&&(b="CELP Low");179==a&&(b="CELP Low 48kHz");return b}
Date.prototype.format=function(a){for(var b="",d=Date.replaceChars,f=0;f<a.length;f++){var e=a.charAt(f);0<=f-1&&"\\"==a.charAt(f-1)?b+=e:d[e]?b+=d[e].call(this):"\\"!=e&&(b+=e)}return b};
Date.replaceChars={shortMonths:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),longMonths:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),shortDays:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),longDays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),d:function(){return(10>this.getDate()?"0":"")+this.getDate()},D:function(){return Date.replaceChars.shortDays[this.getDay()]},j:function(){return this.getDate()},l:function(){return Date.replaceChars.longDays[this.getDay()]},
N:function(){return this.getDay()+1},S:function(){return 1==this.getDate()%10&&11!=this.getDate()?"st":2==this.getDate()%10&&12!=this.getDate()?"nd":3==this.getDate()%10&&13!=this.getDate()?"rd":"th"},w:function(){return this.getDay()},z:function(){var a=new Date(this.getFullYear(),0,1);return Math.ceil((this-a)/864E5)},W:function(){var a=new Date(this.getFullYear(),0,1);return Math.ceil(((this-a)/864E5+a.getDay()+1)/7)},F:function(){return Date.replaceChars.longMonths[this.getMonth()]},m:function(){return(9>
this.getMonth()?"0":"")+(this.getMonth()+1)},M:function(){return Date.replaceChars.shortMonths[this.getMonth()]},n:function(){return this.getMonth()+1},t:function(){var a=new Date;return(new Date(a.getFullYear(),a.getMonth(),0)).getDate()},L:function(){var a=this.getFullYear();return 0==a%400||0!=a%100&&0==a%4},o:function(){var a=new Date(this.valueOf());a.setDate(a.getDate()-(this.getDay()+6)%7+3);return a.getFullYear()},Y:function(){return this.getFullYear()},y:function(){return(""+this.getFullYear()).substr(2)},
a:function(){return 12>this.getHours()?"am":"pm"},A:function(){return 12>this.getHours()?"AM":"PM"},B:function(){return Math.floor(1E3*((this.getUTCHours()+1)%24+this.getUTCMinutes()/60+this.getUTCSeconds()/3600)/24)},g:function(){return this.getHours()%12||12},G:function(){return this.getHours()},h:function(){return(10>(this.getHours()%12||12)?"0":"")+(this.getHours()%12||12)},H:function(){return(10>this.getHours()?"0":"")+this.getHours()},i:function(){return(10>this.getMinutes()?"0":"")+this.getMinutes()},
s:function(){return(10>this.getSeconds()?"0":"")+this.getSeconds()},u:function(){var a=this.getMilliseconds();return(10>a?"00":100>a?"0":"")+a},e:function(){return"Not Yet Supported"},I:function(){return"Not Yet Supported"},O:function(){return(0>-this.getTimezoneOffset()?"-":"+")+(10>Math.abs(this.getTimezoneOffset()/60)?"0":"")+Math.abs(this.getTimezoneOffset()/60)+"00"},P:function(){return(0>-this.getTimezoneOffset()?"-":"+")+(10>Math.abs(this.getTimezoneOffset()/60)?"0":"")+Math.abs(this.getTimezoneOffset()/
60)+":00"},T:function(){var a=this.getMonth();this.setMonth(0);var b=this.toTimeString().replace(/^.+ \(?([^\)]+)\)?$/,"$1");this.setMonth(a);return b},Z:function(){return 60*-this.getTimezoneOffset()},c:function(){return this.format("Y-m-d\\TH:i:sP")},r:function(){return this.toString()},U:function(){return this.getTime()/1E3}};function getUrlParam(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");a=RegExp("[\\?&]"+a+"=([^&#]*)").exec(window.location.href);return null==a?!1:a[1]}
function getGpsLink(a,b,d,f){var e="";return""==a||""==b?e+"":e+('<a href="http://www.google.com/maps?q=+'+a+","+b+"("+f+')&iwloc=A&hl=en" target="_blank">'+d+"</a>")}
function filterFileAccess(a){aAccess=a.split(", ");strHtml="";maxDisplay=3;if(""!=a&&0<aAccess.length)for(var b=0;b<aAccess.length&&b<maxDisplay;b++)b==maxDisplay-1&&b!==aAccess.length-1?(strHtml+=aAccess[b]+'<br /><a href="javascript:void(0)" onclick="$(this).parent().html(\''+a+"')\">...show all "+aAccess.length+"</a>",b=aAccess.length):(strHtml+=aAccess[b],strHtml+=b<aAccess.length-1?", ":"");return strHtml}function getNULL(a){return null==a||1>a.length?"N/A":a}
function mysqlToJsDate(a){return(""+a).replace(/\-/g,"/")}function setPassword(a){setCookieEx(getSLSPasswordKey(),a)}function getPassword(){return getCookieEx(getSLSPasswordKey())}function clearServerTimeDiff(){setCookie(getSLSKey("diff_time"),"")}function setServerTimeDiff(a,b){return 1>getServerTimeDiff().length?(setCookie(getSLSKey("diff_time"),a-b),!0):!1}function getServerTimeDiff(){return getCookie(getSLSKey("diff_time"))}
function viaFilter(a,b){if(0==b.length)return webprint(a);for(var d=strtolower(a),f=strtolower(b),e=0,i=0;;){e=d.indexOf(f,e);if(-1==e)break;a=webprint(a.substr(0,e+45*i))+'<span style="background-color:yellow">'+webprint(a.substr(e+45*i,b.length))+"</span>"+webprint(a.substr(e+b.length+45*i));e+=b.length;i++}return a}function getSLSPasswordKey(){return __project+"__"+__rip+"__"+__port+"__password__"+escape(__login)}function getSLSKey(a){return __project+"__"+__rip+"__"+__port+"__"+a}
function testXML(a){return a.substr(0,16)==testXMLSample.substr(0,16)}function encryptS(a,b){var d=time()-(__localtime-__servertime),d=rc6encrypt(Base64._utf8_encode(a),b,d),f=Base64.encode_blocks(d);delete d;return f}function decryptS(a,b){for(var d=Base64.decode_blocks(a),f=time()+2-(__localtime-__servertime),e=0;30>e;e++){for(var i=[],n=0;4>n;n++)i[n]=d[n];i=rc6decrypt(i,b,f);if(testXML(i))return Base64._utf8_decode(rc6decrypt(d,b,f));f--}return""}
function processAjaxResponse(a,b){if(1==USE_CIPHER)if(0<b.getElementsByTagName(ENCRYPTED).length){var d=b.getElementsByTagName(ENCRYPTED)[0].getAttribute(ENC_DATA);null==d&&(d="");d=decryptS(d,__password);d=(new DOMParser).parseFromString(d,"text/xml");null==d||1>d.childNodes.length||"body"!=d.childNodes[d.childNodes.length-1].nodeName?a.errorCallback(b):a.Callback(d)}else a.errorCallback(b);else 0==a.errorCallback(b)&&a.Callback(b)}function empty(){}
function sendRequest(a,b,d,f,e,i,n,g){this.timer=null;this.idx=0;this.send=sendMessage;this.xmlhttp=null;this.secs=b;this.max_count=d;this.Callback=f;this.errorCallback=e;this.timerString=i;this.message=a;this.dConCntSLS=this.dConCntApache=0;this.OK=OK;this.flags=g;this.script=null==n?AJAX_SCRIPT:n;this.send();this.restartTimer=function(){null!=this.timer&&0!=b&&(window.clearTimeout(this.timer),this.timer=null);0<b&&(this.timer=window.setTimeout(i,1E3*b))};this.ApacheLost=function(){this.dConCntApache++;
this.dConCntSLS=0;var a="";"yes"==getUrlParam("show")&&(a=" ("+this.dConCntApache+")");setElementHTML("lost","Cannot connect to Live Server.  Please check your network connection and wait for the page to reload"+a+".");this.restartTimer()};this.printErrorMessage=function(a){if(0<a.getElementsByTagName("error").length){var b=a.getElementsByTagName("error")[0].getAttribute(CODE);b!=E_SUCCESS&&setElementHTML("lost",a.getElementsByTagName("error")[0].getAttribute("str"));return b}return E_SUCCESS}}
function sendMessage(){null!=this.timer&&0!=this.secs&&(window.clearTimeout(this.timer),this.timer=null);null!=this.xmlhttp&&delete this.xmlhttp;this.xmlhttp=getHTTPRequestObject();var a=this;a.xmlhttp.open("POST",a.script,!0);a.xmlhttp.setRequestHeader("Content-Type","text/xml");a.xmlhttp.onreadystatechange=function(){ajax_callback(a)};var b;b=0<(a.flags&DYN_REQUEST)?getEncryptedXML(a.message()):getEncryptedXML(a.message);a.xmlhttp.send(b)}
function ajax_callback(a){4==a.xmlhttp.readyState&&(200==a.xmlhttp.status&&null!=a.xmlhttp.responseXML?processAjaxResponse(a,a.xmlhttp.responseXML.documentElement):(a.idx++,a.idx<a.max_count?a.send():0<a.secs&&(a.idx=0,a.ApacheLost())))}function getEncryptedXML(a){var b=new JXMLMessage;b.addVXMLBlock(ENCRYPTED);a=encryptS(a,__password);b.addVXMLData(ENC_DATA,a);b.addVXMLData(LOGIN,__login);b.closeVXMLBlock();return b.getString()}
function checkConnection(a){null==a&&(a=OK);sReq=new sendRequest(sxmlStr.getString(),15,3,a,relogin,"sReq.send()")}function OK(){this.dConCntSLS=this.dConCntApache=0;setElementHTML("lost","")}function fixIE(){var a=getServerTimeDiff();return __localtime-__servertime!=a?(__servertime=__localtime-a,!0):!1}
function relogin(a){var b=1;if(0==USE_CIPHER&&0!=a.getElementsByTagName("error").length)return 0;if(0==a.getElementsByTagName(REPLY).length)fixIE()?this.idx<this.max_count&&(this.idx++,this.send()):this.ApacheLost();else if("not_enabled"==a.getElementsByTagName(REPLY)[0].getAttribute(DATA)){var d="",d=a.getElementsByTagName(REPLY)[0].getAttribute("type")==ACC_ADMIN?'The System administrator has disabled your account.  Please contact Streambox technical support by email <a href="mailto:support@streambox.com">support@streambox.com</a>, or by phone +1 206.956.0544, Option 5.':
"The System administrator has disabled your account.  Please contact your group administrator ["+a.getElementsByTagName(REPLY)[0].getAttribute("drm")+'] or Streambox technical support by email <a href="mailto:support@streambox.com">support@streambox.com</a>, or by phone +1 206.956.0544, Option 5.';setElementHTML("lost",d);this.restartTimer()}else"not_auth"==a.getElementsByTagName(REPLY)[0].getAttribute(DATA)?fixIE()?this.idx<this.max_count&&(this.idx++,this.send()):(setElementValue("auth1","login/password incorrect"),
submitForm("flogin")):"server is out"==a.getElementsByTagName(REPLY)[0].getAttribute(DATA)?(this.dConCntApache=0,this.dConCntSLS++,a="","yes"==getUrlParam("show")&&(a=" ("+this.dConCntSLS+")"),setElementHTML("lost","Live Server is temporarily unavailable"+a+". The page will be reloaded on the server getting online"),this.restartTimer()):b=0;return b}
function _split(a,b){for(var d=25,d=void 0==b?25:b,f="",e=a,i=2*b/3;e.length>d;){var n=webprint2(e.substr(0,d)),e=e.substr(d);if(0<e.length)var g=n.lastIndexOf(" "),f=g>i?f+(n.substr(0,g)+"<br>"+n.substr(g+1)):f+(n+"<br>")}0<e.length&&(f+=webprint2(e));return f}
function _split2(a,b,d){for(var f=25,f=void 0==b?25:b,b="",e=a,i=0,n;e.length>f;){0!=b.length&&(b+="<br>");n=e.substr(0,f);i++;if(void 0!=d&&i==d)return d=a.replace(/^.*\.([^.]+)$/,"$1"),d==a&&(d=a.substr(a.length-4)),b+webprint2(n.substr(0,n.length-d.length)+"..."+d);b+=webprint2(n);e=e.substr(f)}0<e.length&&(0<b.length&&(b+="<br>"),b+=webprint2(e),i++);if(void 0!=d)for(;i<d;)b="<br>&nbsp;"+b,i++;return b}
function webprint2(a){return a.replace(/&/g,"&amp;").replace(/\</g,"&lt;").replace(/\>/g,"&gt;").replace(/\"/g,"&quot;").replace(/\'/g,"&apos;").replace(/ /g,"&nbsp;")}
function printContributorHeader(){return buildMenu({slshome:["slshome.php","images/files.gif","Home"],slsfiles:["slsfiles.php","images/active-connections.gif","Archive"],slsusers:["slsusers.php","images/active-connections.gif","Account"],slsadminpanel:["admin_panel.php?pid=3","images/active-connections.gif","Admin Panel"],slsdownload:["slsdownload.php","images/files.gif","Downloads"],slssupport:["slssupport.php","images/files.gif","Support"],slsfaq:["slsfaq.php","images/files.gif","FAQ"],slsfeedback:["http://www.streambox.com/community/contact-us/",
"images/active-connections.gif","Send Us Feedback"]})}
function printAdminHeader(){return buildMenu({slsmap:["slsmap.php","images/files.gif","Live"],slsfiles:["slsfiles.php","images/active-connections.gif","Archive"],slsdecs:["slsdecs.php","images/active-connections.gif","Decoders"],slsifbs:["slsifbs.php","images/active-connections.gif","IFB"],slsusers:["slsusers.php","images/active-connections.gif","Accounts"],slsadminpanel:["admin_panel.php?pid=3","images/active-connections.gif","Admin Panel"],slsdownload:["slsdownload.php","images/files.gif","Downloads"],
slssupport:["slssupport.php","images/files.gif","Support"],slsfaq:["slsfaq.php","images/files.gif","FAQ"]})}
function printUserHeader(){return buildMenu({slsmap:["slsmap.php","images/files.gif","Live"],slsfiles:["slsfiles.php","images/active-connections.gif","Archive"],slsdecs:["slsdecs.php","images/active-connections.gif","Decoders"],slsifbs:["slsifbs.php","images/active-connections.gif","IFB"],slsusers:["slsusers.php","images/active-connections.gif","Accounts"],slsdownload:["slsdownload.php","images/files.gif","Downloads"],slssupport:["slssupport.php","images/files.gif","Support"],slsfaq:["slsfaq.php",
"images/files.gif","FAQ"]})}function buildMenu(a){var b="",d;for(d in a)b=returnDocument()==a[d][0]?b+('<li><a id="current" name="'+d+'" href="'+a[d][0]+'">'+a[d][2]+"</a></li>"):b+('<li><a name="'+d+'" href="'+a[d][0]+'">'+a[d][2]+"</a></li>");return'<ul class="gradient">'+b+"</ul>"}function printLogout(){return'<a href="javascript:logout();" class="pagelink">&nbsp;&nbsp;&nbsp;Logout&nbsp;&nbsp;&nbsp;&nbsp;</a>'}
function returnDocument(){var a=document.location.href,b=-1==a.indexOf("?")?a.length:a.indexOf("?"),a=a.substring(a.lastIndexOf("/")+1,b),b=-1==a.indexOf("#")?a.length:a.indexOf("#");return a=a.substring(a.lastIndexOf("/")+1,b)}function printSearcher(){return'<li id="searchBar"> <form onsubmit="go();return false;"><input  id="flt" type="text" value=""/> <input class="formbutton" type="button" onclick="go()" value="Search"/> </form></li>'}
function printHideButton(){return'<span id="Hide_flags"></span>'}function logout(){deleteCookie(getSLSKey("login"));deleteCookieEx(getSLSPasswordKey());deleteCookie(getSLSKey("root"));deleteCookie(getSLSKey("type"));submitForm("flogin");return!0}function setFeedCount(a,b){var d="";1!=parseInt(a,10)&&(d="s");setElementHTML("active_feeds",a+" Active Feed"+d);setElementHTML("active_rfeeds","Routed Feeds: "+b)}function setVersion(a){setElementHTML("slogin","Version: "+a)}
function clickHideButtons(a){var b="";setCookie(getSLSKey("hidepublics"),a);1==a?b+='<span class="pagelink_cur" >&nbsp;&nbsp;&nbsp;DRM&nbsp;&nbsp;&nbsp;</span> <a class="pagelink" onclick="clickHideButtons(2)" >&nbsp;&nbsp;Public&nbsp;&nbsp;</a> <a class="pagelink" onclick="clickHideButtons(0)" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;All&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>':2==a?b+='<a class="pagelink" onclick="clickHideButtons(1)" >&nbsp;&nbsp;&nbsp;DRM&nbsp;&nbsp;&nbsp;</a> <span class="pagelink_cur">&nbsp;&nbsp;Public&nbsp;&nbsp;</span> <a class="pagelink" onclick="clickHideButtons(0)" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;All&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>':
0==a&&(b+='<a class="pagelink" onclick="clickHideButtons(1)" >&nbsp;&nbsp;&nbsp;DRM&nbsp;&nbsp;&nbsp;</a> <a class="pagelink" onclick="clickHideButtons(2)">&nbsp;&nbsp;Public&nbsp;&nbsp;</a> <span class="pagelink_cur">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;All&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>');setElementHTML("Hide_flags",b);urgentupdate()}function clickHidePublic1(){document.getElementById("hide_id").checked=!document.getElementById("hide_id").checked}
function clickHidePublic(){document.getElementById("hide_id").checked?setCookie(getSLSKey("hidepublics"),"1"):setCookie(getSLSKey("hidepublics"),"0");try{urgentupdate()}catch(a){}}
function printInfo(a){var b=a.getElementsByTagName(REPLY)[0].getAttribute("root");__root=b="1"==b||1==b;__type=a.getElementsByTagName(REPLY)[0].getAttribute("type");var d=a.getElementsByTagName(REPLY)[0].getAttribute("ver");setVersion(d);d=contributorHeader;b?d=rootHeader:__type==ACC_ADMIN?d=adminHeader:__type==ACC_USER&&(d=userHeader);for(var f=["slsmap.php","slsdecconf.php","slsfiles.php","slsfiles1.php"],e=returnDocument(),i=0;i<f.length;i++)if(f[i]==e){d=d.substr(0,d.length-5)+searcher+"</ul>";
0==getElementHTML("submenu").length&&(addToSubmenu("drmFilter",hideButton,!0),clickHideButtons(getCookie(getSLSKey("hidepublics"))));break}setCookie(getSLSKey("menu"),d);0==$("#menu").html().trim().length&&$("#menu").html(d);try{"1"==getCookie(getSLSKey("hidepublics"))?document.getElementById("hide_id").checked=!0:document.getElementById("hide_id").checked=!1}catch(n){}d=a.getElementsByTagName(REPLY)[0].getAttribute("inc");f=a.getElementsByTagName(REPLY)[0].getAttribute("out");setSystemStat(d,f);
f=a.getElementsByTagName(REPLY)[0].getAttribute("drm");d=__login;e=__type;""!=f&&(d+=" ["+f+" "+(e==ACC_ADMIN?"administrator":e==ACC_USER?"operator":"contributor")+"]");b&&(b=date("h:i:s a",new Date),d='<font style="color:red;font-weight:bold" >'+getCookie(getSLSKey("login"))+"</font>",f='<a href="slsserver.log" class="pagelink" target="_blank">System Log</a>',null!=a.getElementsByTagName(REPLY)[0].getAttribute("cap")&&(f="[Storage: "+a.getElementsByTagName(REPLY)[0].getAttribute("cap")+"% free since "+
b+"] "+f),setElementHTML("ctn_system_info",f));setElementHTML("ctn_session_info",d);setElementHTML("ctn_session_action",printLogout())}function setSystemStat(a,b){if(null!=a){var d="";1!=parseInt(a,10)&&(d="s");setElementHTML("active_feeds",a+" Active Feed"+d);active_feeds=a}else active_feeds=0,setElementHTML("active_feeds","");null!=b?setElementHTML("active_rfeeds","Routed Feeds: "+b):setElementHTML("active_rfeeds","")}
function printUserAcctStatus(a,b){var d="";if("<b>sys.admin</b>"!=getACC_TYPE(_data[a].id,_data[a].type)){var f=d="";10==_data[a].billing_type||0==_data[a].billing_type?(d="status_new_accounts",f="New Account"):12==_data[a].billing_type||2==_data[a].billing_type&&7<b?(d="status_inactive_accounts",f="Inactive Account"):14==_data[a].billing_type||1==_data[a].billing_type&&7<b&&30>=b?(d="status_cold_accounts",f="Cold Account"):16==_data[a].billing_type||1==_data[a].billing_type&&0<parseInt(_data[a].tax,
10)&&0.7>_data[a].cash/50?(d="status_high_usage",f="Hot Account"):15==_data[a].billing_type||1==_data[a].billing_type&&30<b?(d="status_expired_accounts",f="Expired Account"):13==_data[a].billing_type||3==_data[a].billing_type?(d="status_paid_accounts",f="$$$"):20==_data[a].billing_type&&(d="status_new_accounts",f="ProTrial");d='<span class="'+d+'" >'+f+"</span>"}return d}function showConfirmation(a){$("#msgbox").html(a).slideDown().delay(4E3).slideUp()}
function getSystemHeader(a){xmlStr=new JXMLMessage;xmlStr.addVXMLBlock(COMMAND);xmlStr.addVXMLData(DATA,"GetStreams");xmlStr.closeVXMLBlock();sreq=new sendRequest(xmlStr.getString(),15,3,a,relogin,"sreq.send()")}function getTimeByFName(a){var b=a.substr(0,a.length-6),d=b.substr(b.length-6),b=d.substr(0,2),f=d.substr(2,2),d=d.substr(4,2),b=parseInt(b),e="AM";12<=b&&(e="PM");b%=12;0==b&&(b=12);10>b&&(b="0"+b);return d=b+":"+f+":"+d+" "+e+" "+getGMTByFName(a)}
function getDayByFName(a){var a=a.substr(0,a.length-6),b=a.substr(a.length-13,6),a=b.substr(0,2),d=b.substr(2,2),b=parseInt(b.substr(4,2),10);return b=(new Date(b+2E3,parseInt(a,10)-1,parseInt(d,10))).toDateString().substr(0,3)+" "+a+"/"+d+"/"+(b+2E3)}function getGMTByFName(){return tzone}function printDataTable(a,b,d){$(document).ready(function(){$("#"+a).dataTable({aoColumns:b,aaData:d,bPaginate:!1,bSortClasses:!1,aaSorting:[[0,"asc"]],bLengthChange:!1,bAutoWidth:!1})})}
function StartStopButton(a){var b="";0!=_data[a].name.length&&(_data[a].routed==DEC_ROUTED?b+='<input type="button" class="formbutton" value="STOP" onclick="delr('+a+')"/>':_data[a].routed==DEC_FREE&&(b+='<input type="button" class="formbutton" value="START" onclick="addr('+a+')"/>'));return b}function addToSubmenu(a,b){setElementHTML("submenu",'<span id="submenu_'+a+'">'+b+"</span>")};
