(function(d){var b={active:false,event:"click",title:":even",content:":odd",titleClass:"accordeon-title-open",contentClass:"accordeon-content-open"},e={toggle:function(a,f){var c=":lt("+f+")",d=":eq("+f+")",e=":gt("+f+")";a.children(b.title+c).removeClass(b.titleClass);a.children(b.content+c).slideUp().removeClass(b.contentClass);a.children(b.title+e).removeClass(b.titleClass);a.children(b.content+e).slideUp().removeClass(b.contentClass);a.children(b.title+d).toggleClass(b.titleClass);a.children(b.content+ d).slideToggle().toggleClass(b.contentClass)}},c={init:function(a){a&&d.extend(b,a);return this.each(function(){var a=d(this);a.children(b.content).filter(":visible").hide();b.active!==false&&b.active>=0&&(a.children(b.title).eq(b.active).addClass(b.titleClass),a.children(b.content).eq(b.active).show().addClass(b.contentClass));a.children(b.title).unbind().bind(b.event,function(){var c=a.children(b.title).index(this);e.toggle(a,c);return false})})},toggle:function(a){return this.each(function(){e.toggle(d(this), a)})}};d.fn.acAccordeon=function(a){return c[a]?c[a].apply(this,Array.prototype.slice.call(arguments,1)):typeof a==="object"||!a?c.init.apply(this,arguments):(d.error("Method "+a+" does not exist on jQuery.accordeon"),false)}})(jQuery);
(function(d){var b={id:0,speed:800,interval:4E3,handles:"#rpanel-handles",panel:"#rpanel-mask",hoverClass:"hover",closeClass:"close"},e={init:function(c){c&&d.extend(b,c);return this.each(function(){var a=d(this),c=a.find(b.handles+" li").length,e=a.find(b.panel).width();c*=e;a.find(b.panel+" ul").css({width:c+"px"});a.find(b.panel).is(".homepage")?(a.acPanel("show",{id:b.id,speed:0}),a.acPanel("timer")):a.find(b.panel).hide();a.find(b.handles+" li").hover(function(){a.data("timer")&&(clearInterval(a.data("timer")), a.data("timer",false));var c=a.find(b.handles+" li").index(this);a.acPanel("show",{id:c,speed:400});a.find(b.panel).is(":hidden")&&a.find(b.panel).slideToggle()},function(){a.data("timer")||a.acPanel("timer")});a.find(b.panel).hover(function(){a.data("timer")&&(clearInterval(a.data("timer")),a.data("timer",false))},function(){a.data("timer")||a.acPanel("timer")});a.find("."+b.closeClass).click(function(){a.find(b.panel).slideToggle();a.find(b.handles+" ."+b.hoverClass).removeClass(b.hoverClass);a.data("timer")&& (clearInterval(a.data("timer")),a.data("timer",false));return false})})},show:function(c){var a={id:b.id,params:b.speed};c&&d.extend(a,c);return this.each(function(){var c=d(this),e=-1*parseInt(a.id,10)*c.find(b.panel).width();c.find(b.handles+" ."+b.hoverClass).removeClass(b.hoverClass);c.find(b.handles+" ul li:eq("+a.id+") a").addClass(b.hoverClass);c.find(b.panel+" ul").animate({left:e+"px"},a.speed)})},timer:function(){return this.each(function(){var c=d(this),a=setInterval(function(){var a=c.find(b.handles), d=a.find("."+b.hoverClass).parent().index(),a=a.find("li").length;c.acPanel("show",{id:(d+1)%a,speed:b.speed})},b.interval);c.data("timer",a)})}};d.fn.acPanel=function(b){if(e[b])return e[b].apply(this,Array.prototype.slice.call(arguments,1));else if(typeof b==="object"||!b)return e.init.apply(this,arguments);else d.error("Method "+b+" does not exist on jQuery.tooltip")}})(jQuery);
