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