function ActionRotator(A){this.container=A;
this.current=-1;
this.items=[];
this.init()
}ActionRotator.prototype={TIME_DELAY:6000,TIME_RESUME:2000,init:function(){var D=/overview/i;
var A=this.container.getElementsByTagName("li");
for(var C,B=0;
B<A.length;
B++){C=A[B];
if(!D.test(C.className)){this.addItem(C)
}}EventListener.addEvent(this.container,"mouseover",this.scope(this.pause));
EventListener.addEvent(document,"mouseover",this.scope(this.unpause));
this.animate()
},addItem:function(B){var A=this.items.length;
this.items[A]=new ActionRotatorItem(B,this,A)
},next:function(E){var B=++this.current%this.items.length;
for(var A,D,C=0;
C<this.items.length;
C++){D=this.items[C];
A=((B==C&&!E)||(E==D))?true:false;
D.toggle(A)
}if(E){this.current=E.index
}},pause:function(B){var A=EventListener.getTarget(B,"li");
if(A&&A.rotatorItem){this.paused=true;
clearTimeout(this.timeout);
this.next(A.rotatorItem)
}},unpause:function(B){if(!this.paused){return 
}var A=EventListener.getTarget(B);
while(A){if(A==this.container){return 
}A=A.parentNode
}this.resume()
},resume:function(){this.paused=false;
this.timeout=setTimeout(this.scope(this.animate),this.TIME_RESUME)
},animate:function(){if(!this.paused){this.next();
this.timeout=setTimeout(this.scope(this.animate),this.TIME_DELAY)
}},scope:function(B){var A=this;
return function(){return B.apply(A,arguments)
}
},compactPagenavigation:function(){$rotatorPagination=$(".rotator-pagination");
var A=$rotatorPagination.find("a[rel^=rotate-]").size();
if(A<6){$underlay=$rotatorPagination.find(".underlay");
pixels=110-(6-A)*17;
$underlay.css("width",pixels+"px")
}}};
function ActionRotatorItem(C,D,A){this.container=C;
this.container.rotatorItem=this;
this.rotator=D;
this.index=A;
var B=C.getElementsByTagName("span");
this.banner=B[B.length-1];
this.display(false);
this.animator=new Animator(1,100,this.scope(this.animate),this.scope(this.animateEnd));
this.animator.setDuration(this.TIME_ANIMATE)
}ActionRotatorItem.prototype={CLASS_ACTIVE:"current",TIME_ANIMATE:750,toggle:function(A){this.direction=A?1:-1;
if(A&&ClassName.contains(this.container,this.CLASS_ACTIVE)){this.display(true);
return 
}if(A){this.setOpacity(0);
ClassName.add(this.container,this.CLASS_ACTIVE);
this.display(true)
}else{ClassName.remove(this.container,this.CLASS_ACTIVE)
}if(this.visible){this.animator.start()
}},animate:function(B){var A=(this.direction>0)?B:(100-B);
this.setOpacity(A)
},animateEnd:function(){this.animate(100);
if(this.direction<0){this.display(false)
}},setOpacity:function(A){var B=this.banner.style;
B.opacity=A/100;
B.mozOpacity=A/100;
B.filter="alpha(opacity="+A+")"
},display:function(A){this.banner.style.display=A?"block":"none";
this.visible=A
},scope:function(B){var A=this;
return function(){return B.apply(A,arguments)
}
}};
BizActionRotator=Class.extend(ActionRotator,function(){},{init:function(){var A=this.container.getElementsByTagName("ul")[0];
var G=this.container.getElementsByTagName("ol")[0];
var B=G.getElementsByTagName("li");
var F=A.getElementsByTagName("li");
for(var D,E,C=0;
C<B.length;
C++){E=B[C];
D=F[C+1];
this.addItem(E,D)
}EventListener.addEvent(this.container,"mouseover",this.pause,this);
EventListener.addEvent(A,"click",this.click,this);
EventListener.addEvent(document,"mouseover",this.unpause,this);
this.compactPagenavigation();
this.animate()
},addItem:function(C,B){var A=this.items.length;
this.items[A]=new BizActionRotatorItem(C,B,this,A)
},next:function(E){var B=++this.current%this.items.length;
for(var A,D,C=0;
C<this.items.length;
C++){D=this.items[C];
A=(B==C)?true:false;
D.toggle(A)
}if(E){this.current=E.index
}},click:function(D){var C=EventListener.getTarget(D,"a");
var A=/rotate-([a-z0-9]+)/i.exec(C.rel)[1];
switch(A){case"previous":this.current+=this.items.length-2;
this.next();
break;
case"next":this.next();
break;
default:var B=parseInt(A);
if(isNaN(B)){break
}this.current=B-2;
this.next();
break
}EventListener.cancelEvent(D)
},pause:function(A){this.paused=true;
clearTimeout(this.timeout)
}});
BizActionRotatorItem=Class.extend(ActionRotatorItem,function BizActionRotatorItem(D,C,E,A){this.container=D;
this.button=C;
this.button.rotatorItem=this;
this.rotator=E;
this.index=A;
var B=D.getElementsByTagName("span");
this.banner=B[B.length-1];
this.display(false);
this.animator=new Animator(1,100,this.scope(this.animate),this.scope(this.animateEnd));
this.animator.setDuration(this.TIME_ANIMATE)
},{toggle:function(A){this.direction=A?1:-1;
if(A&&ClassName.contains(this.container,this.CLASS_ACTIVE)){this.display(true);
return 
}if(A){this.setOpacity(0);
ClassName.add(this.container,this.CLASS_ACTIVE);
ClassName.add(this.button,this.CLASS_ACTIVE);
this.display(true)
}else{ClassName.remove(this.container,this.CLASS_ACTIVE);
ClassName.remove(this.button,this.CLASS_ACTIVE)
}if(this.visible){this.animator.start()
}}});
FlashActionRotator=Class.extend(ActionRotator,function(){},{playlistStatic:[],createPlaylist:function(){staticList=this.playlistStatic;
var D=[{loop:true}];
var B=null,E=null,C=null,A=null;
$(this.container).find("span.container").each(function(){A=$(this).find("a:has(img)").attr("href");
if($(this).find("a[href$=.flv]").size()>0){E=$(this).find("a[href$=.flv]").attr("href");
B={url:E,linkUrl:A}
}else{C=$(this).find("img").attr("src");
B={url:C,duration:6,linkUrl:A}
}staticList.push(B)
});
return staticList
},toggleSound:function(){var A=$f("player");
if($(this).is(".mute")){A.unmute();
$(this).removeClass("mute")
}else{A.mute();
$(this).addClass("mute")
}},pageNavigation:function(){var C=$(this).text();
var B=$f("player");
var A=B.getClip().index;
if(C=="Vorige"){A-=1;
if(A<0){A=B.getPlaylist().length-1
}}else{if(C=="Volgende"){A+=1;
if(A==B.getPlaylist().length){A=0
}}else{parsed=parseInt(C);
if(isNaN(parsed)){return 
}else{A=parsed-1
}}}B.play(A)
},createHTML:function(){$paginationElements=$(this.container).find(".rotator-pagination");
$container=$(this.container);
$container.empty();
$container.append($paginationElements);
$extraControls=$('<div class="rotator-controls"><div class="sound"></div></div>');
$paginationElements.find("a").click(this.pageNavigation);
$container.append($extraControls);
$extraControls.find(".sound").click(this.toggleSound);
$container.append("<div id='player'></div>");
$player=$("#player");
width=parseInt($container.css("width").replace(/px,*\)*/g,""));
height=parseInt($container.css("height").replace(/px,*\)*/g,""));
if(width==474){$player.css("padding","4px");
$player.css("width",(width-10)+"px");
$player.css("height",(height-10)+"px");
$player.css("border","1px solid #D4D4D4")
}else{$player.css("width",(width)+"px");
$player.css("height",(height)+"px")
}},init:function(){playlist2=this.createPlaylist();
this.createHTML();
this.compactPagenavigation();
this.player=$f("player",{src:"/static/swf/flowplayer.swf",wmode:"opaque"},{playlist:this.playlistStatic,plugins:{controls:null},debug:false,clip:{loop:true,onStart:function(){if(this.getClip().type=="video"){$(".rotator-controls .sound").show()
}else{$(".rotator-controls .sound").hide()
}$(".rotator-pagination li").removeClass("current");
$(".rotator-pagination li:nth-child("+(this.getClip().index+2)+")").addClass("current")
},onBeforeFinish:function(){if(this.getClip().index==this.getPlaylist().length-1){return false
}}}})
}});