").attr("id",t).addclass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupdisabled:function(t){e.isarray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1);for(var n=0,r;r=this.tabs[n];n++)t===!0||e.inarray(n,t)!==-1?e(r).addclass("ui-state-disabled").attr("aria-disabled","true"):e(r).removeclass("ui-state-disabled").removeattr("aria-disabled");this.options.disabled=t},_setupevents:function(t){var n={click:function(e){e.preventdefault()}};t&&e.each(t.split(" "),function(e,t){n[t]="_eventhandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,n),this._on(this.tabs,{keydown:"_tabkeydown"}),this._on(this.panels,{keydown:"_panelkeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupheightstyle:function(t){var n,r,i=this.element.parent();t==="fill"?(e.support.minheight||(r=i.css("overflow"),i.css("overflow","hidden")),n=i.height(),this.element.siblings(":visible").each(function(){var t=e(this),r=t.css("position");if(r==="absolute"||r==="fixed")return;n-=t.outerheight(!0)}),r&&i.css("overflow",r),this.element.children().not(this.panels).each(function(){n-=e(this).outerheight(!0)}),this.panels.each(function(){e(this).height(math.max(0,n-e(this).innerheight()+e(this).height()))}).css("overflow","auto")):t==="auto"&&(n=0,this.panels.each(function(){n=math.max(n,e(this).height("").height())}).height(n))},_eventhandler:function(t){var n=this.options,r=this.active,i=e(t.currenttarget),s=i.closest("li"),o=s[0]===r[0],u=o&&n.collapsible,a=u?e():this._getpanelfortab(s),f=r.length?this._getpanelfortab(r):e(),l={oldtab:r,oldpanel:f,newtab:u?e():s,newpanel:a};t.preventdefault();if(s.hasclass("ui-state-disabled")||s.hasclass("ui-tabs-loading")||this.running||o&&!n.collapsible||this._trigger("beforeactivate",t,l)===!1)return;n.active=u?!1:this.tabs.index(s),this.active=o?e():s,this.xhr&&this.xhr.abort(),!f.length&&!a.length&&e.error("jquery ui tabs: mismatching fragment identifier."),a.length&&this.load(this.tabs.index(s),t),this._toggle(t,l)},_toggle:function(t,n){function o(){r.running=!1,r._trigger("activate",t,n)}function u(){n.newtab.closest("li").addclass("ui-tabs-active ui-state-active"),i.length&&r.options.show?r._show(i,r.options.show,o):(i.show(),o())}var r=this,i=n.newpanel,s=n.oldpanel;this.running=!0,s.length&&this.options.hide?this._hide(s,this.options.hide,function(){n.oldtab.closest("li").removeclass("ui-tabs-active ui-state-active"),u()}):(n.oldtab.closest("li").removeclass("ui-tabs-active ui-state-active"),s.hide(),u()),s.attr({"aria-expanded":"false","aria-hidden":"true"}),n.oldtab.attr("aria-selected","false"),i.length&&s.length?n.oldtab.attr("tabindex",-1):i.length&&this.tabs.filter(function(){return e(this).attr("tabindex")===0}).attr("tabindex",-1),i.attr({"aria-expanded":"true","aria-hidden":"false"}),n.newtab.attr({"aria-selected":"true",tabindex:0})},_activate:function(t){var n,r=this._findactive(t);if(r[0]===this.active[0])return;r.length||(r=this.active),n=r.find(".ui-tabs-anchor")[0],this._eventhandler({target:n,currenttarget:n,preventdefault:e.noop})},_findactive:function(t){return t===!1?e():this.tabs.eq(t)},_getindex:function(e){return typeof e=="string"&&(e=this.anchors.index(this.anchors.filter("[href$='"+e+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeclass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeclass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeattr("role"),this.anchors.removeclass("ui-tabs-anchor").removeattr("role").removeattr("tabindex").removedata("href.tabs").removedata("load.tabs").removeuniqueid(),this.tabs.add(this.panels).each(function(){e.data(this,"ui-tabs-destroy")?e(this).remove():e(this).removeclass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeattr("tabindex").removeattr("aria-live").removeattr("aria-busy").removeattr("aria-selected").removeattr("aria-labelledby").removeattr("aria-hidden").removeattr("aria-expanded").removeattr("role")}),this.tabs.each(function(){var t=e(this),n=t.data("ui-tabs-aria-controls");n?t.attr("aria-controls",n):t.removeattr("aria-controls")}),this.panels.show(),this.options.heightstyle!=="content"&&this.panels.css("height","")},enable:function(n){var r=this.options.disabled;if(r===!1)return;n===t?r=!1:(n=this._getindex(n),e.isarray(r)?r=e.map(r,function(e){return e!==n?e:null}):r=e.map(this.tabs,function(e,t){return t!==n?t:null})),this._setupdisabled(r)},disable:function(n){var r=this.options.disabled;if(r===!0)return;if(n===t)r=!0;else{n=this._getindex(n);if(e.inarray(n,r)!==-1)return;e.isarray(r)?r=e.merge([n],r).sort():r=[n]}this._setupdisabled(r)},load:function(t,n){t=this._getindex(t);var r=this,i=this.tabs.eq(t),o=i.find(".ui-tabs-anchor"),u=this._getpanelfortab(i),a={tab:i,panel:u};if(s(o[0]))return;this.xhr=e.ajax(this._ajaxsettings(o,n,a)),this.xhr&&this.xhr.statustext!=="canceled"&&(i.addclass("ui-tabs-loading"),u.attr("aria-busy","true"),this.xhr.success(function(e){settimeout(function(){u.html(e),r._trigger("load",n,a)},1)}).complete(function(e,t){settimeout(function(){t==="abort"&&r.panels.stop(!1,!0),i.removeclass("ui-tabs-loading"),u.removeattr("aria-busy"),e===r.xhr&&delete r.xhr},1)}))},_ajaxsettings:function(t,n,r){var i=this;return{url:t.attr("href"),beforesend:function(t,s){return i._trigger("beforeload",n,e.extend({jqxhr:t,ajaxsettings:s},r))}}},_getpanelfortab:function(t){var n=e(t).attr("aria-controls");return this.element.find(this._sanitizeselector("#"+n))}}),e.uibackcompat!==!1&&(e.ui.tabs.prototype._ui=function(e,t){return{tab:e,panel:t,index:this.anchors.index(e)}},e.widget("ui.tabs",e.ui.tabs,{url:function(e,t){this.anchors.eq(e).attr("href",t)}}),e.widget("ui.tabs",e.ui.tabs,{options:{ajaxoptions:null,cache:!1},_create:function(){this._super();var t=this;this._on({tabsbeforeload:function(n,r){if(e.data(r.tab[0],"cache.tabs")){n.preventdefault();return}r.jqxhr.success(function(){t.options.cache&&e.data(r.tab[0],"cache.tabs",!0)})}})},_ajaxsettings:function(t,n,r){var i=this.options.ajaxoptions;return e.extend({},i,{error:function(e,t){try{i.error(e,t,r.tab.closest("li").index(),r.tab[0])}catch(n){}}},this._superapply(arguments))},_setoption:function(e,t){e==="cache"&&t===!1&&this.anchors.removedata("cache.tabs"),this._super(e,t)},_destroy:function(){this.anchors.removedata("cache.tabs"),this._super()},url:function(e){this.anchors.eq(e).removedata("cache.tabs"),this._superapply(arguments)}}),e.widget("ui.tabs",e.ui.tabs,{abort:function(){this.xhr&&this.xhr.abort()}}),e.widget("ui.tabs",e.ui.tabs,{options:{spinner:"
loading…"},_create:function(){this._super(),this._on({tabsbeforeload:function(e,t){if(e.target!==this.element[0]||!this.options.spinner)return;var n=t.tab.find("span"),r=n.html();n.html(this.options.spinner),t.jqxhr.complete(function(){n.html(r)})}})}}),e.widget("ui.tabs",e.ui.tabs,{options:{enable:null,disable:null},enable:function(t){var n=this.options,r;if(t&&n.disabled===!0||e.isarray(n.disabled)&&e.inarray(t,n.disabled)!==-1)r=!0;this._superapply(arguments),r&&this._trigger("enable",null,this._ui(this.anchors[t],this.panels[t]))},disable:function(t){var n=this.options,r;if(t&&n.disabled===!1||e.isarray(n.disabled)&&e.inarray(t,n.disabled)===-1)r=!0;this._superapply(arguments),r&&this._trigger("disable",null,this._ui(this.anchors[t],this.panels[t]))}}),e.widget("ui.tabs",e.ui.tabs,{options:{add:null,remove:null,tabtemplate:"
#{label}"},add:function(n,r,i){i===t&&(i=this.anchors.length);var s,o,u=this.options,a=e(u.tabtemplate.replace(/#\{href\}/g,n).replace(/#\{label\}/g,r)),f=n.indexof("#")?this._tabid(a):n.replace("#","");return a.addclass("ui-state-default ui-corner-top").data("ui-tabs-destroy",!0),a.attr("aria-controls",f),s=i>=this.tabs.length,o=this.element.find("#"+f),o.length||(o=this._createpanel(f),s?i>0?o.insertafter(this.panels.eq(-1)):o.appendto(this.element):o.insertbefore(this.panels[i])),o.addclass("ui-tabs-panel ui-widget-content ui-corner-bottom").hide(),s?a.appendto(this.tablist):a.insertbefore(this.tabs[i]),u.disabled=e.map(u.disabled,function(e){return e>=i?++e:e}),this.refresh(),this.tabs.length===1&&u.active===!1&&this.option("active",0),this._trigger("add",null,this._ui(this.anchors[i],this.panels[i])),this},remove:function(t){t=this._getindex(t);var n=this.options,r=this.tabs.eq(t).remove(),i=this._getpanelfortab(r).remove();return r.hasclass("ui-tabs-active")&&this.anchors.length>2&&this._activate(t+(t+1
=t?--e:e}),this.refresh(),this._trigger("remove",null,this._ui(r.find("a")[0],i[0])),this}}),e.widget("ui.tabs",e.ui.tabs,{length:function(){return this.anchors.length}}),e.widget("ui.tabs",e.ui.tabs,{options:{idprefix:"ui-tabs-"},_tabid:function(t){var n=t.is("li")?t.find("a[href]"):t;return n=n[0],e(n).closest("li").attr("aria-controls")||n.title&&n.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uffff\-]/g,"")||this.options.idprefix+i()}}),e.widget("ui.tabs",e.ui.tabs,{options:{paneltemplate:""},_createpanel:function(t){return e(this.options.paneltemplate).attr("id",t).addclass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)}}),e.widget("ui.tabs",e.ui.tabs,{_create:function(){var e=this.options;e.active===null&&e.selected!==t&&(e.active=e.selected===-1?!1:e.selected),this._super(),e.selected=e.active,e.selected===!1&&(e.selected=-1)},_setoption:function(e,t){if(e!=="selected")return this._super(e,t);var n=this.options;this._super("active",t===-1?!1:t),n.selected=n.active,n.selected===!1&&(n.selected=-1)},_eventhandler:function(){this._superapply(arguments),this.options.selected=this.options.active,this.options.selected===!1&&(this.options.selected=-1)}}),e.widget("ui.tabs",e.ui.tabs,{options:{show:null,select:null},_create:function(){this._super(),this.options.active!==!1&&this._trigger("show",null,this._ui(this.active.find(".ui-tabs-anchor")[0],this._getpanelfortab(this.active)[0]))},_trigger:function(e,t,n){var r,i,s=this._superapply(arguments);return s?(e==="beforeactivate"?(r=n.newtab.length?n.newtab:n.oldtab,i=n.newpanel.length?n.newpanel:n.oldpanel,s=this._super("select",t,{tab:r.find(".ui-tabs-anchor")[0],panel:i[0],index:r.closest("li").index()})):e==="activate"&&n.newtab.length&&(s=this._super("show",t,{tab:n.newtab.find(".ui-tabs-anchor")[0],panel:n.newpanel[0],index:n.newtab.closest("li").index()})),s):!1}}),e.widget("ui.tabs",e.ui.tabs,{select:function(e){e=this._getindex(e);if(e===-1){if(!this.options.collapsible||this.options.selected===-1)return;e=this.options.selected}this.anchors.eq(e).trigger(this.options.event+this.eventnamespace)}}),function(){var t=0;e.widget("ui.tabs",e.ui.tabs,{options:{cookie:null},_create:function(){var e=this.options,t;e.active==null&&e.cookie&&(t=parseint(this._cookie(),10),t===-1&&(t=!1),e.active=t),this._super()},_cookie:function(n){var r=[this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+ ++t)];return arguments.length&&(r.push(n===!1?-1:n),r.push(this.options.cookie)),e.cookie.apply(null,r)},_refresh:function(){this._super(),this.options.cookie&&this._cookie(this.options.active,this.options.cookie)},_eventhandler:function(){this._superapply(arguments),this.options.cookie&&this._cookie(this.options.active,this.options.cookie)},_destroy:function(){this._super(),this.options.cookie&&this._cookie(null,this.options.cookie)}})}(),e.widget("ui.tabs",e.ui.tabs,{_trigger:function(t,n,r){var i=e.extend({},r);return t==="load"&&(i.panel=i.panel[0],i.tab=i.tab.find(".ui-tabs-anchor")[0]),this._super(t,n,i)}}),e.widget("ui.tabs",e.ui.tabs,{options:{fx:null},_getfx:function(){var t,n,r=this.options.fx;return r&&(e.isarray(r)?(t=r[0],n=r[1]):t=n=r),r?{show:n,hide:t}:null},_toggle:function(e,t){function o(){n.running=!1,n._trigger("activate",e,t)}function u(){t.newtab.closest("li").addclass("ui-tabs-active ui-state-active"),r.length&&s.show?r.animate(s.show,s.show.duration,function(){o()}):(r.show(),o())}var n=this,r=t.newpanel,i=t.oldpanel,s=this._getfx();if(!s)return this._super(e,t);n.running=!0,i.length&&s.hide?i.animate(s.hide,s.hide.duration,function(){t.oldtab.closest("li").removeclass("ui-tabs-active ui-state-active"),u()}):(t.oldtab.closest("li").removeclass("ui-tabs-active ui-state-active"),i.hide(),u())}}))}(jquery),function(e){function n(t,n){var r=(t.attr("aria-describedby")||"").split(/\s+/);r.push(n),t.data("ui-tooltip-id",n).attr("aria-describedby",e.trim(r.join(" ")))}function r(t){var n=t.data("ui-tooltip-id"),r=(t.attr("aria-describedby")||"").split(/\s+/),i=e.inarray(n,r);i!==-1&&r.splice(i,1),t.removedata("ui-tooltip-id"),r=e.trim(r.join(" ")),r?t.attr("aria-describedby",r):t.removeattr("aria-describedby")}var t=0;e.widget("ui.tooltip",{version:"1.9.2",options:{content:function(){return e(this).attr("title")},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipclass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable()},_setoption:function(t,n){var r=this;if(t==="disabled"){this[n?"_disable":"_enable"](),this.options[t]=n;return}this._super(t,n),t==="content"&&e.each(this.tooltips,function(e,t){r._updatecontent(t)})},_disable:function(){var t=this;e.each(this.tooltips,function(n,r){var i=e.event("blur");i.target=i.currenttarget=r[0],t.close(i,!0)}),this.element.find(this.options.items).andself().each(function(){var t=e(this);t.is("[title]")&&t.data("ui-tooltip-title",t.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).andself().each(function(){var t=e(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))})},open:function(t){var n=this,r=e(t?t.target:this.element).closest(this.options.items);if(!r.length||r.data("ui-tooltip-id"))return;r.attr("title")&&r.data("ui-tooltip-title",r.attr("title")),r.data("ui-tooltip-open",!0),t&&t.type==="mouseover"&&r.parents().each(function(){var t=e(this),r;t.data("ui-tooltip-open")&&(r=e.event("blur"),r.target=r.currenttarget=this,n.close(r,!0)),t.attr("title")&&(t.uniqueid(),n.parents[this.id]={element:this,title:t.attr("title")},t.attr("title",""))}),this._updatecontent(r,t)},_updatecontent:function(e,t){var n,r=this.options.content,i=this,s=t?t.type:null;if(typeof r=="string")return this._open(t,e,r);n=r.call(e[0],function(n){if(!e.data("ui-tooltip-open"))return;i._delay(function(){t&&(t.type=s),this._open(t,e,n)})}),n&&this._open(t,e,n)},_open:function(t,r,i){function f(e){a.of=e;if(s.is(":hidden"))return;s.position(a)}var s,o,u,a=e.extend({},this.options.position);if(!i)return;s=this._find(r);if(s.length){s.find(".ui-tooltip-content").html(i);return}r.is("[title]")&&(t&&t.type==="mouseover"?r.attr("title",""):r.removeattr("title")),s=this._tooltip(r),n(r,s.attr("id")),s.find(".ui-tooltip-content").html(i),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:f}),f(t)):s.position(e.extend({of:r},this.options.position)),s.hide(),this._show(s,this.options.show),this.options.show&&this.options.show.delay&&(u=setinterval(function(){s.is(":visible")&&(f(a.of),clearinterval(u))},e.fx.interval)),this._trigger("open",t,{tooltip:s}),o={keyup:function(t){if(t.keycode===e.ui.keycode.escape){var n=e.event(t);n.currenttarget=r[0],this.close(n,!0)}},remove:function(){this._removetooltip(s)}};if(!t||t.type==="mouseover")o.mouseleave="close";if(!t||t.type==="focusin")o.focusout="close";this._on(!0,r,o)},close:function(t){var n=this,i=e(t?t.currenttarget:this.element),s=this._find(i);if(this.closing)return;i.data("ui-tooltip-title")&&i.attr("title",i.data("ui-tooltip-title")),r(i),s.stop(!0),this._hide(s,this.options.hide,function(){n._removetooltip(e(this))}),i.removedata("ui-tooltip-open"),this._off(i,"mouseleave focusout keyup"),i[0]!==this.element[0]&&this._off(i,"remove"),this._off(this.document,"mousemove"),t&&t.type==="mouseleave"&&e.each(this.parents,function(t,r){e(r.element).attr("title",r.title),delete n.parents[t]}),this.closing=!0,this._trigger("close",t,{tooltip:s}),this.closing=!1},_tooltip:function(n){var r="ui-tooltip-"+t++,i=e("").attr({id:r,role:"tooltip"}).addclass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipclass||""));return e("
").addclass("ui-tooltip-content").appendto(i),i.appendto(this.document[0].body),e.fn.bgiframe&&i.bgiframe(),this.tooltips[r]=n,i},_find:function(t){var n=t.data("ui-tooltip-id");return n?e("#"+n):e()},_removetooltip:function(e){e.remove(),delete this.tooltips[e.attr("id")]},_destroy:function(){var t=this;e.each(this.tooltips,function(n,r){var i=e.event("blur");i.target=i.currenttarget=r[0],t.close(i,!0),e("#"+n).remove(),r.data("ui-tooltip-title")&&(r.attr("title",r.data("ui-tooltip-title")),r.removedata("ui-tooltip-title"))})}})}(jquery);
/*
* allinone banner - banner with thumbnails v3.2
*
* copyright 2013, lambertgroup
*
*/
(function(e){function l(a,b){e(a.currentimg.attr("data-text-id")).css("display","block");var h=e(a.currentimg.attr("data-text-id")).children(),d=0;currenttext_arr=[];h.each(function(){currenttext_arr[d]=e(this);var g=currenttext_arr[d].attr("data-initial-left"),h=currenttext_arr[d].attr("data-initial-top");b.responsive&&(g=parseint(g/(b.origwidth/b.width),10),h=parseint(h/(b.origwidth/b.width),10));currenttext_arr[d].css({left:g+"px",top:h+"px",opacity:parseint(currenttext_arr[d].attr("data-fade-start"), 10)/100});var k=currenttext_arr[d];settimeout(function(){b.responsive&&(newcss="",-1!=k.css("font-size").lastindexof("px")?(fontsize=k.css("font-size").substr(0,k.css("font-size").lastindexof("px")),newcss+="font-size:"+fontsize/(b.origwidth/b.width)+"px;"):-1!=k.css("font-size").lastindexof("em")&&(fontsize=k.css("font-size").substr(0,k.css("font-size").lastindexof("em")),newcss+="font-size:"+fontsize/(b.origwidth/b.width)+"em;"),-1!=k.css("line-height").lastindexof("px")?(lineheight=k.css("line-height").substr(0, k.css("line-height").lastindexof("px")),newcss+="line-height:"+lineheight/(b.origwidth/b.width)+"px;"):-1!=k.css("line-height").lastindexof("em")&&(lineheight=k.css("line-height").substr(0,k.css("line-height").lastindexof("em")),newcss+="line-height:"+lineheight/(b.origwidth/b.width)+"em;"),k.wrapinner('
'));var g=k.attr("data-final-left"),h=k.attr("data-final-top");b.responsive&&(g=parseint(g/(b.origwidth/b.width),10),h=parseint(h/(b.origwidth/b.width),10)); var f=1;!0==a.isvideoplaying&&(f=0);k.animate({opacity:f,left:g+"px",top:h+"px"},1e3*k.attr("data-duration"),function(){!0==a.isvideoplaying&&e(a.currentimg.attr("data-text-id")).children().css("opacity",0)})},1e3*currenttext_arr[d].attr("data-delay"));d++})}function m(a,b){nowx=(new date).gettime();!a.mouseoverbanner&&(!a.effectisrunning&&b.showcircletimer)&&(a.ctx.clearrect(0,0,a.canvas.width,a.canvas.height),a.ctx.beginpath(),a.ctx.globalalpha=b.behindcirclealpha/100,a.ctx.arc(b.circleradius+2* b.circlelinewidth,b.circleradius+2*b.circlelinewidth,b.circleradius,0,2*math.pi,!1),a.ctx.linewidth=b.circlelinewidth+2,a.ctx.strokestyle=b.behindcirclecolor,a.ctx.stroke(),a.ctx.beginpath(),a.ctx.globalalpha=b.circlealpha/100,a.ctx.arc(b.circleradius+2*b.circlelinewidth,b.circleradius+2*b.circlelinewidth,b.circleradius,0,2*((a.timeelapsed+nowx-a.arcinitialtime)/1e3)/b.autoplay*math.pi,!1),a.ctx.linewidth=b.circlelinewidth,a.ctx.strokestyle=b.circlecolor,a.ctx.stroke())}function n(a,b,h){var d=e(); e(".stripe",a).remove();e(".block",a).remove();f=b=math.round(b.width/b.numberofstripes);for(var g=!0,t=0;t
').css({opacity:"0",left:b*t+"px",width:f+"px",height:"0px",background:'url("'+h.current_imginside.attr("src")+'") '+-1*t*b+"px 0%"})):g=!1, g||(mleft=-1*b*t,a.append(e('
').css({opacity:"0",left:b*t+"px",width:f+"px",height:"0px"})));b.responsive&&g&&(-1==d||-1!=d&&9<=d)&&e(".stripe",a).css({"-webkit-background-size":b.width+"px "+b.height+"px","-moz-background-size":b.width+"px "+b.height+"px","-o-background-size":b.width+"px "+b.height+"px","-ms-background-size":b.width+"px "+b.height+"px", "background-size":b.width+"px "+b.height+"px"})}function k(a,b,e,d,g){var t=a.width(),k=a.height();a.css({width:"0"});a.css({height:"0"});b==d.numberofrows-1&&e==d.numberofcolumns-1?settimeout(function(){a.animate({opacity:"1.0",width:t,height:k},1e3*d.effectduration/3,"",function(){g.trigger("effectcomplete")})},u):settimeout(function(){a.animate({opacity:"1.0",width:t,height:k},1e3*d.effectduration/3)},u);u+=h}function g(a,b,e,d,g,t,k,n){c=b.css("left").substr(0,b.css("left").lastindexof("px")); 1===a||-1===a?(n.iscarouselscrolling=!0,b.css("opacity","0.5"),b.animate({opacity:1,left:"+="+a*n.carouselstep},500,"easeoutcubic",function(){o(n,b,e,d,g,t,k);n.iscarouselscrolling=!1})):c!=-1*math.floor(n.current_img_no/g.numberofthumbsperscreen)*n.carouselstep&&(n.iscarouselscrolling=!0,b.css("opacity","0.5"),b.animate({opacity:1,left:-1*math.floor(n.current_img_no/g.numberofthumbsperscreen)*n.carouselstep},500,"easeoutcubic",function(){o(n,b,e,d,g,t,k);n.iscarouselscrolling=!1}))}function o(a, b,e,d,g,t,k){c=b.css("left").substr(0,b.css("left").lastindexof("px"));0>c?e.hasclass("carouselleftnavdisabled")&&e.removeclass("carouselleftnavdisabled"):e.addclass("carouselleftnavdisabled");math.abs(c-a.carouselstep)<(k.width()+a.thumbmarginleft)*t?d.hasclass("carouselrightnavdisabled")&&d.removeclass("carouselrightnavdisabled"):d.addclass("carouselrightnavdisabled")}function d(a,b,h,d,g,t,k,n,w,f,m,r){var s=!0;if(!f.loop&&b.current_img_no+a>=m||!f.loop&&0>b.current_img_no+a)s=!1;if(s){e(".newfs", d).contents().unwrap();b.arcinitialtime=(new date).gettime();b.timeelapsed=0;f.showcircletimer&&(b.ctx.clearrect(0,0,b.canvas.width,b.canvas.height),b.ctx.beginpath(),b.ctx.globalalpha=f.behindcirclealpha/100,b.ctx.arc(f.circleradius+2*f.circlelinewidth,f.circleradius+2*f.circlelinewidth,f.circleradius,0,2*math.pi,!1),b.ctx.linewidth=f.circlelinewidth+2,b.ctx.strokestyle=f.behindcirclecolor,b.ctx.stroke(),b.ctx.beginpath(),b.ctx.globalalpha=f.circlealpha/100,b.ctx.arc(f.circleradius+2*f.circlelinewidth, f.circleradius+2*f.circlelinewidth,f.circleradius,0,0,!1),b.ctx.linewidth=f.circlelinewidth,b.ctx.strokestyle=f.circlecolor,b.ctx.stroke());e(b.currentimg.attr("data-text-id")).css("display","none");e(g[b.current_img_no]).removeclass("thumbsholder_thumbon");f.randomizeimages&&!b.bottomnavclicked?(a=math.floor(math.random()*m),b.current_img_no=b.current_img_no===a?math.floor(math.random()*m):a):b.current_img_no=b.current_img_no+a>=m?0:0>b.current_img_no+a?m-1:b.current_img_no+a;b.bottomnavclicked= !1;e(g[b.current_img_no]).addclass("thumbsholder_thumbon");c=k.css("left").substr(0,k.css("left").lastindexof("px"));0===b.current_img_no||b.current_img_no===m-1?g(0,k,n,w,f,m,r,b):g(1001,k,n,w,f,m,r,b);b.currentimg=e(t[b.current_img_no]);b.current_imginside=b.currentimg.find("img:first");b.currentimg.attr("data-transition")?(h=b.currentimg.attr("data-transition"),"random"==h&&(h=i[math.floor(math.random()*i.length)])):h="random"!=f.defaulteffect?f.defaulteffect:i[math.floor(math.random()*i.length)]; b.effectisrunning=!0;if("fade"==h||"slidefromleft"==h||"slidefromright"==h||"slidefromtop"==h||"slidefrombottom"==h)n(d,f,b),g=e(".stripe:first",d),"fade"==h&&(g.css({top:"0px",height:"100%",width:d.width()+"px"}),g.animate({opacity:"1.0"},2e3*f.effectduration,"",function(){d.trigger("effectcomplete")})),"slidefromleft"==h&&(g.css({top:"0px",height:"100%",width:"0"}),g.animate({opacity:"1.0",width:d.width()+"px"},1e3*f.effectduration,"",function(){d.trigger("effectcomplete")})),"slidefromright"== h&&(g.css({top:"0px",height:"100%",width:"0",left:d.width()+5+"px"}),g.animate({opacity:"1.0",left:"0",width:d.width()+"px"},1e3*f.effectduration,"",function(){d.trigger("effectcomplete")})),"slidefromtop"==h&&(g.css({top:"0px",height:"0",width:d.width()+"px"}),g.animate({opacity:"1.0",height:d.height()+"px"},1e3*f.effectduration,"",function(){d.trigger("effectcomplete")})),"slidefrombottom"==h&&(g.css({top:"0px",height:"0",width:d.width()+"px",top:d.height()+"px"}),g.animate({opacity:"1.0",top:0, height:d.height()+"px"},1e3*f.effectduration,"",function(){d.trigger("effectcomplete")}));0<=h.indexof("stripes")&&(n(d,f,b),g=0<=h.indexof("reverse")?e(".stripe",d).myreverse():e(".stripe",d),u=100,i=0,g.each(function(){var a=e(this);("topbottomdroppingstripes"==h||"topbottomdroppingreversestripes"==h)&&a.css({top:"0px"});("bottomtopdroppingstripes"==h||"bottomtopdroppingreversestripes"==h)&&a.css({bottom:"0px"});("leftrightfadingstripes"==h||"leftrightfadingreversestripes"==h)&&a.css({top:"0px", height:"100%",width:"0"});"asynchronousdroppingstripes"==h&&(i%2?a.css({top:"0px"}):a.css({bottom:"0px"}));if("leftrightfadingstripes"==h||"leftrightfadingreversestripes"==h){var b=b;if("leftrightfadingstripes"==h&&i==f.numberofstripes-1||"leftrightfadingreversestripes"==h&&0==i)b=f;i==f.numberofstripes-1?settimeout(function(){a.animate({width:b+"px",opacity:"1.0"},800*f.effectduration,"",function(){d.trigger("effectcomplete")})},u):settimeout(function(){a.animate({width:b+"px",opacity:"1.0"},800* f.effectduration)},u)}else i==f.numberofstripes-1?settimeout(function(){a.animate({height:"100%",opacity:"1.0"},1e3*f.effectduration,"",function(){d.trigger("effectcomplete")})},u):settimeout(function(){a.animate({height:"100%",opacity:"1.0"},1e3*f.effectduration)},u);u+=q;i++}));if(0<=h.indexof("blocks")){g=e();e(".stripe",d).remove();e(".block",d).remove();t=math.round(f.width/f.numberofcolumns);k=math.round(f.height/f.numberofrows);n=t;w=k;r=m=0;a=!0;for(s=0;s
').css({opacity:"0",left:m+"px",top:r+"px",width:n+"px",height:w+"px",background:'url("'+b.current_imginside.attr("src")+'") -'+m+"px -"+r+"px"})):a=!1,a||(mleft=-1*m,mtop=-1*r,d.append(e('').css({opacity:"0",left:m+"px",top:r+"px",width:n+"px",height:w+"px"})));f.responsive&&a&&(-1==g||-1!=g&&9<=g)&&e(".block",d).css({"-webkit-background-size":f.width+"px "+f.height+"px","-moz-background-size":f.width+"px "+f.height+"px","-o-background-size":f.width+"px "+f.height+"px","-ms-background-size":f.width+"px "+f.height+"px","background-size":f.width+ "px "+f.height+"px"});if(0<=h.indexof("reverse"))var p=e(".block",d).myreverse();else if("randomblocks"==h){b=e(".block",d);var c;for(g=b.length;g;p=parseint(math.random()*g,10),c=b[--g],b[g]=b[p],b[p]=c);p=b}else p=e(".block",d);u=100;if("randomblocks"==h){i=0;var y=f.numberofrows*f.numberofcolumns;p.each(function(){var a=e(this),b=a.width(),c=a.height();a.css({width:"0"});a.css({height:"0"});i==y-1?settimeout(function(){a.animate({opacity:"1.0",width:b,height:c},1e3*f.effectduration/3,"",function(){d.trigger("effectcomplete")})}, u):settimeout(function(){a.animate({opacity:"1.0",width:b,height:c},1e3*f.effectduration/3)},u);u+=h;i++})}else{var l=0,v=0,x=[];x[l]=[];p.each(function(){x[l][v]=e(this);v++;v==f.numberofcolumns&&(l++,v=0,x[l]=[])});v=l=0;u=100;p=e(x[l][v]);for(k(p,0,0,f,d);lf.numberofcolumns&&(i=l-v);j=0;for(llimit_i&&j=h&&f.css("left",parseint((m.width()-(w.width()+a.thumbmarginleft)*h)/2,10)+parseint(a.thumbmarginleft/2,10)+"px"),h=e(".thumbsholder_thumboff",d).find("img:first"),0=thumb_i?thethumb.css("margin-left",math.floor((m.width()-k.width()-n.width()-(a.thumbmarginleft+thethumb.width())*(b.numberofthumbsperscreen-1)-thethumb.width())/2)+"px"):thethumb.css("margin-left",a.thumbmarginleft+"px")}),a.carouselstep=(w.width()+ a.thumbmarginleft)*b.numberofthumbsperscreen)}function e(){var a=-1;"microsoft internet explorer"==navigator.appname&&null!=/msie ([0-9]{1,}[.0-9]{0,})/.exec(navigator.useragent)&&(a=parsefloat(regexp.$1));return parseint(a,10)}var i="fade slidefromleft slidefromright slidefromtop slidefrombottom topbottomdroppingstripes topbottomdroppingreversestripes bottomtopdroppingstripes bottomtopdroppingreversestripes asynchronousdroppingstripes leftrightfadingstripes leftrightfadingreversestripes topbottomdiagonalblocks topbottomdiagonalreverseblocks randomblocks".split(" "), b,f,u=100,q=50,h=25,a=!1,c=0,z=navigator.useragent.tolowercase();e.fn.allinone_thumbnailsbanner=function(a){a=e.extend({},e.fn.allinone_thumbnailsbanner.defaults,a);return this.each(function(){var b=e(this);responsivewidth=b.parent().width();responsiveheight=b.parent().height();a.responsiverelativetobrowser&&(responsivewidth=e(window).width(),responsiveheight=e(window).height());a.origwidth=a.width;a.width100proc&&(a.width=responsivewidth);a.origheight=a.height;a.height100proc&&(a.height=responsiveheight); if(a.responsive&&(a.origwidth!=responsivewidth||a.width100proc))a.width=a.origwidth>responsivewidth||a.width100proc?responsivewidth:a.origwidth,a.height100proc||(a.height=a.width/(a.origwidth/a.origheight));a.width=parseint(a.width,10);a.height=parseint(a.height,10);a.enabletouchscreen&&a.responsive&&(a.width-=1);b.css("display","block");var h=e("").addclass("allinone_thumbnailsbanner").addclass(a.skin),d=e(' '); b.wrap(h);b.after(d);a.showallcontrollers||t.css("display","none");var g=b.parent(".allinone_thumbnailsbanner"),t=e(".bannercontrols",g),k=e(".leftnav",g),n=e(".rightnav",g);k.css("display","none");n.css("display","none");a.shownavarrows&&a.showoninitnavarrows&&(k.css("display","block"),n.css("display","block"));var w=e(".thumbsholderwrapper",g),f=e(".thumbsholdervisiblewrapper",g),m=e(".thumbsholder",g),r,s;r=e('');s=e('');w.append(r); w.append(s);s.css("right","0");m.css("width",r.width()+"px");(!a.showthumbs||!a.showoninitthumbs)&&w.css("display","none");var h=e(),u=a.defaulteffect,p=0,c={current_img_no:0,currentimg:0,current_imginside:"",windowwidth:0,carouselstep:0,thumbmarginleft:0,bottomnavclicked:!1,effectisrunning:!1,mouseoverbanner:!1,timeoutid:"",intervalid:"",arcinitialtime:(new date).gettime(),timeelapsed:0,windowwidth:0,canvas:"",ctx:"",bannerratio:a.origwidth/a.origheight};c.canvas=e(".mycanvas",g)[0];c.canvas.width= 2*a.circleradius+4*a.circlelinewidth;c.canvas.height=2*a.circleradius+4*a.circlelinewidth;-1!=h&&9>h&&(a.showcircletimer=!1);a.showcircletimer&&(c.ctx=c.canvas.getcontext("2d"));g.width(a.width);g.height(a.height);t.css("margin-top",parseint((a.height-k.height())/2,10)+"px");var y=b.find("ul:first").children(),l,v=0;y.each(function(){c.currentimg=e(this);c.currentimg.is("li")||(c.currentimg=c.currentimg.find("li:first"));if(c.currentimg.is("li")){c.currentimg.css("display","none");p++;var b=e(y[p- 1]).attr("data-bottom-thumb");l=e('');m.append(l);0==a.origthumbw&&(0==a.numberofthumbsperscreen&&(a.numberofthumbsperscreen=math.floor((a.origwidth-r.width()-s.width())/l.width())),a.origthumbw=l.width(),a.origthumbh=l.height(),a.origthumbsholderwrapperh=w.height(),c.thumbmarginleft=math.floor((a.origwidth-r.width()-s.width()-l.width()*a.numberofthumbsperscreen)/(a.numberofthumbsperscreen-1)));m.css("width",m.width()+c.thumbmarginleft+ l.width()+"px");1>=p?l.css("margin-left",math.floor((w.width()-r.width()-s.width()-(c.thumbmarginleft+l.width())*(a.numberofthumbsperscreen-1)-l.width())/2)+"px"):l.css("margin-left",c.thumbmarginleft+"px");v=parseint((w.height()-parseint(l.css("height").substring(0,l.css("height").length-2)))/2,10)}});f.css("width",f.width()-r.width()-s.width());f.css("left",r.width());c.carouselstep=(l.width()+c.thumbmarginleft)*a.numberofthumbsperscreen;0===math.floor(c.current_img_no/a.numberofthumbsperscreen)&& r.addclass("carouselleftnavdisabled");math.floor(c.current_img_no/a.numberofthumbsperscreen)==math.floor(p/a.numberofthumbsperscreen)&&s.addclass("carouselrightnavdisabled");0=p&&(s.addclass("carouselrightnavdisabled"), r.css("display","none"),s.css("display","none"),f.css("left",parseint((w.width()-(l.width()+c.thumbmarginleft)*p)/2,10)+"px"));w.css("top",a.height+"px");d=e(".thumbsholder_thumboff",g).find("img:first");d.css("margin-top",v+"px");a.origthumbsholder_margintop=v;var x=e(".thumbsholder_thumboff",g);p(c,a,p,g,x,m,r,s,l,f,w);c.current_img_no=a.firstimg;a.firstimg>p&&(c.current_img_no=p);0>a.firstimg&&(c.current_img_no=0);a.randomizeimages&&(c.current_img_no=math.floor(math.random()*p));if(c.current_img_no>= a.numberofthumbsperscreen)for(q=0;q=h?g.append(''):(g.css("background",'url("'+c.current_imginside.attr("src")+'") no-repeat'), a.responsive&&(-1==h||-1!=h&&9<=h?g.css({"-webkit-background-size":a.width+"px "+a.height+"px","-moz-background-size":a.width+"px "+a.height+"px","-o-background-size":a.width+"px "+a.height+"px","-ms-background-size":a.width+"px "+a.height+"px","background-size":a.width+"px "+a.height+"px"}):8==h&&g.css({filter:"progid:dximagetransform.microsoft.alphaimageloader(src='"+c.current_imginside.attr("src")+"',sizingmethod='scale')"})));a.enabletouchscreen&&(h=math.floor(1e5*math.random()),g.wrap(''),e("#bannerwiththumbnailsparent_"+h).width(a.width+1),e("#bannerwiththumbnailsparent_"+h).height(a.height),g.css({cursor:"url("+a.absurl+"skins/hand.cur),url("+a.absurl+"skins/hand.cur),move",left:"0px",position:"absolute"}),rightval=parseint(n.css("right").substring(0,n.css("right").length-2),10),g.mousedown(function(){rightval=parseint(n.css("right").substring(0,n.css("right").length-2),10);0>rightval&&!a&&(n.css("visibility","hidden"),k.css("visibility","hidden"), n.css("right","0"))}),g.mouseup(function(){a=!1;0>rightval&&(n.css("right",rightval+"px"),n.css("visibility","visible"),k.css("visibility","visible"))}),g.draggable({axis:"x",containment:"parent",start:function(){origleft=e(this).css("left")},stop:function(){c.effectisrunning||(finalleft=e(this).css("left"),direction=1,origleftrightval&&(n.css("right",rightval+"px"),n.css("visibility","visible"),k.css("visibility","visible"));e(this).css("left", "0px")}}));l(c,a,b,t);g.bind("effectcomplete",function(){var f=e();c.effectisrunning=!1;-1!=z.indexof("ipad")||-1!=z.indexof("iphone")||-1!=z.indexof("ipod")||-1!=z.indexof("webos")||-1!=f&&7>=f?(e("#curbgimgios",g).attr("src",c.current_imginside.attr("src")),e("#curbgimgios",g).width(a.width),e("#curbgimgios",g).height(a.height)):(g.css("background",'url("'+c.current_imginside.attr("src")+'") no-repeat'),a.responsive&&(-1==f||-1!=f&&9<=f?g.css({"-webkit-background-size":a.width+"px "+a.height+"px", "-moz-background-size":a.width+"px "+a.height+"px","-o-background-size":a.width+"px "+a.height+"px","-ms-background-size":a.width+"px "+a.height+"px","background-size":a.width+"px "+a.height+"px"}):8==f&&g.css({filter:"progid:dximagetransform.microsoft.alphaimageloader(src='"+c.current_imginside.attr("src")+"',sizingmethod='scale')"})));c.arcinitialtime=(new date).gettime();c.timeelapsed=0;a.showcircletimer&&(clearinterval(c.intervalid),c.ctx.clearrect(0,0,c.canvas.width,c.canvas.height),c.ctx.beginpath(), c.ctx.globalalpha=a.behindcirclealpha/100,c.ctx.arc(a.circleradius+2*a.circlelinewidth,a.circleradius+2*a.circlelinewidth,a.circleradius,0,2*math.pi,!1),c.ctx.linewidth=a.circlelinewidth+2,c.ctx.strokestyle=a.behindcirclecolor,c.ctx.stroke(),c.ctx.beginpath(),c.ctx.globalalpha=a.circlealpha/100,c.ctx.arc(a.circleradius+2*a.circlelinewidth,a.circleradius+2*a.circlelinewidth,a.circleradius,0,0,!1),c.ctx.linewidth=a.circlelinewidth,c.ctx.strokestyle=a.circlecolor,c.ctx.stroke(),c.intervalid=setinterval(function(){m(c, a)},125));l(c,a,b,t);0a.windoworientationscreensize0)&&(doresizenow=!1),a.windoworientationscreensize90&&(90==window.orientation&&e(window).height()>a.windoworientationscreensize90)&&(doresizenow=!1),a.windoworientationscreensize_90&&(-90==window.orientation&&e(window).height()>a.windoworientationscreensize_90)&&(doresizenow=!1),0==c.windowwidth&&(doresizenow=!1,c.windowwidth=e(window).width()));-1!=d&&(9==d&&0==c.windowwidth)&&(doresizenow=!1); c.windowwidth==e(window).width()?(doresizenow=!1,a.windowcurorientation!=window.orientation&&-1!=navigator.useragent.indexof("android")&&(a.windowcurorientation=window.orientation,doresizenow=!0)):c.windowwidth=e(window).width();a.responsive&&doresizenow&&(!1!==b&&cleartimeout(b),b=settimeout(function(){var d=a,h=p,n=t,v=x,b=l,a=e(),c=e("body").css("overflow");e("body").css("overflow","hidden");d.enabletouchscreen?(responsivewidth=b.parent().parent().parent().width(),responsiveheight=b.parent().parent().parent().height()): (responsivewidth=b.parent().parent().width(),responsiveheight=b.parent().parent().height());d.responsiverelativetobrowser&&(responsivewidth=e(window).width(),responsiveheight=e(window).height());d.width100proc&&(d.width=responsivewidth);d.height100proc&&(d.height=responsiveheight);if(d.origwidth!=responsivewidth||d.width100proc){d.origwidth>responsivewidth||d.width100proc?d.width=responsivewidth:d.width100proc||(d.width=d.origwidth);d.height100proc||(d.height=d.width/c.bannerratio);d.width=parseint(d.width, 10);d.height=parseint(d.height,10);d.enabletouchscreen&&d.responsive&&(d.width-=1);g.width(d.width);g.height(d.height);-1!=z.indexof("ipad")||-1!=z.indexof("iphone")||-1!=z.indexof("ipod")||-1!=z.indexof("webos")||-1!=a&&7>=a?(e("#curbgimgios",g).attr("src",c.current_imginside.attr("src")),e("#curbgimgios",g).width(d.width),e("#curbgimgios",g).height(d.height)):-1==a||-1!=a&&9<=a?g.css({"-webkit-background-size":d.width+"px "+d.height+"px","-moz-background-size":d.width+"px "+d.height+"px","-o-background-size":d.width+ "px "+d.height+"px","-ms-background-size":d.width+"px "+d.height+"px","background-size":d.width+"px "+d.height+"px"}):8==a&&g.css({filter:"progid:dximagetransform.microsoft.alphaimageloader(src='"+c.current_imginside.attr("src")+"',sizingmethod='scale')"});d.enabletouchscreen&&(g.parent().width(d.width+1),g.parent().height(d.height));n.css("margin-top",parseint((d.height-k.height())/2,10)+"px");for(i=0;ic&&g(1,m,r,s,a,p,l,c))});s.click(function(){a=!0;c.iscarouselscrolling||(c=m.css("left").substr(0,m.css("left").lastindexof("px")),math.abs(c-c.carouselstep)<(l.width()+c.thumbmarginleft)*p&&g(-1,m,r,s,a,p,l,c))});e(x[c.current_img_no]).addclass("thumbsholder_thumbon");0