//colResizable - by Alvaro Prieto Lauroba - MIT & GPL (function(a){function h(b){var c=a(this).data(q),d=m[c.t],e=d.g[c.i];e.ox=b.pageX;e.l=e[I]()[H];i[D](E+q,f)[D](F+q,g);P[z](x+"*{cursor:"+d.opt.dragCursor+K+J);e[B](d.opt.draggingClass);l=e;if(d.c[c.i].l)for(b=0;b",y="push",z="append",A="removeClass",B="addClass",C="removeAttr",D="bind",E="mousemove.",F="mouseup.",G="currentTarget",H="left",I="position",J="}",K="!important;",L=":0px"+K,M="resize",N="table",O,P=a("head")[z](x+".CRZ{table-layout:fixed;}.CRZ td,.CRZ th{padding-"+H+L+"padding-right"+L+"overflow:hidden}.CRC{height:0px;"+I+":relative;}.CRG{margin-left:-5px;"+I+":absolute;z-index:5;}.CRG .CRZ{"+I+":absolute;background-color:red;filter:alpha(opacity=1);opacity:0;width:10px;height:100%;top:0px}.CRL{"+I+":absolute;width:1px}.CRD{ border-left:1px dotted black"+J);try{O=sessionStorage}catch(Q){}a(window)[D](M+"."+q,function(){for(a in m){var a=m[a],b,c=0;a[A](q);if(a.w!=a[u]()){a.w=a[u]();for(b=0;b'),e.opt=d,e.g=[],e.c=[],e.w=e[u](),e.gc=e.prev(),d.marginLeft&&e.gc.css("marginLeft",d.marginLeft),d.marginRight&&e.gc.css("marginRight",d.marginRight),e.cs=r(t?this.cellSpacing||this.currentStyle.borderSpacing:e.css("border-spacing"))||2,e.b=r(t?this.border||this.currentStyle.borderLeftWidth:e.css("border-"+H+"-"+u))||1,m[f]=e,b(e)}})}})})(jQuery)!function(t){var i=function(i,e){var n=t.extend({},t.fn.nivoSlider.defaults,e),a={currentSlide:0,currentImage:"",totalSlides:0,running:!1,paused:!1,stop:!1,controlNavEl:!1},o=t(i);o.data("nivo:vars",a).addClass("nivoSlider");var r=o.children();r.each((function(){var i=t(this),e="";i.is("img")||(i.is("a")&&(i.addClass("nivo-imageLink"),e=i),i=i.find("img:first"));var n=0===n?i.attr("width"):i.width(),o=0===o?i.attr("height"):i.height();""!==e&&e.css("display","none"),i.css("display","none"),a.totalSlides++})),n.randomStart&&(n.startSlide=Math.floor(Math.random()*a.totalSlides)),n.startSlide>0&&(n.startSlide>=a.totalSlides&&(n.startSlide=a.totalSlides-1),a.currentSlide=n.startSlide),t(r[a.currentSlide]).is("img")?a.currentImage=t(r[a.currentSlide]):a.currentImage=t(r[a.currentSlide]).find("img:first"),t(r[a.currentSlide]).is("a")&&t(r[a.currentSlide]).css("display","block");var s=t("").addClass("nivo-main-image");s.prop({src:a.currentImage.attr("src"),alt:a.currentImage.attr("alt")}).show(),o.append(s),t(window).resize((function(){o.children("img").width(o.width()),s.prop({src:a.currentImage.attr("src"),alt:a.currentImage.attr("alt")}),s.stop().height("auto"),t(".nivo-slice").remove(),t(".nivo-box").remove()})),o.append(t('
'));var c=function(i){var e=t(".nivo-caption",o);if(a.currentImage.data("caption")){var n=a.currentImage.data("caption");"#"===n.substr(0,1)&&(n=t(n).html()),"block"===e.css("display")?setTimeout((function(){e.html(n)}),i.animSpeed):(e.html(n),e.stop().fadeIn(i.animSpeed))}else e.stop().fadeOut(i.animSpeed)};c(n);var l=0;if(!n.manualAdvance&&r.length>1&&(l=setInterval((function(){h(o,r,n,!1)}),n.pauseTime)),n.directionNav&&(o.append('"),t(o).on("click","a.nivo-prevNav",(function(){if(a.running)return!1;clearInterval(l),l="",a.currentSlide-=2,h(o,r,n,"prev")})),t(o).on("click","a.nivo-nextNav",(function(){if(a.running)return!1;clearInterval(l),l="",h(o,r,n,"next")}))),n.controlNav){a.controlNavEl=t('
'),o.after(a.controlNavEl);for(var d=0;d'+v.attr(')}else a.controlNavEl.append(''+(d+1)+"");t("a:eq("+a.currentSlide+")",a.controlNavEl).addClass("active"),t("a",a.controlNavEl).bind("click",(function(){return!a.running&&(!t(this).hasClass("active")&&(clearInterval(l),l="",s.prop({src:a.currentImage.attr("src"),alt:a.currentImage.attr("alt")}),a.currentSlide=t(this).attr("rels")-1,void h(o,r,n,"control")))}))}n.pauseOnHover&&o.hover((function(){a.paused=!0,clearInterval(l),l=""}),(function(){a.paused=!1,""!==l||n.manualAdvance||(l=setInterval((function(){h(o,r,n,!1)}),n.pauseTime))})),o.bind("nivo:animFinished",(function(){s.attr("src",a.currentImage.attr("src")).attr("alt",a.currentImage.attr("alt")),a.running=!1,t(r).each((function(){t(this).is("a")&&t(this).css("display","none")})),t(r[a.currentSlide]).is("a")&&t(r[a.currentSlide]).css("display","block"),""!==l||a.paused||n.manualAdvance||(l=setInterval((function(){h(o,r,n,!1)}),n.pauseTime)),n.afterChange.call(this)}));var m=function(i,e,n){t(n.currentImage).parent().is("a")&&t(n.currentImage).parent().css("display","block"),t('img[src="'+n.currentImage.attr("src")+'"]',i).not(".nivo-main-image,.nivo-control img").width(i.width()).css("visibility","hidden").show();for(var a=t('img[src="'+n.currentImage.attr("src")+'"]',i).not(".nivo-main-image,.nivo-control img").parent().is("a")?t('img[src="'+n.currentImage.attr("src")+'"]',i).not(".nivo-main-image,.nivo-control img").parent().height():t('img[src="'+n.currentImage.attr("src")+'"]',i).not(".nivo-main-image,.nivo-control img").height(),o=0;o').css({left:r*o+"px",width:i.width()-r*o+"px",height:a+"px",opacity:"0",overflow:"hidden"})):i.append(t('
').css({left:r*o+"px",width:r+"px",height:a+"px",opacity:"0",overflow:"hidden"}))}t(".nivo-slice",i).height(a),s.stop().animate({height:t(n.currentImage).height()},e.animSpeed)},p=function(i,e,n){t(n.currentImage).parent().is("a")&&t(n.currentImage).parent().css("display","block"),t('img[src="'+n.currentImage.attr("src")+'"]',i).not(".nivo-main-image,.nivo-control img").width(i.width()).css("visibility","hidden").show();for(var a=Math.round(i.width()/e.boxCols),o=Math.round(t('img[src="'+n.currentImage.attr("src")+'"]',i).not(".nivo-main-image,.nivo-control img").height()/e.boxRows),r=0;r').css({opacity:0,left:a*c+"px",top:o*r+"px",width:i.width()-a*c+"px"})),t('.nivo-box[name="'+c+'"]',i).height(t('.nivo-box[name="'+c+'"] img',i).height()+"px")):(i.append(t('
').css({opacity:0,left:a*c+"px",top:o*r+"px",width:a+"px"})),t('.nivo-box[name="'+c+'"]',i).height(t('.nivo-box[name="'+c+'"] img',i).height()+"px"));s.stop().animate({height:t(n.currentImage).height()},e.animSpeed)},h=function(i,e,n,a){var o=i.data("nivo:vars");if(o&&o.currentSlide===o.totalSlides-1&&n.lastSlide.call(this),(!o||o.stop)&&!a)return!1;n.beforeChange.call(this),a?("prev"===a&&s.prop({src:o.currentImage.attr("src"),alt:o.currentImage.attr("alt")}),"next"===a&&s.prop({src:o.currentImage.attr("src"),alt:o.currentImage.attr("alt")})):s.prop({src:o.currentImage.attr("src"),alt:o.currentImage.attr("alt")}),o.currentSlide++,o.currentSlide===o.totalSlides&&(o.currentSlide=0,n.slideshowEnd.call(this)),o.currentSlide<0&&(o.currentSlide=o.totalSlides-1),t(e[o.currentSlide]).is("img")?o.currentImage=t(e[o.currentSlide]):o.currentImage=t(e[o.currentSlide]).find("img:first"),n.controlNav&&(t("a",o.controlNavEl).removeClass("active"),t("a:eq("+o.currentSlide+")",o.controlNavEl).addClass("active")),c(n),t(".nivo-slice",i).remove(),t(".nivo-box",i).remove();var r=n.effect,l="";"random"===n.effect&&(l=new Array("sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade","boxRandom","boxRain","boxRainReverse","boxRainGrow","boxRainGrowReverse"),void 0===(r=l[Math.floor(Math.random()*(l.length+1))])&&(r="fade")),-1!==n.effect.indexOf(",")&&(l=n.effect.split(","),void 0===(r=l[Math.floor(Math.random()*l.length)])&&(r="fade")),o.currentImage.attr("data-transition")&&(r=o.currentImage.attr("data-transition")),o.running=!0;var d=0,v=0,h="",f="",g="",x="";if("sliceDown"===r||"sliceDownRight"===r||"sliceDownLeft"===r)m(i,n,o),d=0,v=0,h=t(".nivo-slice",i),"sliceDownLeft"===r&&(h=t(".nivo-slice",i)._reverse()),h.each((function(){var e=t(this);e.css({top:"0px"}),v===n.slices-1?setTimeout((function(){e.animate({opacity:"1.0"},n.animSpeed,"",(function(){i.trigger("nivo:animFinished")}))}),100+d):setTimeout((function(){e.animate({opacity:"1.0"},n.animSpeed)}),100+d),d+=50,v++}));else if("sliceUp"===r||"sliceUpRight"===r||"sliceUpLeft"===r)m(i,n,o),d=0,v=0,h=t(".nivo-slice",i),"sliceUpLeft"===r&&(h=t(".nivo-slice",i)._reverse()),h.each((function(){var e=t(this);e.css({bottom:"0px"}),v===n.slices-1?setTimeout((function(){e.animate({opacity:"1.0"},n.animSpeed,"",(function(){i.trigger("nivo:animFinished")}))}),100+d):setTimeout((function(){e.animate({opacity:"1.0"},n.animSpeed)}),100+d),d+=50,v++}));else if("sliceUpDown"===r||"sliceUpDownRight"===r||"sliceUpDownLeft"===r){m(i,n,o),d=0,v=0;var w=0;h=t(".nivo-slice",i),"sliceUpDownLeft"===r&&(h=t(".nivo-slice",i)._reverse()),h.each((function(){var e=t(this);0===v?(e.css("top","0px"),v++):(e.css("bottom","0px"),v=0),w===n.slices-1?setTimeout((function(){e.animate({opacity:"1.0"},n.animSpeed,"",(function(){i.trigger("nivo:animFinished")}))}),100+d):setTimeout((function(){e.animate({opacity:"1.0"},n.animSpeed)}),100+d),d+=50,w++}))}else if("fold"===r)m(i,n,o),d=0,v=0,t(".nivo-slice",i).each((function(){var e=t(this),a=e.width();e.css({top:"0px",width:"0px"}),v===n.slices-1?setTimeout((function(){e.animate({width:a,opacity:"1.0"},n.animSpeed,"",(function(){i.trigger("nivo:animFinished")}))}),100+d):setTimeout((function(){e.animate({width:a,opacity:"1.0"},n.animSpeed)}),100+d),d+=50,v++}));else if("fade"===r)m(i,n,o),(f=t(".nivo-slice:first",i)).css({width:i.width()+"px"}),f.animate({opacity:"1.0"},2*n.animSpeed,"",(function(){i.trigger("nivo:animFinished")}));else if("slideInRight"===r)m(i,n,o),(f=t(".nivo-slice:first",i)).css({width:"0px",opacity:"1"}),f.animate({width:i.width()+"px"},2*n.animSpeed,"",(function(){i.trigger("nivo:animFinished")}));else if("slideInLeft"===r)m(i,n,o),(f=t(".nivo-slice:first",i)).css({width:"0px",opacity:"1",left:"",right:"0px"}),f.animate({width:i.width()+"px"},2*n.animSpeed,"",(function(){f.css({left:"0px",right:""}),i.trigger("nivo:animFinished")}));else if("boxRandom"===r)p(i,n,o),g=n.boxCols*n.boxRows,v=0,d=0,(x=u(t(".nivo-box",i))).each((function(){var e=t(this);v===g-1?setTimeout((function(){e.animate({opacity:"1"},n.animSpeed,"",(function(){i.trigger("nivo:animFinished")}))}),100+d):setTimeout((function(){e.animate({opacity:"1"},n.animSpeed)}),100+d),d+=20,v++}));else if("boxRain"===r||"boxRainReverse"===r||"boxRainGrow"===r||"boxRainGrowReverse"===r){p(i,n,o),g=n.boxCols*n.boxRows,v=0,d=0;var S=0,b=0,I=[];I[S]=[],x=t(".nivo-box",i),"boxRainReverse"!==r&&"boxRainGrowReverse"!==r||(x=t(".nivo-box",i)._reverse()),x.each((function(){I[S][b]=t(this),++b===n.boxCols&&(S++,b=0,I[S]=[])}));for(var y=0;y<2*n.boxCols;y++){for(var R=y,N=0;N=0&&R