var ddaccordion={contentclassname:{},expandone:function(b,a){this.toggleone(b,a,"expand")},collapseone:function(b,a){this.toggleone(b,a,"collapse")},expandall:function(b){var a=$("."+b);$("."+this.contentclassname[b]+":hidden").each(function(){a.eq(parseInt($(this).attr("contentindex"))).click()})},collapseall:function(b){var a=$("."+b);$("."+this.contentclassname[b]+":visible").each(function(){a.eq(parseInt($(this).attr("contentindex"))).click()})},toggleone:function(e,c,a){var d=$("."+e).eq(c);var b=$("."+this.contentclassname[e]).eq(c);if(typeof a=="undefined"||a=="expand"&&b.is(":hidden")||a=="collapse"&&b.is(":visible")){d.click()}},expandit:function(c,a,b){a.slideDown(b.animatespeed);this.transformHeader(c,b,"expand")},collapseit:function(c,a,b){a.slideUp(b.animatespeed);this.transformHeader(c,b,"collapse")},transformHeader:function(c,a,b){c.addClass((b=="expand")?a.cssclass.expand:a.cssclass.collapse).removeClass((b=="expand")?a.cssclass.collapse:a.cssclass.expand);if(a.htmlsetting.location=="src"){c=(c.is("img"))?c:c.find("img").eq(0);c.attr("src",(b=="expand")?a.htmlsetting.expand:a.htmlsetting.collapse)}else{if(a.htmlsetting.location=="prefix"){c.find(".accordprefix").html((b=="expand")?a.htmlsetting.expand:a.htmlsetting.collapse)}else{if(a.htmlsetting.location=="suffix"){c.find(".accordsuffix").html((b=="expand")?a.htmlsetting.expand:a.htmlsetting.collapse)}}}},getCookie:function(a){var b=new RegExp(a+"=[^;]+","i");if(document.cookie.match(b)){return document.cookie.match(b)[0].split("=")[1]}return null},setCookie:function(a,b){document.cookie=a+"="+b},init:function(a){document.write('<style type="text/css">\n');document.write("."+a.contentclass+"{display: none}\n");document.write("</style>");$(document).ready(function(){ddaccordion.contentclassname[a.headerclass]=a.contentclass;a.cssclass={collapse:a.toggleclass[0],expand:a.toggleclass[1]};a.htmlsetting={location:a.togglehtml[0],collapse:a.togglehtml[1],expand:a.togglehtml[2]};var b={};var d=(a.persiststate)?ddaccordion.getCookie(a.headerclass):a.defaultexpanded;d=(typeof d=="string")?d.replace(/c/ig,"").split(","):a.defaultexpanded;var c=$("."+a.contentclass);if(a.collapseprev&&d.length>1){d=[d.pop()]}$("."+a.headerclass).each(function(f){if(/(prefix)|(suffix)/i.test(a.htmlsetting.location)&&$(this).html()!=""){$('<span class="accordprefix"></span>').prependTo(this);$('<span class="accordsuffix"></span>').appendTo(this)}$(this).attr("headerindex",f+"h");c.eq(f).attr("contentindex",f+"c");var e=c.eq(f);if(jQuery.inArray(f,d)!=-1){if(a.animatedefault==false){e.show()}ddaccordion.expandit($(this),e,a);b={$header:$(this),$content:e}}else{e.hide();ddaccordion.transformHeader($(this),a,"collapse")}});$("."+a.headerclass).click(function(){var e=c.eq(parseInt($(this).attr("headerindex")));if(e.css("display")=="none"){ddaccordion.expandit($(this),e,a);if(a.collapseprev&&b.$header&&$(this).get(0)!=b.$header.get(0)){ddaccordion.collapseit(b.$header,b.$content,a)}b={$header:$(this),$content:e}}else{ddaccordion.collapseit($(this),e,a)}return false});$(window).bind("unload",function(){$("."+a.headerclass).unbind("click");var e=[];$("."+a.contentclass+":visible").each(function(f){e.push($(this).attr("contentindex"))});if(a.persiststate==true){e=(e.length==0)?"-1c":e;ddaccordion.setCookie(a.headerclass,e)}})})}};jQuery.fn.crossSlide=function(c,f){var a=this,e=this.width(),b=this.height();function d(j){for(var h=1;h<arguments.length;h++){j=j.replace(new RegExp("\\{"+(h-1)+"}","g"),arguments[h])}return j}function g(i){var h="{ ";for(var j in i){h+=j+": "+i[j]+", "}return(h=="{ "?"{}":h.slice(0,-2)+" }")}(function(j){var h=0;function i(l,k){k.onload=function(m){h++;f[l].width=k.width;f[l].height=k.height;if(h==f.length){j()}};k.src=f[l].src;if(l+1<f.length){i(l+1,new Image())}}i(0,new Image())})(function(){function u(x){var i=1;var p=x.replace(/^\s*|\s*$/g,"").split(/\s+/);if(p.length>3){throw new Error()}if(p[0]=="center"){if(p.length==1){p=["center","center"]}else{if(p.length==2&&p[1].match(/^[\d.]+x$/i)){p=["center","center",p[1]]}}}if(p.length==3){i=parseFloat(p[2].match(/^([\d.]+)x$/i)[1])}var y=p[0]+" "+p[1];if(y=="left top"||y=="top left"){return{xrel:0,yrel:0,zoom:i}}if(y=="left center"||y=="center left"){return{xrel:0,yrel:0.5,zoom:i}}if(y=="left bottom"||y=="bottom left"){return{xrel:0,yrel:1,zoom:i}}if(y=="center top"||y=="top center"){return{xrel:0.5,yrel:0,zoom:i}}if(y=="center center"){return{xrel:0.5,yrel:0.5,zoom:i}}if(y=="center bottom"||y=="bottom center"){return{xrel:0.5,yrel:1,zoom:i}}if(y=="right top"||y=="top right"){return{xrel:1,yrel:0,zoom:i}}if(y=="right center"||y=="center right"){return{xrel:1,yrel:0.5,zoom:i}}if(y=="right bottom"||y=="bottom right"){return{xrel:1,yrel:1,zoom:i}}return{xrel:parseInt(p[0].match(/^(\d+)%$/)[1])/100,yrel:parseInt(p[1].match(/^(\d+)%$/)[1])/100,zoom:i}}function k(x,i){switch(i){case 1:var y=0;break;case 2:var y=w/(x.time_ms+2*w);break;case 3:var y=1-w/(x.time_ms+2*w);break;case 4:var y=1;break}return{left:Math.round(x.from.left+y*(x.to.left-x.from.left)),top:Math.round(x.from.top+y*(x.to.top-x.from.top)),width:Math.round(x.from.width+y*(x.to.width-x.from.width)),height:Math.round(x.from.height+y*(x.to.height-x.from.height))}}if(!c.fade){throw"Missing fade parameter."}if(c.speed&&c.sleep){throw"You cannot set both speed and sleep at the same time."}var w=Math.round(c.fade*1000);if(c.sleep){var v=Math.round(c.sleep*1000)}if(c.speed){var l=c.speed/1000,r=Math.round(w*l)}if(c.debug){var h=jQuery("<pre><hr/></pre>")}a.empty().css({overflow:"hidden",padding:0});if(!a.css("position").match(/absolute|relative|fixed/)){a.css({position:"relative"})}for(var o=0;o<f.length;++o){var j=f[o];if(!j.src){throw d("Missing src parameter in picture {0}.",o+1)}if(l){switch(j.dir){case"up":j.from={xrel:0.5,yrel:0,zoom:1};j.to={xrel:0.5,yrel:1,zoom:1};var t=j.height-b-2*r;break;case"down":j.from={xrel:0.5,yrel:1,zoom:1};j.to={xrel:0.5,yrel:0,zoom:1};var t=j.height-b-2*r;break;case"left":j.from={xrel:0,yrel:0.5,zoom:1};j.to={xrel:1,yrel:0.5,zoom:1};var t=j.width-e-2*r;break;case"right":j.from={xrel:1,yrel:0.5,zoom:1};j.to={xrel:0,yrel:0.5,zoom:1};var t=j.width-e-2*r;break;default:throw d('Missing or malformed "dir" parameter in picture {0}.',o+1)}if(t<=0){throw d("Picture number {0} is too short for the desired fade duration.",o+1)}j.time_ms=Math.round(t/l)}else{if(!v){if(!j.from||!j.to||!j.time){throw d("Missing either speed/sleep option, or from/to/time params in picture {0}.",o+1)}try{j.from=u(j.from)}catch(s){throw d('Malformed "from" parameter in picture {0}.',o+1)}try{j.to=u(j.to)}catch(s){throw d('Malformed "to" parameter in picture {0}.',o+1)}if(!j.time){throw d('Missing "time" parameter in picture {0}.',o+1)}j.time_ms=Math.round(j.time*1000)}}if(j.from){jQuery.each([j.from,j.to],function(x,p){p.width=Math.round(j.width*p.zoom);p.height=Math.round(j.height*p.zoom);p.left=Math.round((e-p.width)*p.xrel);p.top=Math.round((b-p.height)*p.yrel)})}jQuery(d('<img src="{0}"/>',j.src)).appendTo(a).css({position:"absolute",visibility:"hidden"})}l=undefined;var q=a.children();q.eq(0).css({visibility:"visible"});if(!v){q.eq(0).css(k(f[0],2))}function m(I,p){if(I%2==0){if(v){var z=I/2,M=(z-1+f.length)%f.length,J=q.eq(z),G=q.eq(M);var F=function(){G.css("visibility","hidden");setTimeout(p,v)};if(h){h.prepend("<hr/>"+d("img[{0}].css(visibility, hidden)\n",M)+d("setTimeout(&#9660;, {0})",v))}}else{var C=I/2,M=(C-1+f.length)%f.length,L=q.eq(C),G=q.eq(M),A=f[C].time_ms,H=k(f[C],3);var F=function(){G.css("visibility","hidden");L.animate(H,A,"linear",p)};if(h){h.prepend("<hr/>"+d("img[{0}].css(visibility, hidden)\n",M)+d("img[{0}].animate({1}, {2}, linear, &#9660;)",C,g(H),A))}}}else{if(v){var y=Math.floor(I/2),B=Math.ceil(I/2)%f.length,K=q.eq(y),x=q.eq(B),N={},E={visibility:"visible"},D={};if(B>y){E.opacity=0;D.opacity=1}else{N.opacity=0}var F=function(){x.css(E);if(N.opacity!=undefined){K.animate(N,w,"linear",p)}else{x.animate(D,w,"linear",p)}};if(h){h.prepend("<hr/>"+d("img[{0}].css({1})\n",B,g(E))+(N.opacity!=undefined?d("img[{0}].animate({1}, {2}, linear, &#9660;)",y,g(N),w):d("img[{0}].animate({1}, {2}, linear, &#9660;)",B,g(D),w)))}}else{var y=Math.floor(I/2),B=Math.ceil(I/2)%f.length,K=q.eq(y),x=q.eq(B),N=k(f[y],4),E=k(f[B],1),D=k(f[B],2);if(B>y){E.opacity=0;D.opacity=1}else{N.opacity=0}E.visibility="visible";var F=function(){K.animate(N,w,"linear");x.css(E);x.animate(D,w,"linear",p)};if(h){h.prepend("<hr/>"+d("img[{0}].animate({1}, {2}, linear)\n",y,g(N),w)+d("img[{0}].css({1})\n",B,g(E))+d("img[{0}].animate({1}, {2}, linear, &#9660;)",B,g(D),w))}}}if(I>0){return m(I-1,F)}else{return F}}var n=m(f.length*2-1,function(){return n()});if(h){jQuery(window.open("","debug","width=600,height=500,menubar=no,toolbar=no,directories=no,location=no,status=no,scrollbars=yes,resizable=yes").document.body).empty().append(h)}n()});return a};(function(a){a.fn.lightBox=function(p){p=jQuery.extend({overlayBgColor:"#30395a",overlayOpacity:0.8,fixedNavigation:false,imageLoading:"/public/js/images/lightbox-ico-loading.gif",imageBtnPrev:"/public/js/images/lightbox-btn-prev.gif",imageBtnNext:"/public/js/images/lightbox-btn-next.gif",imageBtnClose:"/public/js/images/lightbox-btn-close.gif",imageBlank:"/public/js/images/lightbox-blank.gif",containerBorderSize:10,containerResizeSpeed:400,txtImage:"Image",txtOf:"of",keyToClose:"c",keyToPrev:"p",keyToNext:"n",imageArray:[],activeImage:0},p);var i=this;function r(){o(this,i);return false}function o(v,u){a("embed, object, select").css({visibility:"hidden"});c();p.imageArray.length=0;p.activeImage=0;if(u.length==1){p.imageArray.push(new Array(v.getAttribute("href"),v.getAttribute("title")))}else{for(var t=0;t<u.length;t++){p.imageArray.push(new Array(u[t].getAttribute("href"),u[t].getAttribute("title")))}}while(p.imageArray[p.activeImage][0]!=v.getAttribute("href")){p.activeImage++}l()}function c(){a("body").append('<div id="jquery-overlay"></div><div id="jquery-lightbox"><div id="lightbox-container-image-box"><div id="lightbox-container-image"><img id="lightbox-image"><div style="" id="lightbox-nav"><a href="#" id="lightbox-nav-btnPrev"></a><a href="#" id="lightbox-nav-btnNext"></a></div><div id="lightbox-loading"><a href="#" id="lightbox-loading-link"><img src="'+p.imageLoading+'"></a></div></div></div><div id="lightbox-container-image-data-box"><div id="lightbox-container-image-data"><div id="lightbox-image-details"><span id="lightbox-image-details-caption"></span><span id="lightbox-image-details-currentNumber"></span></div><div id="lightbox-secNav"><a href="#" id="lightbox-secNav-btnClose"><img src="'+p.imageBtnClose+'"></a></div></div></div></div>');var t=f();a("#jquery-overlay").css({backgroundColor:p.overlayBgColor,opacity:p.overlayOpacity,width:t[0],height:t[1]}).fadeIn();var u=h();a("#jquery-lightbox").css({top:u[1]+(t[3]/10),left:u[0]}).show();a("#jquery-overlay,#jquery-lightbox").click(function(){b()});a("#lightbox-loading-link,#lightbox-secNav-btnClose").click(function(){b();return false});a(window).resize(function(){var v=f();a("#jquery-overlay").css({width:v[0],height:v[1]});var w=h();a("#jquery-lightbox").css({top:w[1]+(v[3]/10),left:w[0]})})}function l(){a("#lightbox-loading").show();if(p.fixedNavigation){a("#lightbox-image,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber").hide()}else{a("#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber").hide()}var t=new Image();t.onload=function(){a("#lightbox-image").attr("src",p.imageArray[p.activeImage][0]);j(t.width,t.height);t.onload=function(){}};t.src=p.imageArray[p.activeImage][0]}function j(w,z){var t=a("#lightbox-container-image-box").width();var y=a("#lightbox-container-image-box").height();var x=(w+(p.containerBorderSize*2));var v=(z+(p.containerBorderSize*2));var u=t-x;var A=y-v;a("#lightbox-container-image-box").animate({width:x,height:v},p.containerResizeSpeed,function(){g()});if((u==0)&&(A==0)){if(a.browser.msie){n(250)}else{n(100)}}a("#lightbox-container-image-data-box").css({width:w});a("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({height:z+(p.containerBorderSize*2)})}function g(){a("#lightbox-loading").hide();a("#lightbox-image").fadeIn(function(){k();s()});q()}function k(){a("#lightbox-container-image-data-box").slideDown("fast");a("#lightbox-image-details-caption").hide();if(p.imageArray[p.activeImage][1]){a("#lightbox-image-details-caption").html(p.imageArray[p.activeImage][1]).show()}if(p.imageArray.length>1){a("#lightbox-image-details-currentNumber").html(p.txtImage+" "+(p.activeImage+1)+" "+p.txtOf+" "+p.imageArray.length).show()}}function s(){a("#lightbox-nav").show();a("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({background:"transparent url("+p.imageBlank+") no-repeat"});if(p.activeImage!=0){if(p.fixedNavigation){a("#lightbox-nav-btnPrev").css({background:"url("+p.imageBtnPrev+") left 15% no-repeat"}).unbind().bind("click",function(){p.activeImage=p.activeImage-1;l();return false})}else{a("#lightbox-nav-btnPrev").unbind().hover(function(){a(this).css({background:"url("+p.imageBtnPrev+") left 15% no-repeat"})},function(){a(this).css({background:"transparent url("+p.imageBlank+") no-repeat"})}).show().bind("click",function(){p.activeImage=p.activeImage-1;l();return false})}}if(p.activeImage!=(p.imageArray.length-1)){if(p.fixedNavigation){a("#lightbox-nav-btnNext").css({background:"url("+p.imageBtnNext+") right 15% no-repeat"}).unbind().bind("click",function(){p.activeImage=p.activeImage+1;l();return false})}else{a("#lightbox-nav-btnNext").unbind().hover(function(){a(this).css({background:"url("+p.imageBtnNext+") right 15% no-repeat"})},function(){a(this).css({background:"transparent url("+p.imageBlank+") no-repeat"})}).show().bind("click",function(){p.activeImage=p.activeImage+1;l();return false})}}m()}function m(){a(document).keydown(function(t){d(t)})}function e(){a(document).unbind()}function d(t){if(t==null){keycode=event.keyCode;escapeKey=27}else{keycode=t.keyCode;escapeKey=t.DOM_VK_ESCAPE}key=String.fromCharCode(keycode).toLowerCase();if((key==p.keyToClose)||(key=="x")||(keycode==escapeKey)){b()}if((key==p.keyToPrev)||(keycode==37)){if(p.activeImage!=0){p.activeImage=p.activeImage-1;l();e()}}if((key==p.keyToNext)||(keycode==39)){if(p.activeImage!=(p.imageArray.length-1)){p.activeImage=p.activeImage+1;l();e()}}}function q(){if((p.imageArray.length-1)>p.activeImage){objNext=new Image();objNext.src=p.imageArray[p.activeImage+1][0]}if(p.activeImage>0){objPrev=new Image();objPrev.src=p.imageArray[p.activeImage-1][0]}}function b(){a("#jquery-lightbox").remove();a("#jquery-overlay").fadeOut(function(){a("#jquery-overlay").remove()});a("embed, object, select").css({visibility:"visible"})}function f(){var v,t;if(window.innerHeight&&window.scrollMaxY){v=window.innerWidth+window.scrollMaxX;t=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){v=document.body.scrollWidth;t=document.body.scrollHeight}else{v=document.body.offsetWidth;t=document.body.offsetHeight}}var u,w;if(self.innerHeight){if(document.documentElement.clientWidth){u=document.documentElement.clientWidth}else{u=self.innerWidth}w=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){u=document.documentElement.clientWidth;w=document.documentElement.clientHeight}else{if(document.body){u=document.body.clientWidth;w=document.body.clientHeight}}}if(t<w){pageHeight=w}else{pageHeight=t}if(v<u){pageWidth=v}else{pageWidth=u}arrayPageSize=new Array(pageWidth,pageHeight,u,w);return arrayPageSize}function h(){var u,t;if(self.pageYOffset){t=self.pageYOffset;u=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){t=document.documentElement.scrollTop;u=document.documentElement.scrollLeft}else{if(document.body){t=document.body.scrollTop;u=document.body.scrollLeft}}}arrayPageScroll=new Array(u,t);return arrayPageScroll}function n(v){var u=new Date();t=null;do{var t=new Date()}while(t-u<v)}return this.unbind("click").click(r)}})(jQuery);(function(d){d.tools=d.tools||{version:{}};d.tools.version.scrollable="1.0.5";var f=null;function e(c,v){var F=this;if(!f){f=F}function u(h,g){d(F).bind(h,function(i,j){if(g&&g.call(this,j.index)===false&&j){j.proceed=false}});return F}d.each(v,function(h,g){if(d.isFunction(g)){u(h,g)}});var E=!v.vertical;var C=d(v.items,c);var y=0;function w(g,h){return g.indexOf("#")!=-1?d(g).eq(0):h.siblings(g).eq(0)}var b=w(v.navi,c);var B=w(v.prev,c);var z=w(v.next,c);var A=w(v.prevPage,c);var t=w(v.nextPage,c);d.extend(F,{getIndex:function(){return y},getConf:function(){return v},getSize:function(){return F.getItems().size()},getPageAmount:function(){return Math.ceil(this.getSize()/v.size)},getPageIndex:function(){return Math.ceil(y/v.size)},getRoot:function(){return c},getItemWrap:function(){return C},getItems:function(){return C.children()},getVisibleItems:function(){return F.getItems().slice(y,y+v.size)},seekTo:function(l,n,h){if(n===undefined){n=v.speed}if(d.isFunction(n)){h=n;n=v.speed}if(l<0){l=0}if(l>F.getSize()-v.size){return F}var g=F.getItems().eq(l);if(!g.length){return F}var o={index:l,proceed:true};d(F).trigger("onBeforeSeek",o);if(!o.proceed){return F}if(E){var m=-g.position().left;C.animate({left:m},n,v.easing,h?function(){h.call(F)}:null)}else{var i=-g.position().top;C.animate({top:i},n,v.easing,h?function(){h.call(F)}:null)}if(b.length){var k=v.activeClass;var j=Math.ceil(l/v.size);j=Math.min(j,b.children().length-1);b.children().removeClass(k).eq(j).addClass(k)}if(l===0){B.add(A).addClass(v.disabledClass)}else{B.add(A).removeClass(v.disabledClass)}if(l>=F.getSize()-v.size){z.add(t).addClass(v.disabledClass)}else{z.add(t).removeClass(v.disabledClass)}f=F;y=l;d(F).trigger("onSeek",{index:l});return F},move:function(h,i,j){var g=y+h;if(v.loop&&g>(F.getSize()-v.size)){g=0}return this.seekTo(g,i,j)},next:function(g,h){return this.move(1,g,h)},prev:function(g,h){return this.move(-1,g,h)},movePage:function(g,h,i){return this.move(v.size*g,h,i)},setPage:function(g,l,i){var j=v.size;var k=j*g;var h=k+j>=this.getSize();if(h){k=this.getSize()-v.size}return this.seekTo(k,l,i)},prevPage:function(g,h){return this.setPage(this.getPageIndex()-1,g,h)},nextPage:function(g,h){return this.setPage(this.getPageIndex()+1,g,h)},begin:function(g,h){return this.seekTo(0,g,h)},end:function(g,h){return this.seekTo(this.getSize()-v.size,g,h)},reload:function(){return a()},click:function(j,g,i){var h=F.getItems().eq(j);var k=v.activeClass;if(j<0||j>=this.getSize()){return F}if(v.size==2){if(j==F.getIndex()){j--}F.getItems().removeClass(k);h.addClass(k);return this.seekTo(j,g,i)}if(!h.hasClass(k)){F.getItems().removeClass(k);h.addClass(k);var l=Math.floor(v.size/2);var m=j-l;if(m>F.getSize()-v.size){m=F.getSize()-v.size}if(m!==j){return this.seekTo(m,g,i)}}return F},onBeforeSeek:function(g){return u("onBeforeSeek",g)},onSeek:function(g){return u("onSeek",g)}});if(d.isFunction(d.fn.mousewheel)){c.bind("mousewheel.scrollable",function(h,g){var i=d.browser.opera?1:-1;F.move(g>0?i:-i,50);return false})}B.addClass(v.disabledClass).click(function(){F.prev()});z.click(function(){F.next()});t.click(function(){F.nextPage()});A.addClass(v.disabledClass).click(function(){F.prevPage()});if(v.keyboard){d(document).unbind("keydown.scrollable").bind("keydown.scrollable",function(h){var g=f;if(!g||h.altKey||h.ctrlKey){return}if(E&&(h.keyCode==37||h.keyCode==39)){g.move(h.keyCode==37?-1:1);return h.preventDefault()}if(!E&&(h.keyCode==38||h.keyCode==40)){g.move(h.keyCode==38?-1:1);return h.preventDefault()}return true})}function a(){if(b.is(":empty")||b.data("me")==F){b.empty();b.data("me",F);for(var h=0;h<F.getPageAmount();h++){var g=d("<"+v.naviItem+"/>").attr("href",h).click(function(j){var k=d(this);k.parent().children().removeClass(v.activeClass);k.addClass(v.activeClass);F.setPage(k.attr("href"));return j.preventDefault()});if(h===0){g.addClass(v.activeClass)}b.append(g)}}else{var i=b.children();i.each(function(k){var j=d(this);j.attr("href",k);if(k===0){j.addClass(v.activeClass)}j.click(function(){b.find("."+v.activeClass).removeClass(v.activeClass);j.addClass(v.activeClass);F.setPage(j.attr("href"))})})}if(v.clickable){F.getItems().each(function(j,k){var l=d(this);if(!l.data("set")){l.bind("click.scrollable",function(){F.click(j)});l.data("set",true)}})}if(v.hoverClass){F.getItems().hover(function(){d(this).addClass(v.hoverClass)},function(){d(this).removeClass(v.hoverClass)})}return F}a();var D=null;function x(){if(D){return}D=setInterval(function(){if(v.interval===0){clearInterval(D);D=0;return}F.next()},v.interval)}if(v.interval>0){c.hover(function(){clearInterval(D);D=0},function(){x()});x()}}d.fn.scrollable=function(c){var b=this.eq(typeof c=="number"?c:0).data("scrollable");if(b){return b}var a={size:5,vertical:false,clickable:true,loop:false,interval:0,speed:400,keyboard:true,activeClass:"active",disabledClass:"disabled",hoverClass:null,easing:"swing",items:".items",prev:".prev",next:".next",prevPage:".prevPage",nextPage:".nextPage",navi:".navi",naviItem:"a",api:false,onBeforeSeek:null,onSeek:null};d.extend(a,c);this.each(function(){b=new e(d(this),a);d(this).data("scrollable",b)});return a.api?b:this}})(jQuery);

