(function(window,undefined){function $(a){return document.getElementById(a)}var document=window.document;var browsername=navigator.appName;var tJS=function(){var tJS=function(a,b){return new tJS.fn.init(a,b)},_tJS=window.tJS,_$=window.$,roottJS;tJS.fn=tJS.prototype={init:function(a){return document.getElementById(a)}};tJS.fn.init.prototype=tJS.fn;tJS.year=function(){return(new Date).getFullYear()};tJS.now=function(){return(new Date).getTime()};tJS.browser={ie:function(){if(browsername=="Microsoft Internet Explorer"){return true}else{return false}}(),ieVersion:function(){var a=-1;if(browsername=="Microsoft Internet Explorer"){var b=navigator.userAgent;var c=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");if(c.exec(b)!=null){a=parseFloat(RegExp.$1)}}return a}};tJS.util={LTrim:function(a){return a.replace(/^\s*/,"")},RTrim:function(a){return a.replace(/\s*$/,"")},Trim:function(a){return rtrim(ltrim(a))},JSONIsValid:function(str){tmp=/^\s*$/.test(str)?l:/^[\],:{}\s\u2028\u2029]*$/.test(str.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x10-\x1f\x80-\x9f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""));if(tmp){try{return eval("("+str+")")}catch(c){return false}}else{return false}},preloadImages:function(){for(i=0;i<arguments.length;i++){var a=arguments[i];self[a]=new Image;self[a].src=a}},formatEmail:function(a,b,c){document.write('<a href="mailto:'+a+"@"+b+'">'+c+"</a>")},setType:function(a){if(typeof a=="string"){return $(a)}else if(typeof a=="object"){return a}else{return null}}};tJS.css={width:{attribute:"offsetWidth",unit:"px",calc:function(a){return a}},height:{attribute:"offsetHeight",unit:"px",calc:function(a){return a}},left:{attribute:"offsetLeft",unit:"px",calc:function(a){return a}},top:{attribute:"offsetTop",unit:"px",calc:function(a){return a}},opacity:{attribute:"opacity",unit:"",calc:function(a){return a/100}},filter:{attribute:"filter",unit:"",calc:function(a){return"alpha(opacity="+a+")"}},scrollY:{attribute:"",unit:"",calc:function(a){return a}}};tJS.fx=tJS.fx||{};tJS.fx.prototype={timerId:null,customTimerId:null,timers:[],curr:function(a,b){var c=b;var d=tJS.css[c].attribute;if(a[d]!=""&&a[d]!=null){c=a[d]}else{c=a.style[d]}return c},stop:function(){clearTimeout(tJS.fx.timerId);tJS.fx.timerId=null},animate:function(a,b,c,d,e){var f=tJS.util.setType(a);if(f){var g,h,i,j,k,l;var m,o,p,q,r,s;var u=this;this.customTimerId=tJS.fx.customTimerId;this.timers=[];this.dequeue=function(){while(u.timers.length>0){clearTimeout(u.timers.shift()[0]);u.timers.shift()}};params=d;q=b;g=tJS.now();i=10;s=0;if(q==undefined){q="width"}if(q=="opacity"&&tJS.browser.ieVersion()<9&&tJS.browser.ieVersion()>-1){q="filter"}p=tJS.css[q].unit;r=tJS.fx.curr(f,q);if(e!=undefined&&typeof e=="function"){l=e}else{l=null}if(params!=undefined){j=params.percent;if(j==undefined){j=null}m=params.start;if(m==undefined){m=null}o=params.end;if(o==undefined){o=null}h=params.noqueue;if(h==undefined){h=false}k=params.easing;if(k==undefined){k="easeOutQuad"}}else{h=false;j=null;m=null;o=null;k="easeOutQuad"}if(j!=null){o=parseFloat(r+r*j/100)}else{o=o}if(m!=null){m=parseFloat(m)}else{m=r}if(r!=o){(function v(){t=tJS.now();n=t-g;this.prop=q;this.state=n/c;if(t>=c+g){f.style[this.prop]=tJS.css[this.prop].calc(o)+p;u.customTimerId=null;u.dequeue();if(l!=null){l()}}else{this.tmp=tJS.easing[k](this.state,n,0,1,c);this.now=m+(o-m)*this.tmp;f.style[this.prop]=tJS.css[this.prop].calc(this.now)+p;if(h){u.customTimerId=setTimeout(v,i);u.timers.push([u.customTimerId])}else{tJS.fx.timerId=setTimeout(v,i);u.timers.push([tJS.fx.timerId])}}})()}}}};tJS.fx=tJS.fx.prototype;return window.tJS=window.$=tJS}()})(window)
