(function(){if(!window.SRAX){SRAX={get:function(D){if(typeof D=="string"){D=document.getElementById(D)}return D},remove:function(D){D=D instanceof Array?D:[D];for(var F=0,E=D.length;F<E;F++){var G=SRAX.get(D[F]);if(G){G.parentNode.removeChild(G)}}},extend:function(E,H,G){var D=!G;for(var F in H){if(D||!E.hasOwnProperty(F)){E[F]=H[F]}}return E}};function C(D){return SRAX.get(D)}}if(!SRAX.Fx){SRAX.Fx=function(D){var E=new function(){var H=this;this.get=function(Y){return SRAX.extend(H,{el:Y})};var G=H.getStyle=function(Y,Z){Z=Z.replace(/([A-Z])/g,"-$1").toLowerCase();var a="";if(document.defaultView&&document.defaultView.getComputedStyle&&!window.opera){a=document.defaultView.getComputedStyle(Y,null).getPropertyValue(Z);if(Z=="opacity"){return Z?parseFloat(Z):1}if(a=="auto"){a=null}}else{if(Y.currentStyle){if(Z=="opacity"){if(a=(G(Y,"filter")||"").match(/alpha\(opacity=(.*)\)/)){if(a[1]){return parseFloat(a[1])/100}}return 1}if(Z=="float"){Z="styleFloat"}Z=Z.replace(/\-(\w)/g,function(b,c){return c.toUpperCase()});a=Y.currentStyle[Z];if(a=="auto"){a=((Z=="width"||Z=="height")&&(G(Y,"display")!="none"))?(Y["offset"+Z.substring(0,1).toUpperCase()+Z.substring(1)]+"px"):null}}}return a};var S=navigator.userAgent.toLowerCase();var N=S.indexOf("msie 7")>-1;var U=H.getPos=function(c,a,f){c=SRAX.get(c);var Z=c;if(!c){return }var g=0,d=0;if(G(c,"position")=="fixed"){return{x:parseInt(G(c,"left")),y:parseInt(G(c,"top"))}}if(c.offsetParent){g=c.offsetLeft;d=c.offsetTop;while(c=c.offsetParent){if(f){g-=c.scrollLeft;d-=c.scrollTop}if(a){var e=G(c,"position");if(e=="relative"||e=="absolute"||e=="fixed"){break}}g+=c.offsetLeft;d+=c.offsetTop}if(c&&N&&G(Z,"float")!="none"){var b=G(c,"margin-left");g-=parseInt(b);var Y=G(c,"margin-top");d-=parseInt(Y)}}if(f){d+=Math.max(document.body.scrollTop,document.documentElement.scrollTop);g+=Math.max(document.body.scrollLeft,document.documentElement.scrollLeft)}return{x:g,y:d}};var J=H.setPos=function(Z,Y,a){if(typeof Y=="object"){a=Y.y;Y=Y.x}if(Y!=null){Z.style.left=Y+"px"}if(a!=null){Z.style.top=a+"px"}};var X=H.setSize=function(b,Y,a){if(typeof Y=="object"){a=Y.offsetHeight;Y=Y.offsetWidth}var Z=b.style;if(Y!=null){Z.width=Y+(typeof Y=="string"?"":"px")}if(a!=null){Z.height=a+(typeof a=="string"?"":"px")}};var V=H.setOpacity=function(Z,a){var Y=Z.style;if(window.ActiveXObject){Y.filter="alpha(opacity="+a*100+")"}else{Y.KHTMLOpacity=a;Y.MozOpacity=a;Y.opacity=a}};function R(Y){return isNaN(Y)||Y==""||Y==null}var K=H.getOpacity=function(Z){var Y=Z.style.opacity;if(R(Y)){Y=G(Z,"opacity");if(R(Y)){Y=G(Z,"-moz-opacity");if(R(Y)){Y=G(Z,"-khtml-opacity");if(R(Y)){Y=1}}}}return Y?parseFloat(Y):0};var L=H.timer=function(Y){setTimeout(function(){if(!Y){Y={}}var d=new Date().getTime();var b=(Y.duration||Y.d||1)*1000;var a=Y.timeout?Y.timeout:0;if(!Y.fn){Y.fn=[function(){}]}else{if(!(Y.fn instanceof Array)){Y.fn=[Y.fn]}}var Z=0;function c(){var f=(new Date().getTime()-d)/b;if(f>1){f=1}for(var e=0;e<Y.fn.length;e++){Y.fn[e]({percent:f,ops:Y})}if(f==1||Z){if(Y.cb){Y.cb(Y,E)}if(Y.callback){Y.callback(Y,E)}}else{setTimeout(c,a)}}this.stop=function(){Z=1};this.isStoped=function(){return Z};c()},T*1000);T=0;return this};var F=H.opacity=function(a,b){if(!b){b=a;a=this.el}if(!b){b={}}a=SRAX.get(a);var Z=a.style;if(!b.fn){b.fn=[]}var d=b.start==null?K(a):b.start;var Y=b.end==null?(b.type=="show"||!d?1:0):b.end;var c=Y-d;if(window.ActiveXObject){Z.zoom=1}b.fn.push(function(e){if(!e.percent){return }var f=d+c*e.percent;a=a.newEl||a;V(a,f)});if(b.onlyfn){return b.fn}new L(b);return this};var W=H.blink=function(Z,b){if(!b){b=Z;Z=this.el}Z=SRAX.get(Z);if(!b){b={}}var a=b.count?b.count:3;if(!b.interval){b.interval=0.5}var c=0;b.type=K(Z)==0?"show":"hide";function Y(d){b.callback=function(){setTimeout(function(){new F(Z,SRAX.extend({type:b.type=="show"?"hide":"show",fn:[],callback:function(){if(a==-1||++c<a){Y(1)}}},b,1))},(b.pause||0)*1000)};b.fn=[];setTimeout(function(){new F(Z,b)},b.interval*1000*d)}Y(0);return this};function O(Y){var a=Y;Y=Y.cloneNode(true);function Z(e,b){for(var d in e){try{b[d]=e[d]}catch(c){}}return b}Z(a,Y);Z(a.style,Y.style);return Y}var P=H.move=function(Z,Y){if(!Y){Y=Z;Z=this.el}if(!Y){Y={}}Z=SRAX.get(Z);var h=Z.style;if(!Y.fn){Y.fn=[]}var c,g,a,e;var d=U(Z,1);var f=G(Z,"position");if(f!="absolute"){var b=Z;Z=O(Z);b.newEl=this.el=b.parentNode.insertBefore(Z,b);b.style.visibility="hidden";J(Z,d);Z.style.position="absolute"}if(Y.left!=null){g=Y.left-d.x}if(Y.top!=null){c=Y.top-d.y}if(Y.right!=null){d.r=parseInt(G(Z,"right"));e=Y.right-d.r}if(Y.bottom!=null){d.b=parseInt(G(Z,"bottom"));a=Y.bottom-d.b}if(c==null&&g==null&&e==null&&a==null){return H}Y.fn.push(function(k){var m=k.percent;if(!m){return }var j,n,l,i;if(c!=null){n=d.y+c*m}if(g!=null){j=d.x+g*m}Z=Z.newEl||Z;if(e!=null){l=d.r+e*m;Z.style.right=l+"px"}if(a!=null){i=d.b+a*m;Z.style.bottom=i+"px"}J(Z,j,n)});if(Y.onlyfn){return Y.fn}new L(Y);if(g==null&&e!=null){Z.style.left="auto"}if(c==null&&a!=null){Z.style.top="auto"}return this};var M=H.size=function(b,d){if(!d){d=b;b=this.el}if(!d){d={}}b=SRAX.get(b);if(!d.fn){d.fn=[]}var Z,c,Y,a;if(d.width!=null){Y=b.clientWidth;Z=d.width-Y}if(d.height!=null){a=b.clientHeight;c=d.height-a}d.fn.push(function(g){var h=g.percent;if(!h){return }var f,e;if(Y!=null){f=Y+Z*h}if(a!=null){e=a+c*h}b=b.newEl||b;X(b,f,e)});if(d.onlyfn){return d.fn}new L(d);return this};var T=0;var I=H.pause=function(Y){T=Y;return this};H.add=function(a,Z){Z.onlyfn=1;Z.fn=this.globalfn;this.globalfn=this[a](Z);for(var Y=2;Y<arguments.length;Y+=2){this.add(arguments[Y],arguments[Y+1])}return this};H.exec=function(Y){if(!this.globalfn){return }if(!Y){Y={}}Y.fn=this.globalfn;this.globalfn=null;new L(Y);return this};H.trans=function(g,Z,Y){if(!Y){Y={}}g=SRAX.get(g);Z=SRAX.get(Z);var d=U(g,0,1);var e=g.offsetWidth;var b=g.offsetHeight;g=document.body.appendChild(document.createElement("div"));g.className="trans";var a=Z.offsetWidth;var f=Z.offsetHeight;X(g,Y.reverse?a:e,Y.reverse?f:b);var c=U(Z);J(g,Y.reverse?c:d,0,1);new SRAX.Fx.get(g).add("size",{width:Y.reverse?e:a,height:Y.reverse?b:f}).add("move",{top:Y.reverse?d.y:c.y,left:Y.reverse?d.x:c.x}).exec({d:Y.duration||Y.d||0.3,callback:function(){SRAX.remove(g);if(Y.cb){Y.cb(Y,E)}if(Y.callback){Y.callback(Y,E)}}});return this};var Q=H.anim=function(a,Z){if(!Z){Z=a;a=this.el}if(!Z){Z={}}a=SRAX.get(a);var h=a.style;if(!Z.fn){Z.fn=[]}for(var c in Z){if(/margin|padding|left|right|top|bottom|width|height/.test(c)){var e=h[c]||G(a,c)||0,d=Z[c],b=e.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),e=parseFloat(b[2]),f=b[3]||"px",g=d-e,Y=c;Z.fn.push(function(i){var j=i.percent;if(!j){return }h[Y]=(e+g*j)+f})}}if(Z.onlyfn){return Z.fn}new L(Z);return this}};return D==null?E:E.get(D)};var B=SRAX.Fx();for(var A in B){SRAX.Fx[A]=B[A]}}})();