// MooTools More - "Fx.Elements" only...//MooTools More, <http://mootools.net/more>. Copyright (c) 2006-2009 Aaron Newton <http://clientcide.com/>, Valerio Proietti <http://mad4milk.net> & the MooTools team <http://mootools.net/developers>, MIT Style License.MooTools.More={version:"1.2.3.1"};Fx.Elements=new Class({Extends:Fx.CSS,initialize:function(b,a){this.elements=this.subject=$$(b);this.parent(a);},compute:function(g,h,j){var c={};for(var d in g){var a=g[d],e=h[d],f=c[d]={};for(var b in a){f[b]=this.parent(a[b],e[b],j);}}return c;},set:function(b){for(var c in b){var a=b[c];for(var d in a){this.render(this.elements[c],d,a[d],this.options.unit);}}return this;},start:function(c){if(!this.check(c)){return this;}var h={},j={};for(var d in c){var f=c[d],a=h[d]={},g=j[d]={};for(var b in f){var e=this.prepare(this.elements[d],b,f[b]);a[b]=e.from;g[b]=e.to;}}return this.parent(h,j);}});var Rotater=new Class({Implements:[Options,Events],options:{slideInterval:4000,transitionDuration:1000,startIndex:0,autoplay:true},initialize:function(B,A){this.setOptions(A);this.slides=$$(B);this.createFx();this.showSlide(this.options.startIndex);if(this.slides.length<2){this.options.autoplay=false}if(this.options.autoplay){this.autoplay()}return this},toElement:function(){return this.container},createFx:function(){if(!this.slideFx){this.slideFx=new Fx.Elements(this.slides,{duration:this.options.transitionDuration})}this.slides.each(function(A){A.setStyle("opacity",0)})},showSlide:function(B){var A={};this.slides.each(function(C,D){if(D==B&&D!=this.currentSlide){A[D.toString()]={opacity:1}}else{A[D.toString()]={opacity:0}}},this);this.fireEvent("onShowSlide",B);this.currentSlide=B;this.slideFx.start(A);return this},autoplay:function(){this.slideshowInt=this.rotate.periodical(this.options.slideInterval,this);this.fireEvent("onAutoPlay");return this},stop:function(){$clear(this.slideshowInt);this.fireEvent("onStop");return this},rotate:function(){current=this.currentSlide;next=(current+1>=this.slides.length)?0:current+1;this.showSlide(next);this.fireEvent("onRotate",next);return this}});window.addEvent('domready',function() {	$('mc1a').fade('hide');	$('mc1b').fade('hide');	$('mc1c').fade('hide');	$('mc1d').fade('hide');	$('mc1e').fade('hide');		(function() {		$('mc1a').fade(1);		$('mc1b').fade(0.25);		$('mc1c').fade(0.25);		$('mc1d').fade(0.25);		$('mc1e').fade(0.25);	}).delay(1000);		var rotator = new Rotater('.rotator', {		slideInterval: 6000,		transitionDuration: 1000	});		(function() {		$('mc1mask').setStyle('display', 'none');	}).delay(1500);		runAnimation();	});function runAnimation() {	(function() {		gotoTwo();	}).delay(6000);		(function() {		gotoThree();	}).delay(12000);		(function() {		gotoFour();	}).delay(18000);		(function() {		gotoFive();	}).delay(24000);		(function() {		gotoOne();	}).delay(30000);}function gotoTwo() {	$('mc1a').fade(0.25);	$('mc1b').fade(1);}function gotoThree() {	$('mc1b').fade(0.25);	$('mc1c').fade(1);}function gotoFour() {	$('mc1c').fade(0.25);	$('mc1d').fade(1);}function gotoFive() {	$('mc1d').fade(0.25);	$('mc1e').fade(1);}function gotoOne() {	$('mc1e').fade(0.25);	$('mc1a').fade(1);	runAnimation();}