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; B0)?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; C0){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=$('
'); $paginationElements.find("a").click(this.pageNavigation); $container.append($extraControls); $extraControls.find(".sound").click(this.toggleSound); $container.append("
"); $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 }}}}) }});