String.prototype.parseColor=function(){var D="#";if(this.slice(0,4)=="rgb("){var E=this.slice(4,this.length-1).split(",");var F=0;do{D+=parseInt(E[F]).toColorPart()}while(++F<3)}else{if(this.slice(0,1)=="#"){if(this.length==4){for(var F=1;F<4;F++){D+=(this.charAt(F)+this.charAt(F)).toLowerCase()}}if(this.length==7){D=this.toLowerCase()}}}return(D.length==7?D:(arguments[0]||this))};Element.collectTextNodes=function(B){return $A($(B).childNodes).collect(function(A){return(A.nodeType==3?A.nodeValue:(A.hasChildNodes()?Element.collectTextNodes(A):""))}).flatten().join("")};Element.collectTextNodesIgnoreClass=function(C,D){return $A($(C).childNodes).collect(function(A){return(A.nodeType==3?A.nodeValue:((A.hasChildNodes()&&!Element.hasClassName(A,D))?Element.collectTextNodesIgnoreClass(A,D):""))}).flatten().join("")};Element.setContentZoom=function(C,D){C=$(C);C.setStyle({fontSize:(D/100)+"em"});if(Prototype.Browser.WebKit){window.scrollBy(0,0)}return C};Element.getInlineOpacity=function(B){return $(B).style.opacity||""};Element.forceRerendering=function(D){try{D=$(D);var E=document.createTextNode(" ");D.appendChild(E);D.removeChild(E)}catch(F){}};var Effect={_elementDoesNotExistError:{name:"ElementDoesNotExistError",message:"The specified DOM element does not exist, but is required for this effect to operate"},Transitions:{linear:Prototype.K,sinoidal:function(B){return(-Math.cos(B*Math.PI)/2)+0.5},reverse:function(B){return 1-B},flicker:function(B){var B=((-Math.cos(B*Math.PI)/4)+0.75)+Math.random()/4;return B>1?1:B},wobble:function(B){return(-Math.cos(B*Math.PI*(9*B))/2)+0.5},pulse:function(D,C){C=C||5;return(((D%(1/C))*C).round()==0?((D*C*2)-(D*C*2).floor()):1-((D*C*2)-(D*C*2).floor()))},spring:function(B){return 1-(Math.cos(B*4.5*Math.PI)*Math.exp(-B*6))},none:function(B){return 0},full:function(B){return 1}},DefaultOptions:{duration:1,fps:100,sync:false,from:0,to:1,delay:0,queue:"parallel"},tagifyText:function(C){var D="position:relative";if(Prototype.Browser.IE){D+=";zoom:1"}C=$(C);$A(C.childNodes).each(function(A){if(A.nodeType==3){A.nodeValue.toArray().each(function(B){C.insertBefore(new Element("span",{style:D}).update(B==" "?String.fromCharCode(160):B),A)});Element.remove(A)}})},multiple:function(J,I){var G;if(((typeof J=="object")||Object.isFunction(J))&&(J.length)){G=J}else{G=$(J).childNodes}var F=Object.extend({speed:0.1,delay:0},arguments[2]||{});var H=F.delay;$A(G).each(function(A,B){new I(A,Object.extend(F,{delay:B*F.speed+H}))})},PAIRS:{"slide":["SlideDown","SlideUp"],"blind":["BlindDown","BlindUp"],"appear":["Appear","Fade"]},toggle:function(F,E){F=$(F);E=(E||"appear").toLowerCase();var D=Object.extend({queue:{position:"end",scope:(F.id||"global"),limit:1}},arguments[2]||{});Effect[F.visible()?Effect.PAIRS[E][1]:Effect.PAIRS[E][0]](F,D)}};Effect.DefaultOptions.transition=Effect.Transitions.sinoidal;Effect.ScopedQueue=Class.create(Enumerable,{initialize:function(){this.effects=[];this.interval=null},_each:function(B){this.effects._each(B)},add:function(F){var E=new Date().getTime();var D=Object.isString(F.options.queue)?F.options.queue:F.options.queue.position;switch(D){case"front":this.effects.findAll(function(A){return A.state=="idle"}).each(function(A){A.startOn+=F.finishOn;A.finishOn+=F.finishOn});break;case"with-last":E=this.effects.pluck("startOn").max()||E;break;case"end":E=this.effects.pluck("finishOn").max()||E;break}F.startOn+=E;F.finishOn+=E;if(!F.options.queue.limit||(this.effects.length<F.options.queue.limit)){this.effects.push(F)}if(!this.interval){this.interval=setInterval(this.loop.bind(this),15)}},remove:function(B){this.effects=this.effects.reject(function(A){return A==B});if(this.effects.length==0){clearInterval(this.interval);this.interval=null}},loop:function(){var E=new Date().getTime();for(var F=0,D=this.effects.length;F<D;F++){this.effects[F]&&this.effects[F].loop(E)}}});Effect.Queues={instances:$H(),get:function(B){if(!Object.isString(B)){return B}return this.instances.get(B)||this.instances.set(B,new Effect.ScopedQueue())}};Effect.Queue=Effect.Queues.get("global");Effect.Base=Class.create({position:null,start:function(options){function codeForEvent(options,eventName){return((options[eventName+"Internal"]?"this.options."+eventName+"Internal(this);":"")+(options[eventName]?"this.options."+eventName+"(this);":""))}if(options&&options.transition===false){options.transition=Effect.Transitions.linear}this.options=Object.extend(Object.extend({},Effect.DefaultOptions),options||{});this.currentFrame=0;this.state="idle";this.startOn=this.options.delay*1000;this.finishOn=this.startOn+(this.options.duration*1000);this.fromToDelta=this.options.to-this.options.from;this.totalTime=this.finishOn-this.startOn;this.totalFrames=this.options.fps*this.options.duration;eval("this.render = function(pos){ "+'if (this.state=="idle"){this.state="running";'+codeForEvent(this.options,"beforeSetup")+(this.setup?"this.setup();":"")+codeForEvent(this.options,"afterSetup")+'};if (this.state=="running"){'+"pos=this.options.transition(pos)*"+this.fromToDelta+"+"+this.options.from+";"+"this.position=pos;"+codeForEvent(this.options,"beforeUpdate")+(this.update?"this.update(pos);":"")+codeForEvent(this.options,"afterUpdate")+"}}");this.event("beforeStart");if(!this.options.sync){Effect.Queues.get(Object.isString(this.options.queue)?"global":this.options.queue.scope).add(this)}},loop:function(E){if(E>=this.startOn){if(E>=this.finishOn){this.render(1);this.cancel();this.event("beforeFinish");if(this.finish){this.finish()}this.event("afterFinish");return }var F=(E-this.startOn)/this.totalTime,D=(F*this.totalFrames).round();if(D>this.currentFrame){this.render(F);this.currentFrame=D}}},cancel:function(){if(!this.options.sync){Effect.Queues.get(Object.isString(this.options.queue)?"global":this.options.queue.scope).remove(this)}this.state="finished"},event:function(B){if(this.options[B+"Internal"]){this.options[B+"Internal"](this)}if(this.options[B]){this.options[B](this)}},inspect:function(){var B=$H();for(property in this){if(!Object.isFunction(this[property])){B.set(property,this[property])}}return"#<Effect:"+B.inspect()+",options:"+$H(this.options).inspect()+">"}});Effect.Parallel=Class.create(Effect.Base,{initialize:function(B){this.effects=B||[];this.start(arguments[1])},update:function(B){this.effects.invoke("render",B)},finish:function(B){this.effects.each(function(A){A.render(1);A.cancel();A.event("beforeFinish");if(A.finish){A.finish(B)}A.event("afterFinish")})}});Effect.Tween=Class.create(Effect.Base,{initialize:function(K,H,I){K=Object.isString(K)?$(K):K;var L=$A(arguments),J=L.last(),G=L.length==5?L[3]:null;this.method=Object.isFunction(J)?J.bind(K):Object.isFunction(K[J])?K[J].bind(K):function(A){K[J]=A};this.start(Object.extend({from:H,to:I},G||{}))},update:function(B){this.method(B)}});Effect.Event=Class.create(Effect.Base,{initialize:function(){this.start(Object.extend({duration:0},arguments[0]||{}))},update:Prototype.emptyFunction});Effect.Opacity=Class.create(Effect.Base,{initialize:function(D){this.element=$(D);if(!this.element){throw (Effect._elementDoesNotExistError)}if(Prototype.Browser.IE&&(!this.element.currentStyle.hasLayout)){this.element.setStyle({zoom:1})}var C=Object.extend({from:this.element.getOpacity()||0,to:1},arguments[1]||{});this.start(C)},update:function(B){this.element.setOpacity(B)}});Effect.Move=Class.create(Effect.Base,{initialize:function(D){this.element=$(D);if(!this.element){throw (Effect._elementDoesNotExistError)}var C=Object.extend({x:0,y:0,mode:"relative"},arguments[1]||{});this.start(C)},setup:function(){this.element.makePositioned();this.originalLeft=parseFloat(this.element.getStyle("left")||"0");this.originalTop=parseFloat(this.element.getStyle("top")||"0");if(this.options.mode=="absolute"){this.options.x=this.options.x-this.originalLeft;this.options.y=this.options.y-this.originalTop}},update:function(B){this.element.setStyle({left:(this.options.x*B+this.originalLeft).round()+"px",top:(this.options.y*B+this.originalTop).round()+"px"})}});Effect.MoveBy=function(F,D,E){return new Effect.Move(F,Object.extend({x:E,y:D},arguments[3]||{}))};Effect.Scale=Class.create(Effect.Base,{initialize:function(F,E){this.element=$(F);if(!this.element){throw (Effect._elementDoesNotExistError)}var D=Object.extend({scaleX:true,scaleY:true,scaleContent:true,scaleFromCenter:false,scaleMode:"box",scaleFrom:100,scaleTo:E},arguments[2]||{});this.start(D)},setup:function(){this.restoreAfterFinish=this.options.restoreAfterFinish||false;this.elementPositioning=this.element.getStyle("position");this.originalStyle={};["top","left","width","height","fontSize"].each(function(A){this.originalStyle[A]=this.element.style[A]}.bind(this));this.originalTop=this.element.offsetTop;this.originalLeft=this.element.offsetLeft;var B=this.element.getStyle("font-size")||"100%";["em","px","%","pt"].each(function(A){if(B.indexOf(A)>0){this.fontSize=parseFloat(B);this.fontSizeType=A}}.bind(this));this.factor=(this.options.scaleTo-this.options.scaleFrom)/100;this.dims=null;if(this.options.scaleMode=="box"){this.dims=[this.element.offsetHeight,this.element.offsetWidth]}if(/^content/.test(this.options.scaleMode)){this.dims=[this.element.scrollHeight,this.element.scrollWidth]}if(!this.dims){this.dims=[this.options.scaleMode.originalHeight,this.options.scaleMode.originalWidth]}},update:function(C){var D=(this.options.scaleFrom/100)+(this.factor*C);if(this.options.scaleContent&&this.fontSize){this.element.setStyle({fontSize:this.fontSize*D+this.fontSizeType})}this.setDimensions(this.dims[0]*D,this.dims[1]*D)},finish:function(B){if(this.restoreAfterFinish){this.element.setStyle(this.originalStyle)}},setDimensions:function(F,H){var G={};if(this.options.scaleX){G.width=H.round()+"px"}if(this.options.scaleY){G.height=F.round()+"px"}if(this.options.scaleFromCenter){var I=(F-this.dims[0])/2;var J=(H-this.dims[1])/2;if(this.elementPositioning=="absolute"){if(this.options.scaleY){G.top=this.originalTop-I+"px"}if(this.options.scaleX){G.left=this.originalLeft-J+"px"}}else{if(this.options.scaleY){G.top=-I+"px"}if(this.options.scaleX){G.left=-J+"px"}}}this.element.setStyle(G)}});Effect.Highlight=Class.create(Effect.Base,{initialize:function(D){this.element=$(D);if(!this.element){throw (Effect._elementDoesNotExistError)}var C=Object.extend({startcolor:"#ffff99"},arguments[1]||{});this.start(C)},setup:function(){if(this.element.getStyle("display")=="none"){this.cancel();return }this.oldStyle={};if(!this.options.keepBackgroundImage){this.oldStyle.backgroundImage=this.element.getStyle("background-image");this.element.setStyle({backgroundImage:"none"})}if(!this.options.endcolor){this.options.endcolor=this.element.getStyle("background-color").parseColor("#ffffff")}if(!this.options.restorecolor){this.options.restorecolor=this.element.getStyle("background-color")}this._base=$R(0,2).map(function(B){return parseInt(this.options.startcolor.slice(B*2+1,B*2+3),16)}.bind(this));this._delta=$R(0,2).map(function(B){return parseInt(this.options.endcolor.slice(B*2+1,B*2+3),16)-this._base[B]}.bind(this))},update:function(B){this.element.setStyle({backgroundColor:$R(0,2).inject("#",function(F,E,A){return F+((this._base[A]+(this._delta[A]*B)).round().toColorPart())}.bind(this))})},finish:function(){this.element.setStyle(Object.extend(this.oldStyle,{backgroundColor:this.options.restorecolor}))}});Effect.ScrollTo=function(H){var I=arguments[1]||{},J=document.viewport.getScrollOffsets(),G=$(H).cumulativeOffset(),F=(window.height||document.body.scrollHeight)-document.viewport.getHeight();if(I.offset){G[1]+=I.offset}return new Effect.Tween(null,J.top,G[1]>F?F:G[1],I,function(A){scrollTo(J.left,A.round())})};Effect.Fade=function(E){E=$(E);var D=E.getInlineOpacity();var F=Object.extend({from:E.getOpacity()||1,to:0,afterFinishInternal:function(A){if(A.options.to!=0){return }A.element.hide().setStyle({opacity:D})}},arguments[1]||{});return new Effect.Opacity(E,F)};Effect.Appear=function(D){D=$(D);var C=Object.extend({from:(D.getStyle("display")=="none"?0:D.getOpacity()||0),to:1,afterFinishInternal:function(A){A.element.forceRerendering()},beforeSetup:function(A){A.element.setOpacity(A.options.from).show()}},arguments[1]||{});return new Effect.Opacity(D,C)};Effect.Puff=function(D){D=$(D);var C={opacity:D.getInlineOpacity(),position:D.getStyle("position"),top:D.style.top,left:D.style.left,width:D.style.width,height:D.style.height};return new Effect.Parallel([new Effect.Scale(D,200,{sync:true,scaleFromCenter:true,scaleContent:true,restoreAfterFinish:true}),new Effect.Opacity(D,{sync:true,to:0})],Object.extend({duration:1,beforeSetupInternal:function(A){Position.absolutize(A.effects[0].element)},afterFinishInternal:function(A){A.effects[0].element.hide().setStyle(C)}},arguments[1]||{}))};Effect.BlindUp=function(B){B=$(B);B.makeClipping();return new Effect.Scale(B,0,Object.extend({scaleContent:false,scaleX:false,restoreAfterFinish:true,afterFinishInternal:function(A){A.element.hide().undoClipping()}},arguments[1]||{}))};Effect.BlindDown=function(D){D=$(D);var C=D.getDimensions();return new Effect.Scale(D,100,Object.extend({scaleContent:false,scaleX:false,scaleFrom:0,scaleMode:{originalHeight:C.height,originalWidth:C.width},restoreAfterFinish:true,afterSetup:function(A){A.element.makeClipping().setStyle({height:"0px"}).show()},afterFinishInternal:function(A){A.element.undoClipping()}},arguments[1]||{}))};Effect.SwitchOff=function(D){D=$(D);var C=D.getInlineOpacity();return new Effect.Appear(D,Object.extend({duration:0.4,from:0,transition:Effect.Transitions.flicker,afterFinishInternal:function(A){new Effect.Scale(A.element,1,{duration:0.3,scaleFromCenter:true,scaleX:false,scaleContent:false,restoreAfterFinish:true,beforeSetup:function(B){B.element.makePositioned().makeClipping()},afterFinishInternal:function(B){B.element.hide().undoClipping().undoPositioned().setStyle({opacity:C})}})}},arguments[1]||{}))};Effect.DropOut=function(D){D=$(D);var C={top:D.getStyle("top"),left:D.getStyle("left"),opacity:D.getInlineOpacity()};return new Effect.Parallel([new Effect.Move(D,{x:0,y:100,sync:true}),new Effect.Opacity(D,{sync:true,to:0})],Object.extend({duration:0.5,beforeSetup:function(A){A.effects[0].element.makePositioned()},afterFinishInternal:function(A){A.effects[0].element.hide().undoPositioned().setStyle(C)}},arguments[1]||{}))};Effect.Shake=function(H){H=$(H);var J=Object.extend({distance:20,duration:0.5},arguments[1]||{});var G=parseFloat(J.distance);var I=parseFloat(J.duration)/10;var F={top:H.getStyle("top"),left:H.getStyle("left")};return new Effect.Move(H,{x:G,y:0,duration:I,afterFinishInternal:function(A){new Effect.Move(A.element,{x:-G*2,y:0,duration:I*2,afterFinishInternal:function(B){new Effect.Move(B.element,{x:G*2,y:0,duration:I*2,afterFinishInternal:function(C){new Effect.Move(C.element,{x:-G*2,y:0,duration:I*2,afterFinishInternal:function(D){new Effect.Move(D.element,{x:G*2,y:0,duration:I*2,afterFinishInternal:function(E){new Effect.Move(E.element,{x:-G,y:0,duration:I,afterFinishInternal:function(L){L.element.undoPositioned().setStyle(F)}})}})}})}})}})}})};Effect.SlideDown=function(E){E=$(E).cleanWhitespace();var D=E.down().getStyle("bottom");var F=E.getDimensions();return new Effect.Scale(E,100,Object.extend({scaleContent:false,scaleX:false,scaleFrom:window.opera?0:1,scaleMode:{originalHeight:F.height,originalWidth:F.width},restoreAfterFinish:true,afterSetup:function(A){A.element.makePositioned();A.element.down().makePositioned();if(window.opera){A.element.setStyle({top:""})}A.element.makeClipping().setStyle({height:"0px"}).show()},afterUpdateInternal:function(A){A.element.down().setStyle({bottom:(A.dims[0]-A.element.clientHeight)+"px"})},afterFinishInternal:function(A){A.element.undoClipping().undoPositioned();A.element.down().undoPositioned().setStyle({bottom:D})}},arguments[1]||{}))};Effect.SlideUp=function(E){E=$(E).cleanWhitespace();var D=E.down().getStyle("bottom");var F=E.getDimensions();return new Effect.Scale(E,window.opera?0:1,Object.extend({scaleContent:false,scaleX:false,scaleMode:"box",scaleFrom:100,scaleMode:{originalHeight:F.height,originalWidth:F.width},restoreAfterFinish:true,afterSetup:function(A){A.element.makePositioned();A.element.down().makePositioned();if(window.opera){A.element.setStyle({top:""})}A.element.makeClipping().show()},afterUpdateInternal:function(A){A.element.down().setStyle({bottom:(A.dims[0]-A.element.clientHeight)+"px"})},afterFinishInternal:function(A){A.element.hide().undoClipping().undoPositioned();A.element.down().undoPositioned().setStyle({bottom:D})}},arguments[1]||{}))};Effect.Squish=function(B){return new Effect.Scale(B,window.opera?1:0,{restoreAfterFinish:true,beforeSetup:function(A){A.element.makeClipping()},afterFinishInternal:function(A){A.element.hide().undoClipping()}})};Effect.Grow=function(O){O=$(O);var P=Object.extend({direction:"center",moveTransition:Effect.Transitions.sinoidal,scaleTransition:Effect.Transitions.sinoidal,opacityTransition:Effect.Transitions.full},arguments[1]||{});var I={top:O.style.top,left:O.style.left,height:O.style.height,width:O.style.width,opacity:O.getInlineOpacity()};var K=O.getDimensions();var J,L;var M,N;switch(P.direction){case"top-left":J=L=M=N=0;break;case"top-right":J=K.width;L=N=0;M=-K.width;break;case"bottom-left":J=M=0;L=K.height;N=-K.height;break;case"bottom-right":J=K.width;L=K.height;M=-K.width;N=-K.height;break;case"center":J=K.width/2;L=K.height/2;M=-K.width/2;N=-K.height/2;break}return new Effect.Move(O,{x:J,y:L,duration:0.01,beforeSetup:function(A){A.element.hide().makeClipping().makePositioned()},afterFinishInternal:function(A){new Effect.Parallel([new Effect.Opacity(A.element,{sync:true,to:1,from:0,transition:P.opacityTransition}),new Effect.Move(A.element,{x:M,y:N,sync:true,transition:P.moveTransition}),new Effect.Scale(A.element,100,{scaleMode:{originalHeight:K.height,originalWidth:K.width},sync:true,scaleFrom:window.opera?1:0,transition:P.scaleTransition,restoreAfterFinish:true})],Object.extend({beforeSetup:function(B){B.effects[0].element.setStyle({height:"0px"}).show()},afterFinishInternal:function(B){B.effects[0].element.undoClipping().undoPositioned().setStyle(I)}},P))}})};Effect.Shrink=function(K){K=$(K);var L=Object.extend({direction:"center",moveTransition:Effect.Transitions.sinoidal,scaleTransition:Effect.Transitions.sinoidal,opacityTransition:Effect.Transitions.none},arguments[1]||{});var G={top:K.style.top,left:K.style.left,height:K.style.height,width:K.style.width,opacity:K.getInlineOpacity()};var H=K.getDimensions();var I,J;switch(L.direction){case"top-left":I=J=0;break;case"top-right":I=H.width;J=0;break;case"bottom-left":I=0;J=H.height;break;case"bottom-right":I=H.width;J=H.height;break;case"center":I=H.width/2;J=H.height/2;break}return new Effect.Parallel([new Effect.Opacity(K,{sync:true,to:0,from:1,transition:L.opacityTransition}),new Effect.Scale(K,window.opera?1:0,{sync:true,transition:L.scaleTransition,restoreAfterFinish:true}),new Effect.Move(K,{x:I,y:J,sync:true,transition:L.moveTransition})],Object.extend({beforeStartInternal:function(A){A.effects[0].element.makePositioned().makeClipping()},afterFinishInternal:function(A){A.effects[0].element.hide().undoClipping().undoPositioned().setStyle(G)}},L))};Effect.Pulsate=function(I){I=$(I);var J=arguments[1]||{};var F=I.getInlineOpacity();var G=J.transition||Effect.Transitions.sinoidal;var H=function(A){return G(1-Effect.Transitions.pulse(A,J.pulses))};H.bind(G);return new Effect.Opacity(I,Object.extend(Object.extend({duration:2,from:0,afterFinishInternal:function(A){A.element.setStyle({opacity:F})}},J),{transition:H}))};Effect.Fold=function(D){D=$(D);var C={top:D.style.top,left:D.style.left,width:D.style.width,height:D.style.height};D.makeClipping();return new Effect.Scale(D,5,Object.extend({scaleContent:false,scaleX:false,afterFinishInternal:function(A){new Effect.Scale(D,1,{scaleContent:false,scaleY:false,afterFinishInternal:function(B){B.element.hide().undoClipping().setStyle(C)}})}},arguments[1]||{}))};Effect.Morph=Class.create(Effect.Base,{initialize:function(E){this.element=$(E);if(!this.element){throw (Effect._elementDoesNotExistError)}var D=Object.extend({style:{}},arguments[1]||{});if(!Object.isString(D.style)){this.style=$H(D.style)}else{if(D.style.include(":")){this.style=D.style.parseStyle()}else{this.element.addClassName(D.style);this.style=$H(this.element.getStyles());this.element.removeClassName(D.style);var F=this.element.getStyles();this.style=this.style.reject(function(A){return A.value==F[A.key]});D.afterFinishInternal=function(A){A.element.addClassName(A.options.style);A.transforms.each(function(B){A.element.style[B.style]=""})}}}this.start(D)},setup:function(){function B(A){if(!A||["rgba(0, 0, 0, 0)","transparent"].include(A)){A="#ffffff"}A=A.parseColor();return $R(0,2).map(function(D){return parseInt(A.slice(D*2+1,D*2+3),16)})}this.transforms=this.style.map(function(A){var H=A[0],I=A[1],J=null;if(I.parseColor("#zzzzzz")!="#zzzzzz"){I=I.parseColor();J="color"}else{if(H=="opacity"){I=parseFloat(I);if(Prototype.Browser.IE&&(!this.element.currentStyle.hasLayout)){this.element.setStyle({zoom:1})}}else{if(Element.CSS_LENGTH.test(I)){var K=I.match(/^([\+\-]?[0-9\.]+)(.*)$/);I=parseFloat(K[1]);J=(K.length==3)?K[2]:null}}}var L=this.element.getStyle(H);return{style:H.camelize(),originalValue:J=="color"?B(L):parseFloat(L||0),targetValue:J=="color"?B(I):I,unit:J}}.bind(this)).reject(function(A){return((A.originalValue==A.targetValue)||(A.unit!="color"&&(isNaN(A.originalValue)||isNaN(A.targetValue))))})},update:function(E){var F={},H,G=this.transforms.length;while(G--){F[(H=this.transforms[G]).style]=H.unit=="color"?"#"+(Math.round(H.originalValue[0]+(H.targetValue[0]-H.originalValue[0])*E)).toColorPart()+(Math.round(H.originalValue[1]+(H.targetValue[1]-H.originalValue[1])*E)).toColorPart()+(Math.round(H.originalValue[2]+(H.targetValue[2]-H.originalValue[2])*E)).toColorPart():(H.originalValue+(H.targetValue-H.originalValue)*E).toFixed(3)+(H.unit===null?"":H.unit)}this.element.setStyle(F,true)}});Effect.Transform=Class.create({initialize:function(B){this.tracks=[];this.options=arguments[1]||{};this.addTracks(B)},addTracks:function(B){B.each(function(D){D=$H(D);var A=D.values().first();this.tracks.push($H({ids:D.keys().first(),effect:Effect.Morph,options:{style:A}}))}.bind(this));return this},play:function(){return new Effect.Parallel(this.tracks.map(function(F){var H=F.get("ids"),I=F.get("effect"),J=F.get("options");var G=[$(H)||$$(H)].flatten();return G.map(function(A){return new I(A,Object.extend({sync:true},J))})}).flatten(),this.options)}});Element.CSS_PROPERTIES=$w("backgroundColor backgroundPosition borderBottomColor borderBottomStyle "+"borderBottomWidth borderLeftColor borderLeftStyle borderLeftWidth "+"borderRightColor borderRightStyle borderRightWidth borderSpacing "+"borderTopColor borderTopStyle borderTopWidth bottom clip color "+"fontSize fontWeight height left letterSpacing lineHeight "+"marginBottom marginLeft marginRight marginTop markerOffset maxHeight "+"maxWidth minHeight minWidth opacity outlineColor outlineOffset "+"outlineWidth paddingBottom paddingLeft paddingRight paddingTop "+"right textIndent top width wordSpacing zIndex");Element.CSS_LENGTH=/^(([\+\-]?[0-9\.]+)(em|ex|px|in|cm|mm|pt|pc|\%))|0$/;String.__parseStyleElement=document.createElement("div");String.prototype.parseStyle=function(){var D,C=$H();if(Prototype.Browser.WebKit){D=new Element("div",{style:this}).style}else{String.__parseStyleElement.innerHTML='<div style="'+this+'"></div>';D=String.__parseStyleElement.childNodes[0].style}Element.CSS_PROPERTIES.each(function(A){if(D[A]){C.set(A,D[A])}});if(Prototype.Browser.IE&&this.include("opacity")){C.set("opacity",this.match(/opacity:\s*((?:0|1)?(?:\.\d*)?)/)[1])}return C};if(document.defaultView&&document.defaultView.getComputedStyle){Element.getStyles=function(D){var C=document.defaultView.getComputedStyle($(D),null);return Element.CSS_PROPERTIES.inject({},function(B,A){B[A]=C[A];return B})}}else{Element.getStyles=function(F){F=$(F);var D=F.currentStyle,E;E=Element.CSS_PROPERTIES.inject({},function(A,B){A.set(B,D[B]);return A});if(!E.opacity){E.set("opacity",F.getOpacity())}return E}}Effect.Methods={morph:function(C,D){C=$(C);new Effect.Morph(C,Object.extend({style:D},arguments[2]||{}));return C},visualEffect:function(I,G,J){I=$(I);var H=G.dasherize().camelize(),F=H.charAt(0).toUpperCase()+H.substring(1);new Effect[F](I,J);return I},highlight:function(D,C){D=$(D);new Effect.Highlight(D,C);return D}};$w("fade appear grow shrink fold blindUp blindDown slideUp slideDown "+"pulsate shake puff squish switchOff dropOut").each(function(B){Effect.Methods[B]=function(A,D){A=$(A);Effect[B.charAt(0).toUpperCase()+B.substring(1)](A,D);return A}});$w("getInlineOpacity forceRerendering setContentZoom collectTextNodes collectTextNodesIgnoreClass getStyles").each(function(B){Effect.Methods[B]=Element[B]});Element.addMethods(Effect.Methods);var RiotImageReplacement=Class.create();RiotImageReplacement.prototype={useFilter:false,initialize:function(D,E,F){this.selectors=F;this.generatorUrl=D;this.pixelImage=new Image();this.pixelImage.src=E;this.createHoverRules();document.observe("dom:loaded",this.insertImages.bind(this));if(window.riotEditCallbacks){addRiotEditCallback(this.insertImages.bind(this))}},createHoverRules:function(){$A(document.styleSheets).each(function(B){$A(B.rules||B.cssRules).each(function(A){if(A.selectorText){A.selectorText.split(",").each(function(F){if(F.include(":hover")){if(A.style.color){var H=F.replace(/:hover/," .txt2imgHover");var G="color: "+A.style.color;if(B.insertRule){B.insertRule(H+" {"+G+"}",B.cssRules.length)}else{if(B.addRule){B.addRule(H,G)}}}}})}})})},insertImages:function(B){new CssMatcher(this.selectors,this.processElement.bind(this)).match(document.body)},processSelector:function(I,G){var H=new Selector(G).findElements(I);for(var J=0,F=H.length;J<F;J++){this.processElement(H[J],G)}},processElement:function(L,M){L=Element.extend(L);if(L.down("img.replacement")||L.className=="print-text"){return }L.onedit=this.processElement.bind(this,L,M);var P=L.innerHTML;P=P.strip().gsub(/<br\/?>/i,"\n").stripTags();if(P.length>0){var K=L.getStyle("text-transform")||"";var N=0;if(L.getStyle("display")=="block"){N=L.offsetWidth-parseInt(L.getStyle("padding-left"))-parseInt(L.getStyle("padding-right"))}var T=L.getStyle("color");var O=document.createElement("span");O.className="txt2imgHover";L.appendChild(O);var Q=Element.getStyle(O,"color");Element.remove(O);var R=null;if(Q!=T){R=new Image();R.src=this.getImageUrl(P,K,N,M,Q)}var S=new Image();S.src=this.getImageUrl(P,K,N,M,T);this.insertImage(L,S,R)}},getImageUrl:function(H,K,J,I,G){var L=this.generatorUrl;L+=L.include("?")?"&":"?";return L+"text="+this.encode(H)+"&transform="+K+"&width="+J+"&selector="+this.encode(I)+"&color="+this.encode(G)},encode:function(B){B=encodeURIComponent(B);B=escape(B.replace(/%/g,"/"));return B.replace(/[%\/]/g,"@")},setImageSrc:function(C,D){if(this.useFilter){C.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+D+"', sizingMethod='scale')"}else{C.src=D}},insertImage:function(I,H,J){var K;K=document.createElement("img");K.style.verticalAlign="top";K.style.border="none";if(this.useFilter){K.src=this.pixelImage.src;if(H.width>0){K.style.width=H.width+"px";K.style.height=H.height+"px"}else{H.onload=function(){K.style.width=this.width+"px";K.style.height=this.height+"px"}}}this.setImageSrc(K,H.src);K.className="replacement";if(J){var G=I.up("a")||I;if(G._txt2ImgOver){G.stopObserving("mouseover",G._txt2ImgOver)}if(G._txt2ImgOut){G.stopObserving("mouseout",G._txt2ImgOut)}G._txt2ImgOver=this.setImageSrc.bind(this,K,J.src);G._txt2ImgOut=this.setImageSrc.bind(this,K,H.src);G.observe("mouseover",G._txt2ImgOver);G.observe("mouseout",G._txt2ImgOut)}var L=document.createElement("span");L.style.display="none";L.className="print-text";L.innerHTML=I.innerHTML;I.innerHTML="";I.appendChild(K);I.appendChild(L)}}/*@cc_on
/*@if (@_jscript_version < 5.7)
	RiotImageReplacement.prototype.useFilter = true;
/*@end
@*/;var ElementMatcher=Class.create();ElementMatcher.prototype={initialize:function(D){var C=/([^.#]*)#?([^.]*)\.?(.*)/.exec(D);this.tagName=C[1]!=""?C[1].toUpperCase():null;this.id=C[2]!=""?C[2]:null;this.className=C[3]!=""?C[3]:null;this.classNameRegExp=new RegExp("(^|\\s)"+this.className+"(\\s|$)")},match:function(B){if(this.tagName&&this.tagName!=B.tagName){return false}if(this.id&&this.id!=B.id){return false}if(this.className&&!this.checkClassName(B)){return false}return true},checkClassName:function(C){var D=C.className;if(D.length==0){return false}return D==this.className||D.match(this.classNameRegExp)},inspect:function(){return this.tagName+"#"+this.id+"."+this.className}};var CssSelector=Class.create();CssSelector.prototype={initialize:function(E){this.text=E;this.matchers=[];var D=E.split(/\s+/);for(var F=0;F<D.length;F++){this.matchers.push(new ElementMatcher(D[F]))}this.level=0;this.matcher=this.matchers[0];this.prev=[]},match:function(B){if(this.matcher.match(B)){if(this.el){this.prev.push(this.el)}this.el=B;this.matcher=this.matchers[++this.level];return this.level==this.matchers.length}return false},leave:function(B){if(B==this.el){this.el=this.prev.pop();this.matcher=this.matchers[--this.level]}}};var CssMatcher=Class.create();CssMatcher.prototype={initialize:function(C,D){this.sel=C.collect(function(A){return new CssSelector(A)});this.handler=D;this.callback=this.processElement.bind(this);this.counter=0},match:function(B){this.rootEl=B;this.el=B;this.processElement()},nextElement:function(B){while(B&&B.nodeType!=1){B=B.nextSibling}return B},processElement:function(){this.counter++;var H=false;for(var G=0;G<this.sel.length;G++){if(this.sel[G].match(this.el)){this.handler(this.el,this.sel[G].text);H=true;break}}var E=this.nextElement(this.el.firstChild);if(!H&&E){this.el=E}else{if(this.el==this.rootEl){return }for(var G=0;G<this.sel.length;G++){this.sel[G].leave(this.el)}E=this.nextElement(this.el.nextSibling);if(E){this.el=E}else{var F=this.el;while(F&&!E){F=F.parentNode;if(F==this.rootEl){return }for(var G=0;G<this.sel.length;G++){this.sel[G].leave(F)}E=this.nextElement(F.nextSibling)}this.el=E}}if(this.el){if(this.counter%50==0){setTimeout(this.callback,1)}else{this.processElement()}}}};var txt2img=new RiotImageReplacement("/riot-utils/txt2img.png?locale=de_DE","/riot-utils/txt2img.gif",["h1"]);if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(K,B,L,D,H,I,F,E,C,J){if(!document.getElementById){return }this.DETECT_KEY=J?J:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(K){this.setAttribute("swf",K)}if(B){this.setAttribute("id",B)}if(L){this.setAttribute("width",L)}if(D){this.setAttribute("height",D)}if(H){this.setAttribute("version",new deconcept.PlayerVersion(H.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(I){this.addParam("bgcolor",I)}var A=F?F:"high";this.addParam("quality",A);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var G=(E)?E:window.location;this.setAttribute("xiRedirectUrl",G);this.setAttribute("redirectUrl","");if(C){this.setAttribute("redirectUrl",C)}};deconcept.SWFObject.prototype={useExpressInstall:function(A){this.xiSWFPath=!A?"expressinstall.swf":A;this.setAttribute("useExpressInstall",true)},setAttribute:function(A,B){this.attributes[A]=B},getAttribute:function(A){return this.attributes[A]},addParam:function(B,A){this.params[B]=A},getParams:function(){return this.params},addVariable:function(B,A){this.variables[B]=A},getVariable:function(A){return this.variables[A]},getVariables:function(){return this.variables},getVariablePairs:function(){var C=new Array();var B;var A=this.getVariables();for(B in A){C[C.length]=B+"="+A[B]}return C},getSWFHTML:function(){var B="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}B='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';B+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var F=this.getParams();for(var E in F){B+=[E]+'="'+F[E]+'" '}var D=this.getVariablePairs().join("&");if(D.length>0){B+='flashvars="'+D+'"'}B+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}B='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';B+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var C=this.getParams();for(var E in C){B+='<param name="'+E+'" value="'+C[E]+'" />'}var A=this.getVariablePairs().join("&");if(A.length>0){B+='<param name="flashvars" value="'+A+'" />'}B+="</object>"}return B},write:function(B){if(this.getAttribute("useExpressInstall")){var A=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(A)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var C=(typeof B=="string")?document.getElementById(B):B;C.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var E=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var A=navigator.plugins["Shockwave Flash"];if(A&&A.description){E=new deconcept.PlayerVersion(A.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var B=1;var C=3;while(B){try{C++;B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+C);E=new deconcept.PlayerVersion([C,0,0])}catch(D){B=null}}}else{try{var B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(D){try{var B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");E=new deconcept.PlayerVersion([6,0,21]);B.AllowScriptAccess="always"}catch(D){if(E.major==6){return E}}try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(D){}}if(B!=null){E=new deconcept.PlayerVersion(B.GetVariable("$version").split(" ")[1].split(","))}}}return E};deconcept.PlayerVersion=function(A){this.major=A[0]!=null?parseInt(A[0]):0;this.minor=A[1]!=null?parseInt(A[1]):0;this.rev=A[2]!=null?parseInt(A[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(A){if(this.major<A.major){return false}if(this.major>A.major){return true}if(this.minor<A.minor){return false}if(this.minor>A.minor){return true}if(this.rev<A.rev){return false}return true};deconcept.util={getRequestParameter:function(C){var D=document.location.search||document.location.hash;if(C==null){return D}if(D){var B=D.substring(1).split("&");for(var A=0;A<B.length;A++){if(B[A].substring(0,B[A].indexOf("="))==C){return B[A].substring((B[A].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var B=document.getElementsByTagName("OBJECT");for(var C=B.length-1;C>=0;C--){B[C].style.display="none";for(var A in B[C]){if(typeof B[C][A]=="function"){B[C][A]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(A){return document.all[A]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;var RolloutComponents=Class.create();RolloutComponents.prototype={initialize:function(){this.initializeComponents();if(window.riotEditCallbacks){addRiotEditCallback(this.initializeComponents.bind(this))}},initializeComponents:function(A){if(!A){A=$(document.body)}A.select(".rollout-component").each(this.insertButtons.bind(this))},insertButtons:function(C){C.hide();C.up().toggleClassName("collapsed");var A=C.up().select(".toggleButton");if(A.size()>0){this.attachClickHandler(A[0],C);A[0].style.display="block"}else{var B=$(document.createElement("div"));B.className="toggleButton collapsed";B.innerHTML='<a href="javascript://" class="expand">Ausklappen</a><a href="javascript://" class="collapse">Einklappen</a>';this.attachClickHandler(B,C);C.up().insertBefore(B,C)}},attachClickHandler:function(A,B){A.onclick=function(){Effect.toggle(B,"blind",{duration:0.6,beforeStart:function(C){B.parentNode.toggleClassName("expanded");B.parentNode.toggleClassName("collapsed")},afterFinish:function(C){A.toggleClassName("expanded");A.toggleClassName("collapsed")}})}}};var rolloutComponents=new RolloutComponents();var FlashComponents=Class.create();FlashComponents.prototype={initialize:function(){this.initializeComponents();if(window.riotEditCallbacks){addRiotEditCallback(this.initializeComponents.bind(this))}},initializeComponents:function(A){if(!A){A=$(document.body)}A.select(".flashComponent").each(this.initializeComponent.bind(this))},initializeComponent:function(el){var fo;var flashObject=el.select(".flashObject");if(flashObject.size()==1){var flashParams=flashObject[0].childElements();flashParams.each(function(param){if(param.name=="properties"){fo=eval("new SWFObject("+param.value+")")}else{if(param.name=="variables"){fo.variables=eval("new Object("+param.value+")")}}});if(fo){if(fo.variables.divid){fo.write(fo.variables.divid)}else{fo.write(fo.getAttribute("id"))}}}}};var flashComponents=new FlashComponents();var popupOptions=new Array();popupOptions["print"]={width:604,height:570,left:"center",top:"center",scrollbars:"yes",location:0,menubar:"yes",resizable:"yes"};function initializePopups(){var A,B;for(B=0;A=document.links[B];B++){if(A.target&&A.target.indexOf("popup:")==0){A.onclick=popupHandler}}}function parsePopupTarget(C){var A,D,B,F,E;A=new Array();D=C.substring(6);if(D.indexOf(",")>=0){D=D.split(",");for(B in D){E=D[B].split("=");A[E[0]]=E[1]}return A}else{if(popupOptions[D]){F=popupOptions[D];if(!F.name){F.name=D}return F}else{alert("Unknown popup style: '"+D+"'")}}}function serializePopupOptions(C){var F,A,E,D,B;F="";A=screen.availWidth?screen.availWidth:800;E=screen.availHeight?screen.availHeight:600;for(D in C){B=C[D];if(D=="left"&&B=="center"&&C["width"]){B=Math.round(A/2-C["width"]/2)}if(D=="top"&&B=="center"&&C["height"]){B=Math.round(E/2-C["height"]/2)}if(D!="name"){F+=D+"="+B+","}}return F}function popup(C,B){var D=B["name"];if(!D){D=String(new Date().getTime())}var A=window.open(C,D,serializePopupOptions(B));if(A.focus){A.focus()}return A}function predefinedPopup(A,B){return popup(A,popupOptions[B])}function popupLink(A){if(A.target=="popup:_blank"){open(A.href)}else{popup(A.href,parsePopupTarget(A.target))}return false}