if(!LBS)var LBS={};
LBS.UTIL=new (function(){this.getWindowDimensions=function(){return a()};this.getWindowScroll=function(){return v()};this.getElementPosition=function(g){return j(g)};var a=function(){a=typeof window.innerWidth=="number"?function(){return{width:window.innerWidth,height:window.innerHeight}}:document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)?function(){return{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight}}:document.body&&
(document.body.clientWidth||document.body.clientHeight)?function(){return{width:document.body.clientWidth,height:document.body.clientHeight}}:function(){return null};return a()},v=function(){v=typeof window.pageYOffset=="number"?function(){return{x:window.pageXOffset,y:window.pageYOffset}}:document.body&&(document.body.scrollLeft||document.body.scrollTop)?function(){return{x:document.body.scrollLeft,y:document.body.scrollTop}}:document.documentElement&&(typeof document.documentElement.scrollLeft==
"number"||typeof document.documentElement.scrollTop=="number")?function(){return{x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop}}:function(){return null};return v()},j=function(g){j=g.getBoundingClientRect?function(m){m=m.getBoundingClientRect();var n=v();if(document.documentElement&&document.documentElement.clientLeft==2)return{x:m.left+n.x-2,y:m.top+n.y-2};return{x:m.left+n.x,y:m.top+n.y}}:document.getBoxObjectFor?function(m){m=document.getBoxObjectFor(m);return{x:m.x,
y:m.y}}:g.offsetParent?function(m){var n=0,p=0;do{n+=m.offsetLeft;p+=m.offsetTop;m=m.offsetParent}while(m);return{x:n,y:p}}:g.x&&g.y?function(m){return{x:m.x,y:m.y}}:function(){return null};return j(g)}});
LBS.UTIL.DOM=new (function(){this.getElement=function(j){return v(j)};this.createElement=function(j,g){j=a(j);if(g)j.className=g;return j};this.createTextNode=function(j){return document.createTextNode(j)};this.appendElement=function(j,g){j.appendChild(g);return g};this.appendNewElement=function(j,g,m){g=a(g);j.appendChild(g);if(m)g.className=m;return g};this.appendText=function(j,g){j.appendChild(document.createTextNode(g))};this.clearElement=function(j){for(;j.firstChild;)j.removeChild(j.firstChild);
return j};var a=function(j){a=document.createElementNS?function(g){return document.createElementNS("http://www.w3.org/1999/xhtml","html:"+g)}:function(g){return document.createElement(g)};return a(j)},v=function(j){v=document.getElementById?function(g){return document.getElementById(g)}:document.all?function(g){return document.all[g]}:document.layers?function(g){return document.layers[g]}:function(){return null};return v(j)}});
LBS.UTIL.STR=new (function(){this.trim=function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};this.md5=function(a){function v(h,i,k){return h&i|~h&k}function j(h,i,k){return h&k|i&~k}function g(h,i,k){return h^i^k}function m(h,i,k){return i^(h|~k)}function n(h,i,k,l,q,r,s){h=o(h,o(o(v(i,k,l),q),s));return o(w(h,r),i)}function p(h,i,k,l,q,r,s){h=o(h,o(o(j(i,k,l),q),s));return o(w(h,r),i)}function t(h,i,k,l,q,r,s){h=o(h,o(o(g(i,k,l),q),s));return o(w(h,r),i)}function u(h,i,k,l,q,r,s){h=o(h,
o(o(m(i,k,l),q),s));return o(w(h,r),i)}var w=function(h,i){return h<<i|h>>>32-i},o=function(h,i){var k,l,q,r;q=h&2147483648;r=i&2147483648;k=h&1073741824;l=i&1073741824;h=(h&1073741823)+(i&1073741823);if(k&l)return h^2147483648^q^r;return k|l?h&1073741824?h^3221225472^q^r:h^1073741824^q^r:h^q^r},x=function(h){for(var i="",k="",l=0;l<=3;l++){k=h>>>l*8&255;k="0"+k.toString(16);i+=k.substr(k.length-2,2)}return i},b=1732584193,c=4023233417,d=2562383102,e=271733878,y,z,A,B,f=function(h){var i,k=h.length;
i=k+8;for(var l=((i-i%64)/64+1)*16,q=Array(l-1),r=0,s=0;s<k;){i=(s-s%4)/4;r=s%4*8;q[i]|=h.charCodeAt(s)<<r;s++}i=(s-s%4)/4;r=s%4*8;q[i]|=128<<r;q[l-2]=k<<3;q[l-1]=k>>>29;return q}(function(h){h=h.replace(/\r\n/g,"\n");for(var i="",k=0;k<h.length;k++){var l=h.charCodeAt(k);if(l<128)i+=String.fromCharCode(l);else{if(l>127&&l<2048)i+=String.fromCharCode(l>>6|192);else{i+=String.fromCharCode(l>>12|224);i+=String.fromCharCode(l>>6&63|128)}i+=String.fromCharCode(l&63|128)}}return i}(a));for(a=0;a<f.length;a+=
16){y=b;z=c;A=d;B=e;b=n(b,c,d,e,f[a+0],7,3614090360);e=n(e,b,c,d,f[a+1],12,3905402710);d=n(d,e,b,c,f[a+2],17,606105819);c=n(c,d,e,b,f[a+3],22,3250441966);b=n(b,c,d,e,f[a+4],7,4118548399);e=n(e,b,c,d,f[a+5],12,1200080426);d=n(d,e,b,c,f[a+6],17,2821735955);c=n(c,d,e,b,f[a+7],22,4249261313);b=n(b,c,d,e,f[a+8],7,1770035416);e=n(e,b,c,d,f[a+9],12,2336552879);d=n(d,e,b,c,f[a+10],17,4294925233);c=n(c,d,e,b,f[a+11],22,2304563134);b=n(b,c,d,e,f[a+12],7,1804603682);e=n(e,b,c,d,f[a+13],12,4254626195);d=n(d,
e,b,c,f[a+14],17,2792965006);c=n(c,d,e,b,f[a+15],22,1236535329);b=p(b,c,d,e,f[a+1],5,4129170786);e=p(e,b,c,d,f[a+6],9,3225465664);d=p(d,e,b,c,f[a+11],14,643717713);c=p(c,d,e,b,f[a+0],20,3921069994);b=p(b,c,d,e,f[a+5],5,3593408605);e=p(e,b,c,d,f[a+10],9,38016083);d=p(d,e,b,c,f[a+15],14,3634488961);c=p(c,d,e,b,f[a+4],20,3889429448);b=p(b,c,d,e,f[a+9],5,568446438);e=p(e,b,c,d,f[a+14],9,3275163606);d=p(d,e,b,c,f[a+3],14,4107603335);c=p(c,d,e,b,f[a+8],20,1163531501);b=p(b,c,d,e,f[a+13],5,2850285829);e=
p(e,b,c,d,f[a+2],9,4243563512);d=p(d,e,b,c,f[a+7],14,1735328473);c=p(c,d,e,b,f[a+12],20,2368359562);b=t(b,c,d,e,f[a+5],4,4294588738);e=t(e,b,c,d,f[a+8],11,2272392833);d=t(d,e,b,c,f[a+11],16,1839030562);c=t(c,d,e,b,f[a+14],23,4259657740);b=t(b,c,d,e,f[a+1],4,2763975236);e=t(e,b,c,d,f[a+4],11,1272893353);d=t(d,e,b,c,f[a+7],16,4139469664);c=t(c,d,e,b,f[a+10],23,3200236656);b=t(b,c,d,e,f[a+13],4,681279174);e=t(e,b,c,d,f[a+0],11,3936430074);d=t(d,e,b,c,f[a+3],16,3572445317);c=t(c,d,e,b,f[a+6],23,76029189);
b=t(b,c,d,e,f[a+9],4,3654602809);e=t(e,b,c,d,f[a+12],11,3873151461);d=t(d,e,b,c,f[a+15],16,530742520);c=t(c,d,e,b,f[a+2],23,3299628645);b=u(b,c,d,e,f[a+0],6,4096336452);e=u(e,b,c,d,f[a+7],10,1126891415);d=u(d,e,b,c,f[a+14],15,2878612391);c=u(c,d,e,b,f[a+5],21,4237533241);b=u(b,c,d,e,f[a+12],6,1700485571);e=u(e,b,c,d,f[a+3],10,2399980690);d=u(d,e,b,c,f[a+10],15,4293915773);c=u(c,d,e,b,f[a+1],21,2240044497);b=u(b,c,d,e,f[a+8],6,1873313359);e=u(e,b,c,d,f[a+15],10,4264355552);d=u(d,e,b,c,f[a+6],15,2734768916);
c=u(c,d,e,b,f[a+13],21,1309151649);b=u(b,c,d,e,f[a+4],6,4149444226);e=u(e,b,c,d,f[a+11],10,3174756917);d=u(d,e,b,c,f[a+2],15,718787259);c=u(c,d,e,b,f[a+9],21,3951481745);b=o(b,y);c=o(c,z);d=o(d,A);e=o(e,B)}return(x(b)+x(c)+x(d)+x(e)).toLowerCase()}});
LBS.UTIL.COOKIE=new (function(){this.writeCookie=function(a,v,j){var g="";if(j){g=new Date;g.setTime(g.getTime()+j*1E3);g="; expires="+g.toGMTString()}document.cookie=a+"="+encodeURIComponent(v)+g+"; path=/"};this.readCookie=function(a){if(!document.cookie)return null;a=a+"=";for(var v=document.cookie.split(";"),j=0;j<v.length;j++){for(var g=v[j];g.charAt(0)==" ";)g=g.substring(1,g.length);if(g.indexOf(a)==0)return decodeURIComponent(g.substring(a.length,g.length))}return null};this.eraseCookie=function(a){document.cookie=
a+"=; expires=-1; path=/"}});
