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