/* Copyright  2007 - 2010 YOOtheme GmbH, YOOtheme Proprietary Use License (http://www.yootheme.com/license) */

var Warp={};Warp.Base={matchHeight:function(e,d){var c=0;$$(e).each(function(a){var b;if(a.offsetHeight)b=a.offsetHeight;else if(a.style.pixelHeight)b=a.style.pixelHeight;c=Math.max(c,b)});if(d!=undefined)c=Math.max(c,d);$$(e).each(function(a){var b=a.getStyle("padding-top").toInt()+a.getStyle("padding-bottom").toInt()+a.getStyle("border-top-width").toInt()+a.getStyle("border-bottom-width").toInt();a.setStyle(window.ie6?"height":"min-height",c-b+"px")})}};
Warp.Morph=new Class({initialize:function(e,d,c,a,b,k){this.setOptions({duration:500,transition:Fx.Transitions.expoOut,wait:false,ignore:""},a);var f=this.options,i=null;if($chk(f.ignore))i=$$(f.ignore);$$(e).each(function(g){if(!(i&&i.contains(g))){var j=[],l=[g];if(k)l=g.getElementsBySelector(k);l.each(function(h,m){j[m]=new Fx.Styles(h,f)});g.addEvent("mouseenter",function(){j.each(function(h){h.setOptions(f,a).start(d)})});g.addEvent("mouseleave",function(){j.each(function(h){h.setOptions(f,b).start(c)})})}})}});
Warp.Morph.implement(new Options);Warp.BackgroundFx=new Class({initialize:function(e){function d(){c.start({"background-color":b[a]});if(a+1>=b.length)a=0;else a++}this.setOptions({transition:Fx.Transitions.linear,duration:9E3,wait:false,colors:["#FFFFFF","#999999"]},e);var c=(new Element(document.body)).effects(this.options),a=0,b=this.options.colors;d.periodical(this.options.duration*2);d()}});Warp.BackgroundFx.implement(new Options); 

