function animation_carousel(a,b,c){var d=this;var e;var f=false;this.init=function(){a.style.visibility="hidden";for(var b=0;b<a.children.length;b++){a.children[b].rel=b;a.children[b].style.position="absolute"}e=new Animator({duration:4e3,onStep:function(){d.setPosition(this.state);var b=g===a.children.length?0:g;var c=h===a.children.length?0:h;d.onStep({totalState:this.state,subjectState:(this.state-b/a.children.length)/((c-b)/a.children.length)})},onComplete:function(){f=false;d.onComplete({index:h===a.children.length?0:h})}})};this.start=function(){d.setPosition(0);a.style.visibility="";for(var b=0;b<a.children.length;b++){a.children[b].onclick=function(){d.gotoItem(this.rel)}}d.onComplete({index:0})};this.setPosition=function(d){var e=Math.PI*2*d;var f=b*2;var g=1e4;var i=h;if(i===a.children.length){i=0}for(var j=0;j<a.children.length;j++){var k=Math.PI*2*(j/a.children.length);var l=e-k;var m=Math.sin(l)*c;var n=Math.cos(l)*b;var o=(n+b)/f;var p=.1+.3*o;if(i===j){p=1}a.children[j].style.opacity=p;a.children[j].style.filter="alpha(opacity ="+p*100+")";a.children[j].style.marginLeft=c+m+"px";a.children[j].style.marginTop=b+n+"px"}};var g;var h=0;this.gotoItem=function(b){g=parseInt(h);h=b;var c=b/a.children.length;e.seekTo(c);f=true;var d=g===a.children.length?0:g;var i=h===a.children.length?0:h;this.onStart({sourceItem:d,targetItem:i})};this.next=function(){var b=h;if(f===false){b++;if(b===a.children.length+1){e.jumpTo(0);b=1}this.gotoItem(b)}};this.back=function(){var b=h;if(f===false){b--;if(b===-1){e.jumpTo(1);b=a.children.length-1}this.gotoItem(b)}};this.onStart=function(){};this.onStep=function(a){};this.onComplete=function(){};this.init()}function slideUl(a,b,c,d){var e=this;if(a===undefined){alert("Slide ul does not exists");return}if(c===undefined){c=false}var f=new Animator({duration:d===undefined?750:d,onStep:function(){if(a.children.length!==0){a.style[c!==false?"marginTop":"marginLeft"]=this.state*100*(a.children.length*b/100)*-1+"px"}},onComplete:function(){e.onComplete()}});var g=0;this.init=function(){var d=document.createElement("div");a.parentNode.insertBefore(d,a);a=a.parentNode.removeChild(a);d.appendChild(a);a.style.listStyle="none";a.style.padding=0;d.style.overflow="hidden";if(c){d.style.height=b+"px"}else{d.style.width=b+"px";a.style.width="9999999px"}};this.next=function(){g++;if(a.children.length===g){g=0}if(a.children.length!==0){f.seekTo(g/a.children.length)}};this.prev=function(){g--;if(g===-1){g=a.children.length-1}if(a.children.length!==0){f.seekTo(g/a.children.length)}};this.getChildCount=function(){return a.children.length};this.getActiveIndex=function(){return g};this.onComplete=function(){};this.init()}function output_form_button(a,b,c,d){var e=document.createElement("a");e.href="#";a.appendChild(e);e.onclick=function(a){if(controllers_main_help.checkOnContainer(a))return false;d();return false};e.className="button";var f=document.createElement("div");e.appendChild(f);f.className="icon "+b;var g=document.createElement("div");e.appendChild(g);g.className="title";g.innerHTML=c}function getInternetExplorerVersion(){var a=-1;if(navigator.appName=="Microsoft Internet Explorer"){var b=navigator.userAgent;var c=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");if(c.exec(b)!=null)a=parseFloat(RegExp.$1)}return a}function AnimatorChain(a,b){this.animators=a;this.setOptions(b);for(var c=0;c<this.animators.length;c++){this.listenTo(this.animators[c])}this.forwards=false;this.current=0}function CSSStyleSubject(a,b,c){a=Animator.makeArrayOfElements(a);this.subjects=[];if(a.length==0)return;var d,e,f;if(c){f=this.parseStyle(b,a[0]);e=this.parseStyle(c,a[0])}else{e=this.parseStyle(b,a[0]);f={};for(d in e){f[d]=CSSStyleSubject.getStyle(a[0],d)}}var d;for(d in f){if(f[d]==e[d]){delete f[d];delete e[d]}}var d,g,h,i,j,k;for(d in f){var l=String(f[d]);var m=String(e[d]);if(e[d]==null){if(window.ANIMATOR_DEBUG)alert("No to style provided for '"+d+'"');continue}if(j=ColorStyleSubject.parseColor(l)){k=ColorStyleSubject.parseColor(m);i=ColorStyleSubject}else if(l.match(CSSStyleSubject.numericalRe)&&m.match(CSSStyleSubject.numericalRe)){j=parseFloat(l);k=parseFloat(m);i=NumericalStyleSubject;h=CSSStyleSubject.numericalRe.exec(l);var n=CSSStyleSubject.numericalRe.exec(m);if(h[1]!=null){g=h[1]}else if(n[1]!=null){g=n[1]}else{g=n}}else if(l.match(CSSStyleSubject.discreteRe)&&m.match(CSSStyleSubject.discreteRe)){j=l;k=m;i=DiscreteStyleSubject;g=0}else{if(window.ANIMATOR_DEBUG){alert("Unrecognised format for value of "+d+": '"+f[d]+"'")}continue}this.subjects[this.subjects.length]=new i(a,d,j,k,g)}}function DiscreteStyleSubject(a,b,c,d,e){this.els=Animator.makeArrayOfElements(a);this.property=Animator.camelize(b);this.from=c;this.to=d;this.threshold=e||.5}function ColorStyleSubject(a,b,c,d){this.els=Animator.makeArrayOfElements(a);this.property=Animator.camelize(b);this.to=this.expandColor(d);this.from=this.expandColor(c);this.origFrom=c;this.origTo=d}function NumericalStyleSubject(a,b,c,d,e){this.els=Animator.makeArrayOfElements(a);if(b=="opacity"&&window.ActiveXObject){this.property="filter"}else{this.property=Animator.camelize(b)}this.from=parseFloat(c);this.to=parseFloat(d);this.units=e!=null?e:"px"}function Animator(a){this.setOptions(a);var b=this;this.timerDelegate=function(){b.onTimerEvent()};this.subjects=[];this.target=0;this.state=0;this.lastTime=null}var swfobject=function(){function V(b){var c=/[\\\"<>\.;]/;var d=c.exec(b)!=null;return d&&typeof encodeURIComponent!=a?encodeURIComponent(b):b}function U(a,b){if(!x){return}var c=b?"visible":"hidden";if(t&&P(a)){P(a).style.visibility=c}else{T("#"+a,"visibility:"+c)}}function T(c,d,e,f){if(y.ie&&y.mac){return}var g=i.getElementsByTagName("head")[0];if(!g){return}var h=e&&typeof e=="string"?e:"screen";if(f){v=null;w=null}if(!v||w!=h){var j=Q("style");j.setAttribute("type","text/css");j.setAttribute("media",h);v=g.appendChild(j);if(y.ie&&y.win&&typeof i.styleSheets!=a&&i.styleSheets.length>0){v=i.styleSheets[i.styleSheets.length-1]}w=h}if(y.ie&&y.win){if(v&&typeof v.addRule==b){v.addRule(c,d)}}else{if(v&&typeof i.createTextNode!=a){v.appendChild(i.createTextNode(c+" {"+d+"}"))}}}function S(a){var b=y.pv,c=a.split(".");c[0]=parseInt(c[0],10);c[1]=parseInt(c[1],10)||0;c[2]=parseInt(c[2],10)||0;return b[0]>c[0]||b[0]==c[0]&&b[1]>c[1]||b[0]==c[0]&&b[1]==c[1]&&b[2]>=c[2]?true:false}function R(a,b,c){a.attachEvent(b,c);o[o.length]=[a,b,c]}function Q(a){return i.createElement(a)}function P(a){var b=null;try{b=i.getElementById(a)}catch(c){}return b}function O(a){var b=P(a);if(b){for(var c in b){if(typeof b[c]=="function"){b[c]=null}}b.parentNode.removeChild(b)}}function N(a){var b=P(a);if(b&&b.nodeName=="OBJECT"){if(y.ie&&y.win){b.style.display="none";(function(){if(b.readyState==4){O(a)}else{setTimeout(arguments.callee,10)}})()}else{b.parentNode.removeChild(b)}}}function M(a,b,c){var d=Q("param");d.setAttribute("name",b);d.setAttribute("value",c);a.appendChild(d)}function L(c,d,f){var g,h=P(f);if(y.wk&&y.wk<312){return g}if(h){if(typeof c.id==a){c.id=f}if(y.ie&&y.win){var i="";for(var j in c){if(c[j]!=Object.prototype[j]){if(j.toLowerCase()=="data"){d.movie=c[j]}else{if(j.toLowerCase()=="styleclass"){i+=' class="'+c[j]+'"'}else{if(j.toLowerCase()!="classid"){i+=" "+j+'="'+c[j]+'"'}}}}}var k="";for(var l in d){if(d[l]!=Object.prototype[l]){k+='<param name="'+l+'" value="'+d[l]+'" />'}}h.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+i+">"+k+"</object>";n[n.length]=c.id;g=P(c.id)}else{var m=Q(b);m.setAttribute("type",e);for(var o in c){if(c[o]!=Object.prototype[o]){if(o.toLowerCase()=="styleclass"){m.setAttribute("class",c[o])}else{if(o.toLowerCase()!="classid"){m.setAttribute(o,c[o])}}}}for(var p in d){if(d[p]!=Object.prototype[p]&&p.toLowerCase()!="movie"){M(m,p,d[p])}}h.parentNode.replaceChild(m,h);g=m}}return g}function K(a){var c=Q("div");if(y.win&&y.ie){c.innerHTML=a.innerHTML}else{var d=a.getElementsByTagName(b)[0];if(d){var e=d.childNodes;if(e){var f=e.length;for(var g=0;g<f;g++){if(!(e[g].nodeType==1&&e[g].nodeName=="PARAM")&&!(e[g].nodeType==8)){c.appendChild(e[g].cloneNode(true))}}}}}return c}function J(a){if(y.ie&&y.win&&a.readyState!=4){var b=Q("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(K(a),b);a.style.display="none";(function(){if(a.readyState==4){a.parentNode.removeChild(a)}else{setTimeout(arguments.callee,10)}})()}else{a.parentNode.replaceChild(K(a),a)}}function I(b,c,d,e){u=true;r=e||null;s={success:false,id:d};var g=P(d);if(g){if(g.nodeName=="OBJECT"){p=K(g);q=null}else{p=g;q=d}b.id=f;if(typeof b.width==a||!/%$/.test(b.width)&&parseInt(b.width,10)<310){b.width="310"}if(typeof b.height==a||!/%$/.test(b.height)&&parseInt(b.height,10)<137){b.height="137"}i.title=i.title.slice(0,47)+" - Flash Player Installation";var j=y.ie&&y.win?"ActiveX":"PlugIn",k="MMredirectURL="+h.location.toString().replace(/&/g,"%26")+"&MMplayerType="+j+"&MMdoctitle="+i.title;if(typeof c.flashvars!=a){c.flashvars+="&"+k}else{c.flashvars=k}if(y.ie&&y.win&&g.readyState!=4){var l=Q("div");d+="SWFObjectNew";l.setAttribute("id",d);g.parentNode.insertBefore(l,g);g.style.display="none";(function(){if(g.readyState==4){g.parentNode.removeChild(g)}else{setTimeout(arguments.callee,10)}})()}L(b,c,d)}}function H(){return!u&&S("6.0.65")&&(y.win||y.mac)&&!(y.wk&&y.wk<312)}function G(c){var d=null;var e=P(c);if(e&&e.nodeName=="OBJECT"){if(typeof e.SetVariable!=a){d=e}else{var f=e.getElementsByTagName(b)[0];if(f){d=f}}}return d}function F(){var b=m.length;if(b>0){for(var c=0;c<b;c++){var d=m[c].id;var e=m[c].callbackFn;var f={success:false,id:d};if(y.pv[0]>0){var g=P(d);if(g){if(S(m[c].swfVersion)&&!(y.wk&&y.wk<312)){U(d,true);if(e){f.success=true;f.ref=G(d);e(f)}}else{if(m[c].expressInstall&&H()){var h={};h.data=m[c].expressInstall;h.width=g.getAttribute("width")||"0";h.height=g.getAttribute("height")||"0";if(g.getAttribute("class")){h.styleclass=g.getAttribute("class")}if(g.getAttribute("align")){h.align=g.getAttribute("align")}var i={};var j=g.getElementsByTagName("param");var k=j.length;for(var l=0;l<k;l++){if(j[l].getAttribute("name").toLowerCase()!="movie"){i[j[l].getAttribute("name")]=j[l].getAttribute("value")}}I(h,i,d,e)}else{J(g);if(e){e(f)}}}}}else{U(d,true);if(e){var n=G(d);if(n&&typeof n.SetVariable!=a){f.success=true;f.ref=n}e(f)}}}}}function E(){var c=i.getElementsByTagName("body")[0];var d=Q(b);d.setAttribute("type",e);var f=c.appendChild(d);if(f){var g=0;(function(){if(typeof f.GetVariable!=a){var b=f.GetVariable("$version");if(b){b=b.split(" ")[1].split(",");y.pv=[parseInt(b[0],10),parseInt(b[1],10),parseInt(b[2],10)]}}else{if(g<10){g++;setTimeout(arguments.callee,10);return}}c.removeChild(d);f=null;F()})()}else{F()}}function D(){if(k){E()}else{F()}}function C(b){if(typeof h.addEventListener!=a){h.addEventListener("load",b,false)}else{if(typeof i.addEventListener!=a){i.addEventListener("load",b,false)}else{if(typeof h.attachEvent!=a){R(h,"onload",b)}else{if(typeof h.onload=="function"){var c=h.onload;h.onload=function(){c();b()}}else{h.onload=b}}}}}function B(a){if(t){a()}else{l[l.length]=a}}function A(){if(t){return}try{var a=i.getElementsByTagName("body")[0].appendChild(Q("span"));a.parentNode.removeChild(a)}catch(b){return}t=true;var c=l.length;for(var d=0;d<c;d++){l[d]()}}var a="undefined",b="object",c="Shockwave Flash",d="ShockwaveFlash.ShockwaveFlash",e="application/x-shockwave-flash",f="SWFObjectExprInst",g="onreadystatechange",h=window,i=document,j=navigator,k=false,l=[D],m=[],n=[],o=[],p,q,r,s,t=false,u=false,v,w,x=true,y=function(){var f=typeof i.getElementById!=a&&typeof i.getElementsByTagName!=a&&typeof i.createElement!=a,g=j.userAgent.toLowerCase(),l=j.platform.toLowerCase(),m=l?/win/.test(l):/win/.test(g),n=l?/mac/.test(l):/mac/.test(g),o=/webkit/.test(g)?parseFloat(g.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,p=!+"1",q=[0,0,0],r=null;if(typeof j.plugins!=a&&typeof j.plugins[c]==b){r=j.plugins[c].description;if(r&&!(typeof j.mimeTypes!=a&&j.mimeTypes[e]&&!j.mimeTypes[e].enabledPlugin)){k=true;p=false;r=r.replace(/^.*\s+(\S+\s+\S+$)/,"$1");q[0]=parseInt(r.replace(/^(.*)\..*$/,"$1"),10);q[1]=parseInt(r.replace(/^.*\.(.*)\s.*$/,"$1"),10);q[2]=/[a-zA-Z]/.test(r)?parseInt(r.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof h.ActiveXObject!=a){try{var s=new ActiveXObject(d);if(s){r=s.GetVariable("$version");if(r){p=true;r=r.split(" ")[1].split(",");q=[parseInt(r[0],10),parseInt(r[1],10),parseInt(r[2],10)]}}}catch(t){}}}return{w3:f,pv:q,wk:o,ie:p,win:m,mac:n}}(),z=function(){if(!y.w3){return}if(typeof i.readyState!=a&&i.readyState=="complete"||typeof i.readyState==a&&(i.getElementsByTagName("body")[0]||i.body)){A()}if(!t){if(typeof i.addEventListener!=a){i.addEventListener("DOMContentLoaded",A,false)}if(y.ie&&y.win){i.attachEvent(g,function(){if(i.readyState=="complete"){i.detachEvent(g,arguments.callee);A()}});if(h==top){(function(){if(t){return}try{i.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}A()})()}}if(y.wk){(function(){if(t){return}if(!/loaded|complete/.test(i.readyState)){setTimeout(arguments.callee,0);return}A()})()}C(A)}}();var W=function(){if(y.ie&&y.win){window.attachEvent("onunload",function(){var a=o.length;for(var b=0;b<a;b++){o[b][0].detachEvent(o[b][1],o[b][2])}var c=n.length;for(var d=0;d<c;d++){N(n[d])}for(var e in y){y[e]=null}y=null;for(var f in swfobject){swfobject[f]=null}swfobject=null})}}();return{registerObject:function(a,b,c,d){if(y.w3&&a&&b){var e={};e.id=a;e.swfVersion=b;e.expressInstall=c;e.callbackFn=d;m[m.length]=e;U(a,false)}else{if(d){d({success:false,id:a})}}},getObjectById:function(a){if(y.w3){return G(a)}},embedSWF:function(c,d,e,f,g,h,i,j,k,l){var m={success:false,id:d};if(y.w3&&!(y.wk&&y.wk<312)&&c&&d&&e&&f&&g){U(d,false);B(function(){e+="";f+="";var n={};if(k&&typeof k===b){for(var o in k){n[o]=k[o]}}n.data=c;n.width=e;n.height=f;var p={};if(j&&typeof j===b){for(var q in j){p[q]=j[q]}}if(i&&typeof i===b){for(var r in i){if(typeof p.flashvars!=a){p.flashvars+="&"+r+"="+i[r]}else{p.flashvars=r+"="+i[r]}}}if(S(g)){var s=L(n,p,d);if(n.id==d){U(d,true)}m.success=true;m.ref=s}else{if(h&&H()){n.data=h;I(n,p,d,l);return}else{U(d,true)}}if(l){l(m)}})}else{if(l){l(m)}}},switchOffAutoHideShow:function(){x=false},ua:y,getFlashPlayerVersion:function(){return{major:y.pv[0],minor:y.pv[1],release:y.pv[2]}},hasFlashPlayerVersion:S,createSWF:function(a,b,c){if(y.w3){return L(a,b,c)}else{return undefined}},showExpressInstall:function(a,b,c,d){if(y.w3&&H()){I(a,b,c,d)}},removeSWF:function(a){if(y.w3){N(a)}},createCSS:function(a,b,c,d){if(y.w3){T(a,b,c,d)}},addDomLoadEvent:B,addLoadEvent:C,getQueryParamValue:function(a){var b=i.location.search||i.location.hash;if(b){if(/\?/.test(b)){b=b.split("?")[1]}if(a==null){return V(b)}var c=b.split("&");for(var d=0;d<c.length;d++){if(c[d].substring(0,c[d].indexOf("="))==a){return V(c[d].substring(c[d].indexOf("=")+1))}}}return""},expressInstallCallback:function(){if(u){var a=P(f);if(a&&p){a.parentNode.replaceChild(p,a);if(q){U(q,true);if(y.ie&&y.win){p.style.display="block"}}if(r){r(s)}}u=false}}}}();Animator.prototype={setOptions:function(a){this.options=Animator.applyDefaults({interval:20,duration:400,onComplete:function(){},onStep:function(){},transition:Animator.tx.easeInOut},a)},seekTo:function(a){this.seekFromTo(this.state,a)},seekFromTo:function(a,b){this.target=Math.max(0,Math.min(1,b));this.state=Math.max(0,Math.min(1,a));this.lastTime=(new Date).getTime();if(!this.intervalId){this.intervalId=window.setInterval(this.timerDelegate,this.options.interval)}},jumpTo:function(a){this.target=this.state=Math.max(0,Math.min(1,a));this.propagate()},toggle:function(){this.seekTo(1-this.target)},addSubject:function(a){this.subjects[this.subjects.length]=a;return this},clearSubjects:function(){this.subjects=[]},propagate:function(){var a=this.options.transition(this.state);for(var b=0;b<this.subjects.length;b++){if(this.subjects[b].setState){this.subjects[b].setState(a)}else{this.subjects[b](a)}}},onTimerEvent:function(){var a=(new Date).getTime();var b=a-this.lastTime;this.lastTime=a;var c=b/this.options.duration*(this.state<this.target?1:-1);if(Math.abs(c)>=Math.abs(this.state-this.target)){this.state=this.target}else{this.state+=c}try{this.propagate()}finally{this.options.onStep.call(this);if(this.target==this.state){this.stop()}}},stop:function(){if(this.intervalId){window.clearInterval(this.intervalId);this.intervalId=null;this.options.onComplete.call(this)}},play:function(){this.seekFromTo(0,1)},reverse:function(){this.seekFromTo(1,0)},inspect:function(){var a="#<Animator:\n";for(var b=0;b<this.subjects.length;b++){a+=this.subjects[b].inspect()}a+=">";return a}};Animator.applyDefaults=function(a,b){b=b||{};var c,d={};for(c in a)d[c]=b[c]!==undefined?b[c]:a[c];return d};Animator.makeArrayOfElements=function(a){if(a==null)return[];if("string"==typeof a){return[document.getElementById(a)]}if(!a.length)return[a];var b=[];for(var c=0;c<a.length;c++){if("string"==typeof a[c]){b[c]=document.getElementById(a[c])}else{b[c]=a[c]}}return b};Animator.camelize=function(a){var b=a.split("-");if(b.length==1)return b[0];var c=a.indexOf("-")==0?b[0].charAt(0).toUpperCase()+b[0].substring(1):b[0];for(var d=1,e=b.length;d<e;d++){var f=b[d];c+=f.charAt(0).toUpperCase()+f.substring(1)}return c};Animator.apply=function(a,b,c){if(b instanceof Array){return(new Animator(c)).addSubject(new CSSStyleSubject(a,b[0],b[1]))}return(new Animator(c)).addSubject(new CSSStyleSubject(a,b))};Animator.makeEaseIn=function(a){return function(b){return Math.pow(b,a*2)}};Animator.makeEaseOut=function(a){return function(b){return 1-Math.pow(1-b,a*2)}};Animator.makeElastic=function(a){return function(b){b=Animator.tx.easeInOut(b);return(1-Math.cos(b*Math.PI*a))*(1-b)+b}};Animator.makeADSR=function(a,b,c,d){if(d==null)d=.5;return function(e){if(e<a){return e/a}if(e<b){return 1-(e-a)/(b-a)*(1-d)}if(e<c){return d}return d*(1-(e-c)/(1-c))}};Animator.makeBounce=function(a){var b=Animator.makeElastic(a);return function(a){a=b(a);return a<=1?a:2-a}};Animator.tx={easeInOut:function(a){return-Math.cos(a*Math.PI)/2+.5},linear:function(a){return a},easeIn:Animator.makeEaseIn(1.5),easeOut:Animator.makeEaseOut(1.5),strongEaseIn:Animator.makeEaseIn(2.5),strongEaseOut:Animator.makeEaseOut(2.5),elastic:Animator.makeElastic(1),veryElastic:Animator.makeElastic(3),bouncy:Animator.makeBounce(1),veryBouncy:Animator.makeBounce(3)};NumericalStyleSubject.prototype={setState:function(a){var b=this.getStyle(a);var c=this.property=="opacity"&&a==0?"hidden":"";var d=0;for(var e=0;e<this.els.length;e++){try{this.els[e].style[this.property]=b}catch(f){if(this.property!="fontWeight")throw f}if(d++>20)return}},getStyle:function(a){a=this.from+(this.to-this.from)*a;if(this.property=="filter")return"alpha(opacity="+Math.round(a*100)+")";if(this.property=="opacity")return a;return Math.round(a)+this.units},inspect:function(){return"\t"+this.property+"("+this.from+this.units+" to "+this.to+this.units+")\n"}};ColorStyleSubject.prototype={expandColor:function(a){var b,c,d,e;b=ColorStyleSubject.parseColor(a);if(b){c=parseInt(b.slice(1,3),16);d=parseInt(b.slice(3,5),16);e=parseInt(b.slice(5,7),16);return[c,d,e]}if(window.ANIMATOR_DEBUG){alert("Invalid colour: '"+a+"'")}},getValueForState:function(a,b){return Math.round(this.from[a]+(this.to[a]-this.from[a])*b)},setState:function(a){var b="#"+ColorStyleSubject.toColorPart(this.getValueForState(0,a))+ColorStyleSubject.toColorPart(this.getValueForState(1,a))+ColorStyleSubject.toColorPart(this.getValueForState(2,a));for(var c=0;c<this.els.length;c++){this.els[c].style[this.property]=b}},inspect:function(){return"\t"+this.property+"("+this.origFrom+" to "+this.origTo+")\n"}};ColorStyleSubject.parseColor=function(a){var b="#",c;if(c=ColorStyleSubject.parseColor.rgbRe.exec(a)){var d;for(var e=1;e<=3;e++){d=Math.max(0,Math.min(255,parseInt(c[e])));b+=ColorStyleSubject.toColorPart(d)}return b}if(c=ColorStyleSubject.parseColor.hexRe.exec(a)){if(c[1].length==3){for(var e=0;e<3;e++){b+=c[1].charAt(e)+c[1].charAt(e)}return b}return"#"+c[1]}return false};ColorStyleSubject.toColorPart=function(a){if(a>255)a=255;var b=a.toString(16);if(a<16)return"0"+b;return b};ColorStyleSubject.parseColor.rgbRe=/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i;ColorStyleSubject.parseColor.hexRe=/^\#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;DiscreteStyleSubject.prototype={setState:function(a){var b=0;for(var c=0;c<this.els.length;c++){this.els[c].style[this.property]=a<=this.threshold?this.from:this.to}},inspect:function(){return"\t"+this.property+"("+this.from+" to "+this.to+" @ "+this.threshold+")\n"}};CSSStyleSubject.prototype={parseStyle:function(a,b){var c={};if(a.indexOf(":")!=-1){var d=a.split(";");for(var e=0;e<d.length;e++){var f=CSSStyleSubject.ruleRe.exec(d[e]);if(f){c[f[1]]=f[2]}}}else{var g,h,i;i=b.className;b.className=a;for(var e=0;e<CSSStyleSubject.cssProperties.length;e++){g=CSSStyleSubject.cssProperties[e];h=CSSStyleSubject.getStyle(b,g);if(h!=null){c[g]=h}}b.className=i}return c},setState:function(a){for(var b=0;b<this.subjects.length;b++){this.subjects[b].setState(a)}},inspect:function(){var a="";for(var b=0;b<this.subjects.length;b++){a+=this.subjects[b].inspect()}return a}};CSSStyleSubject.getStyle=function(a,b){var c;if(document.defaultView&&document.defaultView.getComputedStyle){c=document.defaultView.getComputedStyle(a,"").getPropertyValue(b);if(c){return c}}b=Animator.camelize(b);if(a.currentStyle){c=a.currentStyle[b]}return c||a.style[b]};CSSStyleSubject.ruleRe=/^\s*([a-zA-Z\-]+)\s*:\s*(\S(.+\S)?)\s*$/;CSSStyleSubject.numericalRe=/^-?\d+(?:\.\d+)?(%|[a-zA-Z]{2})?$/;CSSStyleSubject.discreteRe=/^\w+$/;CSSStyleSubject.cssProperties=["azimuth","background","background-attachment","background-color","background-image","background-position","background-repeat","border-collapse","border-color","border-spacing","border-style","border-top","border-top-color","border-right-color","border-bottom-color","border-left-color","border-top-style","border-right-style","border-bottom-style","border-left-style","border-top-width","border-right-width","border-bottom-width","border-left-width","border-width","bottom","clear","clip","color","content","cursor","direction","display","elevation","empty-cells","css-float","font","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","height","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-top","margin-right","margin-bottom","margin-left","max-height","max-width","min-height","min-width","orphans","outline","outline-color","outline-style","outline-width","overflow","padding","padding-top","padding-right","padding-bottom","padding-left","pause","position","right","size","table-layout","text-align","text-decoration","text-indent","text-shadow","text-transform","top","vertical-align","visibility","white-space","width","word-spacing","z-index","opacity","outline-offset","overflow-x","overflow-y"];AnimatorChain.prototype={setOptions:function(a){this.options=Animator.applyDefaults({resetOnPlay:true},a)},play:function(){this.forwards=true;this.current=-1;if(this.options.resetOnPlay){for(var a=0;a<this.animators.length;a++){this.animators[a].jumpTo(0)}}this.advance()},reverse:function(){this.forwards=false;this.current=this.animators.length;if(this.options.resetOnPlay){for(var a=0;a<this.animators.length;a++){this.animators[a].jumpTo(1)}}this.advance()},toggle:function(){if(this.forwards){this.seekTo(0)}else{this.seekTo(1)}},listenTo:function(a){var b=a.options.onComplete;var c=this;a.options.onComplete=function(){if(b)b.call(a);c.advance()}},advance:function(){if(this.forwards){if(this.animators[this.current+1]==null)return;this.current++;this.animators[this.current].play()}else{if(this.animators[this.current-1]==null)return;this.current--;this.animators[this.current].reverse()}},seekTo:function(a){if(a<=0){this.forwards=false;this.animators[this.current].seekTo(0)}else{this.forwards=true;this.animators[this.current].seekTo(1)}}};var flashCommunication=new function(){this.add=function(a,b,c,d,e){var f=document.createElement("div");a.appendChild(f);f.id=c;var g="flashHandler"+c;var h=swfobject.getFlashPlayerVersion();if(h.release !== 0){swfobject.embedSWF(b+"?obj="+g,c,d,e,"9.0.0",{},{},{wmode:"transparent"});window[g]={};window.setTimeout(function(){window[g].element=document.getElementById(c)},50)}else{window[g]={};var i=c;if(window[c]!==undefined){var j=new window[c](f,window[g])}else{alert("error loading '"+c+"'!")}window[g].element=j}return window[g]}};var headerAnimation=function(a,b){var c=[];this.loadImages=function(d,e){a.parentNode.parentNode.children[0].style.zIndex=999;for(var f in d){var g=document.createElement("img");g.src=d[f];a.appendChild(g);g.style.position="absolute";g.style.zIndex=d.length-f;g.style.display="none"}c=a.children;c[e].style.display="";b.imagesLoaded()};this.gotoImage=function(a){var d,e;var f=function(a,b){a.style.opacity=b;a.style.filter="alpha(opacity="+b*100+")"};for(var g=0;g<c.length;g++){if(g===parseInt(a)){f(c[g],0);c[g].style.display="";c[g].style.zIndex=1;d=c[g]}else if(c[g].style.display===""){c[g].style.display="";c[g].style.zIndex=0;f(c[g],1);e=c[g]}else{c[g].style.display="none"}}var h=new Animator({duration:500,onStep:function(a){f(d,this.state)},onComplete:function(){b.animationEnd(a);e.style.display="none"}});h.play()};window.setTimeout(function(){b.ready()},10)};var header=new function(){images.splice(5);var a=window["headerStartIndex"]!==undefined?headerStartIndex:false;if(a!==false){var b=window["headerSecPaused"]===undefined?10:isNaN(parseInt(headerSecPaused))?10:parseInt(headerSecPaused)}var c=this;var d=0;var e=0;var f=false;var g=3e3;var h=document.getElementById("menu");if(h!==undefined){for(var i=0;i<h.children.length;i++){h.children[i].onmouseover=function(){c.delNextInterval()};h.children[i].onmouseout=function(){c.setNextInterval()}}}else{alert("menu bestaat niet")}var j=flashCommunication.add(document.getElementById("header"),baseUrl+"header.swf","headerAnimation",987,294);j.ready=function(){window.setTimeout(function(){var b=a===false?0:a;c.jumpToImage(b);j.element.loadImages(images,b)},100)};j.imagesLoaded=function(){c.initSlider();if(b!==false){setTimeout(function(){c.setNextInterval()},b*1e3-g)}else{c.setNextInterval()}};j.animationEnd=function(a){d=a;if(d!==e){j.element.gotoImage(e)}else{f=false}c.setNextInterval()};var k=document.getElementById("slider");var l=document.getElementById("enabledSlider");var m=function(a,b){var c;if(a.className===undefined)c=[];else c=a.className.split(" ");var d=false;for(var e=0;e<c.length;e++){if(c[e]===b){d=true}}if(d===false){c.push(b)}a.className=c.join(" ")};var n=function(a,b){var c;if(a.className===undefined)c=[];else c=a.className.split(" ");for(var d=0;d<c.length;d++){if(c[d]===b){c.splice(d,1)}}a.className=c.join(" ")};var o=new Animator({duration:1200,onStep:function(){l.style.marginTop=1+195/100*this.state*100+"px"}});this.initSlider=function(){for(var a=0;a<k.children.length;a++){k.children[a].rel=a;k.children[a].onmouseover=function(){c.goToImage(this.rel)}}};this.jumpToImage=function(a){e=a;var b=e/images.length;o.jumpTo(b);o.seekTo(b);for(var c=0;c<k.children.length;c++){if(c===e){m(k.children[c],"active")}else{n(k.children[c],"active")}}};this.goToImage=function(a){if(e!==a){e=a;o.seekTo(e/images.length);for(var b=0;b<k.children.length;b++){if(b===e){m(k.children[b],"active")}else{n(k.children[b],"active")}}if(f===false){f=true;j.element.gotoImage(e)}}};var p=getInternetExplorerVersion();var q;this.delNextInterval=function(){if(p===-1||p>=9){if(q!==undefined){window.clearInterval(q);q=undefined}}};this.setNextInterval=function(){if(p===-1||p>=9){this.delNextInterval();q=window.setTimeout(function(){if(f===false){var a=parseInt(e);a++;if(a===images.length){a=0}c.goToImage(a)}q=undefined},g)}}};F
