Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.145.91.108
/*
* Foundation Responsive Library
* http://foundation.zurb.com
* Copyright 2013, ZURB
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
/*jslint unparam: true, browser: true, indent: 2 */
// Accommodate running jQuery or Zepto in noConflict() mode by
// using an anonymous function to redefine the $ shorthand name.
// See http://docs.jquery.com/Using_jQuery_with_Other_Libraries
// and http://zeptojs.com/
var libFuncName=null;if(typeof jQuery=="undefined"&&typeof Zepto=="undefined"&&typeof $=="function")libFuncName=$;else if(typeof jQuery=="function")libFuncName=jQuery;else{if(typeof Zepto!="function")throw new TypeError;libFuncName=Zepto}(function(e){(function(){Array.prototype.filter||(Array.prototype.filter=function(e){"use strict";if(this==null)throw new TypeError;var t=Object(this),n=t.length>>>0;if(typeof e!="function")try{throw new TypeError}catch(r){return}var i=[],s=arguments[1];for(var o=0;o<n;o++)if(o in t){var u=t[o];e&&e.call(s,u,o,t)&&i.push(u)}return i},Function.prototype.bind||(Function.prototype.bind=function(e){if(typeof this!="function")throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,r=function(){},i=function(){return n.apply(this instanceof r&&e?this:e,t.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,i.prototype=new r,i})),e.fn.stop=e.fn.stop||function(){return this}})(),function(t,n,r){"use strict";t.Foundation={name:"Foundation",version:"4.1.0",cache:{},init:function(t,n,r,i,s,o){var u,a=[t,r,i,s],f=[],o=o||!1;o&&(this.nc=o),this.rtl=/rtl/i.test(e("html").attr("dir")),this.scope=t||this.scope;if(n&&typeof n=="string"){if(/off/i.test(n))return this.off();u=n.split(" ");if(u.length>0)for(var l=u.length-1;l>=0;l--)f.push(this.init_lib(u[l],a))}else for(var c in this.libs)f.push(this.init_lib(c,a));return typeof n=="function"&&a.unshift(n),this.response_obj(f,a)},response_obj:function(e,t){for(var n=0,r=t.length;n<r;n++)if(typeof t[n]=="function")return t[n]({errors:e.filter(function(e){if(typeof e=="string")return e})});return e},init_lib:function(e,t){return this.trap(function(){if(this.libs.hasOwnProperty(e))return this.patch(this.libs[e]),this.libs[e].init.apply(this.libs[e],t)}.bind(this),e)},trap:function(e,t){if(!this.nc)try{return e()}catch(n){return this.error({name:t,message:"could not be initialized",more:n.name+" "+n.message})}return e()},patch:function(e){this.fix_outer(e),e.scope=this.scope,e.rtl=this.rtl},inherit:function(e,t){var n=t.split(" ");for(var r=n.length-1;r>=0;r--)this.lib_methods.hasOwnProperty(n[r])&&(this.libs[e.name][n[r]]=this.lib_methods[n[r]])},random_str:function(e){var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz".split("");e||(e=Math.floor(Math.random()*t.length));var n="";for(var r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n},libs:{},lib_methods:{set_data:function(e,t){var n=[this.name,+(new Date),Foundation.random_str(5)].join("-");return Foundation.cache[n]=t,e.attr("data-"+this.name+"-id",n),t},get_data:function(e){return Foundation.cache[e.attr("data-"+this.name+"-id")]},remove_data:function(t){t?(delete Foundation.cache[t.attr("data-"+this.name+"-id")],t.attr("data-"+this.name+"-id","")):e("[data-"+this.name+"-id]").each(function(){delete Foundation.cache[e(this).attr("data-"+this.name+"-id")],e(this).attr("data-"+this.name+"-id","")})},throttle:function(e,t){var n=null;return function(){var r=this,i=arguments;clearTimeout(n),n=setTimeout(function(){e.apply(r,i)},t)}},data_options:function(t){function u(e){return!isNaN(e-0)&&e!==null&&e!==""&&e!==!1&&e!==!0}function a(t){return typeof t=="string"?e.trim(t):t}var n={},r,i,s=(t.attr("data-options")||":").split(";"),o=s.length;for(r=o-1;r>=0;r--)i=s[r].split(":"),/true/i.test(i[1])&&(i[1]=!0),/false/i.test(i[1])&&(i[1]=!1),u(i[1])&&(i[1]=parseInt(i[1],10)),i.length===2&&i[0].length>0&&(n[a(i[0])]=a(i[1]));return n},delay:function(e,t){return setTimeout(e,t)},scrollTo:function(n,r,i){if(i<0)return;var s=r-e(t).scrollTop(),o=s/i*10;this.scrollToTimerCache=setTimeout(function(){isNaN(parseInt(o,10))||(t.scrollTo(0,e(t).scrollTop()+o),this.scrollTo(n,r,i-10))}.bind(this),10)},scrollLeft:function(e){if(!e.length)return;return"scrollLeft"in e[0]?e[0].scrollLeft:e[0].pageXOffset},empty:function(e){if(e.length&&e.length>0)return!1;if(e.length&&e.length===0)return!0;for(var t in e)if(hasOwnProperty.call(e,t))return!1;return!0}},fix_outer:function(e){e.outerHeight=function(e,t){return typeof Zepto=="function"?e.height():typeof t!="undefined"?e.outerHeight(t):e.outerHeight()},e.outerWidth=function(e){return typeof Zepto=="function"?e.width():typeof bool!="undefined"?e.outerWidth(bool):e.outerWidth()}},error:function(e){return e.name+" "+e.message+"; "+e.more},off:function(){return e(this.scope).off(".fndtn"),e(t).off(".fndtn"),!0},zj:function(){try{return Zepto}catch(e){return jQuery}}()},e.fn.foundation=function(){var e=Array.prototype.slice.call(arguments,0);return this.each(function(){return Foundation.init.apply(Foundation,[this].concat(e)),this})}}(this,this.document)})(libFuncName),function(e,t,n,r){"use strict";Foundation.libs.dropdown={name:"dropdown",version:"4.1.0",settings:{activeClass:"open"},init:function(t,n,r){return this.scope=t||this.scope,Foundation.inherit(this,"throttle scrollLeft"),typeof n=="object"&&e.extend(!0,this.settings,n),typeof n!="string"?(this.settings.init||this.events(),this.settings.init):this[n].call(this,r)},events:function(){var n=this;e(this.scope).on("click.fndtn.dropdown","[data-dropdown]",function(t){t.preventDefault(),n.toggle(e(this))}),e("body").on("click.fndtn.dropdown",function(t){var r=e(t.target).closest("[data-dropdown-content]");if(e(t.target).data("dropdown"))return;if(r.length>0&&(e(t.target).is("[data-dropdown-content]")||e.contains(r.first()[0],t.target))){t.stopPropagation();return}e("[data-dropdown-content]").css(Foundation.rtl?"right":"left","-99999px").removeClass(n.settings.activeClass)}),e(t).on("resize.fndtn.dropdown",n.throttle(function(){n.resize.call(n)},50)).trigger("resize"),this.settings.init=!0},toggle:function(t,n){var r=e("#"+t.data("dropdown"));e("[data-dropdown-content]").not(r).css(Foundation.rtl?"right":"left","-99999px").removeClass(this.settings.activeClass),r.hasClass(this.settings.activeClass)?r.css(Foundation.rtl?"right":"left","-99999px").removeClass(this.settings.activeClass):this.css(r.addClass(this.settings.activeClass),t)},resize:function(){var t=e("[data-dropdown-content].open"),n=e("[data-dropdown='"+t.attr("id")+"']");t.length&&n.length&&this.css(t,n)},css:function(n,r){var i=r.position();i.top+=r.offsetParent().offset().top,i.left+=r.offsetParent().offset().left;if(this.small())n.css({position:"absolute",width:"95%",left:"2.5%","max-width":"none",top:i.top+this.outerHeight(r)});else{if(!Foundation.rtl&&e(t).width()>this.outerWidth(n)+r.offset().left)var s=i.left;else{n.hasClass("right")||n.addClass("right");var s=i.left-(this.outerWidth(n)-this.outerWidth(r))}n.attr("style","").css({position:"absolute",top:i.top+this.outerHeight(r),left:s})}return n},small:function(){return e(t).width()<768||e("html").hasClass("lt-ie9")},off:function(){e(this.scope).off(".fndtn.dropdown"),e("html, body").off(".fndtn.dropdown"),e(t).off(".fndtn.dropdown"),e("[data-dropdown-content]").off(".fndtn.dropdown"),this.settings.init=!1}}}(Foundation.zj,this,this.document),function(e,t,n){function f(e){var t={},r=/^jQuery\d+$/;return n.each(e.attributes,function(e,n){n.specified&&!r.test(n.name)&&(t[n.name]=n.value)}),t}function l(e,r){var i=this,s=n(i);if(i.value==s.attr("placeholder")&&s.hasClass("placeholder"))if(s.data("placeholder-password")){s=s.hide().next().show().attr("id",s.removeAttr("id").data("placeholder-id"));if(e===!0)return s[0].value=r;s.focus()}else i.value="",s.removeClass("placeholder"),i==t.activeElement&&i.select()}function c(){var e,t=this,r=n(t),i=r,s=this.id;if(t.value==""){if(t.type=="password"){if(!r.data("placeholder-textinput")){try{e=r.clone().attr({type:"text"})}catch(o){e=n("<input>").attr(n.extend(f(this),{type:"text"}))}e.removeAttr("name").data({"placeholder-password":!0,"placeholder-id":s}).bind("focus.placeholder",l),r.data({"placeholder-textinput":e,"placeholder-id":s}).before(e)}r=r.removeAttr("id").hide().prev().attr("id",s).show()}r.addClass("placeholder"),r[0].value=r.attr("placeholder")}else r.removeClass("placeholder")}var r="placeholder"in t.createElement("input"),i="placeholder"in t.createElement("textarea"),s=n.fn,o=n.valHooks,u,a;r&&i?(a=s.placeholder=function(){return this},a.input=a.textarea=!0):(a=s.placeholder=function(){var e=this;return e.filter((r?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":l,"blur.placeholder":c}).data("placeholder-enabled",!0).trigger("blur.placeholder"),e},a.input=r,a.textarea=i,u={get:function(e){var t=n(e);return t.data("placeholder-enabled")&&t.hasClass("placeholder")?"":e.value},set:function(e,r){var i=n(e);return i.data("placeholder-enabled")?(r==""?(e.value=r,e!=t.activeElement&&c.call(e)):i.hasClass("placeholder")?l.call(e,!0,r)||(e.value=r):e.value=r,i):e.value=r}},r||(o.input=u),i||(o.textarea=u),n(function(){n(t).delegate("form","submit.placeholder",function(){var e=n(".placeholder",this).each(l);setTimeout(function(){e.each(c)},10)})}),n(e).bind("beforeunload.placeholder",function(){n(".placeholder").each(function(){this.value=""})}))}(this,document,Foundation.zj),function(e,t,n,r){"use strict";Foundation.libs.forms={name:"forms",version:"4.0.4",settings:{disable_class:"no-custom"},init:function(t,n,r){return this.scope=t||this.scope,typeof n=="object"&&e.extend(!0,this.settings,n),typeof n!="string"?(this.settings.init||this.events(),this.assemble(),this.settings.init):this[n].call(this,r)},assemble:function(){e('form.custom input[type="radio"]',e(this.scope)).not('[data-customforms="disabled"]').each(this.append_custom_markup),e('form.custom input[type="checkbox"]',e(this.scope)).not('[data-customforms="disabled"]').each(this.append_custom_markup),e("form.custom select",e(this.scope)).not('[data-customforms="disabled"]').each(this.append_custom_select)},events:function(){var r=this;e(this.scope).on("click.fndtn.forms","form.custom span.custom.checkbox",function(t){t.preventDefault(),t.stopPropagation(),r.toggle_checkbox(e(this))}).on("click.fndtn.forms","form.custom span.custom.radio",function(t){t.preventDefault(),t.stopPropagation(),r.toggle_radio(e(this))}).on("change.fndtn.forms",'form.custom select:not([data-customforms="disabled"])',function(t){r.refresh_custom_select(e(this))}).on("click.fndtn.forms","form.custom label",function(t){var n=e("#"+r.escape(e(this).attr("for"))+':not([data-customforms="disabled"])'),i,s;n.length!==0&&(n.attr("type")==="checkbox"?(t.preventDefault(),i=e(this).find("span.custom.checkbox"),i.length==0&&(i=n.add(this).siblings("span.custom.checkbox").first()),r.toggle_checkbox(i)):n.attr("type")==="radio"&&(t.preventDefault(),s=e(this).find("span.custom.radio"),s.length==0&&(s=n.add(this).siblings("span.custom.radio").first()),r.toggle_radio(s)))}).on("click.fndtn.forms","form.custom div.custom.dropdown a.current, form.custom div.custom.dropdown a.selector",function(t){var n=e(this),i=n.closest("div.custom.dropdown"),s=i.prev();i.hasClass("open")||e(r.scope).trigger("click"),t.preventDefault();if(!1===s.is(":disabled"))return i.toggleClass("open"),i.hasClass("open")?e(r.scope).on("click.fndtn.forms.customdropdown",function(){i.removeClass("open"),e(r.scope).off(".fndtn.forms.customdropdown")}):e(r.scope).on(".fndtn.forms.customdropdown"),!1}).on("click.fndtn.forms touchend.fndtn.forms","form.custom div.custom.dropdown li",function(t){var n=e(this),r=n.closest("div.custom.dropdown"),i=r.prev(),s=0;t.preventDefault(),t.stopPropagation();if(!e(this).hasClass("disabled")){e("div.dropdown").not(r).removeClass("open");var o=n.closest("ul").find("li.selected");o.removeClass("selected"),n.addClass("selected"),r.removeClass("open").find("a.current").html(n.html()),n.closest("ul").find("li").each(function(e){n[0]==this&&(s=e)}),i[0].selectedIndex=s,i.data("prevalue",o.html()),i.trigger("change")}}),e(t).on("keydown",function(t){var r=n.activeElement,i=e(".custom.dropdown.open");if(i.length>0){t.preventDefault(),t.which===13&&i.find("li.selected").trigger("click");if(t.which===38){var s=i.find("li.selected"),o=s.prev(":not(.disabled)");o.length>0&&(s.removeClass("selected"),o.addClass("selected"))}else if(t.which===40){var s=i.find("li.selected"),u=s.next(":not(.disabled)");u.length>0&&(s.removeClass("selected"),u.addClass("selected"))}}}),this.settings.init=!0},append_custom_markup:function(t,n){var r=e(n).hide(),i=r.attr("type"),s=r.next("span.custom."+i);s.length===0&&(s=e('<span class="custom '+i+'"></span>').insertAfter(r)),s.toggleClass("checked",r.is(":checked")),s.toggleClass("disabled",r.is(":disabled"))},append_custom_select:function(t,n){var r=Foundation.libs.forms,i=e(n),s=i.next("div.custom.dropdown"),o=s.find("ul"),u=s.find(".current"),a=s.find(".selector"),f=i.find("option"),l=f.filter(":selected"),c=i.attr("class")?i.attr("class").split(" "):[],h=0,p="",d,v=!1;if(i.hasClass(r.settings.disable_class))return;if(s.length===0){var m=i.hasClass("small")?"small":i.hasClass("medium")?"medium":i.hasClass("large")?"large":i.hasClass("expand")?"expand":"";s=e('<div class="'+["custom","dropdown",m].concat(c).filter(function(e,t,n){return e==""?!1:n.indexOf(e)==t}).join(" ")+'"><a href="#" class="selector"></a><ul /></div>'),a=s.find(".selector"),o=s.find("ul"),p=f.map(function(){return"<li>"+e(this).html()+"</li>"}).get().join(""),o.append(p),v=s.prepend('<a href="#" class="current">'+l.html()+"</a>").find(".current"),i.after(s).hide()}else p=f.map(function(){return"<li>"+e(this).html()+"</li>"}).get().join(""),o.html("").append(p);s.toggleClass("disabled",i.is(":disabled")),d=o.find("li"),f.each(function(t){this.selected&&(d.eq(t).addClass("selected"),v&&v.html(e(this).html())),e(this).is(":disabled")&&d.eq(t).addClass("disabled")});if(!s.is(".small, .medium, .large, .expand")){s.addClass("open");var r=Foundation.libs.forms;r.hidden_fix.adjust(o),h=r.outerWidth(d)>h?r.outerWidth(d):h,Foundation.libs.forms.hidden_fix.reset(),s.removeClass("open")}},refresh_custom_select:function(t){var n=this,r=0,i=t.next(),s=t.find("option");i.find("ul").html(""),s.each(function(){var t=e("<li>"+e(this).html()+"</li>");i.find("ul").append(t)}),s.each(function(t){this.selected&&(i.find("li").eq(t).addClass("selected"),i.find(".current").html(e(this).html())),e(this).is(":disabled")&&i.find("li").eq(t).addClass("disabled")}),i.removeAttr("style").find("ul").removeAttr("style"),i.find("li").each(function(){i.addClass("open"),n.outerWidth(e(this))>r&&(r=n.outerWidth(e(this))),i.removeClass("open")})},toggle_checkbox:function(e){var t=e.prev(),n=t[0];!1===t.is(":disabled")&&(n.checked=n.checked?!1:!0,e.toggleClass("checked"),t.trigger("change"))},toggle_radio:function(e){var t=e.prev(),n=t.closest("form.custom"),r=t[0];!1===t.is(":disabled")&&(n.find('input[type="radio"][name="'+this.escape(t.attr("name"))+'"]').next().not(e).removeClass("checked"),e.hasClass("checked")||e.toggleClass("checked"),r.checked=e.hasClass("checked"),t.trigger("change"))},escape:function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},hidden_fix:{tmp:[],hidden:null,adjust:function(t){var n=this;n.hidden=t.parents().andSelf().filter(":hidden"),n.hidden.each(function(){var t=e(this);n.tmp.push(t.attr("style")),t.css({visibility:"hidden",display:"block"})})},reset:function(){var t=this;t.hidden.each(function(n){var i=e(this),s=t.tmp[n];s===r?i.removeAttr("style"):i.attr("style",s)}),t.tmp=[],t.hidden=null}},off:function(){e(this.scope).off(".fndtn.forms")}}}(Foundation.zj,this,this.document),function(e,t,n,r){"use strict";Foundation.libs.alerts={name:"alerts",version:"4.0.0",settings:{speed:300,callback:function(){}},init:function(t,n,r){return this.scope=t||this.scope,typeof n=="object"&&e.extend(!0,this.settings,n),typeof n!="string"?(this.settings.init||this.events(),this.settings.init):this[n].call(this,r)},events:function(){var t=this;e(this.scope).on("click.fndtn.alerts","[data-alert] a.close",function(n){n.preventDefault(),e(this).closest("[data-alert]").fadeOut(t.speed,function(){e(this).remove(),t.settings.callback()})}),this.settings.init=!0},off:function(){e(this.scope).off(".fndtn.alerts")}}}(Foundation.zj,this,this.document),function(e,t,n,r){"use strict";Foundation.libs.magellan={name:"magellan",version:"4.0.0",settings:{activeClass:"active"},init:function(t,n,r){return this.scope=t||this.scope,Foundation.inherit(this,"data_options"),typeof n=="object"&&e.extend(!0,this.settings,n),typeof n!="string"?(this.settings.init||(this.fixed_magellan=e("[data-magellan-expedition]"),this.set_threshold(),this.last_destination=e("[data-magellan-destination]").last(),this.events()),this.settings.init):this[n].call(this,r)},events:function(){var n=this;e(this.scope).on("arrival.fndtn.magellan","[data-magellan-arrival]",function(t){var r=e(this),i=r.closest("[data-magellan-expedition]"),s=i.attr("data-magellan-active-class")||n.settings.activeClass;r.closest("[data-magellan-expedition]").find("[data-magellan-arrival]").not(r).removeClass(s),r.addClass(s)}),this.fixed_magellan.on("update-position.fndtn.magellan",function(){var t=e(this)}).trigger("update-position"),e(t).on("resize.fndtn.magellan",function(){this.fixed_magellan.trigger("update-position")}.bind(this)).on("scroll.fndtn.magellan",function(){var r=e(t).scrollTop();n.fixed_magellan.each(function(){var t=e(this);typeof t.data("magellan-top-offset")=="undefined"&&t.data("magellan-top-offset",t.offset().top),typeof t.data("magellan-fixed-position")=="undefined"&&t.data("magellan-fixed-position",!1);var i=r+n.settings.threshold>t.data("magellan-top-offset"),s=t.attr("data-magellan-top-offset");t.data("magellan-fixed-position")!=i&&(t.data("magellan-fixed-position",i),i?t.css({position:"fixed",top:0}):t.css({position:"",top:""}),i&&typeof s!="undefined"&&s!=0&&t.css({position:"fixed",top:s+"px"}))})}),this.last_destination.length>0&&e(t).on("scroll.fndtn.magellan",function(r){var i=e(t).scrollTop(),s=i+e(t).height(),o=Math.ceil(n.last_destination.offset().top);e("[data-magellan-destination]").each(function(){var t=e(this),r=t.attr("data-magellan-destination"),u=t.offset().top-i;u<=n.settings.threshold&&e("[data-magellan-arrival='"+r+"']").trigger("arrival"),s>=e(n.scope).height()&&o>i&&o<s&&e("[data-magellan-arrival]").last().trigger("arrival")})}),this.settings.init=!0},set_threshold:function(){this.settings.threshold||(this.settings.threshold=this.fixed_magellan.length>0?this.outerHeight(this.fixed_magellan,!0):0)},off:function(){e(this.scope).off(".fndtn.magellan")}}}(Foundation.zj,this,this.document),function(e,t,n,r){"use strict";Foundation.libs.reveal={name:"reveal",version:"4.1.2",locked:!1,settings:{animation:"fadeAndPop",animationSpeed:250,closeOnBackgroundClick:!0,dismissModalClass:"close-reveal-modal",bgClass:"reveal-modal-bg",open:function(){},opened:function(){},close:function(){},closed:function(){},bg:e(".reveal-modal-bg"),css:{open:{opacity:0,visibility:"visible",display:"block"},close:{opacity:1,visibility:"hidden",display:"none"}}},init:function(t,n,r){return this.scope=t||this.scope,Foundation.inherit(this,"data_options delay"),typeof n=="object"?e.extend(!0,this.settings,n):typeof r!="undefined"&&e.extend(!0,this.settings,r),typeof n!="string"?(this.events(),this.settings.init):this[n].call(this,r)},events:function(){var t=this;return e(this.scope).off(".fndtn.reveal").on("click.fndtn.reveal","[data-reveal-id]",function(n){n.preventDefault(),t.locked||(t.locked=!0,t.open.call(t,e(this)))}).on("click.fndtn.reveal touchend.click.fndtn.reveal",this.close_targets(),function(n){n.preventDefault(),t.locked||(t.locked=!0,t.close.call(t,e(this).closest(".reveal-modal")))}).on("open.fndtn.reveal",".reveal-modal",this.settings.open).on("opened.fndtn.reveal",".reveal-modal",this.settings.opened).on("opened.fndtn.reveal",".reveal-modal",this.open_video).on("close.fndtn.reveal",".reveal-modal",this.settings.close).on("closed.fndtn.reveal",".reveal-modal",this.settings.closed).on("closed.fndtn.reveal",".reveal-modal",this.close_video),!0},open:function(t){if(t)var n=e("#"+t.data("reveal-id"));else var n=e(this.scope);if(!n.hasClass("open")){var r=e(".reveal-modal.open");typeof n.data("css-top")=="undefined"&&n.data("css-top",parseInt(n.css("top"),10)).data("offset",this.cache_offset(n)),n.trigger("open"),r.length<1&&this.toggle_bg(n),this.hide(r,this.settings.css.open),this.show(n,this.settings.css.open)}},close:function(t){var t=t||e(this.scope),n=e(".reveal-modal.open");n.length>0&&(this.locked=!0,t.trigger("close"),this.toggle_bg(t),this.hide(n,this.settings.css.close))},close_targets:function(){var e="."+this.settings.dismissModalClass;return this.settings.closeOnBackgroundClick?e+", ."+this.settings.bgClass:e},toggle_bg:function(t){e(".reveal-modal-bg").length===0&&(this.settings.bg=e("<div />",{"class":this.settings.bgClass}).appendTo("body")),this.settings.bg.filter(":visible").length>0?this.hide(this.settings.bg):this.show(this.settings.bg)},show:function(n,r){if(r){if(/pop/i.test(this.settings.animation)){r.top=e(t).scrollTop()-n.data("offset")+"px";var i={top:e(t).scrollTop()+n.data("css-top")+"px",opacity:1};return this.delay(function(){return n.css(r).animate(i,this.settings.animationSpeed,"linear",function(){this.locked=!1,n.trigger("opened")}.bind(this)).addClass("open")}.bind(this),this.settings.animationSpeed/2)}if(/fade/i.test(this.settings.animation)){var i={opacity:1};return this.delay(function(){return n.css(r).animate(i,this.settings.animationSpeed,"linear",function(){this.locked=!1,n.trigger("opened")}.bind(this)).addClass("open")}.bind(this),this.settings.animationSpeed/2)}return n.css(r).show().css({opacity:1}).addClass("open").trigger("opened")}return/fade/i.test(this.settings.animation)?n.fadeIn(this.settings.animationSpeed/2):n.show()},hide:function(n,r){if(r){if(/pop/i.test(this.settings.animation)){var i={top:-e(t).scrollTop()-n.data("offset")+"px",opacity:0};return this.delay(function(){return n.animate(i,this.settings.animationSpeed,"linear",function(){this.locked=!1,n.css(r).trigger("closed")}.bind(this)).removeClass("open")}.bind(this),this.settings.animationSpeed/2)}if(/fade/i.test(this.settings.animation)){var i={opacity:0};return this.delay(function(){return n.animate(i,this.settings.animationSpeed,"linear",function(){this.locked=!1,n.css(r).trigger("closed")}.bind(this)).removeClass("open")}.bind(this),this.settings.animationSpeed/2)}return n.hide().css(r).removeClass("open").trigger("closed")}return/fade/i.test(this.settings.animation)?n.fadeOut(this.settings.animationSpeed/2):n.hide()},close_video:function(t){var n=e(this).find(".flex-video"),r=n.find("iframe");r.length>0&&(r.attr("data-src",r[0].src),r.attr("src","about:blank"),n.fadeOut(100).hide())},open_video:function(t){var n=e(this).find(".flex-video"),r=n.find("iframe");if(r.length>0){var i=r.attr("data-src");typeof i=="string"&&(r[0].src=r.attr("data-src")),n.show().fadeIn(100)}},cache_offset:function(e){var t=e.show().height()+parseInt(e.css("top"),10);return e.hide(),t},off:function(){e(this.scope).off(".fndtn.reveal")}}}(Foundation.zj,this,this.document),function(e,t,n,r){"use strict";Foundation.libs.topbar={name:"topbar",version:"4.1.2",settings:{index:0,stickyClass:"sticky",custom_back_text:!0,back_text:"Back",init:!1},init:function(n,r,i){var s=this;return typeof r=="object"&&e.extend(!0,this.settings,r),typeof r!="string"?(e(".top-bar").each(function(){s.settings.$w=e(t),s.settings.$topbar=e(this),s.settings.$section=s.settings.$topbar.find("section"),s.settings.$titlebar=s.settings.$topbar.children("ul").first(),s.settings.$topbar.data("index",0);var n=e("<div class='top-bar-js-breakpoint'/>").insertAfter(s.settings.$topbar);s.settings.breakPoint=n.width(),n.remove(),s.assemble(),s.settings.$topbar.parent().hasClass("fixed")&&e("body").css("padding-top",s.outerHeight(s.settings.$topbar))}),s.settings.init||this.events(),this.settings.init):this[r].call(this,i)},events:function(){var n=this,r=this.outerHeight(e(".top-bar"));e(this.scope).on("click.fndtn.topbar",".top-bar .toggle-topbar",function(i){var s=e(this).closest(".top-bar"),o=s.find("section, .section"),u=s.children("ul").first();s.data("height")||n.largestUL(),i.preventDefault(),n.breakpoint()&&s.toggleClass("expanded").css("min-height",""),s.hasClass("expanded")?s.parent().hasClass("fixed")&&(s.parent().removeClass("fixed"),s.addClass("fixed"),e("body").css("padding-top","0"),t.scrollTo(0,0)):(n.rtl?(o.css({right:"0%"}),o.find(">.name").css({right:"100%"})):(o.css({left:"0%"}),o.find(">.name").css({left:"100%"})),o.find("li.moved").removeClass("moved"),s.data("index",0),s.hasClass("fixed")&&(s.parent().addClass("fixed"),s.removeClass("fixed"),e("body").css("padding-top",r)))}).on("click.fndtn.topbar",".top-bar .has-dropdown>a",function(t){var r=e(this).closest(".top-bar"),i=r.find("section, .section"),s=r.children("ul").first();(Modernizr.touch||n.breakpoint())&&t.preventDefault();if(n.breakpoint()){var o=e(this),u=o.closest("li");r.data("index",r.data("index")+1),u.addClass("moved"),n.rtl?(i.css({right:-(100*r.data("index"))+"%"}),i.find(">.name").css({right:100*r.data("index")+"%"})):(i.css({left:-(100*r.data("index"))+"%"}),i.find(">.name").css({left:100*r.data("index")+"%"})),o.siblings("ul").height(r.data("height")+n.outerHeight(s,!0)),r.css("min-height",r.data("height")+n.outerHeight(s,!0)*2)}}),e(t).on("resize.fndtn.topbar",function(){n.breakpoint()||e(".top-bar").css("min-height","").removeClass("expanded")}.bind(this)),e(this.scope).on("click.fndtn",".top-bar .has-dropdown .back",function(t){t.preventDefault();var r=e(this),i=r.closest(".top-bar"),s=i.find("section, .section"),o=r.closest("li.moved"),u=o.parent();i.data("index",i.data("index")-1),n.rtl?(s.css({right:-(100*i.data("index"))+"%"}),s.find(">.name").css({right:100*i.data("index")+"%"})):(s.css({left:-(100*i.data("index"))+"%"}),s.find(">.name").css({left:100*i.data("index")+"%"})),i.data("index")===0&&i.css("min-height",0),setTimeout(function(){o.removeClass("moved")},300)})},breakpoint:function(){return e(t).width()<=this.settings.breakPoint||e("html").hasClass("lt-ie9")},assemble:function(){var t=this;this.settings.$section.detach(),this.settings.$section.find(".has-dropdown>a").each(function(){var n=e(this),r=n.siblings(".dropdown"),i=e('<li class="title back js-generated"><h5><a href="#"></a></h5></li>');t.settings.custom_back_text==1?i.find("h5>a").html("« "+t.settings.back_text):i.find("h5>a").html("« "+n.html()),r.prepend(i)}),this.settings.$section.appendTo(this.settings.$topbar),this.sticky()},largestUL:function(){var t=this.settings.$topbar.find("section ul ul"),n=t.first(),r=0,i=this;t.each(function(){e(this).children("li").length>n.children("li").length&&(n=e(this))}),n.children("li").each(function(){r+=i.outerHeight(e(this),!0)}),this.settings.$topbar.data("height",r)},sticky:function(){var n="."+this.settings.stickyClass;if(e(n).length>0){var r=e(n).length?e(n).offset().top:0,i=e(t),s=this.outerHeight(e(".top-bar"));i.scroll(function(){i.scrollTop()>=r?(e(n).addClass("fixed"),e("body").css("padding-top",s)):i.scrollTop()<r&&(e(n).removeClass("fixed"),e("body").css("padding-top","0"))})}},off:function(){e(this.scope).off(".fndtn.topbar"),e(t).off(".fndtn.topbar")}}}(Foundation.zj,this,this.document);
/* ------------------------------------------------------------------------
Class: prettyPhoto
Use: Lightbox clone for jQuery
Author: Stephane Caron (http://www.no-margin-for-errors.com)
Version: 3.1.5
------------------------------------------------------------------------- */
(function (e) {
function t() {
var e = location.href;
hashtag = e.indexOf("#prettyPhoto") !== -1 ? decodeURI(e.substring(e.indexOf("#prettyPhoto") + 1, e.length)) : false;
return hashtag
}
function n() {
if (typeof theRel == "undefined") return;
location.hash = theRel + "/" + rel_index + "/"
}
function r() {
if (location.href.indexOf("#prettyPhoto") !== -1) location.hash = "prettyPhoto"
}
function i(e, t) {
e = e.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var n = "[\\?&]" + e + "=([^&#]*)";
var r = new RegExp(n);
var i = r.exec(t);
return i == null ? "" : i[1]
}
e.prettyPhoto = {
version: "3.1.5"
};
e.fn.prettyPhoto = function (s) {
function g() {
e(".pp_loaderIcon").hide();
projectedTop = scroll_pos["scrollTop"] + (d / 2 - a["containerHeight"] / 2);
if (projectedTop < 0) projectedTop = 0;
$ppt.fadeTo(settings.animation_speed, 1);
$pp_pic_holder.find(".pp_content").animate({
height: a["contentHeight"],
width: a["contentWidth"]
}, settings.animation_speed);
$pp_pic_holder.animate({
top: projectedTop,
left: v / 2 - a["containerWidth"] / 2 < 0 ? 0 : v / 2 - a["containerWidth"] / 2,
width: a["containerWidth"]
}, settings.animation_speed, function () {
$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(a["height"]).width(a["width"]);
$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed);
if (isSet && S(pp_images[set_position]) == "image") {
$pp_pic_holder.find(".pp_hoverContainer").show()
} else {
$pp_pic_holder.find(".pp_hoverContainer").hide()
} if (settings.allow_expand) {
if (a["resized"]) {
e("a.pp_expand,a.pp_contract").show()
} else {
e("a.pp_expand").hide()
}
}
if (settings.autoplay_slideshow && !m && !f) e.prettyPhoto.startSlideshow();
settings.changepicturecallback();
f = true
});
C();
s.ajaxcallback()
}
function y(t) {
$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility", "hidden");
$pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed, function () {
e(".pp_loaderIcon").show();
t()
})
}
function b(t) {
t > 1 ? e(".pp_nav").show() : e(".pp_nav").hide()
}
function w(e, t) {
resized = false;
E(e, t);
imageWidth = e, imageHeight = t;
if ((p > v || h > d) && doresize && settings.allow_resize && !u) {
resized = true, fitting = false;
while (!fitting) {
if (p > v) {
imageWidth = v - 200;
imageHeight = t / e * imageWidth
} else if (h > d) {
imageHeight = d - 200;
imageWidth = e / t * imageHeight
} else {
fitting = true
}
h = imageHeight, p = imageWidth
}
if (p > v || h > d) {
w(p, h)
}
E(imageWidth, imageHeight)
}
return {
width: Math.floor(imageWidth),
height: Math.floor(imageHeight),
containerHeight: Math.floor(h),
containerWidth: Math.floor(p) + settings.horizontal_padding * 2,
contentHeight: Math.floor(l),
contentWidth: Math.floor(c),
resized: resized
}
}
function E(t, n) {
t = parseFloat(t);
n = parseFloat(n);
$pp_details = $pp_pic_holder.find(".pp_details");
$pp_details.width(t);
detailsHeight = parseFloat($pp_details.css("marginTop")) + parseFloat($pp_details.css("marginBottom"));
$pp_details = $pp_details.clone().addClass(settings.theme).width(t).appendTo(e("body")).css({
position: "absolute",
top: -1e4
});
detailsHeight += $pp_details.height();
detailsHeight = detailsHeight <= 34 ? 36 : detailsHeight;
$pp_details.remove();
$pp_title = $pp_pic_holder.find(".ppt");
$pp_title.width(t);
titleHeight = parseFloat($pp_title.css("marginTop")) + parseFloat($pp_title.css("marginBottom"));
$pp_title = $pp_title.clone().appendTo(e("body")).css({
position: "absolute",
top: -1e4
});
titleHeight += $pp_title.height();
$pp_title.remove();
l = n + detailsHeight;
c = t;
h = l + titleHeight + $pp_pic_holder.find(".pp_top").height() + $pp_pic_holder.find(".pp_bottom").height();
p = t
}
function S(e) {
if (e.match(/youtube\.com\/watch/i) || e.match(/youtu\.be/i)) {
return "youtube"
} else if (e.match(/vimeo\.com/i)) {
return "vimeo"
} else if (e.match(/\b.mov\b/i)) {
return "quicktime"
} else if (e.match(/\b.swf\b/i)) {
return "flash"
} else if (e.match(/\biframe=true\b/i)) {
return "iframe"
} else if (e.match(/\bajax=true\b/i)) {
return "ajax"
} else if (e.match(/\bcustom=true\b/i)) {
return "custom"
} else if (e.substr(0, 1) == "#") {
return "inline"
} else {
return "image"
}
}
function x() {
if (doresize && typeof $pp_pic_holder != "undefined") {
scroll_pos = T();
contentHeight = $pp_pic_holder.height(), contentwidth = $pp_pic_holder.width();
projectedTop = d / 2 + scroll_pos["scrollTop"] - contentHeight / 2;
if (projectedTop < 0) projectedTop = 0;
if (contentHeight > d) return;
$pp_pic_holder.css({
top: projectedTop,
left: v / 2 + scroll_pos["scrollLeft"] - contentwidth / 2
})
}
}
function T() {
if (self.pageYOffset) {
return {
scrollTop: self.pageYOffset,
scrollLeft: self.pageXOffset
}
} else if (document.documentElement && document.documentElement.scrollTop) {
return {
scrollTop: document.documentElement.scrollTop,
scrollLeft: document.documentElement.scrollLeft
}
} else if (document.body) {
return {
scrollTop: document.body.scrollTop,
scrollLeft: document.body.scrollLeft
}
}
}
function N() {
d = e(window).height(), v = e(window).width();
if (typeof $pp_overlay != "undefined") $pp_overlay.height(e(document).height()).width(v)
}
function C() {
if (isSet && settings.overlay_gallery && S(pp_images[set_position]) == "image") {
itemWidth = 52 + 5;
navWidth = settings.theme == "facebook" || settings.theme == "pp_default" ? 50 : 30;
itemsPerPage = Math.floor((a["containerWidth"] - 100 - navWidth) / itemWidth);
itemsPerPage = itemsPerPage < pp_images.length ? itemsPerPage : pp_images.length;
totalPage = Math.ceil(pp_images.length / itemsPerPage) - 1;
if (totalPage == 0) {
navWidth = 0;
$pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").hide()
} else {
$pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").show()
}
galleryWidth = itemsPerPage * itemWidth;
fullGalleryWidth = pp_images.length * itemWidth;
$pp_gallery.css("margin-left", -(galleryWidth / 2 + navWidth / 2)).find("div:first").width(galleryWidth + 5).find("ul").width(fullGalleryWidth).find("li.selected").removeClass("selected");
goToPage = Math.floor(set_position / itemsPerPage) < totalPage ? Math.floor(set_position / itemsPerPage) : totalPage;
e.prettyPhoto.changeGalleryPage(goToPage);
$pp_gallery_li.filter(":eq(" + set_position + ")").addClass("selected")
} else {
$pp_pic_holder.find(".pp_content").unbind("mouseenter mouseleave")
}
}
function k(t) {
if (settings.social_tools) facebook_like_link = settings.social_tools.replace("{location_href}", encodeURIComponent(location.href));
settings.markup = settings.markup.replace("{pp_social}", "");
e("body").append(settings.markup);
$pp_pic_holder = e(".pp_pic_holder"), $ppt = e(".ppt"), $pp_overlay = e("div.pp_overlay");
if (isSet && settings.overlay_gallery) {
currentGalleryPage = 0;
toInject = "";
for (var n = 0; n < pp_images.length; n++) {
if (!pp_images[n].match(/\b(jpg|jpeg|png|gif)\b/gi)) {
classname = "default";
img_src = ""
} else {
classname = "";
img_src = pp_images[n]
}
toInject += "<li class='" + classname + "'><a href='#'><img src='" + img_src + "' width='50' alt='' /></a></li>"
}
toInject = settings.gallery_markup.replace(/{gallery}/g, toInject);
$pp_pic_holder.find("#pp_full_res").after(toInject);
$pp_gallery = e(".pp_pic_holder .pp_gallery"), $pp_gallery_li = $pp_gallery.find("li");
$pp_gallery.find(".pp_arrow_next").click(function () {
e.prettyPhoto.changeGalleryPage("next");
e.prettyPhoto.stopSlideshow();
return false
});
$pp_gallery.find(".pp_arrow_previous").click(function () {
e.prettyPhoto.changeGalleryPage("previous");
e.prettyPhoto.stopSlideshow();
return false
});
$pp_pic_holder.find(".pp_content").hover(function () {
$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()
}, function () {
$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()
});
itemWidth = 52 + 5;
$pp_gallery_li.each(function (t) {
e(this).find("a").click(function () {
e.prettyPhoto.changePage(t);
e.prettyPhoto.stopSlideshow();
return false
})
})
}
if (settings.slideshow) {
$pp_pic_holder.find(".pp_nav").prepend('<a href="#" class="pp_play">Play</a>');
$pp_pic_holder.find(".pp_nav .pp_play").click(function () {
e.prettyPhoto.startSlideshow();
return false
})
}
$pp_pic_holder.attr("class", "pp_pic_holder " + settings.theme);
$pp_overlay.css({
opacity: 0,
height: e(document).height(),
width: e(window).width()
}).bind("click", function () {
if (!settings.modal) e.prettyPhoto.close()
});
e("a.pp_close").bind("click", function () {
e.prettyPhoto.close();
return false
});
if (settings.allow_expand) {
e("a.pp_expand").bind("click", function (t) {
if (e(this).hasClass("pp_expand")) {
e(this).removeClass("pp_expand").addClass("pp_contract");
doresize = false
} else {
e(this).removeClass("pp_contract").addClass("pp_expand");
doresize = true
}
y(function () {
e.prettyPhoto.open()
});
return false
})
}
$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click", function () {
e.prettyPhoto.changePage("previous");
e.prettyPhoto.stopSlideshow();
return false
});
$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click", function () {
e.prettyPhoto.changePage("next");
e.prettyPhoto.stopSlideshow();
return false
});
x()
}
s = jQuery.extend({
hook: "rel",
animation_speed: "fast",
ajaxcallback: function () {},
slideshow: 5e3,
autoplay_slideshow: false,
opacity: .8,
show_title: true,
allow_resize: true,
allow_expand: true,
default_width: 500,
default_height: 344,
counter_separator_label: "/",
theme: "pp_default",
horizontal_padding: 20,
hideflash: false,
wmode: "opaque",
autoplay: true,
modal: false,
deeplinking: true,
overlay_gallery: true,
overlay_gallery_max: 30,
keyboard_shortcuts: true,
changepicturecallback: function () {},
callback: function () {},
ie6_fallback: true,
markup: '<div class="pp_pic_holder"> <div class="ppt"> </div> <div class="pp_top"> <div class="pp_left"></div> <div class="pp_middle"></div> <div class="pp_right"></div> </div> <div class="pp_content_container"> <div class="pp_left"> <div class="pp_right"> <div class="pp_content"> <div class="pp_loaderIcon"></div> <div class="pp_fade"> <a href="#" class="pp_expand" title="Expand the image">Expand</a> <div class="pp_hoverContainer"> <a class="pp_next" href="#">next</a> <a class="pp_previous" href="#">previous</a> </div> <div id="pp_full_res"></div> <div class="pp_details"> <div class="pp_nav"> <a href="#" class="pp_arrow_previous">Previous</a> <p class="currentTextHolder">0/0</p> <a href="#" class="pp_arrow_next">Next</a> </div> <p class="pp_description"></p> <div class="pp_social">{pp_social}</div> <a class="pp_close" href="#">Close</a> </div> </div> </div> </div> </div> </div> <div class="pp_bottom"> <div class="pp_left"></div> <div class="pp_middle"></div> <div class="pp_right"></div> </div> </div> <div class="pp_overlay"></div>',
gallery_markup: '<div class="pp_gallery"> <a href="#" class="pp_arrow_previous">Previous</a> <div> <ul> {gallery} </ul> </div> <a href="#" class="pp_arrow_next">Next</a> </div>',
image_markup: '<img id="fullResImage" src="{path}" />',
flash_markup: '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>',
quicktime_markup: '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>',
iframe_markup: '<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>',
inline_markup: '<div class="pp_inline">{content}</div>',
custom_markup: "",
// social_tools: '<div class="twitter"><a href="http://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="facebook"><iframe src="//www.facebook.com/plugins/like.php?locale=en_US&href={location_href}&layout=button_count&show_faces=true&width=500&action=like&font&colorscheme=light&height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe></div>'
}, s);
var o = this,
u = false,
a, f, l, c, h, p, d = e(window).height(),
v = e(window).width(),
m;
doresize = true, scroll_pos = T();
e(window).unbind("resize.prettyphoto").bind("resize.prettyphoto", function () {
x();
N()
});
if (s.keyboard_shortcuts) {
e(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto", function (t) {
if (typeof $pp_pic_holder != "undefined") {
if ($pp_pic_holder.is(":visible")) {
switch (t.keyCode) {
case 37:
e.prettyPhoto.changePage("previous");
t.preventDefault();
break;
case 39:
e.prettyPhoto.changePage("next");
t.preventDefault();
break;
case 27:
if (!settings.modal) e.prettyPhoto.close();
t.preventDefault();
break
}
}
}
})
}
e.prettyPhoto.initialize = function () {
settings = s;
if (settings.theme == "pp_default") settings.horizontal_padding = 16;
theRel = e(this).attr(settings.hook);
galleryRegExp = /\[(?:.*)\]/;
isSet = galleryRegExp.exec(theRel) ? true : false;
pp_images = isSet ? jQuery.map(o, function (t, n) {
if (e(t).attr(settings.hook).indexOf(theRel) != -1) return e(t).attr("href")
}) : e.makeArray(e(this).attr("href"));
pp_titles = isSet ? jQuery.map(o, function (t, n) {
if (e(t).attr(settings.hook).indexOf(theRel) != -1) return e(t).find("img").attr("alt") ? e(t).find("img").attr("alt") : ""
}) : e.makeArray(e(this).find("img").attr("alt"));
pp_descriptions = isSet ? jQuery.map(o, function (t, n) {
if (e(t).attr(settings.hook).indexOf(theRel) != -1) return e(t).attr("title") ? e(t).attr("title") : ""
}) : e.makeArray(e(this).attr("title"));
if (pp_images.length > settings.overlay_gallery_max) settings.overlay_gallery = false;
set_position = jQuery.inArray(e(this).attr("href"), pp_images);
rel_index = isSet ? set_position : e("a[" + settings.hook + "^='" + theRel + "']").index(e(this));
k(this);
if (settings.allow_resize) e(window).bind("scroll.prettyphoto", function () {
x()
});
e.prettyPhoto.open();
return false
};
e.prettyPhoto.open = function (t) {
if (typeof settings == "undefined") {
settings = s;
pp_images = e.makeArray(arguments[0]);
pp_titles = arguments[1] ? e.makeArray(arguments[1]) : e.makeArray("");
pp_descriptions = arguments[2] ? e.makeArray(arguments[2]) : e.makeArray("");
isSet = pp_images.length > 1 ? true : false;
set_position = arguments[3] ? arguments[3] : 0;
k(t.target)
}
if (settings.hideflash) e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility", "hidden");
b(e(pp_images).size());
e(".pp_loaderIcon").show();
if (settings.deeplinking) n();
if (settings.social_tools) {
facebook_like_link = settings.social_tools.replace("{location_href}", encodeURIComponent(location.href));
$pp_pic_holder.find(".pp_social").html(facebook_like_link)
}
if ($ppt.is(":hidden")) $ppt.css("opacity", 0).show();
$pp_overlay.show().fadeTo(settings.animation_speed, settings.opacity);
$pp_pic_holder.find(".currentTextHolder").text(set_position + 1 + settings.counter_separator_label + e(pp_images).size());
if (typeof pp_descriptions[set_position] != "undefined" && pp_descriptions[set_position] != "") {
$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position]))
} else {
$pp_pic_holder.find(".pp_description").hide()
}
movie_width = parseFloat(i("width", pp_images[set_position])) ? i("width", pp_images[set_position]) : settings.default_width.toString();
movie_height = parseFloat(i("height", pp_images[set_position])) ? i("height", pp_images[set_position]) : settings.default_height.toString();
u = false;
if (movie_height.indexOf("%") != -1) {
movie_height = parseFloat(e(window).height() * parseFloat(movie_height) / 100 - 150);
u = true
}
if (movie_width.indexOf("%") != -1) {
movie_width = parseFloat(e(window).width() * parseFloat(movie_width) / 100 - 150);
u = true
}
$pp_pic_holder.fadeIn(function () {
settings.show_title && pp_titles[set_position] != "" && typeof pp_titles[set_position] != "undefined" ? $ppt.html(unescape(pp_titles[set_position])) : $ppt.html(" ");
imgPreloader = "";
skipInjection = false;
switch (S(pp_images[set_position])) {
case "image":
imgPreloader = new Image;
nextImage = new Image;
if (isSet && set_position < e(pp_images).size() - 1) nextImage.src = pp_images[set_position + 1];
prevImage = new Image;
if (isSet && pp_images[set_position - 1]) prevImage.src = pp_images[set_position - 1];
$pp_pic_holder.find("#pp_full_res")[0].innerHTML = settings.image_markup.replace(/{path}/g, pp_images[set_position]);
imgPreloader.onload = function () {
a = w(imgPreloader.width, imgPreloader.height);
g()
};
imgPreloader.onerror = function () {
alert("Image cannot be loaded. Make sure the path is correct and image exist.");
e.prettyPhoto.close()
};
imgPreloader.src = pp_images[set_position];
break;
case "youtube":
a = w(movie_width, movie_height);
movie_id = i("v", pp_images[set_position]);
if (movie_id == "") {
movie_id = pp_images[set_position].split("youtu.be/index.html");
movie_id = movie_id[1];
if (movie_id.indexOf("?") > 0) movie_id = movie_id.substr(0, movie_id.indexOf("?"));
if (movie_id.indexOf("&") > 0) movie_id = movie_id.substr(0, movie_id.indexOf("&"))
}
movie = "http://www.youtube.com/embed/" + movie_id;
i("rel", pp_images[set_position]) ? movie += "?rel=" + i("rel", pp_images[set_position]) : movie += "?rel=1";
if (settings.autoplay) movie += "&autoplay=1";
toInject = settings.iframe_markup.replace(/{width}/g, a["width"]).replace(/{height}/g, a["height"]).replace(/{wmode}/g, settings.wmode).replace(/{path}/g, movie);
break;
case "vimeo":
a = w(movie_width, movie_height);
movie_id = pp_images[set_position];
var t = /http(s?):\/\/(www\.)?vimeo.com\/(\d+)/;
var n = movie_id.match(t);
movie = "http://player.vimeo.com/video/" + n[3] + "?title=0&byline=0&portrait=0";
if (settings.autoplay) movie += "&autoplay=1;";
vimeo_width = a["width"] + "/embed/?moog_width=" + a["width"];
toInject = settings.iframe_markup.replace(/{width}/g, vimeo_width).replace(/{height}/g, a["height"]).replace(/{path}/g, movie);
break;
case "quicktime":
a = w(movie_width, movie_height);
a["height"] += 15;
a["contentHeight"] += 15;
a["containerHeight"] += 15;
toInject = settings.quicktime_markup.replace(/{width}/g, a["width"]).replace(/{height}/g, a["height"]).replace(/{wmode}/g, settings.wmode).replace(/{path}/g, pp_images[set_position]).replace(/{autoplay}/g, settings.autoplay);
break;
case "flash":
a = w(movie_width, movie_height);
flash_vars = pp_images[set_position];
flash_vars = flash_vars.substring(pp_images[set_position].indexOf("flashvars") + 10, pp_images[set_position].length);
filename = pp_images[set_position];
filename = filename.substring(0, filename.indexOf("?"));
toInject = settings.flash_markup.replace(/{width}/g, a["width"]).replace(/{height}/g, a["height"]).replace(/{wmode}/g, settings.wmode).replace(/{path}/g, filename + "?" + flash_vars);
break;
case "iframe":
a = w(movie_width, movie_height);
frame_url = pp_images[set_position];
frame_url = frame_url.substr(0, frame_url.indexOf("iframe") - 1);
toInject = settings.iframe_markup.replace(/{width}/g, a["width"]).replace(/{height}/g, a["height"]).replace(/{path}/g, frame_url);
break;
case "ajax":
doresize = false;
a = w(movie_width, movie_height);
doresize = true;
skipInjection = true;
e.get(pp_images[set_position], function (e) {
toInject = settings.inline_markup.replace(/{content}/g, e);
$pp_pic_holder.find("#pp_full_res")[0].innerHTML = toInject;
g()
});
break;
case "custom":
a = w(movie_width, movie_height);
toInject = settings.custom_markup;
break;
case "inline":
myClone = e(pp_images[set_position]).clone().append('<br clear="all" />').css({
width: settings.default_width
}).wrapInner('<div id="pp_full_res"><div class="pp_inline"></div></div>').appendTo(e("body")).show();
doresize = false;
a = w(e(myClone).width(), e(myClone).height());
doresize = true;
e(myClone).remove();
toInject = settings.inline_markup.replace(/{content}/g, e(pp_images[set_position]).html());
break
}
if (!imgPreloader && !skipInjection) {
$pp_pic_holder.find("#pp_full_res")[0].innerHTML = toInject;
g()
}
});
return false
};
e.prettyPhoto.changePage = function (t) {
currentGalleryPage = 0;
if (t == "previous") {
set_position--;
if (set_position < 0) set_position = e(pp_images).size() - 1
} else if (t == "next") {
set_position++;
if (set_position > e(pp_images).size() - 1) set_position = 0
} else {
set_position = t
}
rel_index = set_position;
if (!doresize) doresize = true;
if (settings.allow_expand) {
e(".pp_contract").removeClass("pp_contract").addClass("pp_expand")
}
y(function () {
e.prettyPhoto.open()
})
};
e.prettyPhoto.changeGalleryPage = function (e) {
if (e == "next") {
currentGalleryPage++;
if (currentGalleryPage > totalPage) currentGalleryPage = 0
} else if (e == "previous") {
currentGalleryPage--;
if (currentGalleryPage < 0) currentGalleryPage = totalPage
} else {
currentGalleryPage = e
}
slide_speed = e == "next" || e == "previous" ? settings.animation_speed : 0;
slide_to = currentGalleryPage * itemsPerPage * itemWidth;
$pp_gallery.find("ul").animate({
left: -slide_to
}, slide_speed)
};
e.prettyPhoto.startSlideshow = function () {
if (typeof m == "undefined") {
$pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function () {
e.prettyPhoto.stopSlideshow();
return false
});
m = setInterval(e.prettyPhoto.startSlideshow, settings.slideshow)
} else {
e.prettyPhoto.changePage("next")
}
};
e.prettyPhoto.stopSlideshow = function () {
$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function () {
e.prettyPhoto.startSlideshow();
return false
});
clearInterval(m);
m = undefined
};
e.prettyPhoto.close = function () {
if ($pp_overlay.is(":animated")) return;
e.prettyPhoto.stopSlideshow();
$pp_pic_holder.stop().find("object,embed").css("visibility", "hidden");
e("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed, function () {
e(this).remove()
});
$pp_overlay.fadeOut(settings.animation_speed, function () {
if (settings.hideflash) e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility", "visible");
e(this).remove();
e(window).unbind("scroll.prettyphoto");
r();
settings.callback();
doresize = true;
f = false;
delete settings
})
};
if (!pp_alreadyInitialized && t()) {
pp_alreadyInitialized = true;
hashIndex = t();
hashRel = hashIndex;
hashIndex = hashIndex.substring(hashIndex.indexOf("http://themes.evgenyfireform.com/") + 1, hashIndex.length - 1);
hashRel = hashRel.substring(0, hashRel.indexOf("http://themes.evgenyfireform.com/"));
setTimeout(function () {
e("a[" + s.hook + "^='" + hashRel + "']:eq(" + hashIndex + ")").trigger("click")
}, 50)
}
return this.unbind("click.prettyphoto").bind("click.prettyphoto", e.prettyPhoto.initialize)
};
})(jQuery);
var pp_alreadyInitialized = false
/* minifued just for pirates */
var ef = jQuery;
ef.noConflict();
ef(document).foundation();
var $mainSlider = ef(".fullwidthbanner");
var $commonSlider = ef(".fullwidthbanner1");
var $ajaxPages = 2;
var $pageName = "portfolio-items-";
var $icontainer = ef(".ef-portfolio-wrap");
var $portfolioFilteritem = ef(".ef-portfolio-filter a");
var $portfolioFilterli = ef(".ef-portfolio-filter li");
var $currentClass = ef(".ef-currentclass");
var $addItems = ef("#ef-addnewitems");
var $autoPlay1 = false;
var $worksCarousel = ef(".ef-carousel");
var $easing1 = "easeInOutExpo";
var $autoPlay2 = false;
var $clientsCarousel = ef(".ef-clients-carousel");
var $easing2 = "easeInOutExpo";
var $autoPlay3 = false;
var $blogCarousel = ef(".ef-simple-carousel");
var $easing3 = "easeInOutExpo";
var $autoPlay5 = false;
var $blogPostCarousel = ef(".ef-blogpost-carousel");
var $easing5 = "easeInOutExpo";
var $autoPlay4 = {
pauseOnHover: "resume"
};
var $fadeCarousel = ef(".ef-simple-carousel-2");
var $easing4 = "linear";
var $colHeight = ef(".ef-services > .columns");
var $lightB = ef("a[data-gal^='lb']");
var $flickr = ef(".jflickr");
var $amount = 6;
var $flickrId = "36587311@N08";
var $username = "evgenyfireform";
//var $tweetCount = 1;
//var $twt = ef(".ef-twitter");
var $username1 = "evgenyfireform";
//var $tweetCount1 = 3;
//var $twt1 = ef(".ef-twitter-widget1");
var $accClass = ef(".ef-uiaccordion");
var $toggleClass = ef(".ef-toggle");
var $tipsySocial = ef("a.ef-tipsy-n");
var $tipsyContent = ef("a.ef-tipsy-s");
var $progressB = ef(".ef-progress-bar div");
var $formVal = ef(".ef-form");
var $nameField = ".ef-name";
var $emailField = ".ef-email";
var $messageField = ".ef-message";
var $zoomLevel = 15;
var markers = [{
position: "59.32893000000001,18.064910000000054",
title: "1st Location: Stockholm, Sweden"
}, {
position: "35.6894875,139.69170639999993",
title: "2d Location: Tokyo, Japan"
}, {
position: "13.7234186, 100.47623190000002",
title: "3d Location: Bangkok, Thailand"
}, {
position: "51.508129,-0.12800500000003012",
title: "4th Location: London, Great Britain"
}, {
position: "40.7143528,-74.0059731",
title: "5th Location: New York, USA"
}, {
position: "48.856614,2.3522219000000177",
title: "6th Location: Paris, France"
}, {
position: "34.0522342,-118.2436849",
title: "7th Location: Los Angeles, USA"
}, {
position: "55.75,37.616666699999996",
title: "8th Location: Moskow, Russia"
}
];
var $totop = true;
ef(document).ready(function () {
if (ef.fn.cssOriginal != undefined) {
ef.fn.css = ef.fn.cssOriginal
}
$mainSlider.revolution({
delay: 5500,
startwidth: 1171,
startheight: 376,
onHoverStop: "on",
touchenabled: "on",
thumbWidth: 100,
thumbHeight: 50,
thumbAmount: 5,
hideThumbs: 1,
navigationArrows: "solo",
navigationHAlign: "center",
soloArrowLeftValign: "center",
soloArrowRightValign: "center",
touchenabled: "on",
stopAtSlide: -1,
stopAfterLoops: -1,
hideCaptionAtLimit: 0,
hideAllCaptionAtLilmit: 0,
hideSliderAtLimit: 0,
fullWidth: "on"
});
$commonSlider.revolution({
delay: 5500,
startwidth: 1149,
startheight: 195,
onHoverStop: "on",
touchenabled: "on",
hideThumbs: 1,
navigationArrows: "solo",
navigationType: "none",
navigationHAlign: "center",
soloArrowLeftValign: "center",
soloArrowRightValign: "center",
soloArrowLeftHOffset: -8,
soloArrowRightHOffset: -8,
touchenabled: "on",
stopAtSlide: -1,
stopAfterLoops: -1,
hideCaptionAtLimit: 0,
hideAllCaptionAtLilmit: 0,
hideSliderAtLimit: 0,
fullWidth: "off",
shadow: 0
});
ef("input, textarea").placeholder();
if (!Modernizr.svg) {
ef('img[src*="svg"]').attr("src", function () {
return ef(this).attr("src").replace(".svg", ".png")
})
}
$clientsCarousel.carouFredSel({
width: "100%",
transition: true,
height: "variable",
scroll: {
duration: 800,
timeoutDuration: 600,
easing: $easing2
},
auto: $autoPlay2,
prev: "#ef-prev1",
next: "#ef-next1",
swipe: {
onTouch: true
}
});
$blogCarousel.carouFredSel({
responsive: true,
transition: true,
height: "variable",
circular: false,
auto: $autoPlay3,
scroll: {
duration: 800,
timeoutDuration: 600,
easing: $easing3
},
swipe: {
onTouch: true
},
pagination: {
container: ".carousel-pagintation-1"
},
item: {
height: "auto"
}
});
$blogPostCarousel.carouFredSel({
responsive: true,
transition: true,
prev: ".post-slider-prev",
next: ".post-slider-next",
scroll: {
fx: "crossfade",
duration: 500,
timeoutDuration: 3000,
easing: $easing4
},
circular: false,
infinite: true,
auto: $autoPlay5,
swipe: {
onTouch: true
},
items: {
height: "variable"
}
});
$fadeCarousel.carouFredSel({
responsive: true,
transition: true,
scroll: {
fx: "crossfade",
duration: 500,
timeoutDuration: 3000,
easing: $easing4
},
circular: false,
infinite: true,
auto: $autoPlay4,
swipe: {
onTouch: true
},
pagination: {
container: ".carousel-pagintation-2"
},
items: {
height: "variable"
}
});
$lightB.prettyPhoto({
hook: "data-gal",
counter_separator_label: " of ",
overlay_gallery: false,
social_tools: false
});
/*$twt.tweet({
count: $tweetCount,
username: $username,
loading_text: "Loading tweets",
refresh_interval: 60
}).bind("loaded", function () {
ef(this).find("a").attr("target", "_blank")
});*/
/* $twt1.tweet({
count: $tweetCount1,
username: $username1,
page: 1,
template: "{text}<br />{time}<br />{retweet_action} ➔",
loading_text: "Loading tweets",
refresh_interval: 60
}).bind("loaded", function () {
ef(this).find("a").attr("target", "_blank");
$(this).find("a.tweet_action").click(function (c) {
window.open(this.href, "Retweet", "menubar=0,resizable=0,width=550,height=420,top=200,left=400");
c.preventDefault()
})
});*/
/* $flickr.jflickrfeed({
limit: $amount,
qstrings: {
id: $flickrId
},
itemTemplate: '<li><a data-gal="lb[gallery]" href="{{image}}" title="{{title}}"><img src="{{image_q}}" alt="{{title}}" /><span class="ef-loader"><span></span></span></a></li>'
}, function (c) {
ef(this).waitForImages(function () {
ef(this).find(".ef-loader").fadeOut(1000)
});
ef(this).find("a").prettyPhoto({
hook: "data-gal",
counter_separator_label: " of ",
overlay_gallery: false,
social_tools: false
})
});*/
$accClass.accordion({
heightStyle: "content"
});
$toggleClass.addClass("ui-accordion ui-accordion-icons ui-widget ui-helper-reset").find("h4").addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-top ui-corner-bottom").prepend('<span class="ui-accordion-header-icon ui-icon ui-icon-triangle-1-e"></span>').click(function () {
ef(this).toggleClass("ui-accordion-header-active ui-state-active ui-state-default ui-corner-bottom").find("> .ui-icon").toggleClass("ui-icon-triangle-1-e ui-icon-triangle-1-s").end().next().toggleClass("ui-accordion-content-active").slideToggle();
return false
}).next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").hide();
ef(".ef-tabs").tabs({
heightStyle: "content",
active: 0
});
function a() {
ef("#ef-content").css("min-height", "");
var c = ef(window).height() - ef("body").height();
if (c > 0) {
ef("#ef-content").css("min-height", ef("#ef-content").height() + c - ef("html").offset().top)
}
}
function b(e, d, c) {
if (e.addEventListener) {
e.addEventListener(d, c, false)
} else {
if (e.attachEvent) {
e["e" + d + c] = c;
e[d + c] = function () {
e["e" + d + c](window.event)
};
e.attachEvent("on" + d, e[d + c])
}
}
}
b(window, "load", a);
b(window, "resize", a);
ef(".ef-proj-img").waitForImages(function () {
ef(this).find(".ef-loader").fadeOut(1000)
});
$progressB.each(function () {
var c = ef(this).attr("data-id") + "%";
ef(this).append("<span><span></span></span>");
ef(this).prev().append(" - " + c);
ef(this).children().animate({
width: c
}, 1500, "easeOutExpo")
});
/* $formVal.efValidate({
name: $nameField,
email: $emailField,
message: $messageField,
sliderInput: ".ef-contact-slider",
formAlert: ".ef-form-alert"
});*/
/* if (markers.length > 1) {
ef.extend(ef.ui.gmap.prototype, {
pagination: function (f) {
var e = ef("<div id='ef-map-pag' class='ef-map-pag'><div class='btn back-btn'></div><div class='ef-place'></div><div class='btn fwd-btn'></div></div>");
var c = this,
d = 0,
f = f || "title";
c.set("pagination", function (h, g) {
if (h) {
d = d + g;
e.find(".ef-place").text(c.get("markers")[d][f]);
c.get("map").panTo(c.get("markers")[d].getPosition())
}
});
c.get("pagination")(true, 0);
e.find(".back-btn").click(function () {
c.get("pagination")((d > 0), -1, this)
});
e.find(".fwd-btn").click(function () {
c.get("pagination")((d < c.get("markers").length - 1), 1, this)
});
c.addControl(e, google.maps.ControlPosition.BOTTOM_LEFT)
}
})
}*/
/* ef("#map_canvas").gmap({
zoom: $zoomLevel,
scrollwheel: false,
styles: [{
stylers: [{
lightness: 3
}, {
saturation: -100
}
]
}
],
callback: function () {
var c = this;
ef.each(markers, function (e, d) {
c.addMarker(d).click(function () {
if (markers.length == 1) {
c.openInfoWindow({
content: this.title
}, this)
}
})
})
}
}).gmap("pagination", "title");*/
/*if (!$totop == false) {
ef(function () {
ef("body").append('<div id="to-top"></div>');
ef(window).scroll(function () {
if (ef(this).scrollTop() > 200) {
ef("#to-top").fadeIn()
} else {
ef("#to-top").fadeOut()
}
});
ef("#to-top").click(function () {
ef("body,html").animate({
scrollTop: 0
}, 1200);
return false
})
})
}*/
});
ef(window).load(function () {
$worksCarousel.carouFredSel({
responsive: true,
transition: true,
circular: false,
scroll: {
items: 1,
duration: 800,
timeoutDuration: 600,
easing: $easing1
},
prev: {
button: "#ef-prev",
key: "left"
},
next: {
button: "#ef-next",
key: "right"
},
auto: $autoPlay1,
items: {
height: "variable",
visible: {
min: 1,
max: 4
}
},
swipe: {
onTouch: true
}
});
$currentClass.trigger("click");
$portfolioFilteritem.click(function (c) {
c.preventDefault();
var b = ef(this).attr("data-option-value");
$icontainer.isotope({
filter: b
});
$portfolioFilterli.removeClass();
ef(this).parent("li").addClass("ef-currentclass")
});
var a = 1;
$addItems.click(function (c) {
c.preventDefault();
var d = ef(this);
d.find(".ef-loader").css({
display: "block"
});
var b = $pageName + a + ".html";
return ef.ajax({
cache: false,
url: b,
success: function (f) {
var e = ef(f);
e.imagesLoaded(function () {
$icontainer.isotope("insert", e);
ef(".ef-proj-img").find(".ef-loader").hide();
ef("a[data-gal^='lb']").prettyPhoto({
hook: "data-gal",
counter_separator_label: " of ",
overlay_gallery: false,
social_tools: false
});
if (a == $ajaxPages) {
d.hide()
} else {
a++
}
d.find(".ef-loader").hide()
})
}
})
});
ef.fn.equalHeight = function () {
var b = this;
ef(window).bind("resize", function () {
var c = 0;
ef(b).height("auto").each(function () {
c = Math.max(c, ef(this).height())
}).height(c)
}).trigger("resize")
};
$colHeight.equalHeight();
ef.fn.equalHeight = function () {
var b = this;
ef(window).bind("resize", function () {
var c = 0;
ef(b).height("auto").each(function () {
c = Math.max(c, ef(this).height())
}).height(c).css({
lineHeight: c + "px"
})
}).trigger("resize")
};
ef(".ef-pseudo-table > li li").equalHeight()
});
/*! jQuery UI - v1.10.2 - 2013-04-16
* http://jqueryui.com
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.accordion.js, jquery.ui.slider.js, jquery.ui.tabs.js
* Copyright 2013 jQuery Foundation and other contributors Licensed MIT */
(function(e,t){function i(t,i){var a,n,r,o=t.nodeName.toLowerCase();return"area"===o?(a=t.parentNode,n=a.name,t.href&&n&&"map"===a.nodeName.toLowerCase()?(r=e("img[usemap=#"+n+"]")[0],!!r&&s(r)):!1):(/input|select|textarea|button|object/.test(o)?!t.disabled:"a"===o?t.href||i:i)&&s(t)}function s(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter(function(){return"hidden"===e.css(this,"visibility")}).length}var a=0,n=/^ui-id-\d+$/;e.ui=e.ui||{},e.extend(e.ui,{version:"1.10.2",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({focus:function(t){return function(i,s){return"number"==typeof i?this.each(function(){var t=this;setTimeout(function(){e(t).focus(),s&&s.call(t)},i)}):t.apply(this,arguments)}}(e.fn.focus),scrollParent:function(){var t;return t=e.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.css(this,"position"))&&/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?e(document):t},zIndex:function(i){if(i!==t)return this.css("zIndex",i);if(this.length)for(var s,a,n=e(this[0]);n.length&&n[0]!==document;){if(s=n.css("position"),("absolute"===s||"relative"===s||"fixed"===s)&&(a=parseInt(n.css("zIndex"),10),!isNaN(a)&&0!==a))return a;n=n.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++a)})},removeUniqueId:function(){return this.each(function(){n.test(this.id)&&e(this).removeAttr("id")})}}),e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(i){return!!e.data(i,t)}}):function(t,i,s){return!!e.data(t,s[3])},focusable:function(t){return i(t,!isNaN(e.attr(t,"tabindex")))},tabbable:function(t){var s=e.attr(t,"tabindex"),a=isNaN(s);return(a||s>=0)&&i(t,!a)}}),e("<a>").outerWidth(1).jquery||e.each(["Width","Height"],function(i,s){function a(t,i,s,a){return e.each(n,function(){i-=parseFloat(e.css(t,"padding"+this))||0,s&&(i-=parseFloat(e.css(t,"border"+this+"Width"))||0),a&&(i-=parseFloat(e.css(t,"margin"+this))||0)}),i}var n="Width"===s?["Left","Right"]:["Top","Bottom"],r=s.toLowerCase(),o={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+s]=function(i){return i===t?o["inner"+s].call(this):this.each(function(){e(this).css(r,a(this,i)+"px")})},e.fn["outer"+s]=function(t,i){return"number"!=typeof t?o["outer"+s].call(this,t):this.each(function(){e(this).css(r,a(this,t,!0,i)+"px")})}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(e.fn.removeData=function(t){return function(i){return arguments.length?t.call(this,e.camelCase(i)):t.call(this)}}(e.fn.removeData)),e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),e.support.selectstart="onselectstart"in document.createElement("div"),e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),e.extend(e.ui,{plugin:{add:function(t,i,s){var a,n=e.ui[t].prototype;for(a in s)n.plugins[a]=n.plugins[a]||[],n.plugins[a].push([i,s[a]])},call:function(e,t,i){var s,a=e.plugins[t];if(a&&e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType)for(s=0;a.length>s;s++)e.options[a[s][0]]&&a[s][1].apply(e.element,i)}},hasScroll:function(t,i){if("hidden"===e(t).css("overflow"))return!1;var s=i&&"left"===i?"scrollLeft":"scrollTop",a=!1;return t[s]>0?!0:(t[s]=1,a=t[s]>0,t[s]=0,a)}})})(jQuery);(function(e,t){var i=0,s=Array.prototype.slice,n=e.cleanData;e.cleanData=function(t){for(var i,s=0;null!=(i=t[s]);s++)try{e(i).triggerHandler("remove")}catch(a){}n(t)},e.widget=function(i,s,n){var a,r,o,h,l={},u=i.split(".")[0];i=i.split(".")[1],a=u+"-"+i,n||(n=s,s=e.Widget),e.expr[":"][a.toLowerCase()]=function(t){return!!e.data(t,a)},e[u]=e[u]||{},r=e[u][i],o=e[u][i]=function(e,i){return this._createWidget?(arguments.length&&this._createWidget(e,i),t):new o(e,i)},e.extend(o,r,{version:n.version,_proto:e.extend({},n),_childConstructors:[]}),h=new s,h.options=e.widget.extend({},h.options),e.each(n,function(i,n){return e.isFunction(n)?(l[i]=function(){var e=function(){return s.prototype[i].apply(this,arguments)},t=function(e){return s.prototype[i].apply(this,e)};return function(){var i,s=this._super,a=this._superApply;return this._super=e,this._superApply=t,i=n.apply(this,arguments),this._super=s,this._superApply=a,i}}(),t):(l[i]=n,t)}),o.prototype=e.widget.extend(h,{widgetEventPrefix:r?h.widgetEventPrefix:i},l,{constructor:o,namespace:u,widgetName:i,widgetFullName:a}),r?(e.each(r._childConstructors,function(t,i){var s=i.prototype;e.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete r._childConstructors):s._childConstructors.push(o),e.widget.bridge(i,o)},e.widget.extend=function(i){for(var n,a,r=s.call(arguments,1),o=0,h=r.length;h>o;o++)for(n in r[o])a=r[o][n],r[o].hasOwnProperty(n)&&a!==t&&(i[n]=e.isPlainObject(a)?e.isPlainObject(i[n])?e.widget.extend({},i[n],a):e.widget.extend({},a):a);return i},e.widget.bridge=function(i,n){var a=n.prototype.widgetFullName||i;e.fn[i]=function(r){var o="string"==typeof r,h=s.call(arguments,1),l=this;return r=!o&&h.length?e.widget.extend.apply(null,[r].concat(h)):r,o?this.each(function(){var s,n=e.data(this,a);return n?e.isFunction(n[r])&&"_"!==r.charAt(0)?(s=n[r].apply(n,h),s!==n&&s!==t?(l=s&&s.jquery?l.pushStack(s.get()):s,!1):t):e.error("no such method '"+r+"' for "+i+" widget instance"):e.error("cannot call methods on "+i+" prior to initialization; "+"attempted to call method '"+r+"'")}):this.each(function(){var t=e.data(this,a);t?t.option(r||{})._init():e.data(this,a,new n(r,this))}),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,s){s=e(s||this.defaultElement||this)[0],this.element=e(s),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this.bindings=e(),this.hoverable=e(),this.focusable=e(),s!==this&&(e.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===s&&this.destroy()}}),this.document=e(s.style?s.ownerDocument:s.document||s),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(i,s){var n,a,r,o=i;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof i)if(o={},n=i.split("."),i=n.shift(),n.length){for(a=o[i]=e.widget.extend({},this.options[i]),r=0;n.length-1>r;r++)a[n[r]]=a[n[r]]||{},a=a[n[r]];if(i=n.pop(),s===t)return a[i]===t?null:a[i];a[i]=s}else{if(s===t)return this.options[i]===t?null:this.options[i];o[i]=s}return this._setOptions(o),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!t).attr("aria-disabled",t),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(i,s,n){var a,r=this;"boolean"!=typeof i&&(n=s,s=i,i=!1),n?(s=a=e(s),this.bindings=this.bindings.add(s)):(n=s,s=this.element,a=this.widget()),e.each(n,function(n,o){function h(){return i||r.options.disabled!==!0&&!e(this).hasClass("ui-state-disabled")?("string"==typeof o?r[o]:o).apply(r,arguments):t}"string"!=typeof o&&(h.guid=o.guid=o.guid||h.guid||e.guid++);var l=n.match(/^(\w+)\s*(.*)$/),u=l[1]+r.eventNamespace,c=l[2];c?a.delegate(c,u,h):s.bind(u,h)})},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(t).undelegate(t)},_delay:function(e,t){function i(){return("string"==typeof e?s[e]:e).apply(s,arguments)}var s=this;return setTimeout(i,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){e(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){e(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){e(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){e(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,i,s){var n,a,r=this.options[t];if(s=s||{},i=e.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],a=i.originalEvent)for(n in a)n in i||(i[n]=a[n]);return this.element.trigger(i,s),!(e.isFunction(r)&&r.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,i){e.Widget.prototype["_"+t]=function(s,n,a){"string"==typeof n&&(n={effect:n});var r,o=n?n===!0||"number"==typeof n?i:n.effect||i:t;n=n||{},"number"==typeof n&&(n={duration:n}),r=!e.isEmptyObject(n),n.complete=a,n.delay&&s.delay(n.delay),r&&e.effects&&e.effects.effect[o]?s[t](n):o!==t&&s[o]?s[o](n.duration,n.easing,a):s.queue(function(i){e(this)[t](),a&&a.call(s[0]),i()})}})})(jQuery);(function(e){var t=!1;e(document).mouseup(function(){t=!1}),e.widget("ui.mouse",{version:"1.10.2",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).bind("click."+this.widgetName,function(i){return!0===e.data(i.target,t.widgetName+".preventClickEvent")?(e.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):undefined}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!t){this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var s=this,n=1===i.which,a="string"==typeof this.options.cancel&&i.target.nodeName?e(i.target).closest(this.options.cancel).length:!1;return n&&!a&&this._mouseCapture(i)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){s.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=this._mouseStart(i)!==!1,!this._mouseStarted)?(i.preventDefault(),!0):(!0===e.data(i.target,this.widgetName+".preventClickEvent")&&e.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return s._mouseMove(e)},this._mouseUpDelegate=function(e){return s._mouseUp(e)},e(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),t=!0,!0)):!0}},_mouseMove:function(t){return e.ui.ie&&(!document.documentMode||9>document.documentMode)&&!t.button?this._mouseUp(t):this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){return e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})(jQuery);(function(t){var e=0,i={},s={};i.height=i.paddingTop=i.paddingBottom=i.borderTopWidth=i.borderBottomWidth="hide",s.height=s.paddingTop=s.paddingBottom=s.borderTopWidth=s.borderBottomWidth="show",t.widget("ui.accordion",{version:"1.10.2",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),e.collapsible||e.active!==!1&&null!=e.active||(e.active=0),this._processPanels(),0>e.active&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t(),content:this.active.length?this.active.next():t()}},_createIcons:function(){var e=this.options.icons;e&&(t("<span>").addClass("ui-accordion-header-icon ui-icon "+e.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(e.header).addClass(e.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){return"active"===t?(this._activate(e),undefined):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||this.options.active!==!1||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons()),"disabled"===t&&this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!e),undefined)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var i=t.ui.keyCode,s=this.headers.length,n=this.headers.index(e.target),a=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:a=this.headers[(n+1)%s];break;case i.LEFT:case i.UP:a=this.headers[(n-1+s)%s];break;case i.SPACE:case i.ENTER:this._eventHandler(e);break;case i.HOME:a=this.headers[0];break;case i.END:a=this.headers[s-1]}a&&(t(e.target).attr("tabIndex",-1),t(a).attr("tabIndex",0),a.focus(),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().focus()},refresh:function(){var e=this.options;this._processPanels(),(e.active===!1&&e.collapsible===!0||!this.headers.length)&&(e.active=!1,this.active=t()),e.active===!1?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all"),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide()},_refresh:function(){var i,s=this.options,n=s.heightStyle,a=this.element.parent(),o=this.accordionId="ui-accordion-"+(this.element.attr("id")||++e);this.active=this._findActive(s.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(e){var i=t(this),s=i.attr("id"),n=i.next(),a=n.attr("id");s||(s=o+"-header-"+e,i.attr("id",s)),a||(a=o+"-panel-"+e,n.attr("id",a)),i.attr("aria-controls",a),n.attr("aria-labelledby",s)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(s.event),"fill"===n?(i=a.height(),this.element.siblings(":visible").each(function(){var e=t(this),s=e.css("position");"absolute"!==s&&"fixed"!==s&&(i-=e.outerHeight(!0))}),this.headers.each(function(){i-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,i-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===n&&(i=0,this.headers.next().each(function(){i=Math.max(i,t(this).css("height","").height())}).height(i))},_activate:function(e){var i=this._findActive(e)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var i=this.options,s=this.active,n=t(e.currentTarget),a=n[0]===s[0],o=a&&i.collapsible,r=o?t():n.next(),h=s.next(),l={oldHeader:s,oldPanel:h,newHeader:o?t():n,newPanel:r};e.preventDefault(),a&&!i.collapsible||this._trigger("beforeActivate",e,l)===!1||(i.active=o?!1:this.headers.index(n),this.active=a?t():n,this._toggle(l),s.removeClass("ui-accordion-header-active ui-state-active"),i.icons&&s.children(".ui-accordion-header-icon").removeClass(i.icons.activeHeader).addClass(i.icons.header),a||(n.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),i.icons&&n.children(".ui-accordion-header-icon").removeClass(i.icons.header).addClass(i.icons.activeHeader),n.next().addClass("ui-accordion-content-active")))},_toggle:function(e){var i=e.newPanel,s=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=s,this.options.animate?this._animate(i,s,e):(s.hide(),i.show(),this._toggleComplete(e)),s.attr({"aria-expanded":"false","aria-hidden":"true"}),s.prev().attr("aria-selected","false"),i.length&&s.length?s.prev().attr("tabIndex",-1):i.length&&this.headers.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),i.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0})},_animate:function(t,e,n){var a,o,r,h=this,l=0,c=t.length&&(!e.length||t.index()<e.index()),u=this.options.animate||{},d=c&&u.down||u,p=function(){h._toggleComplete(n)};return"number"==typeof d&&(r=d),"string"==typeof d&&(o=d),o=o||d.easing||u.easing,r=r||d.duration||u.duration,e.length?t.length?(a=t.show().outerHeight(),e.animate(i,{duration:r,easing:o,step:function(t,e){e.now=Math.round(t)}}),t.hide().animate(s,{duration:r,easing:o,complete:p,step:function(t,i){i.now=Math.round(t),"height"!==i.prop?l+=i.now:"content"!==h.options.heightStyle&&(i.now=Math.round(a-e.outerHeight()-l),l=0)}}),undefined):e.animate(i,r,o,p):t.animate(s,r,o,p)},_toggleComplete:function(t){var e=t.oldPanel;e.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}})})(jQuery);(function(t){var e=5;t.widget("ui.slider",t.ui.mouse,{version:"1.10.2",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget"+" ui-widget-content"+" ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,s=this.options,n=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),a="<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",o=[];for(i=s.values&&s.values.length||1,n.length>i&&(n.slice(i).remove(),n=n.slice(0,i)),e=n.length;i>e;e++)o.push(a);this.handles=n.add(t(o.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e)})},_createRange:function(){var e=this.options,i="";e.range?(e.range===!0&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=t("<div></div>").appendTo(this.element),i="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(i+("min"===e.range||"max"===e.range?" ui-slider-range-"+e.range:""))):this.range=t([])},_setupEvents:function(){var t=this.handles.add(this.range).filter("a");this._off(t),this._on(t,this._handleEvents),this._hoverable(t),this._focusable(t)},_destroy:function(){this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(e){var i,s,n,a,o,r,h,l,u=this,c=this.options;return c.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},s=this._normValueFromMouse(i),n=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var i=Math.abs(s-u.values(e));(n>i||n===i&&(e===u._lastChangedValue||u.values(e)===c.min))&&(n=i,a=t(this),o=e)}),r=this._start(e,o),r===!1?!1:(this._mouseSliding=!0,this._handleIndex=o,a.addClass("ui-state-active").focus(),h=a.offset(),l=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:e.pageX-h.left-a.width()/2,top:e.pageY-h.top-a.height()/2-(parseInt(a.css("borderTopWidth"),10)||0)-(parseInt(a.css("borderBottomWidth"),10)||0)+(parseInt(a.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,o,s),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,s,n,a;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),s=i/e,s>1&&(s=1),0>s&&(s=0),"vertical"===this.orientation&&(s=1-s),n=this._valueMax()-this._valueMin(),a=this._valueMin()+s*n,this._trimAlignValue(a)},_start:function(t,e){var i={handle:this.handles[e],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("start",t,i)},_slide:function(t,e,i){var s,n,a;this.options.values&&this.options.values.length?(s=this.values(e?0:1),2===this.options.values.length&&this.options.range===!0&&(0===e&&i>s||1===e&&s>i)&&(i=s),i!==this.values(e)&&(n=this.values(),n[e]=i,a=this._trigger("slide",t,{handle:this.handles[e],value:i,values:n}),s=this.values(e?0:1),a!==!1&&this.values(e,i,!0))):i!==this.value()&&(a=this._trigger("slide",t,{handle:this.handles[e],value:i}),a!==!1&&this.value(i))},_stop:function(t,e){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("stop",t,i)},_change:function(t,e){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._lastChangedValue=e,this._trigger("change",t,i)}},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),this._change(null,0),undefined):this._value()},values:function(e,i){var s,n,a;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),this._change(null,e),undefined;if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(e):this.value();for(s=this.options.values,n=arguments[0],a=0;s.length>a;a+=1)s[a]=this._trimAlignValue(n[a]),this._change(null,a);this._refreshValue()},_setOption:function(e,i){var s,n=0;switch("range"===e&&this.options.range===!0&&("min"===i?(this.options.value=this._values(0),this.options.values=null):"max"===i&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(n=this.options.values.length),t.Widget.prototype._setOption.apply(this,arguments),e){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),s=0;n>s;s+=1)this._change(null,s);this._animateOff=!1;break;case"min":case"max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,i,s;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);if(this.options.values&&this.options.values.length){for(i=this.options.values.slice(),s=0;i.length>s;s+=1)i[s]=this._trimAlignValue(i[s]);return i}return[]},_trimAlignValue:function(t){if(this._valueMin()>=t)return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,i=(t-this._valueMin())%e,s=t-i;return 2*Math.abs(i)>=e&&(s+=i>0?e:-e),parseFloat(s.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var e,i,s,n,a,o=this.options.range,r=this.options,h=this,l=this._animateOff?!1:r.animate,u={};this.options.values&&this.options.values.length?this.handles.each(function(s){i=100*((h.values(s)-h._valueMin())/(h._valueMax()-h._valueMin())),u["horizontal"===h.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[l?"animate":"css"](u,r.animate),h.options.range===!0&&("horizontal"===h.orientation?(0===s&&h.range.stop(1,1)[l?"animate":"css"]({left:i+"%"},r.animate),1===s&&h.range[l?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:r.animate})):(0===s&&h.range.stop(1,1)[l?"animate":"css"]({bottom:i+"%"},r.animate),1===s&&h.range[l?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:r.animate}))),e=i}):(s=this.value(),n=this._valueMin(),a=this._valueMax(),i=a!==n?100*((s-n)/(a-n)):0,u["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[l?"animate":"css"](u,r.animate),"min"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:i+"%"},r.animate),"max"===o&&"horizontal"===this.orientation&&this.range[l?"animate":"css"]({width:100-i+"%"},{queue:!1,duration:r.animate}),"min"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:i+"%"},r.animate),"max"===o&&"vertical"===this.orientation&&this.range[l?"animate":"css"]({height:100-i+"%"},{queue:!1,duration:r.animate}))},_handleEvents:{keydown:function(i){var s,n,a,o,r=t(i.target).data("ui-slider-handle-index");switch(i.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(i.preventDefault(),!this._keySliding&&(this._keySliding=!0,t(i.target).addClass("ui-state-active"),s=this._start(i,r),s===!1))return}switch(o=this.options.step,n=a=this.options.values&&this.options.values.length?this.values(r):this.value(),i.keyCode){case t.ui.keyCode.HOME:a=this._valueMin();break;case t.ui.keyCode.END:a=this._valueMax();break;case t.ui.keyCode.PAGE_UP:a=this._trimAlignValue(n+(this._valueMax()-this._valueMin())/e);break;case t.ui.keyCode.PAGE_DOWN:a=this._trimAlignValue(n-(this._valueMax()-this._valueMin())/e);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(n===this._valueMax())return;a=this._trimAlignValue(n+o);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(n===this._valueMin())return;a=this._trimAlignValue(n-o)}this._slide(i,r,a)},click:function(t){t.preventDefault()},keyup:function(e){var i=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,i),this._change(e,i),t(e.target).removeClass("ui-state-active"))}}})})(jQuery);(function(t,e){function i(){return++n}function s(t){return t.hash.length>1&&decodeURIComponent(t.href.replace(a,""))===decodeURIComponent(location.href.replace(a,""))}var n=0,a=/#.*$/;t.widget("ui.tabs",{version:"1.10.2",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var e=this,i=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",i.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(e){t(this).is(".ui-state-disabled")&&e.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){t(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this._processTabs(),i.active=this._initialActive(),t.isArray(i.disabled)&&(i.disabled=t.unique(i.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),this.active=this.options.active!==!1&&this.anchors.length?this._findActive(i.active):t(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var i=this.options.active,s=this.options.collapsible,n=location.hash.substring(1);return null===i&&(n&&this.tabs.each(function(s,a){return t(a).attr("aria-controls")===n?(i=s,!1):e}),null===i&&(i=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===i||-1===i)&&(i=this.tabs.length?0:!1)),i!==!1&&(i=this.tabs.index(this.tabs.eq(i)),-1===i&&(i=s?!1:0)),!s&&i===!1&&this.anchors.length&&(i=0),i},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(i){var s=t(this.document[0].activeElement).closest("li"),n=this.tabs.index(s),a=!0;if(!this._handlePageNav(i)){switch(i.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:n++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:a=!1,n--;break;case t.ui.keyCode.END:n=this.anchors.length-1;break;case t.ui.keyCode.HOME:n=0;break;case t.ui.keyCode.SPACE:return i.preventDefault(),clearTimeout(this.activating),this._activate(n),e;case t.ui.keyCode.ENTER:return i.preventDefault(),clearTimeout(this.activating),this._activate(n===this.options.active?!1:n),e;default:return}i.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,a),i.ctrlKey||(s.attr("aria-selected","false"),this.tabs.eq(n).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",n)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.focus())},_handlePageNav:function(i){return i.altKey&&i.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):i.altKey&&i.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):e},_findNextTab:function(e,i){function s(){return e>n&&(e=0),0>e&&(e=n),e}for(var n=this.tabs.length-1;-1!==t.inArray(s(),this.options.disabled);)e=i?e+1:e-1;return e},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).focus(),t},_setOption:function(t,i){return"active"===t?(this._activate(i),e):"disabled"===t?(this._setupDisabled(i),e):(this._super(t,i),"collapsible"===t&&(this.element.toggleClass("ui-tabs-collapsible",i),i||this.options.active!==!1||this._activate(0)),"event"===t&&this._setupEvents(i),"heightStyle"===t&&this._setupHeightStyle(i),e)},_tabId:function(t){return t.attr("aria-controls")||"ui-tabs-"+i()},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,i=this.tablist.children(":has(a[href])");e.disabled=t.map(i.filter(".ui-state-disabled"),function(t){return i.index(t)}),this._processTabs(),e.active!==!1&&this.anchors.length?this.active.length&&!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return t("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=t(),this.anchors.each(function(i,n){var a,o,r,h=t(n).uniqueId().attr("id"),l=t(n).closest("li"),u=l.attr("aria-controls");s(n)?(a=n.hash,o=e.element.find(e._sanitizeSelector(a))):(r=e._tabId(l),a="#"+r,o=e.element.find(a),o.length||(o=e._createPanel(r),o.insertAfter(e.panels[i-1]||e.tablist)),o.attr("aria-live","polite")),o.length&&(e.panels=e.panels.add(o)),u&&l.data("ui-tabs-aria-controls",u),l.attr({"aria-controls":a.substring(1),"aria-labelledby":h}),o.attr("aria-labelledby",h)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(e){return t("<div>").attr("id",e).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(e){t.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1);for(var i,s=0;i=this.tabs[s];s++)e===!0||-1!==t.inArray(s,e)?t(i).addClass("ui-state-disabled").attr("aria-disabled","true"):t(i).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=e},_setupEvents:function(e){var i={click:function(t){t.preventDefault()}};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var i,s=this.element.parent();"fill"===e?(i=s.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var e=t(this),s=e.css("position");"absolute"!==s&&"fixed"!==s&&(i-=e.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=t(this).outerHeight(!0)}),this.panels.each(function(){t(this).height(Math.max(0,i-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.panels.each(function(){i=Math.max(i,t(this).height("").height())}).height(i))},_eventHandler:function(e){var i=this.options,s=this.active,n=t(e.currentTarget),a=n.closest("li"),o=a[0]===s[0],r=o&&i.collapsible,h=r?t():this._getPanelForTab(a),l=s.length?this._getPanelForTab(s):t(),u={oldTab:s,oldPanel:l,newTab:r?t():a,newPanel:h};e.preventDefault(),a.hasClass("ui-state-disabled")||a.hasClass("ui-tabs-loading")||this.running||o&&!i.collapsible||this._trigger("beforeActivate",e,u)===!1||(i.active=r?!1:this.tabs.index(a),this.active=o?t():a,this.xhr&&this.xhr.abort(),l.length||h.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),h.length&&this.load(this.tabs.index(a),e),this._toggle(e,u))},_toggle:function(e,i){function s(){a.running=!1,a._trigger("activate",e,i)}function n(){i.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),o.length&&a.options.show?a._show(o,a.options.show,s):(o.show(),s())}var a=this,o=i.newPanel,r=i.oldPanel;this.running=!0,r.length&&this.options.hide?this._hide(r,this.options.hide,function(){i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),n()}):(i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),r.hide(),n()),r.attr({"aria-expanded":"false","aria-hidden":"true"}),i.oldTab.attr("aria-selected","false"),o.length&&r.length?i.oldTab.attr("tabIndex",-1):o.length&&this.tabs.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),o.attr({"aria-expanded":"true","aria-hidden":"false"}),i.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(e){var i,s=this._findActive(e);s[0]!==this.active[0]&&(s.length||(s=this.active),i=s.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return e===!1?t():this.tabs.eq(e)},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$='"+t+"']"))),t},_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").removeUniqueId(),this.tabs.add(this.panels).each(function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(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 e=t(this),i=e.data("ui-tabs-aria-controls");i?e.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(i){var s=this.options.disabled;s!==!1&&(i===e?s=!1:(i=this._getIndex(i),s=t.isArray(s)?t.map(s,function(t){return t!==i?t:null}):t.map(this.tabs,function(t,e){return e!==i?e:null})),this._setupDisabled(s))},disable:function(i){var s=this.options.disabled;if(s!==!0){if(i===e)s=!0;else{if(i=this._getIndex(i),-1!==t.inArray(i,s))return;s=t.isArray(s)?t.merge([i],s).sort():[i]}this._setupDisabled(s)}},load:function(e,i){e=this._getIndex(e);var n=this,a=this.tabs.eq(e),o=a.find(".ui-tabs-anchor"),r=this._getPanelForTab(a),h={tab:a,panel:r};s(o[0])||(this.xhr=t.ajax(this._ajaxSettings(o,i,h)),this.xhr&&"canceled"!==this.xhr.statusText&&(a.addClass("ui-tabs-loading"),r.attr("aria-busy","true"),this.xhr.success(function(t){setTimeout(function(){r.html(t),n._trigger("load",i,h)},1)}).complete(function(t,e){setTimeout(function(){"abort"===e&&n.panels.stop(!1,!0),a.removeClass("ui-tabs-loading"),r.removeAttr("aria-busy"),t===n.xhr&&delete n.xhr},1)})))},_ajaxSettings:function(e,i,s){var n=this;return{url:e.attr("href"),beforeSend:function(e,a){return n._trigger("beforeLoad",i,t.extend({jqXHR:e,ajaxSettings:a},s))}}},_getPanelForTab:function(e){var i=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}})})(jQuery);
/********************************************
- THEMEPUNCH TOOLS Ver. 1.0 -
Last Update of Tools 28.03.2013
*********************************************/
/*!
* jQuery Transit - CSS3 transitions and transformations
* Copyright(c) 2011 Rico Sta. Cruz <rico@ricostacruz.com>
* MIT Licensed.
*
* http://ricostacruz.com/jquery.transit
* http://github.com/rstacruz/jquery.transit
*/
/*!
jQuery WaitForImages
Copyright (c) 2012 Alex Dickson
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
https://github.com/alexanderdickson/waitForImages
*/
// WAIT FOR IMAGES
/*
* waitForImages 1.4
* -----------------
* Provides a callback when all images have loaded in your given selector.
* http://www.alexanderdickson.com/
*
*
* Copyright (c) 2011 Alex Dickson
* Licensed under the MIT licenses.
* See website for more info.
*
*/
// EASINGS
(function (e) {
function t(e) {
if (e in u.style) return e;
var t = ["Moz", "Webkit", "O", "ms"],
n = e.charAt(0).toUpperCase() + e.substr(1);
if (e in u.style) return e;
for (e = 0; e < t.length; ++e) {
var r = t[e] + n;
if (r in u.style) return r
}
}
function n(e) {
"string" === typeof e && this.parse(e);
return this
}
function r(t, n, r, i) {
var s = [];
e.each(t, function (t) {
t = e.camelCase(t);
t = e.transit.propertyMap[t] || e.cssProps[t] || t;
t = t.replace(/([A-Z])/g, function (e) {
return "-" + e.toLowerCase()
}); - 1 === e.inArray(t, s) && s.push(t)
});
e.cssEase[r] && (r = e.cssEase[r]);
var u = "" + o(n) + " " + r;
0 < parseInt(i, 10) && (u += " " + o(i));
var a = [];
e.each(s, function (e, t) {
a.push(t + " " + u)
});
return a.join(", ")
}
function i(t, n) {
n || (e.cssNumber[t] = !0);
e.transit.propertyMap[t] = a.transform;
e.cssHooks[t] = {
get: function (n) {
return e(n).css("transit:transform").get(t)
},
set: function (n, r) {
var i = e(n).css("transit:transform");
i.setFromString(t, r);
e(n).css({
"transit:transform": i
})
}
}
}
function s(e, t) {
return "string" === typeof e && !e.match(/^[\-0-9\.]+$/) ? e : "" + e + t
}
function o(t) {
e.fx.speeds[t] && (t = e.fx.speeds[t]);
return s(t, "ms")
}
e.transit = {
version: "0.9.9",
propertyMap: {
marginLeft: "margin",
marginRight: "margin",
marginBottom: "margin",
marginTop: "margin",
paddingLeft: "padding",
paddingRight: "padding",
paddingBottom: "padding",
paddingTop: "padding"
},
enabled: !0,
useTransitionEnd: !1
};
var u = document.createElement("div"),
a = {}, f = -1 < navigator.userAgent.toLowerCase().indexOf("chrome");
a.transition = t("transition");
a.transitionDelay = t("transitionDelay");
a.transform = t("transform");
a.transformOrigin = t("transformOrigin");
u.style[a.transform] = "";
u.style[a.transform] = "rotateY(90deg)";
a.transform3d = "" !== u.style[a.transform];
var l = a.transitionEnd = {
transition: "transitionend",
MozTransition: "transitionend",
OTransition: "oTransitionEnd",
WebkitTransition: "webkitTransitionEnd",
msTransition: "MSTransitionEnd"
}[a.transition] || null,
c;
for (c in a) a.hasOwnProperty(c) && "undefined" === typeof e.support[c] && (e.support[c] = a[c]);
u = null;
e.cssEase = {
_default: "ease",
"in": "ease-in",
out: "ease-out",
"in-out": "ease-in-out",
snap: "cubic-bezier(0,1,.5,1)",
easeOutCubic: "cubic-bezier(.215,.61,.355,1)",
easeInOutCubic: "cubic-bezier(.645,.045,.355,1)",
easeInCirc: "cubic-bezier(.6,.04,.98,.335)",
easeOutCirc: "cubic-bezier(.075,.82,.165,1)",
easeInOutCirc: "cubic-bezier(.785,.135,.15,.86)",
easeInExpo: "cubic-bezier(.95,.05,.795,.035)",
easeOutExpo: "cubic-bezier(.19,1,.22,1)",
easeInOutExpo: "cubic-bezier(1,0,0,1)",
easeInQuad: "cubic-bezier(.55,.085,.68,.53)",
easeOutQuad: "cubic-bezier(.25,.46,.45,.94)",
easeInOutQuad: "cubic-bezier(.455,.03,.515,.955)",
easeInQuart: "cubic-bezier(.895,.03,.685,.22)",
easeOutQuart: "cubic-bezier(.165,.84,.44,1)",
easeInOutQuart: "cubic-bezier(.77,0,.175,1)",
easeInQuint: "cubic-bezier(.755,.05,.855,.06)",
easeOutQuint: "cubic-bezier(.23,1,.32,1)",
easeInOutQuint: "cubic-bezier(.86,0,.07,1)",
easeInSine: "cubic-bezier(.47,0,.745,.715)",
easeOutSine: "cubic-bezier(.39,.575,.565,1)",
easeInOutSine: "cubic-bezier(.445,.05,.55,.95)",
easeInBack: "cubic-bezier(.6,-.28,.735,.045)",
easeOutBack: "cubic-bezier(.175, .885,.32,1.275)",
easeInOutBack: "cubic-bezier(.68,-.55,.265,1.55)"
};
e.cssHooks["transit:transform"] = {
get: function (t) {
return e(t).data("transform") || new n
},
set: function (t, r) {
var i = r;
i instanceof n || (i = new n(i));
t.style[a.transform] = "WebkitTransform" === a.transform && !f ? i.toString(!0) : i.toString();
e(t).data("transform", i)
}
};
e.cssHooks.transform = {
set: e.cssHooks["transit:transform"].set
};
"1.8" > e.fn.jquery && (e.cssHooks.transformOrigin = {
get: function (e) {
return e.style[a.transformOrigin]
},
set: function (e, t) {
e.style[a.transformOrigin] = t
}
}, e.cssHooks.transition = {
get: function (e) {
return e.style[a.transition]
},
set: function (e, t) {
e.style[a.transition] = t
}
});
i("scale");
i("translate");
i("rotate");
i("rotateX");
i("rotateY");
i("rotate3d");
i("perspective");
i("skewX");
i("skewY");
i("x", !0);
i("y", !0);
n.prototype = {
setFromString: function (e, t) {
var r = "string" === typeof t ? t.split(",") : t.constructor === Array ? t : [t];
r.unshift(e);
n.prototype.set.apply(this, r)
},
set: function (e) {
var t = Array.prototype.slice.apply(arguments, [1]);
this.setter[e] ? this.setter[e].apply(this, t) : this[e] = t.join(",")
},
get: function (e) {
return this.getter[e] ? this.getter[e].apply(this) : this[e] || 0
},
setter: {
rotate: function (e) {
this.rotate = s(e, "deg")
},
rotateX: function (e) {
this.rotateX = s(e, "deg")
},
rotateY: function (e) {
this.rotateY = s(e, "deg")
},
scale: function (e, t) {
void 0 === t && (t = e);
this.scale = e + "," + t
},
skewX: function (e) {
this.skewX = s(e, "deg")
},
skewY: function (e) {
this.skewY = s(e, "deg")
},
perspective: function (e) {
this.perspective = s(e, "px")
},
x: function (e) {
this.set("translate", e, null)
},
y: function (e) {
this.set("translate", null, e)
},
translate: function (e, t) {
void 0 === this._translateX && (this._translateX = 0);
void 0 === this._translateY && (this._translateY = 0);
null !== e && void 0 !== e && (this._translateX = s(e, "px"));
null !== t && void 0 !== t && (this._translateY = s(t, "px"));
this.translate = this._translateX + "," + this._translateY
}
},
getter: {
x: function () {
return this._translateX || 0
},
y: function () {
return this._translateY || 0
},
scale: function () {
var e = (this.scale || "1,1").split(",");
e[0] && (e[0] = parseFloat(e[0]));
e[1] && (e[1] = parseFloat(e[1]));
return e[0] === e[1] ? e[0] : e
},
rotate3d: function () {
for (var e = (this.rotate3d || "0,0,0,0deg").split(","), t = 0; 3 >= t; ++t) e[t] && (e[t] = parseFloat(e[t]));
e[3] && (e[3] = s(e[3], "deg"));
return e
}
},
parse: function (e) {
var t = this;
e.replace(/([a-zA-Z0-9]+)\((.*?)\)/g, function (e, n, r) {
t.setFromString(n, r)
})
},
toString: function (e) {
var t = [],
n;
for (n in this) if (this.hasOwnProperty(n) && (a.transform3d || !("rotateX" === n || "rotateY" === n || "perspective" === n || "transformOrigin" === n))) "_" !== n[0] && (e && "scale" === n ? t.push(n + "3d(" + this[n] + ",1)") : e && "translate" === n ? t.push(n + "3d(" + this[n] + ",0)") : t.push(n + "(" + this[n] + ")"));
return t.join(" ")
}
};
e.fn.transition = e.fn.transit = function (t, n, i, s) {
var u = this,
f = 0,
c = !0;
"function" === typeof n && (s = n, n = void 0);
"function" === typeof i && (s = i, i = void 0);
"undefined" !== typeof t.easing && (i = t.easing, delete t.easing);
"undefined" !== typeof t.duration && (n = t.duration, delete t.duration);
"undefined" !== typeof t.complete && (s = t.complete, delete t.complete);
"undefined" !== typeof t.queue && (c = t.queue, delete t.queue);
"undefined" !== typeof t.delay && (f = t.delay, delete t.delay);
"undefined" === typeof n && (n = e.fx.speeds._default);
"undefined" === typeof i && (i = e.cssEase._default);
n = o(n);
var h = r(t, n, i, f),
v = e.transit.enabled && a.transition ? parseInt(n, 10) + parseInt(f, 10) : 0;
if (0 === v) return n = c, i = function (e) {
u.css(t);
s && s.apply(u);
e && e()
}, !0 === n ? u.queue(i) : n ? u.queue(n, i) : i(), u;
var m = {};
n = c;
i = function (n) {
var r = 0;
"MozTransition" === a.transition && 25 > r && (r = 25);
window.setTimeout(function () {
var r = !1,
i = function () {
r && u.unbind(l, i);
0 < v && u.each(function () {
this.style[a.transition] = m[this] || null
});
"function" === typeof s && s.apply(u);
"function" === typeof n && n()
};
0 < v && l && e.transit.useTransitionEnd ? (r = !0, u.bind(l, i)) : window.setTimeout(i, v);
u.each(function () {
0 < v && (this.style[a.transition] = h);
e(this).css(t)
})
}, r)
};
!0 === n ? u.queue(i) : n ? u.queue(n, i) : i();
return this
};
e.transit.getTransitionValue = r
})(jQuery);
(function (e, t) {
jQuery.easing["jswing"] = jQuery.easing["swing"];
jQuery.extend(jQuery.easing, {
def: "easeOutQuad",
swing: function (e, t, n, r, i) {
return jQuery.easing[jQuery.easing.def](e, t, n, r, i)
},
easeInQuad: function (e, t, n, r, i) {
return r * (t /= i) * t + n
},
easeOutQuad: function (e, t, n, r, i) {
return -r * (t /= i) * (t - 2) + n
},
easeInOutQuad: function (e, t, n, r, i) {
if ((t /= i / 2) < 1) return r / 2 * t * t + n;
return -r / 2 * (--t * (t - 2) - 1) + n
},
easeInCubic: function (e, t, n, r, i) {
return r * (t /= i) * t * t + n
},
easeOutCubic: function (e, t, n, r, i) {
return r * ((t = t / i - 1) * t * t + 1) + n
},
easeInOutCubic: function (e, t, n, r, i) {
if ((t /= i / 2) < 1) return r / 2 * t * t * t + n;
return r / 2 * ((t -= 2) * t * t + 2) + n
},
easeInQuart: function (e, t, n, r, i) {
return r * (t /= i) * t * t * t + n
},
easeOutQuart: function (e, t, n, r, i) {
return -r * ((t = t / i - 1) * t * t * t - 1) + n
},
easeInOutQuart: function (e, t, n, r, i) {
if ((t /= i / 2) < 1) return r / 2 * t * t * t * t + n;
return -r / 2 * ((t -= 2) * t * t * t - 2) + n
},
easeInQuint: function (e, t, n, r, i) {
return r * (t /= i) * t * t * t * t + n
},
easeOutQuint: function (e, t, n, r, i) {
return r * ((t = t / i - 1) * t * t * t * t + 1) + n
},
easeInOutQuint: function (e, t, n, r, i) {
if ((t /= i / 2) < 1) return r / 2 * t * t * t * t * t + n;
return r / 2 * ((t -= 2) * t * t * t * t + 2) + n
},
easeInSine: function (e, t, n, r, i) {
return -r * Math.cos(t / i * (Math.PI / 2)) + r + n
},
easeOutSine: function (e, t, n, r, i) {
return r * Math.sin(t / i * (Math.PI / 2)) + n
},
easeInOutSine: function (e, t, n, r, i) {
return -r / 2 * (Math.cos(Math.PI * t / i) - 1) + n
},
easeInExpo: function (e, t, n, r, i) {
return t == 0 ? n : r * Math.pow(2, 10 * (t / i - 1)) + n
},
easeOutExpo: function (e, t, n, r, i) {
return t == i ? n + r : r * (-Math.pow(2, -10 * t / i) + 1) + n
},
easeInOutExpo: function (e, t, n, r, i) {
if (t == 0) return n;
if (t == i) return n + r;
if ((t /= i / 2) < 1) return r / 2 * Math.pow(2, 10 * (t - 1)) + n;
return r / 2 * (-Math.pow(2, -10 * --t) + 2) + n
},
easeInCirc: function (e, t, n, r, i) {
return -r * (Math.sqrt(1 - (t /= i) * t) - 1) + n
},
easeOutCirc: function (e, t, n, r, i) {
return r * Math.sqrt(1 - (t = t / i - 1) * t) + n
},
easeInOutCirc: function (e, t, n, r, i) {
if ((t /= i / 2) < 1) return -r / 2 * (Math.sqrt(1 - t * t) - 1) + n;
return r / 2 * (Math.sqrt(1 - (t -= 2) * t) + 1) + n
},
easeInElastic: function (e, t, n, r, i) {
var s = 1.70158;
var o = 0;
var u = r;
if (t == 0) return n;
if ((t /= i) == 1) return n + r;
if (!o) o = i * .3;
if (u < Math.abs(r)) {
u = r;
var s = o / 4
} else var s = o / (2 * Math.PI) * Math.asin(r / u);
return -(u * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * i - s) * 2 * Math.PI / o)) + n
},
easeOutElastic: function (e, t, n, r, i) {
var s = 1.70158;
var o = 0;
var u = r;
if (t == 0) return n;
if ((t /= i) == 1) return n + r;
if (!o) o = i * .3;
if (u < Math.abs(r)) {
u = r;
var s = o / 4
} else var s = o / (2 * Math.PI) * Math.asin(r / u);
return u * Math.pow(2, -10 * t) * Math.sin((t * i - s) * 2 * Math.PI / o) + r + n
},
easeInOutElastic: function (e, t, n, r, i) {
var s = 1.70158;
var o = 0;
var u = r;
if (t == 0) return n;
if ((t /= i / 2) == 2) return n + r;
if (!o) o = i * .3 * 1.5;
if (u < Math.abs(r)) {
u = r;
var s = o / 4
} else var s = o / (2 * Math.PI) * Math.asin(r / u); if (t < 1) return -.5 * u * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * i - s) * 2 * Math.PI / o) + n;
return u * Math.pow(2, -10 * (t -= 1)) * Math.sin((t * i - s) * 2 * Math.PI / o) * .5 + r + n
},
easeInBack: function (e, t, n, r, i, s) {
if (s == undefined) s = 1.70158;
return r * (t /= i) * t * ((s + 1) * t - s) + n
},
easeOutBack: function (e, t, n, r, i, s) {
if (s == undefined) s = 1.70158;
return r * ((t = t / i - 1) * t * ((s + 1) * t + s) + 1) + n
},
easeInOutBack: function (e, t, n, r, i, s) {
if (s == undefined) s = 1.70158;
if ((t /= i / 2) < 1) return r / 2 * t * t * (((s *= 1.525) + 1) * t - s) + n;
return r / 2 * ((t -= 2) * t * (((s *= 1.525) + 1) * t + s) + 2) + n
},
easeInBounce: function (e, t, n, r, i) {
return r - jQuery.easing.easeOutBounce(e, i - t, 0, r, i) + n
},
easeOutBounce: function (e, t, n, r, i) {
if ((t /= i) < 1 / 2.75) {
return r * 7.5625 * t * t + n
} else if (t < 2 / 2.75) {
return r * (7.5625 * (t -= 1.5 / 2.75) * t + .75) + n
} else if (t < 2.5 / 2.75) {
return r * (7.5625 * (t -= 2.25 / 2.75) * t + .9375) + n
} else {
return r * (7.5625 * (t -= 2.625 / 2.75) * t + .984375) + n
}
},
easeInOutBounce: function (e, t, n, r, i) {
if (t < i / 2) return jQuery.easing.easeInBounce(e, t * 2, 0, r, i) * .5 + n;
return jQuery.easing.easeOutBounce(e, t * 2 - i, 0, r, i) * .5 + r * .5 + n
}
});
e.waitForImages = {
hasImageProperties: ["backgroundImage", "listStyleImage", "borderImage", "borderCornerImage"]
};
e.expr[":"].uncached = function (t) {
var n = document.createElement("img");
n.src = t.src;
return e(t).is('img[src!=""]') && !n.complete
};
e.fn.waitForImages = function (t, n, r) {
if (e.isPlainObject(arguments[0])) {
n = t.each;
r = t.waitForAll;
t = t.finished
}
t = t || e.noop;
n = n || e.noop;
r = !! r;
if (!e.isFunction(t) || !e.isFunction(n)) {
throw new TypeError("An invalid callback was supplied.")
}
return this.each(function () {
var i = e(this),
s = [];
if (r) {
var o = e.waitForImages.hasImageProperties || [],
u = /url\((['"]?)(.*?)\1\)/g;
i.find("*").each(function () {
var t = e(this);
if (t.is("img:uncached")) {
s.push({
src: t.attr("src"),
element: t[0]
})
}
e.each(o, function (e, n) {
var r = t.css(n);
if (!r) {
return true
}
var i;
while (i = u.exec(r)) {
s.push({
src: i[2],
element: t[0]
})
}
})
})
} else {
i.find("img:uncached").each(function () {
s.push({
src: this.src,
element: this
})
})
}
var f = s.length,
l = 0;
if (f == 0) {
t.call(i[0])
}
e.each(s, function (r, s) {
var o = new Image;
e(o).bind("load error", function (e) {
l++;
n.call(s.element, l, f, e.type == "load");
if (l == f) {
t.call(i[0]);
return false
}
});
o.src = s.src
})
})
};
e.fn.swipe = function (t) {
if (!this) return false;
var n = {
fingers: 1,
threshold: 75,
swipe: null,
swipeLeft: null,
swipeRight: null,
swipeUp: null,
swipeDown: null,
swipeStatus: null,
click: null,
triggerOnTouchEnd: true,
allowPageScroll: "auto"
};
var r = "left";
var i = "right";
var s = "up";
var o = "down";
var u = "none";
var f = "horizontal";
var l = "vertical";
var c = "auto";
var h = "start";
var p = "move";
var d = "end";
var v = "cancel";
var m = "ontouchstart" in window,
g = m ? "touchstart" : "mousedown",
y = m ? "touchmove" : "mousemove",
b = m ? "touchend" : "mouseup",
w = "touchcancel";
var E = "start";
if (t.allowPageScroll == undefined && (t.swipe != undefined || t.swipeStatus != undefined)) t.allowPageScroll = u;
if (t) e.extend(n, t);
return this.each(function () {
function t() {
var e = S();
if (e <= 45 && e >= 0) return r;
else if (e <= 360 && e >= 315) return r;
else if (e >= 135 && e <= 225) return i;
else if (e > 45 && e < 135) return o;
else return s
}
function S() {
var e = H.x - B.x;
var t = B.y - H.y;
var n = Math.atan2(t, e);
var r = Math.round(n * 180 / Math.PI);
if (r < 0) r = 360 - Math.abs(r);
return r
}
function x() {
return Math.round(Math.sqrt(Math.pow(B.x - H.x, 2) + Math.pow(B.y - H.y, 2)))
}
function T(e, t) {
if (n.allowPageScroll == u) {
e.preventDefault()
} else {
var a = n.allowPageScroll == c;
switch (t) {
case r:
if (n.swipeLeft && a || !a && n.allowPageScroll != f) e.preventDefault();
break;
case i:
if (n.swipeRight && a || !a && n.allowPageScroll != f) e.preventDefault();
break;
case s:
if (n.swipeUp && a || !a && n.allowPageScroll != l) e.preventDefault();
break;
case o:
if (n.swipeDown && a || !a && n.allowPageScroll != l) e.preventDefault();
break
}
}
}
function N(e, t) {
if (n.swipeStatus) n.swipeStatus.call(_, e, t, direction || null, distance || 0);
if (t == v) {
if (n.click && (P == 1 || !m) && (isNaN(distance) || distance == 0)) n.click.call(_, e, e.target)
}
if (t == d) {
if (n.swipe) {
n.swipe.call(_, e, direction, distance)
}
switch (direction) {
case r:
if (n.swipeLeft) n.swipeLeft.call(_, e, direction, distance);
break;
case i:
if (n.swipeRight) n.swipeRight.call(_, e, direction, distance);
break;
case s:
if (n.swipeUp) n.swipeUp.call(_, e, direction, distance);
break;
case o:
if (n.swipeDown) n.swipeDown.call(_, e, direction, distance);
break
}
}
}
function C(e) {
P = 0;
H.x = 0;
H.y = 0;
B.x = 0;
B.y = 0;
F.x = 0;
F.y = 0
}
function L(e) {
e.preventDefault();
distance = x();
direction = t();
if (n.triggerOnTouchEnd) {
E = d;
if ((P == n.fingers || !m) && B.x != 0) {
if (distance >= n.threshold) {
N(e, E);
C(e)
} else {
E = v;
N(e, E);
C(e)
}
} else {
E = v;
N(e, E);
C(e)
}
} else if (E == p) {
E = v;
N(e, E);
C(e)
}
M.removeEventListener(y, A, false);
M.removeEventListener(b, L, false)
}
function A(e) {
if (E == d || E == v) return;
var r = m ? e.touches[0] : e;
B.x = r.pageX;
B.y = r.pageY;
direction = t();
if (m) {
P = e.touches.length
}
E = p;
T(e, direction);
if (P == n.fingers || !m) {
distance = x();
if (n.swipeStatus) N(e, E, direction, distance);
if (!n.triggerOnTouchEnd) {
if (distance >= n.threshold) {
E = d;
N(e, E);
C(e)
}
}
} else {
E = v;
N(e, E);
C(e)
}
}
function O(e) {
var t = m ? e.touches[0] : e;
E = h;
if (m) {
P = e.touches.length
}
distance = 0;
direction = null;
if (P == n.fingers || !m) {
H.x = B.x = t.pageX;
H.y = B.y = t.pageY;
if (n.swipeStatus) N(e, E)
} else {
C(e)
}
M.addEventListener(y, A, false);
M.addEventListener(b, L, false)
}
var M = this;
var _ = e(this);
var D = null;
var P = 0;
var H = {
x: 0,
y: 0
};
var B = {
x: 0,
y: 0
};
var F = {
x: 0,
y: 0
};
try {
this.addEventListener(g, O, false);
this.addEventListener(w, C)
} catch (I) {}
})
}
})(jQuery)
// SOME ERROR MESSAGES IN CASE THE PLUGIN CAN NOT BE LOADED
function revslider_showDoubleJqueryError(sliderID) {
var errorMessage = "Revolution Slider Error: You have some jquery.js library include that comes after the revolution files js include.";
errorMessage += "<br> This includes make eliminates the revolution slider libraries, and make it not work.";
errorMessage += "<br><br> To fix it you can:<br> 1. In the Slider Settings -> Troubleshooting set option: <strong><b>Put JS Includes To Body</b></strong> option to true.";
errorMessage += "<br> 2. Find the double jquery.js include and remove it.";
errorMessage = "<span style='font-size:16px;color:#BC0C06;'>" + errorMessage + "</span>"
jQuery(sliderID).show().html(errorMessage);
}
/**************************************************************************
* jquery.themepunch.revolution.js - jQuery Plugin for kenburn Slider
* @version: 2.3.9 (03.04.2013)
* @requires jQuery v1.7 or later (tested on 1.9)
* @author ThemePunch
**************************************************************************/ (function (e, t) {
function n(e) {
var t = [],
n;
var r = window.location.href.slice(window.location.href.indexOf(e) + 1).split("_");
for (var i = 0; i < r.length; i++) {
r[i] = r[i].replace("%3D", "=");
n = r[i].split("=");
t.push(n[0]);
t[n[0]] = n[1]
}
return t
}
function r(t, n) {
t.find(".defaultimg").each(function (r) {
d(e(this), n);
n.height = Math.round(n.startheight * (n.width / n.startwidth));
t.height(n.height);
d(e(this), n);
try {
t.parent().find(".tp-bannershadow").css({
width: n.width
})
} catch (s) {}
var o = t.find(">ul >li:eq(" + n.act + ") .slotholder");
var u = t.find(">ul >li:eq(" + n.next + ") .slotholder");
b(t, n);
u.find(".defaultimg").css({
opacity: 0
});
o.find(".defaultimg").css({
opacity: 1
});
w(t, n);
var a = t.find(">ul >li:eq(" + n.next + ")");
t.find(".tp-caption").each(function () {
e(this).stop(true, true)
});
L(a, n);
i(n, t)
})
}
function i(e, t) {
e.cd = 0;
if (e.videoplaying != true) {
var n = t.find(".tp-bannertimer");
if (n.length > 0) {
n.stop();
n.css({
width: "0%"
});
n.animate({
width: "100%"
}, {
duration: e.delay - 100,
queue: false,
easing: "linear"
})
}
clearTimeout(e.thumbtimer);
e.thumbtimer = setTimeout(function () {
u(t);
p(t, e)
}, 600)
}
}
function s(e, t) {
e.cd = 0;
E(t, e);
var n = t.find(".tp-bannertimer");
if (n.length > 0) {
n.stop();
n.css({
width: "0%"
});
n.animate({
width: "100%"
}, {
duration: e.delay - 100,
queue: false,
easing: "linear"
})
}
}
function o(n, r) {
var i = n.parent();
if (r.navigationType == "thumb" || r.navsecond == "both") {
i.append('<div class="tp-bullets tp-thumbs ' + r.navigationStyle + '"><div class="tp-mask"><div class="tp-thumbcontainer"></div></div></div>')
}
var o = i.find(".tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer");
var f = o.parent();
f.width(r.thumbWidth * r.thumbAmount);
f.height(r.thumbHeight);
f.parent().width(r.thumbWidth * r.thumbAmount);
f.parent().height(r.thumbHeight);
n.find(">ul:first >li").each(function (e) {
var r = n.find(">ul:first >li:eq(" + e + ")");
if (r.data("thumb") != t) var i = r.data("thumb");
else var i = r.find("img:first").attr("src");
o.append('<div class="bullet thumb"><img src="' + i + '"></div>');
var s = o.find(".bullet:first")
});
var l = 100;
o.find(".bullet").each(function (t) {
var i = e(this);
if (t == r.slideamount - 1) i.addClass("last");
if (t == 0) i.addClass("first");
i.width(r.thumbWidth);
i.height(r.thumbHeight);
if (l > i.outerWidth(true)) l = i.outerWidth(true);
i.click(function () {
if (r.transition == 0 && i.index() != r.act) {
r.next = i.index();
s(r, n)
}
})
});
var c = l * n.find(">ul:first >li").length;
var h = o.parent().width();
r.thumbWidth = l;
if (h < c) {
e(document).mousemove(function (t) {
e("body").data("mousex", t.pageX)
});
o.parent().mouseenter(function () {
var t = e(this);
t.addClass("over");
var r = t.offset();
var i = e("body").data("mousex") - r.left;
var s = t.width();
var o = t.find(".bullet:first").outerWidth(true);
var u = o * n.find(">ul:first >li").length;
var f = u - s + 15;
var l = f / s;
i = i - 30;
var c = 0 - i * l;
if (c > 0) c = 0;
if (c < 0 - u + s) c = 0 - u + s;
a(t, c, 200)
});
o.parent().mousemove(function () {
var t = e(this);
var r = t.offset();
var i = e("body").data("mousex") - r.left;
var s = t.width();
var o = t.find(".bullet:first").outerWidth(true);
var u = o * n.find(">ul:first >li").length;
var f = u - s + 15;
var l = f / s;
i = i - 30;
var c = 0 - i * l;
if (c > 0) c = 0;
if (c < 0 - u + s) c = 0 - u + s;
a(t, c, 0)
});
o.parent().mouseleave(function () {
var t = e(this);
t.removeClass("over");
u(n)
})
}
}
function u(e) {
var t = e.parent().find(".tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer");
var n = t.parent();
var r = n.offset();
var i = n.find(".bullet:first").outerWidth(true);
var s = n.find(".bullet.selected").index() * i;
var o = n.width();
var i = n.find(".bullet:first").outerWidth(true);
var u = i * e.find(">ul:first >li").length;
var f = u - o;
var l = f / o;
var c = 0 - s;
if (c > 0) c = 0;
if (c < 0 - u + o) c = 0 - u + o;
if (!n.hasClass("over")) {
a(n, c, 200)
}
}
function a(e, t, n) {
e.stop();
e.find(".tp-thumbcontainer").animate({
left: t + "px"
}, {
duration: n,
queue: false
})
}
function f(t, n) {
if (n.navigationType == "bullet" || n.navigationType == "both") {
t.parent().append('<div class="tp-bullets simplebullets ' + n.navigationStyle + '"></div>')
}
var r = t.parent().find(".tp-bullets");
t.find(">ul:first >li").each(function (e) {
var n = t.find(">ul:first >li:eq(" + e + ") img:first").attr("src");
r.append('<div class="bullet"></div>');
var i = r.find(".bullet:first")
});
r.find(".bullet").each(function (r) {
var i = e(this);
if (r == n.slideamount - 1) i.addClass("last");
if (r == 0) i.addClass("first");
i.click(function () {
var e = false;
if (n.navigationArrows == "withbullet" || n.navigationArrows == "nexttobullets") {
if (i.index() - 1 == n.act) e = true
} else {
if (i.index() == n.act) e = true
} if (n.transition == 0 && !e) {
if (n.navigationArrows == "withbullet" || n.navigationArrows == "nexttobullets") {
n.next = i.index() - 1
} else {
n.next = i.index()
}
s(n, t)
}
})
});
r.append('<div class="tpclear"></div>');
p(t, n)
}
function l(e, n) {
var r = e.find(".tp-bullets");
var i = "";
var o = n.navigationStyle;
if (n.navigationArrows == "none") i = "visibility:none";
n.soloArrowStyle = "default";
if (n.navigationArrows != "none" && n.navigationArrows != "nexttobullets") o = n.soloArrowStyle;
e.parent().append('<div style="' + i + '" class="tp-leftarrow tparrows ' + o + '"></div>');
e.parent().append('<div style="' + i + '" class="tp-rightarrow tparrows ' + o + '"></div>');
e.parent().find(".tp-rightarrow").click(function () {
if (n.transition == 0) {
if (e.data("showus") != t && e.data("showus") != -1) n.next = e.data("showus") - 1;
else n.next = n.next + 1;
e.data("showus", -1);
if (n.next >= n.slideamount) n.next = 0;
if (n.next < 0) n.next = 0;
if (n.act != n.next) s(n, e)
}
});
e.parent().find(".tp-leftarrow").click(function () {
if (n.transition == 0) {
n.next = n.next - 1;
n.leftarrowpressed = 1;
if (n.next < 0) n.next = n.slideamount - 1;
s(n, e)
}
});
p(e, n)
}
function c(e, t) {
if (t.touchenabled == "on") e.swipe({
data: e,
swipeRight: function () {
if (t.transition == 0) {
t.next = t.next - 1;
t.leftarrowpressed = 1;
if (t.next < 0) t.next = t.slideamount - 1;
s(t, e)
}
},
swipeLeft: function () {
if (t.transition == 0) {
t.next = t.next + 1;
if (t.next == t.slideamount) t.next = 0;
s(t, e)
}
},
allowPageScroll: "auto"
})
}
function h(e, t) {
var n = e.parent().find(".tp-bullets");
var r = e.parent().find(".tparrows");
if (n == null) {
e.append('<div class=".tp-bullets"></div>');
var n = e.parent().find(".tp-bullets")
}
if (r == null) {
e.append('<div class=".tparrows"></div>');
var r = e.parent().find(".tparrows")
}
e.data("hidethumbs", t.hideThumbs);
n.addClass("hidebullets");
r.addClass("hidearrows");
/* n.hover(function () {
n.addClass("hovered");
clearTimeout(e.data("hidethumbs"));
n.removeClass("hidebullets");
r.removeClass("hidearrows")
}, function () {
n.removeClass("hovered");
if (!e.hasClass("hovered") && !n.hasClass("hovered")) e.data("hidethumbs", setTimeout(function () {
n.addClass("hidebullets");
r.addClass("hidearrows")
}, t.hideThumbs))
}); */
r.hover(function () {
n.addClass("hovered");
clearTimeout(e.data("hidethumbs"));
n.removeClass("hidebullets");
r.removeClass("hidearrows")
}, function () {
n.removeClass("hovered")
});
/* e.on("mouseenter", function () {
e.addClass("hovered");
clearTimeout(e.data("hidethumbs"));
n.removeClass("hidebullets");
r.removeClass("hidearrows")
});
e.on("mouseleave", function () {
e.removeClass("hovered");
if (!e.hasClass("hovered") && !n.hasClass("hovered")) e.data("hidethumbs", setTimeout(function () {
n.addClass("hidebullets");
r.addClass("hidearrows")
}, t.hideThumbs))
}) */
}
function p(e, t) {
var n = e.parent();
var r = n.find(".tp-bullets");
var i = n.find(".tp-leftarrow");
var s = n.find(".tp-rightarrow");
if (t.navigationType == "thumb" && t.navigationArrows == "nexttobullets") t.navigationArrows = "solo";
if (t.navigationArrows == "nexttobullets") {
i.prependTo(r).css({
"float": "left"
});
s.insertBefore(r.find(".tpclear")).css({
"float": "left"
})
}
if (t.navigationArrows != "none" && t.navigationArrows != "nexttobullets") {
i.css({
position: "absolute"
});
s.css({
position: "absolute"
});
if (t.soloArrowLeftValign == "center") i.css({
top: "50%",
marginTop: t.soloArrowLeftVOffset - Math.round(i.innerHeight() / 2) + "px"
});
if (t.soloArrowLeftValign == "bottom") i.css({
bottom: 0 + t.soloArrowLeftVOffset + "px"
});
if (t.soloArrowLeftValign == "top") i.css({
top: 0 + t.soloArrowLeftVOffset + "px"
});
if (t.soloArrowLeftHalign == "center") i.css({
left: "50%",
marginLeft: t.soloArrowLeftHOffset - Math.round(i.innerWidth() / 2) + "px"
});
if (t.soloArrowLeftHalign == "left") i.css({
left: 0 + t.soloArrowLeftHOffset + "px"
});
if (t.soloArrowLeftHalign == "right") i.css({
right: 0 + t.soloArrowLeftHOffset + "px"
});
if (t.soloArrowRightValign == "center") s.css({
top: "50%",
marginTop: t.soloArrowRightVOffset - Math.round(s.innerHeight() / 2) + "px"
});
if (t.soloArrowRightValign == "bottom") s.css({
bottom: 0 + t.soloArrowRightVOffset + "px"
});
if (t.soloArrowRightValign == "top") s.css({
top: 0 + t.soloArrowRightVOffset + "px"
});
if (t.soloArrowRightHalign == "center") s.css({
left: "50%",
marginLeft: t.soloArrowRightHOffset - Math.round(s.innerWidth() / 2) + "px"
});
if (t.soloArrowRightHalign == "left") s.css({
left: 0 + t.soloArrowRightHOffset + "px"
});
if (t.soloArrowRightHalign == "right") s.css({
right: 0 + t.soloArrowRightHOffset + "px"
});
if (i.position() != null) i.css({
top: Math.round(parseInt(i.position().top, 0)) + "px"
});
if (s.position() != null) s.css({
top: Math.round(parseInt(s.position().top, 0)) + "px"
})
}
if (t.navigationArrows == "none") {
i.css({
visibility: "hidden"
});
s.css({
visibility: "hidden"
})
}
if (t.navigationVAlign == "center") r.css({
top: "50%",
marginTop: t.navigationVOffset - Math.round(r.innerHeight() / 2) + "px"
});
if (t.navigationVAlign == "bottom") r.css({
bottom: 0 + t.navigationVOffset + "px"
});
if (t.navigationVAlign == "top") r.css({
top: 0 + t.navigationVOffset + "px"
});
if (t.navigationHAlign == "center") r.css({
left: "50%",
marginLeft: t.navigationHOffset - Math.round(r.innerWidth() / 2) + "px"
});
if (t.navigationHAlign == "left") r.css({
left: 0 + t.navigationHOffset + "px"
});
if (t.navigationHAlign == "right") r.css({
right: 0 + t.navigationHOffset + "px"
})
}
function d(e, n) {
n.width = parseInt(n.container.width(), 0);
n.height = parseInt(n.container.height(), 0);
n.bw = n.width / n.startwidth;
n.bh = n.height / n.startheight;
if (n.bh > 1) {
n.bw = 1;
n.bh = 1
}
if (e.data("orgw") != t) {
e.width(e.data("orgw"));
e.height(e.data("orgh"))
}
var r = n.width / e.width();
var i = n.height / e.height();
n.fw = r;
n.fh = i;
if (e.data("orgw") == t) {
e.data("orgw", e.width());
e.data("orgh", e.height())
}
if (n.fullWidth == "on") {
var s = n.container.parent().width();
var o = n.container.parent().height();
var u = o / e.data("orgh");
var a = s / e.data("orgw");
e.width(e.width() * u);
e.height(o);
if (e.width() < s) {
e.width(s + 50);
var a = e.width() / e.data("orgw");
e.height(e.data("orgh") * a)
}
if (e.width() > s) {
e.data("fxof", s / 2 - e.width() / 2);
e.css({
position: "absolute",
left: e.data("fxof") + "px"
})
}
if (e.height() <= o) {
e.data("fyof", 0);
e.data("fxof", s / 2 - e.width() / 2);
e.css({
position: "absolute",
top: e.data("fyof") + "px",
left: e.data("fxof") + "px"
})
}
if (e.height() > o && e.data("fullwidthcentering") == "on") {
e.data("fyof", o / 2 - e.height() / 2);
e.data("fxof", s / 2 - e.width() / 2);
e.css({
position: "absolute",
top: e.data("fyof") + "px",
left: e.data("fxof") + "px"
})
}
} else {
e.width(n.width);
e.height(e.height() * r);
if (e.height() < n.height && e.height() != 0 && e.height() != null) {
e.height(n.height);
e.width(e.data("orgw") * i)
}
}
e.data("neww", e.width());
e.data("newh", e.height());
if (n.fullWidth == "on") {
n.slotw = Math.ceil(e.width() / n.slots)
} else {
n.slotw = Math.ceil(n.width / n.slots)
}
n.sloth = Math.ceil(n.height / n.slots)
}
function v(n, r) {
n.find(".tp-caption").each(function () {
e(this).addClass(e(this).data("transition"));
e(this).addClass("start")
});
n.find(">ul:first >li").each(function (n) {
var r = e(this);
if (r.data("link") != t) {
var i = r.data("link");
var s = "_self";
var o = 2;
if (r.data("slideindex") == "back") o = 0;
var u = r.data("linktoslide");
if (r.data("target") != t) s = r.data("target");
if (i == "slide") {
r.append('<div class="tp-caption sft slidelink" style="z-index:' + o + ';" data-x="0" data-y="0" data-linktoslide="' + u + '" data-start="0"><a><div></div></a></div>')
} else {
u = "no";
r.append('<div class="tp-caption sft slidelink" style="z-index:' + o + ';" data-x="0" data-y="0" data-linktoslide="' + u + '" data-start="0"><a target="' + s + '" href="' + i + '"><div></div></a></div>')
}
}
});
n.find(">ul:first >li >img").each(function (t) {
var n = e(this);
n.addClass("defaultimg");
d(n, r);
d(n, r);
n.wrap('<div class="slotholder"></div>');
n.css({
opacity: 0
});
n.data("li-id", t)
})
}
function m(e, n, r) {
var i = e;
var s = i.find("img");
d(s, n);
var o = s.attr("src");
var u = s.css("background-color");
var a = s.data("neww");
var f = s.data("newh");
var l = s.data("fxof");
if (l == t) l = 0;
var c = s.data("fyof");
if (s.data("fullwidthcentering") != "on" || c == t) c = 0;
var h = 0;
if (!r) var h = 0 - n.slotw;
for (var p = 0; p < n.slots; p++) i.append('<div class="slot" style="position:absolute;top:' + (0 + c) + "px;left:" + (l + p * n.slotw) + "px;overflow:hidden;width:" + n.slotw + "px;height:" + f + 'px"><div class="slotslide" style="position:absolute;top:0px;left:' + h + "px;width:" + n.slotw + "px;height:" + f + 'px;overflow:hidden;"><img style="background-color:' + u + ";position:absolute;top:0px;left:" + (0 - p * n.slotw) + "px;width:" + a + "px;height:" + f + 'px" src="' + o + '"></div></div>')
}
function g(e, n, r) {
var i = e;
var s = i.find("img");
d(s, n);
var o = s.attr("src");
var u = s.css("background-color");
var a = s.data("neww");
var f = s.data("newh");
var l = s.data("fxof");
if (l == t) l = 0;
var c = s.data("fyof");
if (s.data("fullwidthcentering") != "on" || c == t) c = 0;
var h = 0;
if (!r) var h = 0 - n.sloth;
for (var p = 0; p < n.slots + 2; p++) i.append('<div class="slot" style="position:absolute;' + "top:" + (c + p * n.sloth) + "px;" + "left:" + l + "px;" + "overflow:hidden;" + "width:" + a + "px;" + "height:" + n.sloth + 'px"' + '><div class="slotslide" style="position:absolute;' + "top:" + h + "px;" + "left:0px;width:" + a + "px;" + "height:" + n.sloth + "px;" + 'overflow:hidden;"><img style="position:absolute;' + "background-color:" + u + ";" + "top:" + (0 - p * n.sloth) + "px;" + "left:0px;width:" + a + "px;" + "height:" + f + 'px" src="' + o + '"></div></div>')
}
function y(e, n, r) {
var i = e;
var s = i.find("img");
d(s, n);
var o = s.attr("src");
var u = s.css("background-color");
var a = s.data("neww");
var f = s.data("newh");
var l = s.data("fxof");
if (l == t) l = 0;
var c = s.data("fyof");
if (s.data("fullwidthcentering") != "on" || c == t) c = 0;
var h = 0;
var p = 0;
if (n.sloth > n.slotw) p = n.sloth;
else p = n.slotw; if (!r) {
var h = 0 - p
}
n.slotw = p;
n.sloth = p;
var v = 0;
var m = 0;
for (var g = 0; g < n.slots; g++) {
m = 0;
for (var y = 0; y < n.slots; y++) {
i.append('<div class="slot" ' + 'style="position:absolute;' + "top:" + (c + m) + "px;" + "left:" + (l + v) + "px;" + "width:" + p + "px;" + "height:" + p + "px;" + 'overflow:hidden;">' + '<div class="slotslide" data-x="' + v + '" data-y="' + m + '" ' + 'style="position:absolute;' + "top:" + 0 + "px;" + "left:" + 0 + "px;" + "width:" + p + "px;" + "height:" + p + "px;" + 'overflow:hidden;">' + '<img style="position:absolute;' + "top:" + (0 - m) + "px;" + "left:" + (0 - v) + "px;" + "width:" + a + "px;" + "height:" + f + "px" + "background-color:" + u + ';"' + 'src="' + o + '"></div></div>');
m = m + p
}
v = v + p
}
}
function b(n, r, i) {
if (i == t) i == 80;
setTimeout(function () {
n.find(".slotholder .slot").each(function () {
clearTimeout(e(this).data("tout"));
e(this).remove()
});
r.transition = 0
}, i)
}
function w(e, t) {
var n = e.find(">li:eq(" + t.act + ")");
var r = e.find(">li:eq(" + t.next + ")");
var i = r.find(".tp-caption");
if (i.find("iframe") == 0) {
if (i.hasClass("hcenter")) i.css({
height: t.height + "px",
top: "0px",
left: t.width / 2 - i.outerWidth() / 2 + "px"
});
else if (i.hasClass("vcenter")) i.css({
width: t.width + "px",
left: "0px",
top: t.height / 2 - i.outerHeight() / 2 + "px"
})
}
}
function E(n, r) {
n.trigger("revolution.slide.onbeforeswap");
r.transition = 1;
r.videoplaying = false;
try {
var i = n.find(">ul:first-child >li:eq(" + r.act + ")")
} catch (s) {
var i = n.find(">ul:first-child >li:eq(1)")
}
r.lastslide = r.act;
var o = n.find(">ul:first-child >li:eq(" + r.next + ")");
var a = i.find(".slotholder");
var f = o.find(".slotholder");
i.css({
visibility: "visible"
});
o.css({
visibility: "visible"
});
if (r.ie) {
if (o.data("transition") == "boxfade") o.data("transition", "boxslide");
if (o.data("transition") == "slotfade-vertical") o.data("transition", "slotzoom-vertical");
if (o.data("transition") == "slotfade-horizontal") o.data("transition", "slotzoom-horizontal")
}
if (o.data("delay") != t) {
r.cd = 0;
r.delay = o.data("delay")
} else {
r.delay = r.origcd
}
i.css({
left: "0px",
top: "0px"
});
o.css({
left: "0px",
top: "0px"
});
if (o.data("differentissplayed") == "prepared") {
o.data("differentissplayed", "done");
o.data("transition", o.data("savedtransition"));
o.data("slotamount", o.data("savedslotamount"));
o.data("masterspeed", o.data("savedmasterspeed"))
}
if (o.data("fstransition") != t && o.data("differentissplayed") != "done") {
o.data("savedtransition", o.data("transition"));
o.data("savedslotamount", o.data("slotamount"));
o.data("savedmasterspeed", o.data("masterspeed"));
o.data("transition", o.data("fstransition"));
o.data("slotamount", o.data("fsslotamount"));
o.data("masterspeed", o.data("fsmasterspeed"));
o.data("differentissplayed", "prepared")
}
var l = 0;
if (o.data("transition") == "boxslide") l = 0;
else if (o.data("transition") == "boxfade") l = 1;
else if (o.data("transition") == "slotslide-horizontal") l = 2;
else if (o.data("transition") == "slotslide-vertical") l = 3;
else if (o.data("transition") == "curtain-1") l = 4;
else if (o.data("transition") == "curtain-2") l = 5;
else if (o.data("transition") == "curtain-3") l = 6;
else if (o.data("transition") == "slotzoom-horizontal") l = 7;
else if (o.data("transition") == "slotzoom-vertical") l = 8;
else if (o.data("transition") == "slotfade-horizontal") l = 9;
else if (o.data("transition") == "slotfade-vertical") l = 10;
else if (o.data("transition") == "fade") l = 11;
else if (o.data("transition") == "slideleft") l = 12;
else if (o.data("transition") == "slideup") l = 13;
else if (o.data("transition") == "slidedown") l = 14;
else if (o.data("transition") == "slideright") l = 15;
else if (o.data("transition") == "papercut") l = 16;
else if (o.data("transition") == "3dcurtain-horizontal") l = 17;
else if (o.data("transition") == "3dcurtain-vertical") l = 18;
else if (o.data("transition") == "cubic" || o.data("transition") == "cube") l = 19;
else if (o.data("transition") == "flyin") l = 20;
else if (o.data("transition") == "turnoff") l = 21;
else {
l = Math.round(Math.random() * 21);
o.data("slotamount", Math.round(Math.random() * 12 + 4))
} if (o.data("transition") == "random-static") {
l = Math.round(Math.random() * 16);
if (l > 15) l = 15;
if (l < 0) l = 0
}
if (o.data("transition") == "random-premium") {
l = Math.round(Math.random() * 6 + 16);
if (l > 21) l = 21;
if (l < 16) l = 16
}
var c = -1;
if (r.leftarrowpressed == 1 || r.act > r.next) c = 1;
if (o.data("transition") == "slidehorizontal") {
l = 12;
if (r.leftarrowpressed == 1) l = 15
}
if (o.data("transition") == "slidevertical") {
l = 13;
if (r.leftarrowpressed == 1) l = 14
}
r.leftarrowpressed = 0;
if (l > 21) l = 21;
if (l < 0) l = 0;
if ((r.ie || r.ie9) && l > 18) {
l = Math.round(Math.random() * 16);
o.data("slotamount", Math.round(Math.random() * 12 + 4))
}
if (r.ie && (l == 17 || l == 16 || l == 2 || l == 3 || l == 9 || l == 10)) l = Math.round(Math.random() * 3 + 12);
if (r.ie9 && l == 3) l = 4;
var h = 300;
if (o.data("masterspeed") != t && o.data("masterspeed") > 99 && o.data("masterspeed") < 4001) h = o.data("masterspeed");
n.parent().find(".bullet").each(function () {
var t = e(this);
t.removeClass("selected");
if (r.navigationArrows == "withbullet" || r.navigationArrows == "nexttobullets") {
if (t.index() - 1 == r.next) t.addClass("selected")
} else {
if (t.index() == r.next) t.addClass("selected")
}
});
n.find(">li").each(function () {
var t = e(this);
if (t.index != r.act && t.index != r.next) t.css({
"z-index": 16
})
});
i.css({
"z-index": 18
});
o.css({
"z-index": 20
});
o.css({
opacity: 0
});
A(i, r);
L(o, r);
if (o.data("slotamount") == t || o.data("slotamount") < 1) {
r.slots = Math.round(Math.random() * 12 + 4);
if (o.data("transition") == "boxslide") r.slots = Math.round(Math.random() * 6 + 3)
} else {
r.slots = o.data("slotamount")
} if (o.data("rotate") == t) r.rotate = 0;
else if (o.data("rotate") == 999) r.rotate = Math.round(Math.random() * 360);
else r.rotate = o.data("rotate"); if (!e.support.transition || r.ie || r.ie9) r.rotate = 0;
if (r.firststart == 1) {
i.css({
opacity: 0
});
r.firststart = 0
}
if (l == 0) {
h = h + 100;
if (r.slots > 10) r.slots = 10;
o.css({
opacity: 1
});
y(a, r, true);
y(f, r, false);
f.find(".defaultimg").css({
opacity: 0
});
f.find(".slotslide").each(function (t) {
var s = e(this);
if (r.ie9) s.transition({
top: 0 - r.sloth,
left: 0 - r.slotw
}, 0);
else s.transition({
top: 0 - r.sloth,
left: 0 - r.slotw,
rotate: r.rotate
}, 0);
setTimeout(function () {
s.transition({
top: 0,
left: 0,
scale: 1,
rotate: 0
}, h * 1.5, function () {
if (t == r.slots * r.slots - 1) {
b(n, r);
f.find(".defaultimg").css({
opacity: 1
});
if (o.index() != i.index()) a.find(".defaultimg").css({
opacity: 0
});
r.act = r.next;
u(n)
}
})
}, t * 15)
})
}
if (l == 1) {
if (r.slots > 5) r.slots = 5;
o.css({
opacity: 1
});
y(f, r, false);
f.find(".defaultimg").css({
opacity: 0
});
f.find(".slotslide").each(function (t) {
var s = e(this);
s.css({
opacity: 0
});
s.find("img").css({
opacity: 0
});
if (r.ie9) s.find("img").transition({
top: Math.random() * r.slotw - r.slotw + "px",
left: Math.random() * r.slotw - r.slotw + "px"
}, 0);
else s.find("img").transition({
top: Math.random() * r.slotw - r.slotw + "px",
left: Math.random() * r.slotw - r.slotw + "px",
rotate: r.rotate
}, 0);
var l = Math.random() * 1e3 + (h + 200);
if (t == r.slots * r.slots - 1) l = 1500;
s.find("img").transition({
opacity: 1,
top: 0 - s.data("y") + "px",
left: 0 - s.data("x") + "px",
rotate: 0
}, l);
s.transition({
opacity: 1
}, l, function () {
if (t == r.slots * r.slots - 1) {
b(n, r);
f.find(".defaultimg").css({
opacity: 1
});
if (o.index() != i.index()) a.find(".defaultimg").css({
opacity: 0
});
r.act = r.next;
u(n)
}
})
})
}
if (l == 2) {
h = h + 200;
o.css({
opacity: 1
});
m(a, r, true);
m(f, r, false);
f.find(".defaultimg").css({
opacity: 0
});
a.find(".slotslide").each(function () {
var t = e(this);
t.transit({
left: r.slotw + "px",
rotate: 0 - r.rotate
}, h, function () {
b(n, r);
f.find(".defaultimg").css({
opacity: 1
});
if (o.index() != i.index()) a.find(".defaultimg").css({
opacity: 0
});
r.act = r.next;
u(n)
})
});
f.find(".slotslide").each(function () {
var t = e(this);
if (r.ie9) t.transit({
left: 0 - r.slotw + "px"
}, 0);
else t.transit({
left: 0 - r.slotw + "px",
rotate: r.rotate
}, 0);
t.transit({
left: "0px",
rotate: 0
}, h, function () {
b(n, r);
f.find(".defaultimg").css({
opacity: 1
});
if (o.index() != i.index()) a.find(".defaultimg").css({
opacity: 0
});
if (r.ie) a.find(".defaultimg").css({
opacity: 1
});
r.act = r.next;
u(n)
})
})
}
if (l == 3) {
h = h + 200;
o.css({
opacity: 1
});
g(a, r, true);
g(f, r, false);
f.find(".defaultimg").css({
opacity: 0
});
a.find(".slotslide").each(function () {
var t = e(this);
t.transit({
top: r.sloth + "px",
rotate: r.rotate
}, h, function () {
b(n, r);
f.find(".defaultimg").css({
opacity: 1
});
if (o.index() != i.index()) a.find(".defaultimg").css({
opacity: 0
});
r.act = r.next;
u(n)
})
});
f.find(".slotslide").each(function () {
var t = e(this);
if (r.ie9) t.transit({
top: 0 - r.sloth + "px"
}, 0);
else t.transit({
top: 0 - r.sloth + "px",
rotate: r.rotate
}, 0);
t.transit({
top: "0px",
rotate: 0
}, h, function () {
b(n, r);
f.find(".defaultimg").css({
opacity: 1
});
if (o.index() != i.index()) a.find(".defaultimg").css({
opacity: 0
});
r.act = r.next;
u(n)
})
})
}
if (l == 4) {
o.css({
opacity: 1
});
m(a, r, true);
m(f, r, true);
f.find(".defaultimg").css({
opacity: 0
});
a.find(".defaultimg").css({
opacity: 0
});
a.find(".slotslide").each(function (t) {
var n = e(this);
n.transit({
top: 0 + r.height + "px",
opacity: 1,
rotate: r.rotate
}, h + t * (70 - r.slots))
});
f.find(".slotslide").each(function (t) {
var s = e(this);
if (r.ie9) s.transition({
top: 0 - r.height + "px",
opacity: 0
}, 0);
else s.transition({
top: 0 - r.height + "px",
opacity: 0,
rotate: r.rotate
}, 0);
s.transition({
top: "0px",
opacity: 1,
rotate: 0
}, h + t * (70 - r.slots), function () {
if (t == r.slots - 1) {
b(n, r);
f.find(".defaultimg").css({
opacity: 1
});
if (o.index() != i.index()) a.find(".defaultimg").css({
opacity: 0
});
r.act = r.next;
u(n)
}
})
})
}
if (l == 5) {
o.css({
opacity: 1
});
m(a, r, true);
m(f, r, true);
f.find(".defaultimg").css({
opacity: 0
});
a.find(".defaultimg").css({
opacity: 0
});
a.find(".slotslide").each(function (t) {
var n = e(this);
n.transition({
top: 0 + r.height + "px",
opacity: 1,
rotate: r.rotate
}, h + (r.slots - t) * (70 - r.slots))
});
f.find(".slotslide").each(function (t) {
var s = e(this);
if (r.ie9) s.transition({
top: 0 - r.height + "px",
opacity: 0
}, 0);
else s.transition({
top: 0 - r.height + "px",
opacity: 0,
rotate: r.rotate
}, 0);
s.transition({
top: "0px",
opacity: 1,
rotate: 0
}, h + (r.slots - t) * (70 - r.slots), function () {
if (t == 0) {
b(n, r);
f.find(".defaultimg").css({
opacity: 1
});
if (o.index() != i.index()) a.find(".defaultimg").css({
opacity: 0
});
r.act = r.next;
u(n)
}
})
})
}
if (l == 6) {
o.css({
opacity: 1
});
if (r.slots < 2) r.slots = 2;
m(a, r, true);
m(f, r, true);
f.find(".defaultimg").css({
opacity: 0
});
a.find(".defaultimg").css({
opacity: 0
});
a.find(".slotslide").each(function (t) {
var n = e(this);
if (t < r.slots / 2) var i = (t + 2) * 60;
else var i = (2 + r.slots - t) * 60;
n.transition({
top: 0 + r.height + "px",
opacity: 1
}, h + i)
});
f.find(".slotslide").each(function (t) {
var s = e(this);
if (r.ie9) s.transition({
top: 0 - r.height + "px",
opacity: 0
}, 0);
else s.transition({
top: 0 - r.height + "px",
opacity: 0,
rotate: r.rotate
}, 0); if (t < r.slots / 2) var l = (t + 2) * 60;
else var l = (2 + r.slots - t) * 60;
s.transition({
top: "0px",
opacity: 1,
rotate: 0
}, h + l, function () {
if (t == Math.round(r.slots / 2)) {
b(n, r);
f.find(".defaultimg").css({
opacity: 1
});
if (o.index() != i.index()) a.find(".defaultimg").css({
opacity: 0
});
r.act = r.next;
u(n)
}
})
})
}
if (l == 7) {
h = h * 3;
o.css({
opacity: 1
});
m(a, r, true);
m(f, r, true);
f.find(".defaultimg").css({
opacity: 0
});
a.find(".slotslide").each(function () {
var t = e(this).find("img");
t.transition({
left: 0 - r.slotw / 2 + "px",
top: 0 - r.height / 2 + "px",
width: r.slotw * 2 + "px",
height: r.height * 2 + "px",
opacity: 0,
rotate: r.rotate
}, h, function () {
b(n, r);
f.find(".defaultimg").css({
opacity: 1
});
if (o.index() != i.index()) a.find(".defaultimg").css({
opacity: 0
});
r.act = r.next;
u(n)
})
});
/ /;
f.find(".slotslide").each(function (t) {
var s = e(this).find("img");
if (r.ie9) s.transition({
left: 0 + "px",
top: 0 + "px",
opacity: 0
}, 0);
else s.transition({
left: 0 + "px",
top: 0 + "px",
opacity: 0,
rotate: r.rotate
}, 0);
s.transition({
left: 0 - t * r.slotw + "px",
top: 0 + "px",
width: f.find(".defaultimg").data("neww") + "px",
height: f.find(".defaultimg").data("newh") + "px",
opacity: 1,
rotate: 0
}, h, function () {
b(n, r);
f.find(".defaultimg").css({
opacity: 1
});
if (o.index() != i.index()) a.find(".defaultimg").css({
opacity: 0
});
r.act = r.next;
u(n)
})
})
}
if (l == 8) {
h = h * 3;
o.css({
opacity: 1
});
g(a, r, true);
g(f, r, true);
f.find(".defaultimg").css({
opacity: 0
});
a.find(".slotslide").each(function () {
var t = e(this).find("img");
t.transition({
left: 0 - r.width / 2 + "px",
top: 0 - r.sloth / 2 + "px",
width: r.width * 2 + "px",
height: r.sloth * 2 + "px",
opacity: 0,
rotate: r.rotate
}, h, function () {
b(n, r);
f.find(".defaultimg").css({
opacity: 1
});
if (o.index() != i.index()) a.find(".defaultimg").css({
opacity: 0
});
r.act = r.next;
u(n)
})
});
f.find(".slotslide").each(function (t) {
var s = e(this).find("img");
if (r.ie9) s.transition({
left: 0 + "px",
top: 0 + "px",
opacity: 0
}, 0);
else s.transition({
left: 0 + "px",
top: 0 + "px",
opacity: 0,
rotate: r.rotate
}, 0);
s.transition({
left: 0 + "px",
top: 0 - t * r.sloth + "px",
width: f.find(".defaultimg").data("neww") + "px",
height: f.find(".defaultimg").data("newh") + "px",
opacity: 1,
rotate: 0
}, h, function () {
b(n, r);
f.find(".defaultimg").css({
opacity: 1
});
if (o.index() != i.index()) a.find(".defaultimg").css({
opacity: 0
});
r.act = r.next;
u(n)
})
})
}
if (l == 9) {
o.css({
opacity: 1
});
r.slots = r.width / 20;
m(f, r, true);
f.find(".defaultimg").css({
opacity: 0
});
var p = 0;
f.find(".slotslide").each(function (t) {
var n = e(this);
p++;
n.transition({
opacity: 0,
x: 0,
y: 0
}, 0);
n.data("tout", setTimeout(function () {
n.transition({
x: 0,
y: 0,
opacity: 1
}, h)
}, t * 4))
});
setTimeout(function () {
b(n, r);
f.find(".defaultimg").css({
opacity: 1
});
if (o.index() != i.index()) a.find(".defaultimg").css({
opacity: 0
});
if (r.ie) a.find(".defaultimg").css({
opacity: 1
});
r.act = r.next;
u(n)
}, h + p * 4)
}
if (l == 10) {
o.css({
opacity: 1
});
r.slots = r.height / 20;
g(f, r, true);
f.find(".defaultimg").css({
opacity: 0
});
var p = 0;
f.find(".slotslide").each(function (t) {
var n = e(this);
p++;
n.transition({
opacity: 0,
x: 0,
y: 0
}, 0);
n.data("tout", setTimeout(function () {
n.transition({
x: 0,
y: 0,
opacity: 1
}, h)
}, t * 4))
});
setTimeout(function () {
b(n, r);
f.find(".defaultimg").css({
opacity: 1
});
if (o.index() != i.index()) a.find(".defaultimg").css({
opacity: 0
});
if (r.ie) a.find(".defaultimg").css({
opacity: 1
});
r.act = r.next;
u(n)
}, h + p * 4)
}
if (l == 11) {
o.css({
opacity: 1
});
r.slots = 1;
m(f, r, true);
f.find(".defaultimg").css({
opacity: 0,
position: "relative"
});
var p = 0;
f.find(".slotslide").each(function (t) {
var n = e(this);
p++;
if (r.ie9 || r.ie) {
if (r.ie) o.css({
opacity: "0"
});
n.css({
opacity: 0
})
} else n.transition({
opacity: 0,
rotate: r.rotate
}, 0);
setTimeout(function () {
if (r.ie9 || r.ie) {
if (r.ie) o.animate({
opacity: 1
}, {
duration: h
});
else n.transition({
opacity: 1
}, h)
} else {
n.transition({
opacity: 1,
rotate: 0
}, h)
}
}, 10)
});
setTimeout(function () {
b(n, r);
f.find(".defaultimg").css({
opacity: 1
});
if (o.index() != i.index()) a.find(".defaultimg").css({
opacity: 0
});
if (r.ie) a.find(".defaultimg").css({
opacity: 1
});
r.act = r.next;
u(n)
}, h + 15)
}
if (l == 12 || l == 13 || l == 14 || l == 15) {
h = h * 3;
o.css({
opacity: 1
});
r.slots = 1;
m(f, r, true);
m(a, r, true);
a.find(".defaultimg").css({
opacity: 0
});
f.find(".defaultimg").css({
opacity: 0
});
var d = r.width;
var v = r.height;
if (r.fullWidth == "on") {
d = r.container.parent().width();
v = r.container.parent().height()
}
var w = f.find(".slotslide");
if (l == 12) if (r.ie9) {
w.transition({
left: d + "px"
}, 0)
} else {
w.transition({
left: d + "px",
rotate: r.rotate
}, 0)
} else if (l == 15) if (r.ie9) w.transition({
left: 0 - r.width + "px"
}, 0);
else w.transition({
left: 0 - r.width + "px",
rotate: r.rotate
}, 0);
else if (l == 13) if (r.ie9) w.transition({
top: v + "px"
}, 0);
else w.transition({
top: v + "px",
rotate: r.rotate
}, 0);
else if (l == 14) if (r.ie9) w.transition({
top: 0 - r.height + "px"
}, 0);
else w.transition({
top: 0 - r.height + "px",
rotate: r.rotate
}, 0);
w.transition({
left: "0px",
top: "0px",
opacity: 1,
rotate: 0
}, h, function () {
b(n, r, 0);
if (o.index() != i.index()) a.find(".defaultimg").css({
opacity: 0
});
f.find(".defaultimg").css({
opacity: 1
});
r.act = r.next;
u(n)
});
var E = a.find(".slotslide");
if (l == 12) E.transition({
left: 0 - d + "px",
opacity: 1,
rotate: 0
}, h);
else if (l == 15) E.transition({
left: d + "px",
opacity: 1,
rotate: 0
}, h);
else if (l == 13) E.transition({
top: 0 - v + "px",
opacity: 1,
rotate: 0
}, h);
else if (l == 14) E.transition({
top: v + "px",
opacity: 1,
rotate: 0
}, h)
}
if (l == 16) {
i.css({
position: "absolute",
"z-index": 20
});
o.css({
position: "absolute",
"z-index": 15
});
i.wrapInner('<div class="tp-half-one"></div>');
i.find(".tp-half-one").clone(true).appendTo(i).addClass("tp-half-two");
i.find(".tp-half-two").removeClass("tp-half-one");
i.find(".tp-half-two").wrapInner('<div class="tp-offset"></div>');
var S = i.find(".defaultimg");
if (S.length > 0 && S.data("fullwidthcentering") == "on") {
var x = S.height() / 2;
var T = S.position().top
} else {
var x = r.height / 2;
var T = 0
}
i.find(".tp-half-one").css({
width: r.width + "px",
height: T + x + "px",
overflow: "hidden",
position: "absolute",
top: "0px",
left: "0px"
});
i.find(".tp-half-two").css({
width: r.width + "px",
height: T + x + "px",
overflow: "hidden",
position: "absolute",
top: T + x + "px",
left: "0px"
});
i.find(".tp-half-two .tp-offset").css({
position: "absolute",
top: 0 - x - T + "px",
left: "0px"
});
if (!e.support.transition) {
i.find(".tp-half-one").animate({
opacity: 0,
top: 0 - r.height / 2 + "px"
}, {
duration: 500,
queue: false
});
i.find(".tp-half-two").animate({
opacity: 0,
top: r.height + "px"
}, {
duration: 500,
queue: false
})
} else {
var N = Math.round(Math.random() * 40 - 20);
var C = Math.round(Math.random() * 40 - 20);
var k = Math.random() * 1 + 1;
var O = Math.random() * 1 + 1;
i.find(".tp-half-one").transition({
opacity: 1,
scale: k,
rotate: N,
y: 0 - r.height / 1.4 + "px"
}, 800, "in");
i.find(".tp-half-two").transition({
opacity: 1,
scale: O,
rotate: C,
y: 0 + r.height / 1.4 + "px"
}, 800, "in");
if (i.html() != null) o.transition({
scale: .8,
x: r.width * .1,
y: r.height * .1,
rotate: N
}, 0).transition({
rotate: 0,
scale: 1,
x: 0,
y: 0
}, 600, "snap")
}
f.find(".defaultimg").css({
opacity: 1
});
setTimeout(function () {
i.css({
position: "absolute",
"z-index": 18
});
o.css({
position: "absolute",
"z-index": 20
});
f.find(".defaultimg").css({
opacity: 1
});
a.find(".defaultimg").css({
opacity: 0
});
if (i.find(".tp-half-one").length > 0) {
i.find(".tp-half-one >img, .tp-half-one >div").unwrap()
}
i.find(".tp-half-two").remove();
r.transition = 0;
r.act = r.next
}, 800);
o.css({
opacity: 1
})
}
if (l == 17) {
h = h + 100;
if (r.slots > 10) r.slots = 10;
o.css({
opacity: 1
});
g(a, r, true);
g(f, r, false);
f.find(".defaultimg").css({
opacity: 0
});
f.find(".slotslide").each(function (t) {
var s = e(this);
s.transition({
opacity: 0,
rotateY: 350,
rotateX: 40,
perspective: "1400px"
}, 0);
setTimeout(function () {
s.transition({
opacity: 1,
top: 0,
left: 0,
scale: 1,
perspective: "150px",
rotate: 0,
rotateY: 0,
rotateX: 0
}, h * 2, function () {
if (t == r.slots - 1) {
b(n, r);
f.find(".defaultimg").css({
opacity: 1
});
if (o.index() != i.index()) a.find(".defaultimg").css({
opacity: 0
});
r.act = r.next;
u(n)
}
})
}, t * 100)
})
}
if (l == 18) {
h = h + 100;
if (r.slots > 10) r.slots = 10;
o.css({
opacity: 1
});
m(a, r, true);
m(f, r, false);
f.find(".defaultimg").css({
opacity: 0
});
f.find(".slotslide").each(function (t) {
var s = e(this);
s.transition({
rotateX: 10,
rotateY: 310,
perspective: "1400px",
rotate: 0,
opacity: 0
}, 0);
setTimeout(function () {
s.transition({
top: 0,
left: 0,
scale: 1,
perspective: "150px",
rotate: 0,
rotateY: 0,
rotateX: 0,
opacity: 1
}, h * 2, function () {
if (t == r.slots - 1) {
b(n, r);
f.find(".defaultimg").css({
opacity: 1
});
if (o.index() != i.index()) a.find(".defaultimg").css({
opacity: 0
});
r.act = r.next;
u(n)
}
})
}, t * 100)
})
}
if (l == 19) {
h = h + 100;
if (r.slots > 10) r.slots = 10;
o.css({
opacity: 1
});
m(a, r, true);
m(f, r, false);
f.find(".defaultimg").css({
opacity: 0
});
var M = o.css("z-index");
var _ = i.css("z-index");
f.find(".slotslide").each(function (t) {
var s = e(this);
s.parent().css({
overflow: "visible"
});
s.css({
background: "#333"
});
if (c == 1) s.transition({
opacity: 0,
left: 0,
top: r.height / 2,
rotate3d: "1, 0, 0, -90deg "
}, 0);
else s.transition({
opacity: 0,
left: 0,
top: 0 - r.height / 2,
rotate3d: "1, 0, 0, 90deg "
}, 0);
setTimeout(function () {
s.transition({
opacity: 1,
top: 0,
perspective: r.height * 2,
rotate3d: " 1, 0, 0, 0deg "
}, h * 2, function () {
if (t == r.slots - 1) {
b(n, r);
f.find(".defaultimg").css({
opacity: 1
});
if (o.index() != i.index()) a.find(".defaultimg").css({
opacity: 0
});
r.act = r.next;
u(n)
}
})
}, t * 150)
});
a.find(".slotslide").each(function (t) {
var n = e(this);
n.parent().css({
overflow: "visible"
});
n.css({
background: "#333"
});
n.transition({
top: 0,
rotate3d: "1, 0, 0, 0deg"
}, 0);
a.find(".defaultimg").css({
opacity: 0
});
setTimeout(function () {
if (c == 1) n.transition({
opacity: .6,
left: 0,
perspective: r.height * 2,
top: 0 - r.height / 2,
rotate3d: "1, 0, 0, 90deg"
}, h * 2, function () {});
else n.transition({
opacity: .6,
left: 0,
perspective: r.height * 2,
top: 0 + r.height / 2,
rotate3d: "1, 0, 0, -90deg"
}, h * 2, function () {})
}, t * 150)
})
}
if (l == 20) {
h = h + 100;
if (r.slots > 10) r.slots = 10;
o.css({
opacity: 1
});
g(a, r, true);
g(f, r, false);
f.find(".defaultimg").css({
opacity: 0
});
f.find(".slotslide").each(function (t) {
var s = e(this);
s.parent().css({
overflow: "visible"
});
if (c == 1) s.transition({
scale: .8,
top: 0,
left: 0 - r.width,
rotate3d: "2, 5, 0, 110deg"
}, 0);
else s.transition({
scale: .8,
top: 0,
left: 0 + r.width,
rotate3d: "2, 5, 0, -110deg"
}, 0);
setTimeout(function () {
s.transition({
scale: .8,
left: 0,
perspective: r.width,
rotate3d: "1, 5, 0, 0deg"
}, h * 2, "ease").transition({
scale: 1
}, 200, "out", function () {
if (t == r.slots - 1) {
b(n, r);
f.find(".defaultimg").css({
opacity: 1
});
if (o.index() != i.index()) a.find(".defaultimg").css({
opacity: 0
});
r.act = r.next;
u(n)
}
})
}, t * 100)
});
a.find(".slotslide").each(function (t) {
var n = e(this);
n.transition({
scale: .5,
left: 0,
rotate3d: "1, 5, 0, 5deg"
}, 300, "in-out");
a.find(".defaultimg").css({
opacity: 0
});
setTimeout(function () {
if (c == 1) n.transition({
top: 0,
left: r.width / 2,
perspective: r.width,
rotate3d: "0, -3, 0, 70deg",
opacity: 0
}, h * 2, "out", function () {});
else n.transition({
top: 0,
left: 0 - r.width / 2,
perspective: r.width,
rotate3d: "0, -3, 0, -70deg",
opacity: 0
}, h * 2, "out", function () {})
}, t * 100)
})
}
if (l == 21) {
h = h + 100;
if (r.slots > 10) r.slots = 10;
o.css({
opacity: 1
});
g(a, r, true);
g(f, r, false);
f.find(".defaultimg").css({
opacity: 0
});
f.find(".slotslide").each(function (t) {
var s = e(this);
if (c == 1) s.transition({
top: 0,
left: 0 - r.width,
rotate3d: "0, 1, 0, 90deg"
}, 0);
else s.transition({
top: 0,
left: 0 + r.width,
rotate3d: "0, 1, 0, -90deg"
}, 0);
setTimeout(function () {
s.transition({
left: 0,
perspective: r.width * 2,
rotate3d: "0, 0, 0, 0deg"
}, h * 2, function () {
if (t == r.slots - 1) {
b(n, r);
f.find(".defaultimg").css({
opacity: 1
});
if (o.index() != i.index()) a.find(".defaultimg").css({
opacity: 0
});
r.act = r.next;
u(n)
}
})
}, t * 100)
});
a.find(".slotslide").each(function (t) {
var n = e(this);
n.transition({
left: 0,
rotate3d: "0, 0, 0, 0deg"
}, 0);
a.find(".defaultimg").css({
opacity: 0
});
setTimeout(function () {
if (c == 1) n.transition({
top: 0,
left: r.width / 2,
perspective: r.width,
rotate3d: "0, 1, 0, -90deg"
}, h * 1.5, function () {});
else n.transition({
top: 0,
left: 0 - r.width / 2,
perspective: r.width,
rotate3d: "0, 1, 0, +90deg"
}, h * 1.5, function () {})
}, t * 100)
})
}
var D = {};
D.slideIndex = r.next + 1;
n.trigger("revolution.slide.onchange", D);
setTimeout(function () {
n.trigger("revolution.slide.onafterswap")
}, h);
n.trigger("revolution.slide.onvideostop")
}
function S() {}
function x(t) {
if (t.data == YT.PlayerState.PLAYING) {
var n = e("body").find(".tp-bannertimer");
var r = n.data("opt");
n.stop();
r.videoplaying = true;
r.videostartednow = 1
} else {
var n = e("body").find(".tp-bannertimer");
var r = n.data("opt");
if (r.conthover == 0) n.animate({
width: "100%"
}, {
duration: r.delay - r.cd - 100,
queue: false,
easing: "linear"
});
r.videoplaying = false;
r.videostoppednow = 1
}
}
function T(e) {
e.target.playVideo()
}
function N(e, t, n) {
if (e.addEventListener) {
e.addEventListener(t, n, false)
} else {
e.attachEvent(t, n, false)
}
}
function C(t) {
var n = $f(t);
n.addEvent("ready", function (t) {
n.addEvent("play", function (t) {
var n = e("body").find(".tp-bannertimer");
var r = n.data("opt");
n.stop();
r.videoplaying = true
});
n.addEvent("finish", function (t) {
var n = e("body").find(".tp-bannertimer");
var r = n.data("opt");
if (r.conthover == 0) n.animate({
width: "100%"
}, {
duration: r.delay - r.cd - 100,
queue: false,
easing: "linear"
});
r.videoplaying = false;
r.videostartednow = 1
});
n.addEvent("pause", function (t) {
var n = e("body").find(".tp-bannertimer");
var r = n.data("opt");
if (r.conthover == 0) n.animate({
width: "100%"
}, {
duration: r.delay - r.cd - 100,
queue: false,
easing: "linear"
});
r.videoplaying = false;
r.videostoppednow = 1
})
})
}
function k(t) {
var n = $f(t);
n.addEvent("ready", function (e) {
n.api("play")
});
n.addEvent("play", function (t) {
var n = e("body").find(".tp-bannertimer");
var r = n.data("opt");
n.stop();
r.videoplaying = true
});
n.addEvent("finish", function (t) {
var n = e("body").find(".tp-bannertimer");
var r = n.data("opt");
if (r.conthover == 0) n.animate({
width: "100%"
}, {
duration: r.delay - r.cd - 100,
queue: false,
easing: "linear"
});
r.videoplaying = false;
r.videostartednow = 1
});
n.addEvent("pause", function (t) {
var n = e("body").find(".tp-bannertimer");
var r = n.data("opt");
if (r.conthover == 0) n.animate({
width: "100%"
}, {
duration: r.delay - r.cd - 100,
queue: false,
easing: "linear"
});
r.videoplaying = false;
r.videostoppednow = 1
})
}
function L(n, r, i) {
var s = 0;
n.find(".tp-caption").each(function (i) {
s = r.width / 2 - r.startwidth / 2;
if (r.bh > 1) {
r.bw = 1;
r.bh = 1
}
if (r.bw > 1) {
r.bw = 1;
r.bh = 1
}
var o = r.bw;
var u = r.bh;
var a = n.find(".tp-caption:eq(" + i + ")");
var f = 0;
if (r.width < r.hideCaptionAtLimit && a.data("captionhidden") == "on") {
a.addClass("tp-hidden-caption");
f = 1
} else {
if (r.width < r.hideAllCaptionAtLilmit) {
a.addClass("tp-hidden-caption");
f = 1
} else {
a.removeClass("tp-hidden-caption")
}
}
a.stop(true, true);
if (f == 0) {
if (a.data("linktoslide") != t) {
a.css({
cursor: "pointer"
});
if (a.data("linktoslide") != "no") {
a.click(function () {
var t = e(this);
var n = t.data("linktoslide");
if (n != "next" && n != "prev") {
r.container.data("showus", n);
r.container.parent().find(".tp-rightarrow").click()
} else if (n == "next") r.container.parent().find(".tp-rightarrow").click();
else if (n == "prev") r.container.parent().find(".tp-leftarrow").click()
})
}
}
if (a.hasClass("coloredbg")) s = 0;
if (s < 0) s = 0;
var l = 0;
clearTimeout(a.data("timer"));
clearTimeout(a.data("timer-end"));
var c = "iframe" + Math.round(Math.random() * 1e3 + 1);
if (a.find("iframe").length > 0) {
a.find("iframe").each(function () {
var n = e(this);
if (n.attr("src").toLowerCase().indexOf("youtube") >= 0) {
if (!n.hasClass("HasListener")) {
try {
n.attr("id", c);
var r;
if (a.data("autoplay") == true) r = new YT.Player(c, {
events: {
onStateChange: x,
onReady: T
}
});
else r = new YT.Player(c, {
events: {
onStateChange: x
}
});
n.addClass("HasListener");
a.data("player", r)
} catch (i) {}
} else {
if (a.data("autoplay") == true) {
var r = a.data("player");
r.playVideo()
}
}
} else {
if (n.attr("src").toLowerCase().indexOf("vimeo") >= 0) {
if (!n.hasClass("HasListener")) {
n.addClass("HasListener");
n.attr("id", c);
var s = n.attr("src");
var o = {}, u = s,
f = /([^&=]+)=([^&]*)/g,
l;
while (l = f.exec(u)) {
o[decodeURIComponent(l[1])] = decodeURIComponent(l[2])
}
if (o["player_id"] != t) {
s = s.replace(o["player_id"], c)
} else {
s = s + "&player_id=" + c
}
try {
s = s.replace("api=0", "api=1")
} catch (i) {}
s = s + "&api=1";
n.attr("src", s);
var r = a.find("iframe")[0];
if (a.data("autoplay") == true) $f(r).addEvent("ready", k);
else $f(r).addEvent("ready", C)
} else {
if (a.data("autoplay") == true) {
var n = a.find("iframe");
var h = n.attr("id");
var p = $f(h);
p.api("pause")
}
}
}
}
})
}
if (a.hasClass("randomrotate") && (r.ie || r.ie9)) a.removeClass("randomrotate").addClass("sfb");
a.removeClass("noFilterClass");
var h = 0;
var p = 0;
if (a.find("img").length > 0) {
var d = a.find("img");
if (d.data("ww") == t) d.data("ww", d.width());
if (d.data("hh") == t) d.data("hh", d.height());
var v = d.data("ww");
var m = d.data("hh");
d.width(v * r.bw);
d.height(m * r.bh);
h = d.width();
p = d.height()
} else {
if (a.find("iframe").length > 0) {
var d = a.find("iframe");
if (a.data("ww") == t) {
a.data("ww", d.width())
}
if (a.data("hh") == t) a.data("hh", d.height());
var v = a.data("ww");
var m = a.data("hh");
var g = a;
if (g.data("fsize") == t) g.data("fsize", parseInt(g.css("font-size"), 0) || 0);
if (g.data("pt") == t) g.data("pt", parseInt(g.css("paddingTop"), 0) || 0);
if (g.data("pb") == t) g.data("pb", parseInt(g.css("paddingBottom"), 0) || 0);
if (g.data("pl") == t) g.data("pl", parseInt(g.css("paddingLeft"), 0) || 0);
if (g.data("pr") == t) g.data("pr", parseInt(g.css("paddingRight"), 0) || 0);
if (g.data("mt") == t) g.data("mt", parseInt(g.css("marginTop"), 0) || 0);
if (g.data("mb") == t) g.data("mb", parseInt(g.css("marginBottom"), 0) || 0);
if (g.data("ml") == t) g.data("ml", parseInt(g.css("marginLeft"), 0) || 0);
if (g.data("mr") == t) g.data("mr", parseInt(g.css("marginRight"), 0) || 0);
if (g.data("bt") == t) g.data("bt", parseInt(g.css("borderTop"), 0) || 0);
if (g.data("bb") == t) g.data("bb", parseInt(g.css("borderBottom"), 0) || 0);
if (g.data("bl") == t) g.data("bl", parseInt(g.css("borderLeft"), 0) || 0);
if (g.data("br") == t) g.data("br", parseInt(g.css("borderRight"), 0) || 0);
if (g.data("lh") == t) g.data("lh", parseInt(g.css("lineHeight"), 0) || 0);
var y = r.width;
var b = r.height;
if (y > r.startwidth) y = r.startwidth;
if (b > r.startheight) b = r.startheight;
if (!a.hasClass("fullscreenvideo")) a.css({
"font-size": g.data("fsize") * r.bw + "px",
"padding-top": g.data("pt") * r.bh + "px",
"padding-bottom": g.data("pb") * r.bh + "px",
"padding-left": g.data("pl") * r.bw + "px",
"padding-right": g.data("pr") * r.bw + "px",
"margin-top": g.data("mt") * r.bh + "px",
"margin-bottom": g.data("mb") * r.bh + "px",
"margin-left": g.data("ml") * r.bw + "px",
"margin-right": g.data("mr") * r.bw + "px",
"border-top": g.data("bt") * r.bh + "px",
"border-bottom": g.data("bb") * r.bh + "px",
"border-left": g.data("bl") * r.bw + "px",
"border-right": g.data("br") * r.bw + "px",
"line-height": g.data("lh") * r.bh + "px",
height: m * r.bh + "px",
"white-space": "nowrap"
});
else a.css({
width: r.startwidth * r.bw,
height: r.startheight * r.bh
});
d.width(v * r.bw);
d.height(m * r.bh);
h = d.width();
p = d.height()
} else {
var g = a;
if (g.data("fsize") == t) g.data("fsize", parseInt(g.css("font-size"), 0) || 0);
if (g.data("pt") == t) g.data("pt", parseInt(g.css("paddingTop"), 0) || 0);
if (g.data("pb") == t) g.data("pb", parseInt(g.css("paddingBottom"), 0) || 0);
if (g.data("pl") == t) g.data("pl", parseInt(g.css("paddingLeft"), 0) || 0);
if (g.data("pr") == t) g.data("pr", parseInt(g.css("paddingRight"), 0) || 0);
if (g.data("mt") == t) g.data("mt", parseInt(g.css("marginTop"), 0) || 0);
if (g.data("mb") == t) g.data("mb", parseInt(g.css("marginBottom"), 0) || 0);
if (g.data("ml") == t) g.data("ml", parseInt(g.css("marginLeft"), 0) || 0);
if (g.data("mr") == t) g.data("mr", parseInt(g.css("marginRight"), 0) || 0);
if (g.data("bt") == t) g.data("bt", parseInt(g.css("borderTop"), 0) || 0);
if (g.data("bb") == t) g.data("bb", parseInt(g.css("borderBottom"), 0) || 0);
if (g.data("bl") == t) g.data("bl", parseInt(g.css("borderLeft"), 0) || 0);
if (g.data("br") == t) g.data("br", parseInt(g.css("borderRight"), 0) || 0);
if (g.data("lh") == t) g.data("lh", parseInt(g.css("lineHeight"), 0) || 0);
a.css({
"font-size": g.data("fsize") * r.bw + "px",
"padding-top": g.data("pt") * r.bh + "px",
"padding-bottom": g.data("pb") * r.bh + "px",
"padding-left": g.data("pl") * r.bw + "px",
"padding-right": g.data("pr") * r.bw + "px",
"margin-top": g.data("mt") * r.bh + "px",
"margin-bottom": g.data("mb") * r.bh + "px",
"margin-left": g.data("ml") * r.bw + "px",
"margin-right": g.data("mr") * r.bw + "px",
"border-top": g.data("bt") * r.bh + "px",
"border-bottom": g.data("bb") * r.bh + "px",
"border-left": g.data("bl") * r.bw + "px",
"border-right": g.data("br") * r.bw + "px",
"line-height": g.data("lh") * r.bh + "px",
"white-space": "nowrap"
});
p = a.outerHeight(true);
h = a.outerWidth(true)
}
} if (a.data("x") == "center" || a.data("xcenter") == "center") {
a.data("xcenter", "center");
a.data("x", (r.width / 2 - a.outerWidth(true) / 2) / o - s)
}
if (a.data("y") == "center" || a.data("ycenter") == "center") {
a.data("ycenter", "center");
a.data("y", (r.height / 2 - a.outerHeight(true) / 2) / r.bh)
}
if (a.hasClass("fade")) {
a.css({
opacity: 0,
left: o * a.data("x") + s + "px",
top: r.bh * a.data("y") + "px"
})
}
if (a.hasClass("randomrotate")) {
a.css({
left: o * a.data("x") + s + "px",
top: u * a.data("y") + l + "px"
});
var w = Math.random() * 2 + 1;
var E = Math.round(Math.random() * 200 - 100);
var S = Math.round(Math.random() * 200 - 100);
var N = Math.round(Math.random() * 200 - 100);
a.data("repx", S);
a.data("repy", N);
a.data("repo", a.css("opacity"));
a.data("rotate", E);
a.data("scale", w);
a.transition({
opacity: 0,
scale: w,
rotate: E,
x: S,
y: N,
duration: "0ms"
})
} else {
if (r.ie || r.ie9) {} else {
if (a.find("iframe").length == 0) a.transition({
scale: 1,
rotate: 0
})
}
} if (a.hasClass("lfr")) {
a.css({
opacity: 1,
left: 15 + r.width + "px",
top: r.bh * a.data("y") + "px"
})
}
if (a.hasClass("lfl")) {
a.css({
opacity: 1,
left: -15 - h + "px",
top: r.bh * a.data("y") + "px"
})
}
if (a.hasClass("sfl")) {
a.css({
opacity: 0,
left: o * a.data("x") - 50 + s + "px",
top: r.bh * a.data("y") + "px"
})
}
if (a.hasClass("sfr")) {
a.css({
opacity: 0,
left: o * a.data("x") + 50 + s + "px",
top: r.bh * a.data("y") + "px"
})
}
if (a.hasClass("lft")) {
a.css({
opacity: 1,
left: o * a.data("x") + s + "px",
top: -25 - p + "px"
})
}
if (a.hasClass("lfb")) {
a.css({
opacity: 1,
left: o * a.data("x") + s + "px",
top: 25 + r.height + "px"
})
}
if (a.hasClass("sft")) {
a.css({
opacity: 0,
left: o * a.data("x") + s + "px",
top: r.bh * a.data("y") - 50 + "px"
})
}
if (a.hasClass("sfb")) {
a.css({
opacity: 0,
left: o * a.data("x") + s + "px",
top: r.bh * a.data("y") + 50 + "px"
})
}
a.data("timer", setTimeout(function () {
a.css({
visibility: "visible"
});
if (a.hasClass("fade")) {
a.data("repo", a.css("opacity"));
a.animate({
opacity: 1
}, {
duration: a.data("speed"),
complete: function () {
if (r.ie) e(this).addClass("noFilterClass")
}
})
}
if (a.hasClass("randomrotate")) {
a.transition({
opacity: 1,
scale: 1,
left: o * a.data("x") + s + "px",
top: u * a.data("y") + l + "px",
rotate: 0,
x: 0,
y: 0,
duration: a.data("speed")
});
if (r.ie) a.addClass("noFilterClass")
}
if (a.hasClass("lfr") || a.hasClass("lfl") || a.hasClass("sfr") || a.hasClass("sfl") || a.hasClass("lft") || a.hasClass("lfb") || a.hasClass("sft") || a.hasClass("sfb")) {
var n = a.data("easing");
if (n == t) n = "linear";
a.data("repx", a.position().left);
a.data("repy", a.position().top);
a.data("repo", a.css("opacity"));
a.animate({
opacity: 1,
left: o * a.data("x") + s + "px",
top: r.bh * a.data("y") + "px"
}, {
duration: a.data("speed"),
easing: n,
complete: function () {
if (r.ie) e(this).addClass("noFilterClass")
}
})
}
}, a.data("start")));
if (a.data("end") != t) a.data("timer-end", setTimeout(function () {
if ((r.ie || r.ie9) && (a.hasClass("randomrotate") || a.hasClass("randomrotateout"))) {
a.removeClass("randomrotate").removeClass("randomrotateout").addClass("fadeout")
}
O(a, r)
}, a.data("end")))
}
});
var o = jQuery("body").find("#" + r.container.attr("id")).find(".tp-bannertimer");
o.data("opt", r)
}
function A(e, t) {
e.find(".tp-caption").each(function (n) {
var r = e.find(".tp-caption:eq(" + n + ")");
r.stop(true, true);
clearTimeout(r.data("timer"));
clearTimeout(r.data("timer-end"));
var i = r.data("easing");
i = "easeInOutSine";
var s = r.data("repx");
var o = r.data("repy");
var u = r.data("repo");
var a = r.data("rotate");
var f = r.data("scale");
if (r.find("iframe").length > 0) {
try {
var l = r.find("iframe");
var c = l.attr("id");
var h = $f(c);
h.api("pause")
} catch (p) {}
try {
var d = r.data("player");
d.stopVideo()
} catch (p) {}
}
try {
O(r, t)
} catch (p) {}
})
}
function O(n, r) {
if (n.hasClass("randomrotate") && (r.ie || r.ie9)) n.removeClass("randomrotate").addClass("sfb");
if (n.hasClass("randomrotateout") && (r.ie || r.ie9)) n.removeClass("randomrotateout").addClass("stb");
var i = n.data("endspeed");
if (i == t) i = n.data("speed");
var s = n.data("repx");
var o = n.data("repy");
var u = n.data("repo");
if (r.ie) {
n.css({
opacity: "inherit",
filter: "inherit"
})
}
if (n.hasClass("ltr") || n.hasClass("ltl") || n.hasClass("str") || n.hasClass("stl") || n.hasClass("ltt") || n.hasClass("ltb") || n.hasClass("stt") || n.hasClass("stb")) {
s = n.position().left;
o = n.position().top;
if (n.hasClass("ltr")) s = r.width + 60;
else if (n.hasClass("ltl")) s = 0 - n.width() - 60;
else if (n.hasClass("ltt")) o = 0 - n.height() - 60;
else if (n.hasClass("ltb")) o = r.height + 60;
else if (n.hasClass("str")) {
s = s + 50;
u = 0
} else if (n.hasClass("stl")) {
s = s - 50;
u = 0
} else if (n.hasClass("stt")) {
o = o - 50;
u = 0
} else if (n.hasClass("stb")) {
o = o + 50;
u = 0
}
var a = n.data("endeasing");
if (a == t) a = "linear";
n.animate({
opacity: u,
left: s + "px",
top: o + "px"
}, {
duration: n.data("endspeed"),
easing: a,
complete: function () {
e(this).css({
visibility: "hidden"
})
}
});
if (r.ie) n.removeClass("noFilterClass")
} else if (n.hasClass("randomrotateout")) {
n.transition({
opacity: 0,
scale: Math.random() * 2 + .3,
left: Math.random() * r.width + "px",
top: Math.random() * r.height + "px",
rotate: Math.random() * 40,
duration: i,
complete: function () {
e(this).css({
visibility: "hidden"
})
}
});
if (r.ie) n.removeClass("noFilterClass")
} else if (n.hasClass("fadeout")) {
if (r.ie) n.removeClass("noFilterClass");
n.animate({
opacity: 0
}, {
duration: 200,
complete: function () {
e(this).css({
visibility: "hidden"
})
}
})
} else if (n.hasClass("lfr") || n.hasClass("lfl") || n.hasClass("sfr") || n.hasClass("sfl") || n.hasClass("lft") || n.hasClass("lfb") || n.hasClass("sft") || n.hasClass("sfb")) {
if (n.hasClass("lfr")) s = r.width + 60;
else if (n.hasClass("lfl")) s = 0 - n.width() - 60;
else if (n.hasClass("lft")) o = 0 - n.height() - 60;
else if (n.hasClass("lfb")) o = r.height + 60;
var a = n.data("endeasing");
if (a == t) a = "linear";
n.animate({
opacity: u,
left: s + "px",
top: o + "px"
}, {
duration: n.data("endspeed"),
easing: a,
complete: function () {
e(this).css({
visibility: "hidden"
})
}
});
if (r.ie) n.removeClass("noFilterClass")
} else if (n.hasClass("fade")) {
n.animate({
opacity: 0
}, {
duration: i,
complete: function () {
e(this).css({
visibility: "hidden"
})
}
});
if (r.ie) n.removeClass("noFilterClass")
} else if (n.hasClass("randomrotate")) {
n.transition({
opacity: 0,
scale: Math.random() * 2 + .3,
left: Math.random() * r.width + "px",
top: Math.random() * r.height + "px",
rotate: Math.random() * 40,
duration: i
});
if (r.ie) n.removeClass("noFilterClass")
}
}
function M(t, n) {
t.children().each(function () {
try {
e(this).die("click")
} catch (t) {}
try {
e(this).die("mouseenter")
} catch (t) {}
try {
e(this).die("mouseleave")
} catch (t) {}
try {
e(this).unbind("hover")
} catch (t) {}
});
try {
$container.die("click", "mouseenter", "mouseleave")
} catch (r) {}
clearInterval(n.cdint);
t = null
}
function _(n, r) {
r.cd = 0;
r.loop = 0;
if (r.stopAfterLoops != t && r.stopAfterLoops > -1) r.looptogo = r.stopAfterLoops;
else r.looptogo = 9999999; if (r.stopAtSlide != t && r.stopAtSlide > -1) r.lastslidetoshow = r.stopAtSlide;
else r.lastslidetoshow = 999;
r.stopLoop = "off";
if (r.looptogo == 0) r.stopLoop = "on";
if (r.slideamount > 1 && !(r.stopAfterLoops == 0 && r.stopAtSlide == 1)) {
var i = n.find(".tp-bannertimer");
if (i.length > 0) {
i.css({
width: "0%"
});
i.animate({
width: "100%"
}, {
duration: r.delay - 100,
queue: false,
easing: "linear"
})
}
i.data("opt", r);
r.cdint = setInterval(function () {
if (e("body").find(n).length == 0) M(n, r);
if (n.data("conthover-changed") == 1) {
r.conthover = n.data("conthover");
n.data("conthover-changed", 0)
}
if (r.conthover != 1 && r.videoplaying != true && r.width > r.hideSliderAtLimit) r.cd = r.cd + 100;
if (r.fullWidth != "on") if (r.width > r.hideSliderAtLimit) n.parent().removeClass("tp-hide-revslider");
else n.parent().addClass("tp-hide-revslider");
if (r.videostartednow == 1) {
n.trigger("revolution.slide.onvideoplay");
r.videostartednow = 0
}
if (r.videostoppednow == 1) {
n.trigger("revolution.slide.onvideostop");
r.videostoppednow = 0
}
if (r.cd >= r.delay) {
r.cd = 0;
r.act = r.next;
r.next = r.next + 1;
if (r.next > n.find(">ul >li").length - 1) {
r.next = 0;
r.looptogo = r.looptogo - 1;
if (r.looptogo <= 0) {
r.stopLoop = "on"
}
}
if (r.stopLoop == "on" && r.next == r.lastslidetoshow - 1) {
clearInterval(r.cdint);
n.find(".tp-bannertimer").css({
visibility: "hidden"
});
n.trigger("revolution.slide.onstop")
}
E(n, r);
if (i.length > 0) {
i.css({
width: "0%"
});
i.animate({
width: "100%"
}, {
duration: r.delay - 100,
queue: false,
easing: "linear"
})
}
}
}, 100);
n.hover(function () {
if (r.onHoverStop == "on") {
r.conthover = 1;
i.stop();
n.trigger("revolution.slide.onpause")
}
}, function () {
if (n.data("conthover") != 1) {
n.trigger("revolution.slide.onresume");
r.conthover = 0;
if (r.onHoverStop == "on" && r.videoplaying != true) {
i.animate({
width: "100%"
}, {
duration: r.delay - r.cd - 100,
queue: false,
easing: "linear"
})
}
}
})
}
}
e.fn.extend({
revolution: function (i) {
e.fn.revolution.defaults = {
delay: 9e3,
startheight: 500,
startwidth: 960,
hideThumbs: 200,
thumbWidth: 100,
thumbHeight: 50,
thumbAmount: 5,
navigationType: "bullet",
navigationArrows: "withbullet",
navigationStyle: "round",
navigationHAlign: "center",
navigationVAlign: "bottom",
navigationHOffset: 0,
navigationVOffset: 20,
soloArrowLeftHalign: "left",
soloArrowLeftValign: "center",
soloArrowLeftHOffset: 20,
soloArrowLeftVOffset: 0,
soloArrowRightHalign: "right",
soloArrowRightValign: "center",
soloArrowRightHOffset: 20,
soloArrowRightVOffset: 0,
touchenabled: "on",
onHoverStop: "on",
stopAtSlide: -1,
stopAfterLoops: -1,
hideCaptionAtLimit: 0,
hideAllCaptionAtLilmit: 0,
hideSliderAtLimit: 0,
shadow: 1,
fullWidth: "off"
};
i = e.extend({}, e.fn.revolution.defaults, i);
return this.each(function () {
var s = i;
var u = e(this);
if (!u.hasClass("revslider-initialised")) {
u.addClass("revslider-initialised");
s.firefox13 = false;
s.ie = !e.support.opacity;
s.ie9 = document.documentMode == 9;
var a = e.fn.jquery.split("."),
p = parseFloat(a[0]),
d = parseFloat(a[1]),
m = parseFloat(a[2] || "0");
if (p == 1 && d < 7) {
u.html('<div style="text-align:center; padding:40px 0px; font-size:20px; color:#992222;"> The Current Version of jQuery:' + a + " <br>Please update your jQuery Version to min. 1.7 in Case you wish to use the Revolution Slider Plugin</div>")
}
if (!e.support.transition) e.fn.transition = e.fn.animate;
e.cssEase["bounce"] = "cubic-bezier(0,1,0.5,1.3)";
u.find(".caption").each(function () {
e(this).addClass("tp-caption")
});
u.find(".tp-caption iframe").each(function () {
try {
if (e(this).attr("src").indexOf("you") > 0) {
var t = document.createElement("script");
t.src = "http://www.youtube.com/player_api";
var n = document.getElementsByTagName("script")[0];
n.parentNode.insertBefore(t, n)
}
} catch (r) {}
});
u.find(".tp-caption iframe").each(function () {
try {
if (e(this).attr("src").indexOf("vim") > 0) {
var t = document.createElement("script");
t.src = "../../../a.vimeocdn.com/js/froogaloop2.min.js";
var n = document.getElementsByTagName("script")[0];
n.parentNode.insertBefore(t, n)
}
} catch (r) {}
});
if (s.shuffle == "on") {
for (var g = 0; g < u.find(">ul:first-child >li").length; g++) {
var y = Math.round(Math.random() * u.find(">ul:first-child >li").length);
u.find(">ul:first-child >li:eq(" + y + ")").prependTo(u.find(">ul:first-child"))
}
}
s.slots = 4;
s.act = -1;
s.next = 0;
if (s.startWithSlide != t) s.next = s.startWithSlide;
var b = n("#")[0];
if (b.length < 9) {
if (b.split("slide").length > 1) {
var w = parseInt(b.split("slide")[1], 0);
if (w < 1) w = 1;
if (w > u.find(">ul:first >li").length) w = u.find(">ul:first >li").length;
s.next = w - 1
}
}
s.origcd = s.delay;
s.firststart = 1;
if (s.navigationHOffset == t) s.navOffsetHorizontal = 0;
if (s.navigationVOffset == t) s.navOffsetVertical = 0;
u.append('<div class="tp-loader"></div>');
if (u.find(".tp-bannertimer").length == 0) u.append('<div class="tp-bannertimer" style="visibility:hidden"></div>');
var S = u.find(".tp-bannertimer");
if (S.length > 0) {
S.css({
width: "0%"
})
}
u.addClass("tp-simpleresponsive");
s.container = u;
s.slideamount = u.find(">ul:first >li").length;
if (u.height() == 0) u.height(s.startheight);
if (s.startwidth == t || s.startwidth == 0) s.startwidth = u.width();
if (s.startheight == t || s.startheight == 0) s.startheight = u.height();
s.width = u.width();
s.height = u.height();
s.bw = s.startwidth / u.width();
s.bh = s.startheight / u.height();
if (s.width != s.startwidth) {
s.height = Math.round(s.startheight * (s.width / s.startwidth));
u.height(s.height)
}
if (s.shadow != 0) {
u.parent().append('<div class="tp-bannershadow tp-shadow' + s.shadow + '"></div>');
u.parent().find(".tp-bannershadow").css({
width: s.width
})
}
u.find("ul").css({
display: "none"
});
u.waitForImages(function () {
u.find("ul").css({
display: "block"
});
v(u, s);
if (s.slideamount > 1) f(u, s);
if (s.slideamount > 1) o(u, s);
if (s.slideamount > 1) l(u, s);
e("#unvisible_button").click(function () {
s.navigationArrows = e(".selectnavarrows").val();
s.navigationType = e(".selectnavtype").val();
s.navigationStyle = e(".selectnavstyle").val();
s.soloArrowStyle = "default";
e(".tp-bullets").remove();
e(".tparrows").remove();
if (s.slideamount > 1) f(u, s);
if (s.slideamount > 1) o(u, s);
if (s.slideamount > 1) l(u, s)
});
c(u, s);
if (s.hideThumbs > 0) h(u, s);
u.waitForImages(function () {
u.find(".tp-loader").fadeOut(600);
setTimeout(function () {
E(u, s);
if (s.slideamount > 1) _(u, s);
u.trigger("revolution.slide.onloaded")
}, 600)
})
});
e('#stylesw1 a').click(function () {
if (e('body').find(u) != 0) if (u.outerWidth(true) != s.width) {
r(u, s);
}
});
e(window).resize(function () {
if (e("body").find(u) != 0) if (u.outerWidth(true) != s.width) {
r(u, s)
}
})
}
})
},
revpause: function (t) {
return this.each(function () {
var t = e(this);
t.data("conthover", 1);
t.data("conthover-changed", 1);
t.trigger("revolution.slide.onpause");
var n = t.parent().find(".tp-bannertimer");
n.stop()
})
},
revresume: function (t) {
return this.each(function () {
var t = e(this);
t.data("conthover", 0);
t.data("conthover-changed", 1);
t.trigger("revolution.slide.onresume");
var n = t.parent().find(".tp-bannertimer");
var r = n.data("opt");
n.animate({
width: "100%"
}, {
duration: r.delay - r.cd - 100,
queue: false,
easing: "linear"
})
})
},
revnext: function (t) {
return this.each(function () {
var t = e(this);
t.parent().find(".tp-rightarrow").click()
})
},
revprev: function (t) {
return this.each(function () {
var t = e(this);
t.parent().find(".tp-leftarrow").click()
})
},
revmaxslide: function (t) {
return e(this).find(">ul:first-child >li").length
},
revcurrentslide: function (t) {
var n = e(this);
var r = n.parent().find(".tp-bannertimer");
var i = r.data("opt");
return i.act
},
revlastslide: function (t) {
var n = e(this);
var r = n.parent().find(".tp-bannertimer");
var i = r.data("opt");
return i.lastslide
},
revshowslide: function (t) {
return this.each(function () {
var n = e(this);
n.data("showus", t);
n.parent().find(".tp-rightarrow").click()
})
}
})
})(jQuery)
/*
* jQuery carouFredSel 6.2.0
* Demo's and documentation:
* caroufredsel.dev7studios.com
*
* Copyright (c) 2013 Fred Heusschen
* www.frebsite.nl
*
* Dual licensed under the MIT and GPL licenses.
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(D($){8($.1s.1v){H}$.1s.6i=$.1s.1v=D(u,w){8(1l.S==0){18(J,\'6j 55 6k 1j "\'+1l.4o+\'".\');H 1l}8(1l.S>1){H 1l.1W(D(){$(1l).1v(u,w)})}F y=1l,$12=1l[0],56=L;8(y.1q(\'57\')){56=y.1P(\'3o\',\'4p\');y.T(\'3o\',[\'4q\',J])}F z={};z.59=D(o,a,b){o=3S($12,o);o.E=6l($12,o.E);o.1K=6m($12,o.1K);o.N=6n($12,o.N);o.14=5a($12,o.14);o.16=5a($12,o.16);o.1b=6o($12,o.1b);o.1r=6p($12,o.1r);o.1Q=6q($12,o.1Q);8(a){31=$.1L(J,{},$.1s.1v.5b,o)}7=$.1L(J,{},$.1s.1v.5b,o);7.d=6r(7);A.2l=(7.2l==\'5c\'||7.2l==\'1m\')?\'16\':\'14\';F c=y.13(),2m=5d($1n,7,\'P\');8(3p(7.25)){7.25=\'7Q\'+G.3T}7.3U=5e(7,2m);7.E=6s(7.E,7,c,b);7[7.d[\'P\']]=6t(7[7.d[\'P\']],7,c);7[7.d[\'1e\']]=6u(7[7.d[\'1e\']],7,c);8(7.2H){8(!3V(7[7.d[\'P\']])){7[7.d[\'P\']]=\'2I%\'}}8(3V(7[7.d[\'P\']])){A.6v=J;A.4r=7[7.d[\'P\']];7[7.d[\'P\']]=4s(2m,A.4r);8(!7.E.M){7.E.U.1d=J}}8(7.2H){7.1R=L;7.1i=[0,0,0,0];7.1B=L;7.E.U.1d=L}O{8(!7.E.M){7=6w(7,2m)}8(!7[7.d[\'P\']]){8(!7.E.U.1d&&Y(7.E[7.d[\'P\']])&&7.E.1t==\'*\'){7[7.d[\'P\']]=7.E.M*7.E[7.d[\'P\']];7.1B=L}O{7[7.d[\'P\']]=\'1d\'}}8(1z(7.1B)){7.1B=(Y(7[7.d[\'P\']]))?\'5f\':L}8(7.E.U.1d){7.E.M=32(c,7,0)}}8(7.E.1t!=\'*\'&&!7.E.U.1d){7.E.U.4t=7.E.M;7.E.M=3W(c,7,0)}7.E.M=2x(7.E.M,7,7.E.U.2c,$12);7.E.U.20=7.E.M;8(7.2H){8(!7.E.U.34){7.E.U.34=7.E.M}8(!7.E.U.1X){7.E.U.1X=7.E.M}7=5g(7,c,2m)}O{7.1i=6x(7.1i);8(7.1B==\'3q\'){7.1B=\'1m\'}O 8(7.1B==\'5h\'){7.1B=\'35\'}1F(7.1B){R\'5f\':R\'1m\':R\'35\':8(7[7.d[\'P\']]!=\'1d\'){7=5i(7,c);7.1R=J}17;2J:7.1B=L;7.1R=(7.1i[0]==0&&7.1i[1]==0&&7.1i[2]==0&&7.1i[3]==0)?L:J;17}}8(!Y(7.1K.1M)){7.1K.1M=6y}8(1z(7.1K.E)){7.1K.E=(7.2H||7.E.U.1d||7.E.1t!=\'*\')?\'M\':7.E.M}7.N=$.1L(J,{},7.1K,7.N);7.14=$.1L(J,{},7.1K,7.14);7.16=$.1L(J,{},7.1K,7.16);7.1b=$.1L(J,{},7.1K,7.1b);7.N=6z($12,7.N);7.14=5j($12,7.14);7.16=5j($12,7.16);7.1b=6A($12,7.1b);7.1r=6B($12,7.1r);7.1Q=6C($12,7.1Q);8(7.2n){7.2n=5k(7.2n)}8(7.N.5l){7.N.4u=7.N.5l;3X(\'N.5l\',\'N.4u\')}8(7.N.5m){7.N.4v=7.N.5m;3X(\'N.5m\',\'N.4v\')}8(7.N.5n){7.N.4w=7.N.5n;3X(\'N.5n\',\'N.4w\')}8(7.N.5o){7.N.2K=7.N.5o;3X(\'N.5o\',\'N.2K\')}};z.6D=D(){y.1q(\'57\',J);F a=y.13(),3Y=6E(y,[\'6F\',\'6G\',\'3r\',\'3q\',\'35\',\'5h\',\'1m\',\'3Z\',\'P\',\'1e\',\'6H\',\'1S\',\'5p\',\'6I\']),5q=\'7R\';1F(3Y.3r){R\'6J\':R\'7S\':5q=3Y.3r;17}8(G.3s==\'36\'){41($1n)}O{$1n.Z(3Y)}$1n.Z({\'7T\':\'3t\',\'3r\':5q});41(y);y.1q(\'6K\',3Y.3Z);y.Z({\'6F\':\'1m\',\'6G\':\'42\',\'3r\':\'6J\',\'3q\':0,\'35\':\'N\',\'5h\':\'N\',\'1m\':0,\'6H\':0,\'1S\':0,\'5p\':0,\'6I\':0});4x(a,7);41(a);8(7.2H){5r(7,a)}};z.6L=D(){z.5s();y.11(I(\'6M\',G),D(e,a){e.1g();8(!A.2d){8(7.N.W){7.N.W.3a(2y(\'4y\',G))}}A.2d=J;8(7.N.1G){7.N.1G=L;y.T(I(\'3b\',G),a)}H J});y.11(I(\'5t\',G),D(e){e.1g();8(A.26){43(V)}H J});y.11(I(\'3b\',G),D(e,a,b){e.1g();1u=3u(1u);8(a&&A.26){V.2d=J;F c=2o()-V.2L;V.1M-=c;8(V.4z){V.4z.1M-=c}8(V.4A){V.4A.1M-=c}43(V,L)}8(!A.27&&!A.26){8(b){1u.3v+=2o()-1u.2L}}8(!A.27){8(7.N.W){7.N.W.3a(2y(\'6N\',G))}}A.27=J;8(7.N.4v){F d=7.N.2K-1u.3v,3c=2I-1H.2z(d*2I/7.N.2K);7.N.4v.1h($12,3c,d)}H J});y.11(I(\'1G\',G),D(e,b,c,d){e.1g();1u=3u(1u);F v=[b,c,d],t=[\'2M\',\'28\',\'3d\'],a=3e(v,t);b=a[0];c=a[1];d=a[2];8(b!=\'14\'&&b!=\'16\'){b=A.2l}8(!Y(c)){c=0}8(!1k(d)){d=L}8(d){A.2d=L;7.N.1G=J}8(!7.N.1G){e.2e();H 18(G,\'3w 4y: 2p 3f.\')}8(A.27){8(7.N.W){7.N.W.2N(2y(\'4y\',G));7.N.W.2N(2y(\'6N\',G))}}A.27=L;1u.2L=2o();F f=7.N.2K+c;44=f-1u.3v;3c=2I-1H.2z(44*2I/f);8(7.N.1f){1u.1f=7U(D(){F a=2o()-1u.2L+1u.3v,3c=1H.2z(a*2I/f);7.N.1f.4B.1h(7.N.1f.2q[0],3c)},7.N.1f.5u)}1u.N=7V(D(){8(7.N.1f){7.N.1f.4B.1h(7.N.1f.2q[0],2I)}8(7.N.4w){7.N.4w.1h($12,3c,44)}8(A.26){y.T(I(\'1G\',G),b)}O{y.T(I(b,G),7.N)}},44);8(7.N.4u){7.N.4u.1h($12,3c,44)}H J});y.11(I(\'3g\',G),D(e){e.1g();8(V.2d){V.2d=L;A.27=L;A.26=J;V.2L=2o();3x(V,G)}O{y.T(I(\'1G\',G))}H J});y.11(I(\'14\',G)+\' \'+I(\'16\',G),D(e,b,f,g,h){e.1g();8(A.2d||y.2f(\':3t\')){e.2e();H 18(G,\'3w 4y 7W 3t: 2p 3f.\')}F i=(Y(7.E.4C))?7.E.4C:7.E.M+1;8(i>K.Q){e.2e();H 18(G,\'2p 6O E (\'+K.Q+\' Q, \'+i+\' 6P): 2p 3f.\')}F v=[b,f,g,h],t=[\'2A\',\'28/2M\',\'D\',\'3d\'],a=3e(v,t);b=a[0];f=a[1];g=a[2];h=a[3];F k=e.5v.19(G.3y.45.S);8(!1T(b)){b={}}8(1o(g)){b.3h=g}8(1k(h)){b.2O=h}b=$.1L(J,{},7[k],b);8(b.5w&&!b.5w.1h($12,k)){e.2e();H 18(G,\'7X "5w" 7Y L.\')}8(!Y(f)){8(7.E.1t!=\'*\'){f=\'M\'}O{F m=[f,b.E,7[k].E];1j(F a=0,l=m.S;a<l;a++){8(Y(m[a])||m[a]==\'6Q\'||m[a]==\'M\'){f=m[a];17}}}1F(f){R\'6Q\':e.2e();H y.1P(I(k+\'7Z\',G),[b,g]);17;R\'M\':8(!7.E.U.1d&&7.E.1t==\'*\'){f=7.E.M}17}}8(V.2d){y.T(I(\'3g\',G));y.T(I(\'2O\',G),[k,[b,f,g]]);e.2e();H 18(G,\'3w 80 3f.\')}8(b.1M>0){8(A.26){8(b.2O){8(b.2O==\'2P\'){2g=[]}8(b.2O!=\'X\'||2g.S==0){y.T(I(\'2O\',G),[k,[b,f,g]])}}e.2e();H 18(G,\'3w 81 3f.\')}}1u.3v=0;y.T(I(\'6R\'+k,G),[b,f]);8(7.2n){F s=7.2n,c=[b,f];1j(F j=0,l=s.S;j<l;j++){F d=k;8(!s[j][2]){d=(d==\'14\')?\'16\':\'14\'}8(!s[j][1]){c[0]=s[j][0].1P(\'3o\',[\'6S\',d])}c[1]=f+s[j][3];s[j][0].T(\'3o\',[\'6R\'+d,c])}}H J});y.11(I(\'82\',G),D(e,b,c){e.1g();F d=y.13();8(!7.1U){8(K.X==0){8(7.3z){y.T(I(\'16\',G),K.Q-1)}H e.2e()}}1Y(d,7);8(!Y(c)){8(7.E.U.1d){c=4D(d,7,K.Q-1)}O 8(7.E.1t!=\'*\'){F f=(Y(b.E))?b.E:5x(y,7);c=6T(d,7,K.Q-1,f)}O{c=7.E.M}c=4E(c,7,b.E,$12)}8(!7.1U){8(K.Q-c<K.X){c=K.Q-K.X}}7.E.U.20=7.E.M;8(7.E.U.1d){F g=2x(32(d,7,K.Q-c),7,7.E.U.2c,$12);8(7.E.M+c<=g&&c<K.Q){c++;g=2x(32(d,7,K.Q-c),7,7.E.U.2c,$12)}7.E.M=g}O 8(7.E.1t!=\'*\'){F g=3W(d,7,K.Q-c);7.E.M=2x(g,7,7.E.U.2c,$12)}1Y(d,7,J);8(c==0){e.2e();H 18(G,\'0 E 46 1K: 2p 3f.\')}18(G,\'6U \'+c+\' E 5y.\');K.X+=c;2h(K.X>=K.Q){K.X-=K.Q}8(!7.1U){8(K.X==0&&b.4F){b.4F.1h($12,\'14\')}8(!7.3z){3A(7,K.X,G)}}y.13().19(K.Q-c,K.Q).83(y);8(K.Q<7.E.M+c){y.13().19(0,(7.E.M+c)-K.Q).4G(J).47(y)}F d=y.13(),3i=6V(d,7,c),2i=6W(d,7),1Z=d.1N(c-1),21=3i.2P(),2r=2i.2P();1Y(d,7);F h=0,2B=0;8(7.1B){F p=4H(2i,7);h=p[0];2B=p[1]}F i=(h<0)?7.1i[7.d[3]]:0;F j=L,2Q=$();8(7.E.M<c){2Q=d.19(7.E.U.20,c);8(b.1V==\'6X\'){F k=7.E[7.d[\'P\']];j=2Q;1Z=2r;5z(j);7.E[7.d[\'P\']]=\'1d\'}}F l=L,3B=2R(d.19(0,c),7,\'P\'),2j=4I(4J(2i,7,J),7,!7.1R),3C=0,29={},4K={},2s={},2S={},4L={},2T={},5A={},2U=5B(b,7,c,3B);1F(b.1V){R\'1I\':R\'1I-1w\':3C=2R(d.19(0,7.E.M),7,\'P\');17}8(j){7.E[7.d[\'P\']]=k}1Y(d,7,J);8(2B>=0){1Y(21,7,7.1i[7.d[1]])}8(h>=0){1Y(1Z,7,7.1i[7.d[3]])}8(7.1B){7.1i[7.d[1]]=2B;7.1i[7.d[3]]=h}2T[7.d[\'1m\']]=-(3B-i);5A[7.d[\'1m\']]=-(3C-i);4K[7.d[\'1m\']]=2j[7.d[\'P\']];F m=D(){},1O=D(){},1C=D(){},3D=D(){},2C=D(){},5C=D(){},1D=D(){},3E=D(){},1x=D(){},1y=D(){},1J=D(){};1F(b.1V){R\'3j\':R\'1I\':R\'1I-1w\':R\'22\':R\'22-1w\':l=y.4G(J).47($1n);17}1F(b.1V){R\'3j\':R\'22\':R\'22-1w\':l.13().19(0,c).2t();l.13().19(7.E.U.20).2t();17;R\'1I\':R\'1I-1w\':l.13().19(7.E.M).2t();l.Z(5A);17}y.Z(2T);V=48(2U,b.2u,G);29[7.d[\'1m\']]=(7.1R)?7.1i[7.d[3]]:0;8(7[7.d[\'P\']]==\'1d\'||7[7.d[\'1e\']]==\'1d\'){m=D(){$1n.Z(2j)};1O=D(){V.1a.1c([$1n,2j])}}8(7.1R){8(2r.4M(1Z).S){2s[7.d[\'1S\']]=1Z.1q(\'2a\');8(h<0){1Z.Z(2s)}O{1D=D(){1Z.Z(2s)};3E=D(){V.1a.1c([1Z,2s])}}}1F(b.1V){R\'1I\':R\'1I-1w\':l.13().1N(c-1).Z(2s);17}8(2r.4M(21).S){2S[7.d[\'1S\']]=21.1q(\'2a\');1C=D(){21.Z(2S)};3D=D(){V.1a.1c([21,2S])}}8(2B>=0){4L[7.d[\'1S\']]=2r.1q(\'2a\')+7.1i[7.d[1]];2C=D(){2r.Z(4L)};5C=D(){V.1a.1c([2r,4L])}}}1J=D(){y.Z(29)};F n=7.E.M+c-K.Q;1y=D(){8(n>0){y.13().19(K.Q).2t();3i=$(y.13().19(K.Q-(7.E.M-n)).3F().6Y(y.13().19(0,n).3F()))}5D(j);8(7.1R){F a=y.13().1N(7.E.M+c-1);a.Z(7.d[\'1S\'],a.1q(\'2a\'))}};F o=5E(3i,2Q,2i,c,\'14\',2U,2j);1x=D(){5F(y,l,b);A.26=L;2b.3h=4a($12,b,\'3h\',o,2b);2g=5G(y,2g,G);8(!A.27){y.T(I(\'1G\',G))}};A.26=J;1u=3u(1u);2b.3G=4a($12,b,\'3G\',o,2b);1F(b.1V){R\'42\':y.Z(29);m();1C();2C();1D();1J();1y();1x();17;R\'1w\':V.1a.1c([y,{\'1E\':0},D(){m();1C();2C();1D();1J();1y();V=48(2U,b.2u,G);V.1a.1c([y,{\'1E\':1},1x]);3x(V,G)}]);17;R\'3j\':y.Z({\'1E\':0});V.1a.1c([l,{\'1E\':0}]);V.1a.1c([y,{\'1E\':1},1x]);1O();1C();2C();1D();1J();1y();17;R\'1I\':V.1a.1c([l,29,D(){1C();2C();1D();1J();1y();1x()}]);1O();17;R\'1I-1w\':V.1a.1c([y,{\'1E\':0}]);V.1a.1c([l,29,D(){y.Z({\'1E\':1});1C();2C();1D();1J();1y();1x()}]);1O();17;R\'22\':V.1a.1c([l,4K,1x]);1O();1C();2C();1D();1J();1y();17;R\'22-1w\':y.Z({\'1E\':0});V.1a.1c([y,{\'1E\':1}]);V.1a.1c([l,4K,1x]);1O();1C();2C();1D();1J();1y();17;2J:V.1a.1c([y,29,D(){1y();1x()}]);1O();3D();5C();3E();17}3x(V,G);5H(7.25,y,G);y.T(I(\'3H\',G),[L,2j]);H J});y.11(I(\'84\',G),D(e,c,d){e.1g();F f=y.13();8(!7.1U){8(K.X==7.E.M){8(7.3z){y.T(I(\'14\',G),K.Q-1)}H e.2e()}}1Y(f,7);8(!Y(d)){8(7.E.1t!=\'*\'){F g=(Y(c.E))?c.E:5x(y,7);d=6Z(f,7,0,g)}O{d=7.E.M}d=4E(d,7,c.E,$12)}F h=(K.X==0)?K.Q:K.X;8(!7.1U){8(7.E.U.1d){F i=32(f,7,d),g=4D(f,7,h-1)}O{F i=7.E.M,g=7.E.M}8(d+i>h){d=h-g}}7.E.U.20=7.E.M;8(7.E.U.1d){F i=2x(5I(f,7,d,h),7,7.E.U.2c,$12);2h(7.E.M-d>=i&&d<K.Q){d++;i=2x(5I(f,7,d,h),7,7.E.U.2c,$12)}7.E.M=i}O 8(7.E.1t!=\'*\'){F i=3W(f,7,d);7.E.M=2x(i,7,7.E.U.2c,$12)}1Y(f,7,J);8(d==0){e.2e();H 18(G,\'0 E 46 1K: 2p 3f.\')}18(G,\'6U \'+d+\' E 70.\');K.X-=d;2h(K.X<0){K.X+=K.Q}8(!7.1U){8(K.X==7.E.M&&c.4F){c.4F.1h($12,\'16\')}8(!7.3z){3A(7,K.X,G)}}8(K.Q<7.E.M+d){y.13().19(0,(7.E.M+d)-K.Q).4G(J).47(y)}F f=y.13(),3i=71(f,7),2i=72(f,7,d),1Z=f.1N(d-1),21=3i.2P(),2r=2i.2P();1Y(f,7);F j=0,2B=0;8(7.1B){F p=4H(2i,7);j=p[0];2B=p[1]}F k=L,2Q=$();8(7.E.U.20<d){2Q=f.19(7.E.U.20,d);8(c.1V==\'6X\'){F l=7.E[7.d[\'P\']];k=2Q;1Z=21;5z(k);7.E[7.d[\'P\']]=\'1d\'}}F m=L,3B=2R(f.19(0,d),7,\'P\'),2j=4I(4J(2i,7,J),7,!7.1R),3C=0,29={},4N={},2s={},2S={},2T={},2U=5B(c,7,d,3B);1F(c.1V){R\'22\':R\'22-1w\':3C=2R(f.19(0,7.E.U.20),7,\'P\');17}8(k){7.E[7.d[\'P\']]=l}8(7.1B){8(7.1i[7.d[1]]<0){7.1i[7.d[1]]=0}}1Y(f,7,J);1Y(21,7,7.1i[7.d[1]]);8(7.1B){7.1i[7.d[1]]=2B;7.1i[7.d[3]]=j}2T[7.d[\'1m\']]=(7.1R)?7.1i[7.d[3]]:0;F n=D(){},1O=D(){},1C=D(){},3D=D(){},1D=D(){},3E=D(){},1x=D(){},1y=D(){},1J=D(){};1F(c.1V){R\'3j\':R\'1I\':R\'1I-1w\':R\'22\':R\'22-1w\':m=y.4G(J).47($1n);m.13().19(7.E.U.20).2t();17}1F(c.1V){R\'3j\':R\'1I\':R\'1I-1w\':y.Z(\'3Z\',1);m.Z(\'3Z\',0);17}V=48(2U,c.2u,G);29[7.d[\'1m\']]=-3B;4N[7.d[\'1m\']]=-3C;8(j<0){29[7.d[\'1m\']]+=j}8(7[7.d[\'P\']]==\'1d\'||7[7.d[\'1e\']]==\'1d\'){n=D(){$1n.Z(2j)};1O=D(){V.1a.1c([$1n,2j])}}8(7.1R){F o=2r.1q(\'2a\');8(2B>=0){o+=7.1i[7.d[1]]}2r.Z(7.d[\'1S\'],o);8(1Z.4M(21).S){2S[7.d[\'1S\']]=21.1q(\'2a\')}1C=D(){21.Z(2S)};3D=D(){V.1a.1c([21,2S])};F q=1Z.1q(\'2a\');8(j>0){q+=7.1i[7.d[3]]}2s[7.d[\'1S\']]=q;1D=D(){1Z.Z(2s)};3E=D(){V.1a.1c([1Z,2s])}}1J=D(){y.Z(2T)};F r=7.E.M+d-K.Q;1y=D(){8(r>0){y.13().19(K.Q).2t()}F a=y.13().19(0,d).47(y).2P();8(r>0){2i=3I(f,7)}5D(k);8(7.1R){8(K.Q<7.E.M+d){F b=y.13().1N(7.E.M-1);b.Z(7.d[\'1S\'],b.1q(\'2a\')+7.1i[7.d[1]])}a.Z(7.d[\'1S\'],a.1q(\'2a\'))}};F s=5E(3i,2Q,2i,d,\'16\',2U,2j);1x=D(){y.Z(\'3Z\',y.1q(\'6K\'));5F(y,m,c);A.26=L;2b.3h=4a($12,c,\'3h\',s,2b);2g=5G(y,2g,G);8(!A.27){y.T(I(\'1G\',G))}};A.26=J;1u=3u(1u);2b.3G=4a($12,c,\'3G\',s,2b);1F(c.1V){R\'42\':y.Z(29);n();1C();1D();1J();1y();1x();17;R\'1w\':V.1a.1c([y,{\'1E\':0},D(){n();1C();1D();1J();1y();V=48(2U,c.2u,G);V.1a.1c([y,{\'1E\':1},1x]);3x(V,G)}]);17;R\'3j\':y.Z({\'1E\':0});V.1a.1c([m,{\'1E\':0}]);V.1a.1c([y,{\'1E\':1},1x]);1O();1C();1D();1J();1y();17;R\'1I\':y.Z(7.d[\'1m\'],$1n[7.d[\'P\']]());V.1a.1c([y,2T,1x]);1O();1C();1D();1y();17;R\'1I-1w\':y.Z(7.d[\'1m\'],$1n[7.d[\'P\']]());V.1a.1c([m,{\'1E\':0}]);V.1a.1c([y,2T,1x]);1O();1C();1D();1y();17;R\'22\':V.1a.1c([m,4N,1x]);1O();1C();1D();1J();1y();17;R\'22-1w\':y.Z({\'1E\':0});V.1a.1c([y,{\'1E\':1}]);V.1a.1c([m,4N,1x]);1O();1C();1D();1J();1y();17;2J:V.1a.1c([y,29,D(){1J();1y();1x()}]);1O();3D();3E();17}3x(V,G);5H(7.25,y,G);y.T(I(\'3H\',G),[L,2j]);H J});y.11(I(\'3k\',G),D(e,b,c,d,f,g,h){e.1g();F v=[b,c,d,f,g,h],t=[\'2M/28/2A\',\'28\',\'3d\',\'2A\',\'2M\',\'D\'],a=3e(v,t);f=a[3];g=a[4];h=a[5];b=3J(a[0],a[1],a[2],K,y);8(b==0){H L}8(!1T(f)){f=L}8(g!=\'14\'&&g!=\'16\'){8(7.1U){g=(b<=K.Q/2)?\'16\':\'14\'}O{g=(K.X==0||K.X>b)?\'16\':\'14\'}}8(g==\'14\'){b=K.Q-b}y.T(I(g,G),[f,b,h]);H J});y.11(I(\'85\',G),D(e,a,b){e.1g();F c=y.1P(I(\'4b\',G));H y.1P(I(\'5J\',G),[c-1,a,\'14\',b])});y.11(I(\'86\',G),D(e,a,b){e.1g();F c=y.1P(I(\'4b\',G));H y.1P(I(\'5J\',G),[c+1,a,\'16\',b])});y.11(I(\'5J\',G),D(e,a,b,c,d){e.1g();8(!Y(a)){a=y.1P(I(\'4b\',G))}F f=7.1b.E||7.E.M,1X=1H.2z(K.Q/f)-1;8(a<0){a=1X}8(a>1X){a=0}H y.1P(I(\'3k\',G),[a*f,0,J,b,c,d])});y.11(I(\'73\',G),D(e,s){e.1g();8(s){s=3J(s,0,J,K,y)}O{s=0}s+=K.X;8(s!=0){8(K.Q>0){2h(s>K.Q){s-=K.Q}}y.87(y.13().19(s,K.Q))}H J});y.11(I(\'2n\',G),D(e,s){e.1g();8(s){s=5k(s)}O 8(7.2n){s=7.2n}O{H 18(G,\'6j 88 46 2n.\')}F n=y.1P(I(\'4p\',G)),x=J;1j(F j=0,l=s.S;j<l;j++){8(!s[j][0].1P(I(\'3k\',G),[n,s[j][3],J])){x=L}}H x});y.11(I(\'2O\',G),D(e,a,b){e.1g();8(1o(a)){a.1h($12,2g)}O 8(2V(a)){2g=a}O 8(!1z(a)){2g.1c([a,b])}H 2g});y.11(I(\'89\',G),D(e,b,c,d,f){e.1g();F v=[b,c,d,f],t=[\'2M/2A\',\'2M/28/2A\',\'3d\',\'28\'],a=3e(v,t);b=a[0];c=a[1];d=a[2];f=a[3];8(1T(b)&&!2v(b)){b=$(b)}O 8(1p(b)){b=$(b)}8(!2v(b)||b.S==0){H 18(G,\'2p a 5K 2A.\')}8(1z(c)){c=\'4c\'}4x(b,7);41(b);F g=c,4d=\'4d\';8(c==\'4c\'){8(d){8(K.X==0){c=K.Q-1;4d=\'74\'}O{c=K.X;K.X+=b.S}8(c<0){c=0}}O{c=K.Q-1;4d=\'74\'}}O{c=3J(c,f,d,K,y)}F h=y.13().1N(c);8(h.S){h[4d](b)}O{18(G,\'8a 8b-3r 4M 6k! 8c 8d 46 75 4c.\');y.76(b)}8(g!=\'4c\'&&!d){8(c<K.X){K.X+=b.S}}K.Q=y.13().S;8(K.X>=K.Q){K.X-=K.Q}y.T(I(\'4O\',G));y.T(I(\'5L\',G));H J});y.11(I(\'77\',G),D(e,c,d,f){e.1g();F v=[c,d,f],t=[\'2M/28/2A\',\'3d\',\'28\'],a=3e(v,t);c=a[0];d=a[1];f=a[2];F g=L;8(c 2W $&&c.S>1){h=$();c.1W(D(i,a){F b=y.T(I(\'77\',G),[$(1l),d,f]);8(b){h=h.8e(b)}});H h}8(1z(c)||c==\'4c\'){h=y.13().2P()}O{c=3J(c,f,d,K,y);F h=y.13().1N(c);8(h.S){8(c<K.X){K.X-=h.S}}}8(h&&h.S){h.8f();K.Q=y.13().S;y.T(I(\'4O\',G))}H h});y.11(I(\'3G\',G)+\' \'+I(\'3h\',G),D(e,a){e.1g();F b=e.5v.19(G.3y.45.S);8(2V(a)){2b[b]=a}8(1o(a)){2b[b].1c(a)}H 2b[b]});y.11(I(\'4p\',G),D(e,a){e.1g();8(K.X==0){F b=0}O{F b=K.Q-K.X}8(1o(a)){a.1h($12,b)}H b});y.11(I(\'4b\',G),D(e,a){e.1g();F b=7.1b.E||7.E.M,1X=1H.2z(K.Q/b-1),2k;8(K.X==0){2k=0}O 8(K.X<K.Q%b){2k=0}O 8(K.X==b&&!7.1U){2k=1X}O{2k=1H.78((K.Q-K.X)/b)}8(2k<0){2k=0}8(2k>1X){2k=1X}8(1o(a)){a.1h($12,2k)}H 2k});y.11(I(\'8g\',G),D(e,a){e.1g();F b=3I(y.13(),7);8(1o(a)){a.1h($12,b)}H b});y.11(I(\'19\',G),D(e,f,l,b){e.1g();8(K.Q==0){H L}F v=[f,l,b],t=[\'28\',\'28\',\'D\'],a=3e(v,t);f=(Y(a[0]))?a[0]:0;l=(Y(a[1]))?a[1]:K.Q;b=a[2];f+=K.X;l+=K.X;8(E.Q>0){2h(f>K.Q){f-=K.Q}2h(l>K.Q){l-=K.Q}2h(f<0){f+=K.Q}2h(l<0){l+=K.Q}}F c=y.13(),$i;8(l>f){$i=c.19(f,l)}O{$i=$(c.19(f,K.Q).3F().6Y(c.19(0,l).3F()))}8(1o(b)){b.1h($12,$i)}H $i});y.11(I(\'27\',G)+\' \'+I(\'2d\',G)+\' \'+I(\'26\',G),D(e,a){e.1g();F b=e.5v.19(G.3y.45.S),5M=A[b];8(1o(a)){a.1h($12,5M)}H 5M});y.11(I(\'6S\',G),D(e,a,b,c){e.1g();F d=L;8(1o(a)){a.1h($12,7)}O 8(1T(a)){31=$.1L(J,{},31,a);8(b!==L)d=J;O 7=$.1L(J,{},7,a)}O 8(!1z(a)){8(1o(b)){F f=4P(\'7.\'+a);8(1z(f)){f=\'\'}b.1h($12,f)}O 8(!1z(b)){8(2X c!==\'3d\')c=J;4P(\'31.\'+a+\' = b\');8(c!==L)d=J;O 4P(\'7.\'+a+\' = b\')}O{H 4P(\'7.\'+a)}}8(d){1Y(y.13(),7);z.59(31);z.5N();F g=4Q(y,7);y.T(I(\'3H\',G),[J,g])}H 7});y.11(I(\'5L\',G),D(e,a,b){e.1g();8(1z(a)){a=$(\'8h\')}O 8(1p(a)){a=$(a)}8(!2v(a)||a.S==0){H 18(G,\'2p a 5K 2A.\')}8(!1p(b)){b=\'a.6i\'}a.8i(b).1W(D(){F h=1l.79||\'\';8(h.S>0&&y.13().7a($(h))!=-1){$(1l).23(\'5O\').5O(D(e){e.2D();y.T(I(\'3k\',G),h)})}});H J});y.11(I(\'3H\',G),D(e,b,c){e.1g();8(!7.1b.1A){H}F d=7.1b.E||7.E.M,4R=1H.2z(K.Q/d);8(b){8(7.1b.3K){7.1b.1A.13().2t();7.1b.1A.1W(D(){1j(F a=0;a<4R;a++){F i=y.13().1N(3J(a*d,0,J,K,y));$(1l).76(7.1b.3K.1h(i[0],a+1))}})}7.1b.1A.1W(D(){$(1l).13().23(7.1b.3L).1W(D(a){$(1l).11(7.1b.3L,D(e){e.2D();y.T(I(\'3k\',G),[a*d,-7.1b.4S,J,7.1b])})})})}F f=y.1P(I(\'4b\',G))+7.1b.4S;8(f>=4R){f=0}8(f<0){f=4R-1}7.1b.1A.1W(D(){$(1l).13().2N(2y(\'7b\',G)).1N(f).3a(2y(\'7b\',G))});H J});y.11(I(\'4O\',G),D(e){F a=7.E.M,2E=y.13(),2m=5d($1n,7,\'P\');K.Q=2E.S;8(A.4r){7.3U=2m;7[7.d[\'P\']]=4s(2m,A.4r)}O{7.3U=5e(7,2m)}8(7.2H){7.E.P=7.E.3M.P;7.E.1e=7.E.3M.1e;7=5g(7,2E,2m);a=7.E.M;5r(7,2E)}O 8(7.E.U.1d){a=32(2E,7,0)}O 8(7.E.1t!=\'*\'){a=3W(2E,7,0)}8(!7.1U&&K.X!=0&&a>K.X){8(7.E.U.1d){F b=4D(2E,7,K.X)-K.X}O 8(7.E.1t!=\'*\'){F b=7c(2E,7,K.X)-K.X}O{F b=7.E.M-K.X}18(G,\'8j 8k-1U: 8l \'+b+\' E 5y.\');y.T(I(\'14\',G),b)}7.E.M=2x(a,7,7.E.U.2c,$12);7.E.U.20=7.E.M;7=5i(7,2E);F c=4Q(y,7);y.T(I(\'3H\',G),[J,c]);4T(7,K.Q,G);3A(7,K.X,G);H c});y.11(I(\'4q\',G),D(e,a){e.1g();1u=3u(1u);y.1q(\'57\',L);y.T(I(\'5t\',G));8(a){y.T(I(\'73\',G))}4U(y.13());4U(y);z.5s();z.5P();8(G.3s==\'36\'){4U($1n)}O{$1n.8m(y)}H J});y.11(I(\'18\',G),D(e){18(G,\'3w P: \'+7.P);18(G,\'3w 1e: \'+7.1e);18(G,\'7d 8n: \'+7.E.P);18(G,\'7d 8o: \'+7.E.1e);18(G,\'4e 4f E M: \'+7.E.M);8(7.N.1G){18(G,\'4e 4f E 5Q 8p: \'+7.N.E)}8(7.14.W){18(G,\'4e 4f E 5Q 5y: \'+7.14.E)}8(7.16.W){18(G,\'4e 4f E 5Q 70: \'+7.16.E)}H G.18});y.11(\'3o\',D(e,n,o){e.1g();H y.1P(I(n,G),o)})};z.5s=D(){y.23(I(\'\',G));y.23(I(\'\',G,L));y.23(\'3o\')};z.5N=D(){z.5P();4T(7,K.Q,G);3A(7,K.X,G);8(7.N.2F){F b=3N(7.N.2F);$1n.11(I(\'4V\',G,L),D(){y.T(I(\'3b\',G),b)}).11(I(\'4W\',G,L),D(){y.T(I(\'3g\',G))})}8(7.N.W){7.N.W.11(I(7.N.3L,G,L),D(e){e.2D();F a=L,b=3O;8(A.27){a=\'1G\'}O 8(7.N.4X){a=\'3b\';b=3N(7.N.4X)}8(a){y.T(I(a,G),b)}})}8(7.14.W){7.14.W.11(I(7.14.3L,G,L),D(e){e.2D();y.T(I(\'14\',G))});8(7.14.2F){F b=3N(7.14.2F);7.14.W.11(I(\'4V\',G,L),D(){y.T(I(\'3b\',G),b)}).11(I(\'4W\',G,L),D(){y.T(I(\'3g\',G))})}}8(7.16.W){7.16.W.11(I(7.16.3L,G,L),D(e){e.2D();y.T(I(\'16\',G))});8(7.16.2F){F b=3N(7.16.2F);7.16.W.11(I(\'4V\',G,L),D(){y.T(I(\'3b\',G),b)}).11(I(\'4W\',G,L),D(){y.T(I(\'3g\',G))})}}8(7.1b.1A){8(7.1b.2F){F b=3N(7.1b.2F);7.1b.1A.11(I(\'4V\',G,L),D(){y.T(I(\'3b\',G),b)}).11(I(\'4W\',G,L),D(){y.T(I(\'3g\',G))})}}8(7.14.2Y||7.16.2Y){$(4g).11(I(\'7e\',G,L,J,J),D(e){F k=e.7f;8(k==7.16.2Y){e.2D();y.T(I(\'16\',G))}8(k==7.14.2Y){e.2D();y.T(I(\'14\',G))}})}8(7.1b.4Y){$(4g).11(I(\'7e\',G,L,J,J),D(e){F k=e.7f;8(k>=49&&k<58){k=(k-49)*7.E.M;8(k<=K.Q){e.2D();y.T(I(\'3k\',G),[k,0,J,7.1b])}}})}8($.1s.1r){F c=\'8q\'8r 3l;8((c&&7.1r.4h)||(!c&&7.1r.5R)){F d=$.1L(J,{},7.14,7.1r),7g=$.1L(J,{},7.16,7.1r),5S=D(){y.T(I(\'14\',G),[d])},5T=D(){y.T(I(\'16\',G),[7g])};1F(7.2l){R\'5c\':R\'7h\':7.1r.2G.8s=5T;7.1r.2G.8t=5S;17;2J:7.1r.2G.8u=5T;7.1r.2G.8v=5S}8(A.1r){y.1r(\'4q\')}$1n.1r(7.1r.2G);$1n.Z(\'7i\',\'8w\');A.1r=J}}8($.1s.1Q){8(7.1Q){F f=$.1L(J,{},7.14,7.1Q),7j=$.1L(J,{},7.16,7.1Q);8(A.1Q){$1n.23(I(\'1Q\',G,L))}$1n.11(I(\'1Q\',G,L),D(e,a){e.2D();8(a>0){y.T(I(\'14\',G),[f])}O{y.T(I(\'16\',G),[7j])}});A.1Q=J}}8(7.N.1G){y.T(I(\'1G\',G),7.N.5U)}8(A.6v){F g=D(e){y.T(I(\'5t\',G));8(7.N.5V&&!A.27){y.T(I(\'1G\',G))}1Y(y.13(),7);y.T(I(\'4O\',G))};F h=$(3l),4i=3O;8($.5W&&G.5X==\'5W\'){4i=$.5W(8x,g)}O 8($.4Z&&G.5X==\'4Z\'){4i=$.4Z(8y,g)}O{F i=0,5Y=0;4i=D(){F a=h.P(),5Z=h.1e();8(a!=i||5Z!=5Y){g();i=a;5Y=5Z}}}h.11(I(\'8z\',G,L,J,J),4i)}};z.5P=D(){F a=I(\'\',G),3P=I(\'\',G,L);61=I(\'\',G,L,J,J);$(4g).23(61);$(3l).23(61);$1n.23(3P);8(7.N.W){7.N.W.23(3P)}8(7.14.W){7.14.W.23(3P)}8(7.16.W){7.16.W.23(3P)}8(7.1b.1A){7.1b.1A.23(3P);8(7.1b.3K){7.1b.1A.13().2t()}}8(A.1r){y.1r(\'4q\');$1n.Z(\'7i\',\'2J\');A.1r=L}8(A.1Q){A.1Q=L}4T(7,\'4j\',G);3A(7,\'2N\',G)};8(1k(w)){w={\'18\':w}}F A={\'2l\':\'16\',\'27\':J,\'26\':L,\'2d\':L,\'1Q\':L,\'1r\':L},K={\'Q\':y.13().S,\'X\':0},1u={\'N\':3O,\'1f\':3O,\'2L\':2o(),\'3v\':0},V={\'2d\':L,\'1M\':0,\'2L\':0,\'2u\':\'\',\'1a\':[]},2b={\'3G\':[],\'3h\':[]},2g=[],G=$.1L(J,{},$.1s.1v.7k,w),7={},31=$.1L(J,{},u),$1n=(G.3s==\'36\')?y.36():y.8A(\'<\'+G.3s.55+\' 8B="\'+G.3s.7l+\'" />\').36();G.4o=y.4o;G.3T=$.1s.1v.3T++;G.2Z=(G.2Z&&$.1s.2Z)?\'2Z\':\'8C\';z.59(31,J,56);z.6D();z.6L();z.5N();8(2V(7.E.3m)){F B=7.E.3m}O{F B=[];8(7.E.3m!=0){B.1c(7.E.3m)}}8(7.25){B.8D(4k(7m(7.25),10))}8(B.S>0){1j(F a=0,l=B.S;a<l;a++){F s=B[a];8(s==0){62}8(s===J){s=3l.8E.79;8(s.S<1){62}}O 8(s===\'7n\'){s=1H.4l(1H.7n()*K.Q)}8(y.1P(I(\'3k\',G),[s,0,J,{1V:\'42\'}])){17}}}F C=4Q(y,7),7o=3I(y.13(),7);8(7.7p){7.7p.1h($12,{\'P\':C.P,\'1e\':C.1e,\'E\':7o})}y.T(I(\'3H\',G),[J,C]);y.T(I(\'5L\',G));8(G.18){y.T(I(\'18\',G))}H y};$.1s.1v.3T=1;$.1s.1v.5b={\'2n\':L,\'3z\':J,\'1U\':J,\'2H\':L,\'2l\':\'1m\',\'E\':{\'3m\':0},\'1K\':{\'2u\':\'7q\',\'1M\':6y,\'2F\':L,\'3L\':\'5O\',\'2O\':L}};$.1s.1v.7k={\'18\':L,\'2Z\':L,\'5X\':\'4Z\',\'3y\':{\'45\':\'\',\'7r\':\'8F\'},\'3s\':{\'55\':\'8G\',\'7l\':\'8H\'},\'63\':{}};$.1s.1v.7s=D(a){H\'<a 8I="#"><7t>\'+a+\'</7t></a>\'};$.1s.1v.7u=D(a){$(1l).Z(\'P\',a+\'%\')};$.1s.1v.25={3F:D(n){n+=\'=\';F b=4g.25.3Q(\';\');1j(F a=0,l=b.S;a<l;a++){F c=b[a];2h(c.8J(0)==\' \'){c=c.19(1)}8(c.3R(n)==0){H c.19(n.S)}}H 0},64:D(n,v,d){F e="";8(d){F a=7v 7w();a.8K(a.2o()+(d*24*60*60*8L));e="; 8M="+a.8N()}4g.25=n+\'=\'+v+e+\'; 8O=/\'},2t:D(n){$.1s.1v.25.64(n,"",-1)}};D 48(d,e,c){8(c.2Z==\'2Z\'){8(e==\'7q\'){e=\'8P\'}}H{1a:[],1M:d,8Q:d,2u:e,2L:2o()}}D 3x(s,c){1j(F a=0,l=s.1a.S;a<l;a++){F b=s.1a[a];8(!b){62}b[0][c.2Z](b[1],s.1M,s.2u,b[2])}}D 43(s,c){8(!1k(c)){c=J}8(1T(s.4z)){43(s.4z,c)}1j(F a=0,l=s.1a.S;a<l;a++){F b=s.1a[a];b[0].6M(J);8(c){b[0].Z(b[1]);8(1o(b[2])){b[2]()}}}8(1T(s.4A)){43(s.4A,c)}}D 5F(a,b,o){8(b){b.2t()}1F(o.1V){R\'1w\':R\'3j\':R\'1I-1w\':R\'22-1w\':a.Z(\'1t\',\'\');a.Z(\'1E\',1);17}}D 4a(d,o,b,a,c){8(o[b]){o[b].1h(d,a)}8(c[b].S){1j(F i=0,l=c[b].S;i<l;i++){c[b][i].1h(d,a)}}H[]}D 5G(a,q,c){8(q.S){a.T(I(q[0][0],c),q[0][1]);q.8R()}H q}D 5z(b){b.1W(D(){F a=$(1l);a.1q(\'7x\',a.2f(\':3t\')).4j()})}D 5D(b){8(b){b.1W(D(){F a=$(1l);8(!a.1q(\'7x\')){a.4m()}})}}D 3u(t){8(t.N){8S(t.N)}8(t.1f){8T(t.1f)}H t}D 5E(a,b,c,d,e,f,g){H{\'P\':g.P,\'1e\':g.1e,\'E\':{\'20\':a,\'8U\':b,\'M\':c},\'1K\':{\'E\':d,\'2l\':e,\'1M\':f}}}D 5B(a,o,b,c){F d=a.1M;8(a.1V==\'42\'){H 0}8(d==\'N\'){d=o.1K.1M/o.1K.E*b}O 8(d<10){d=c/d}8(d<1){H 0}8(a.1V==\'1w\'){d=d/2}H 1H.78(d)}D 4T(o,t,c){F a=(Y(o.E.4C))?o.E.4C:o.E.M+1;8(t==\'4m\'||t==\'4j\'){F f=t}O 8(a>t){18(c,\'2p 6O E (\'+t+\' Q, \'+a+\' 6P): 8V 8W.\');F f=\'4j\'}O{F f=\'4m\'}F s=(f==\'4m\')?\'2N\':\'3a\',h=2y(\'3t\',c);8(o.N.W){o.N.W[f]()[s](h)}8(o.14.W){o.14.W[f]()[s](h)}8(o.16.W){o.16.W[f]()[s](h)}8(o.1b.1A){o.1b.1A[f]()[s](h)}}D 3A(o,f,c){8(o.1U||o.3z)H;F a=(f==\'2N\'||f==\'3a\')?f:L,51=2y(\'8X\',c);8(o.N.W&&a){o.N.W[a](51)}8(o.14.W){F b=a||(f==0)?\'3a\':\'2N\';o.14.W[b](51)}8(o.16.W){F b=a||(f==o.E.M)?\'3a\':\'2N\';o.16.W[b](51)}}D 3S(a,b){8(1o(b)){b=b.1h(a)}O 8(1z(b)){b={}}H b}D 6l(a,b){b=3S(a,b);8(Y(b)){b={\'M\':b}}O 8(b==\'1d\'){b={\'M\':b,\'P\':b,\'1e\':b}}O 8(!1T(b)){b={}}H b}D 6m(a,b){b=3S(a,b);8(Y(b)){8(b<=50){b={\'E\':b}}O{b={\'1M\':b}}}O 8(1p(b)){b={\'2u\':b}}O 8(!1T(b)){b={}}H b}D 52(a,b){b=3S(a,b);8(1p(b)){F c=65(b);8(c==-1){b=$(b)}O{b=c}}H b}D 6n(a,b){b=52(a,b);8(2v(b)){b={\'W\':b}}O 8(1k(b)){b={\'1G\':b}}O 8(Y(b)){b={\'2K\':b}}8(b.1f){8(1p(b.1f)||2v(b.1f)){b.1f={\'2q\':b.1f}}}H b}D 6z(a,b){8(1o(b.W)){b.W=b.W.1h(a)}8(1p(b.W)){b.W=$(b.W)}8(!1k(b.1G)){b.1G=J}8(!Y(b.5U)){b.5U=0}8(1z(b.4X)){b.4X=J}8(!1k(b.5V)){b.5V=J}8(!Y(b.2K)){b.2K=(b.1M<10)?8Y:b.1M*5}8(b.1f){8(1o(b.1f.2q)){b.1f.2q=b.1f.2q.1h(a)}8(1p(b.1f.2q)){b.1f.2q=$(b.1f.2q)}8(b.1f.2q){8(!1o(b.1f.4B)){b.1f.4B=$.1s.1v.7u}8(!Y(b.1f.5u)){b.1f.5u=50}}O{b.1f=L}}H b}D 5a(a,b){b=52(a,b);8(2v(b)){b={\'W\':b}}O 8(Y(b)){b={\'2Y\':b}}H b}D 5j(a,b){8(1o(b.W)){b.W=b.W.1h(a)}8(1p(b.W)){b.W=$(b.W)}8(1p(b.2Y)){b.2Y=65(b.2Y)}H b}D 6o(a,b){b=52(a,b);8(2v(b)){b={\'1A\':b}}O 8(1k(b)){b={\'4Y\':b}}H b}D 6A(a,b){8(1o(b.1A)){b.1A=b.1A.1h(a)}8(1p(b.1A)){b.1A=$(b.1A)}8(!Y(b.E)){b.E=L}8(!1k(b.4Y)){b.4Y=L}8(!1o(b.3K)&&!53(b.3K)){b.3K=$.1s.1v.7s}8(!Y(b.4S)){b.4S=0}H b}D 6p(a,b){8(1o(b)){b=b.1h(a)}8(1z(b)){b={\'4h\':L}}8(3p(b)){b={\'4h\':b}}O 8(Y(b)){b={\'E\':b}}H b}D 6B(a,b){8(!1k(b.4h)){b.4h=J}8(!1k(b.5R)){b.5R=L}8(!1T(b.2G)){b.2G={}}8(!1k(b.2G.7y)){b.2G.7y=L}H b}D 6q(a,b){8(1o(b)){b=b.1h(a)}8(3p(b)){b={}}O 8(Y(b)){b={\'E\':b}}O 8(1z(b)){b=L}H b}D 6C(a,b){H b}D 3J(a,b,c,d,e){8(1p(a)){a=$(a,e)}8(1T(a)){a=$(a,e)}8(2v(a)){a=e.13().7a(a);8(!1k(c)){c=L}}O{8(!1k(c)){c=J}}8(!Y(a)){a=0}8(!Y(b)){b=0}8(c){a+=d.X}a+=b;8(d.Q>0){2h(a>=d.Q){a-=d.Q}2h(a<0){a+=d.Q}}H a}D 4D(i,o,s){F t=0,x=0;1j(F a=s;a>=0;a--){F j=i.1N(a);t+=(j.2f(\':M\'))?j[o.d[\'2w\']](J):0;8(t>o.3U){H x}8(a==0){a=i.S}x++}}D 7c(i,o,s){H 66(i,o.E.1t,o.E.U.4t,s)}D 6T(i,o,s,m){H 66(i,o.E.1t,m,s)}D 66(i,f,m,s){F t=0,x=0;1j(F a=s,l=i.S;a>=0;a--){x++;8(x==l){H x}F j=i.1N(a);8(j.2f(f)){t++;8(t==m){H x}}8(a==0){a=l}}}D 5x(a,o){H o.E.U.4t||a.13().19(0,o.E.M).1t(o.E.1t).S}D 32(i,o,s){F t=0,x=0;1j(F a=s,l=i.S-1;a<=l;a++){F j=i.1N(a);t+=(j.2f(\':M\'))?j[o.d[\'2w\']](J):0;8(t>o.3U){H x}x++;8(x==l+1){H x}8(a==l){a=-1}}}D 5I(i,o,s,l){F v=32(i,o,s);8(!o.1U){8(s+v>l){v=l-s}}H v}D 3W(i,o,s){H 68(i,o.E.1t,o.E.U.4t,s,o.1U)}D 6Z(i,o,s,m){H 68(i,o.E.1t,m+1,s,o.1U)-1}D 68(i,f,m,s,c){F t=0,x=0;1j(F a=s,l=i.S-1;a<=l;a++){x++;8(x>=l){H x}F j=i.1N(a);8(j.2f(f)){t++;8(t==m){H x}}8(a==l){a=-1}}}D 3I(i,o){H i.19(0,o.E.M)}D 6V(i,o,n){H i.19(n,o.E.U.20+n)}D 6W(i,o){H i.19(0,o.E.M)}D 71(i,o){H i.19(0,o.E.U.20)}D 72(i,o,n){H i.19(n,o.E.M+n)}D 4x(i,o,d){8(o.1R){8(!1p(d)){d=\'2a\'}i.1W(D(){F j=$(1l),m=4k(j.Z(o.d[\'1S\']),10);8(!Y(m)){m=0}j.1q(d,m)})}}D 1Y(i,o,m){8(o.1R){F x=(1k(m))?m:L;8(!Y(m)){m=0}4x(i,o,\'7z\');i.1W(D(){F j=$(1l);j.Z(o.d[\'1S\'],((x)?j.1q(\'7z\'):m+j.1q(\'2a\')))})}}D 41(i){i.1W(D(){F j=$(1l);j.1q(\'7A\',j.7B(\'7C\')||\'\')})}D 4U(i){i.1W(D(){F j=$(1l);j.7B(\'7C\',j.1q(\'7A\')||\'\')})}D 5r(o,b){F c=o.E.M,7D=o.E[o.d[\'P\']],69=o[o.d[\'1e\']],7E=3V(69);b.1W(D(){F a=$(1l),6a=7D-7F(a,o,\'8Z\');a[o.d[\'P\']](6a);8(7E){a[o.d[\'1e\']](4s(6a,69))}})}D 4Q(a,o){F b=a.36(),$i=a.13(),$v=3I($i,o),54=4I(4J($v,o,J),o,L);b.Z(54);8(o.1R){F p=o.1i,r=p[o.d[1]];8(o.1B&&r<0){r=0}F c=$v.2P();c.Z(o.d[\'1S\'],c.1q(\'2a\')+r);a.Z(o.d[\'3q\'],p[o.d[0]]);a.Z(o.d[\'1m\'],p[o.d[3]])}a.Z(o.d[\'P\'],54[o.d[\'P\']]+(2R($i,o,\'P\')*2));a.Z(o.d[\'1e\'],6b($i,o,\'1e\'));H 54}D 4J(i,o,a){H[2R(i,o,\'P\',a),6b(i,o,\'1e\',a)]}D 6b(i,o,a,b){8(!1k(b)){b=L}8(Y(o[o.d[a]])&&b){H o[o.d[a]]}8(Y(o.E[o.d[a]])){H o.E[o.d[a]]}a=(a.6c().3R(\'P\')>-1)?\'2w\':\'3n\';H 4n(i,o,a)}D 4n(i,o,b){F s=0;1j(F a=0,l=i.S;a<l;a++){F j=i.1N(a);F m=(j.2f(\':M\'))?j[o.d[b]](J):0;8(s<m){s=m}}H s}D 2R(i,o,b,c){8(!1k(c)){c=L}8(Y(o[o.d[b]])&&c){H o[o.d[b]]}8(Y(o.E[o.d[b]])){H o.E[o.d[b]]*i.S}F d=(b.6c().3R(\'P\')>-1)?\'2w\':\'3n\',s=0;1j(F a=0,l=i.S;a<l;a++){F j=i.1N(a);s+=(j.2f(\':M\'))?j[o.d[d]](J):0}H s}D 5d(a,o,d){F b=a.2f(\':M\');8(b){a.4j()}F s=a.36()[o.d[d]]();8(b){a.4m()}H s}D 5e(o,a){H(Y(o[o.d[\'P\']]))?o[o.d[\'P\']]:a}D 6d(i,o,b){F s=L,v=L;1j(F a=0,l=i.S;a<l;a++){F j=i.1N(a);F c=(j.2f(\':M\'))?j[o.d[b]](J):0;8(s===L){s=c}O 8(s!=c){v=J}8(s==0){v=J}}H v}D 7F(i,o,d){H i[o.d[\'90\'+d]](J)-i[o.d[d.6c()]]()}D 4s(s,o){8(3V(o)){o=4k(o.19(0,-1),10);8(!Y(o)){H s}s*=o/2I}H s}D I(n,c,a,b,d){8(!1k(a)){a=J}8(!1k(b)){b=J}8(!1k(d)){d=L}8(a){n=c.3y.45+n}8(b){n=n+\'.\'+c.3y.7r}8(b&&d){n+=c.3T}H n}D 2y(n,c){H(1p(c.63[n]))?c.63[n]:n}D 4I(a,o,p){8(!1k(p)){p=J}F b=(o.1R&&p)?o.1i:[0,0,0,0];F c={};c[o.d[\'P\']]=a[0]+b[1]+b[3];c[o.d[\'1e\']]=a[1]+b[0]+b[2];H c}D 3e(c,d){F e=[];1j(F a=0,7G=c.S;a<7G;a++){1j(F b=0,7H=d.S;b<7H;b++){8(d[b].3R(2X c[a])>-1&&1z(e[b])){e[b]=c[a];17}}}H e}D 6x(p){8(1z(p)){H[0,0,0,0]}8(Y(p)){H[p,p,p,p]}8(1p(p)){p=p.3Q(\'91\').7I(\'\').3Q(\'92\').7I(\'\').3Q(\' \')}8(!2V(p)){H[0,0,0,0]}1j(F i=0;i<4;i++){p[i]=4k(p[i],10)}1F(p.S){R 0:H[0,0,0,0];R 1:H[p[0],p[0],p[0],p[0]];R 2:H[p[0],p[1],p[0],p[1]];R 3:H[p[0],p[1],p[2],p[1]];2J:H[p[0],p[1],p[2],p[3]]}}D 4H(a,o){F x=(Y(o[o.d[\'P\']]))?1H.2z(o[o.d[\'P\']]-2R(a,o,\'P\')):0;1F(o.1B){R\'1m\':H[0,x];R\'35\':H[x,0];R\'5f\':2J:H[1H.2z(x/2),1H.4l(x/2)]}}D 6r(o){F a=[[\'P\',\'7J\',\'2w\',\'1e\',\'7K\',\'3n\',\'1m\',\'3q\',\'1S\',0,1,2,3],[\'1e\',\'7K\',\'3n\',\'P\',\'7J\',\'2w\',\'3q\',\'1m\',\'5p\',3,2,1,0]];F b=a[0].S,7L=(o.2l==\'35\'||o.2l==\'1m\')?0:1;F c={};1j(F d=0;d<b;d++){c[a[0][d]]=a[7L][d]}H c}D 4E(x,o,a,b){F v=x;8(1o(a)){v=a.1h(b,v)}O 8(1p(a)){F p=a.3Q(\'+\'),m=a.3Q(\'-\');8(m.S>p.S){F c=J,6e=m[0],30=m[1]}O{F c=L,6e=p[0],30=p[1]}1F(6e){R\'93\':v=(x%2==1)?x-1:x;17;R\'94\':v=(x%2==0)?x-1:x;17;2J:v=x;17}30=4k(30,10);8(Y(30)){8(c){30=-30}v+=30}}8(!Y(v)||v<1){v=1}H v}D 2x(x,o,a,b){H 6f(4E(x,o,a,b),o.E.U)}D 6f(v,i){8(Y(i.34)&&v<i.34){v=i.34}8(Y(i.1X)&&v>i.1X){v=i.1X}8(v<1){v=1}H v}D 5k(s){8(!2V(s)){s=[[s]]}8(!2V(s[0])){s=[s]}1j(F j=0,l=s.S;j<l;j++){8(1p(s[j][0])){s[j][0]=$(s[j][0])}8(!1k(s[j][1])){s[j][1]=J}8(!1k(s[j][2])){s[j][2]=J}8(!Y(s[j][3])){s[j][3]=0}}H s}D 65(k){8(k==\'35\'){H 39}8(k==\'1m\'){H 37}8(k==\'5c\'){H 38}8(k==\'7h\'){H 40}H-1}D 5H(n,a,c){8(n){F v=a.1P(I(\'4p\',c));$.1s.1v.25.64(n,v)}}D 7m(n){F c=$.1s.1v.25.3F(n);H(c==\'\')?0:c}D 6E(a,b){F c={};1j(F p=0,l=b.S;p<l;p++){c[b[p]]=a.Z(b[p])}H c}D 6s(a,b,c,d){8(!1T(a.U)){a.U={}}8(!1T(a.3M)){a.3M={}}8(a.3m==0&&Y(d)){a.3m=d}8(1T(a.M)){a.U.34=a.M.34;a.U.1X=a.M.1X;a.M=L}O 8(1p(a.M)){8(a.M==\'1d\'){a.U.1d=J}O{a.U.2c=a.M}a.M=L}O 8(1o(a.M)){a.U.2c=a.M;a.M=L}8(!1p(a.1t)){a.1t=(c.1t(\':3t\').S>0)?\':M\':\'*\'}8(!a[b.d[\'P\']]){8(b.2H){18(J,\'7M a \'+b.d[\'P\']+\' 1j 75 E!\');a[b.d[\'P\']]=4n(c,b,\'2w\')}O{a[b.d[\'P\']]=(6d(c,b,\'2w\'))?\'1d\':c[b.d[\'2w\']](J)}}8(!a[b.d[\'1e\']]){a[b.d[\'1e\']]=(6d(c,b,\'3n\'))?\'1d\':c[b.d[\'3n\']](J)}a.3M.P=a.P;a.3M.1e=a.1e;H a}D 6w(a,b){8(a.E[a.d[\'P\']]==\'1d\'){a.E.U.1d=J}8(!a.E.U.1d){8(Y(a[a.d[\'P\']])){a.E.M=1H.4l(a[a.d[\'P\']]/a.E[a.d[\'P\']])}O{a.E.M=1H.4l(b/a.E[a.d[\'P\']]);a[a.d[\'P\']]=a.E.M*a.E[a.d[\'P\']];8(!a.E.U.2c){a.1B=L}}8(a.E.M==\'95\'||a.E.M<1){18(J,\'2p a 5K 28 4f M E: 7M 46 "1d".\');a.E.U.1d=J}}H a}D 6t(a,b,c){8(a==\'N\'){a=4n(c,b,\'2w\')}H a}D 6u(a,b,c){8(a==\'N\'){a=4n(c,b,\'3n\')}8(!a){a=b.E[b.d[\'1e\']]}H a}D 5i(o,a){F p=4H(3I(a,o),o);o.1i[o.d[1]]=p[1];o.1i[o.d[3]]=p[0];H o}D 5g(o,a,b){F c=6f(1H.2z(o[o.d[\'P\']]/o.E[o.d[\'P\']]),o.E.U);8(c>a.S){c=a.S}F d=1H.4l(o[o.d[\'P\']]/c);o.E.M=c;o.E[o.d[\'P\']]=d;o[o.d[\'P\']]=c*d;H o}D 3N(p){8(1p(p)){F i=(p.3R(\'96\')>-1)?J:L,r=(p.3R(\'3g\')>-1)?J:L}O{F i=r=L}H[i,r]}D 97(a){H(Y(a))?a:3O}D 6g(a){H(a===3O)}D 1z(a){H(6g(a)||2X a==\'7N\'||a===\'\'||a===\'7N\')}D 2V(a){H(a 2W 98)}D 2v(a){H(a 2W 7O)}D 1T(a){H((a 2W 99||2X a==\'2A\')&&!6g(a)&&!2v(a)&&!2V(a))}D Y(a){H((a 2W 4e||2X a==\'28\')&&!9a(a))}D 1p(a){H((a 2W 9b||2X a==\'2M\')&&!1z(a)&&!3p(a)&&!53(a))}D 1o(a){H(a 2W 9c||2X a==\'D\')}D 1k(a){H(a 2W 9d||2X a==\'3d\'||3p(a)||53(a))}D 3p(a){H(a===J||a===\'J\')}D 53(a){H(a===L||a===\'L\')}D 3V(x){H(1p(x)&&x.19(-1)==\'%\')}D 2o(){H 7v 7w().2o()}D 3X(o,n){18(J,o+\' 2f 9e, 9f 1j 9g 9h 9i 9j. 9k \'+n+\' 9l.\')}D 18(d,m){8(!1z(3l.6h)&&!1z(3l.6h.7P)){8(1T(d)){F s=\' (\'+d.4o+\')\';d=d.18}O{F s=\'\'}8(!d){H L}8(1p(m)){m=\'1v\'+s+\': \'+m}O{m=[\'1v\'+s+\':\',m]}3l.6h.7P(m)}H L}$.1L($.2u,{\'9m\':D(t){F a=t*t;H t*(-a*t+4*a-6*t+4)},\'9n\':D(t){H t*(4*t*t-9*t+6)},\'9o\':D(t){F a=t*t;H t*(33*a*a-9p*a*t+9q*a-67*t+15)}})})(7O);',62,585,'|||||||opts|if|||||||||||||||||||||||||||||||function|items|var|conf|return|cf_e|true|itms|false|visible|auto|else|width|total|case|length|trigger|visibleConf|scrl|button|first|is_number|css||bind|tt0|children|prev||next|break|debug|slice|anims|pagination|push|variable|height|progress|stopPropagation|call|padding|for|is_boolean|this|left|wrp|is_function|is_string|data|swipe|fn|filter|tmrs|carouFredSel|fade|_onafter|_moveitems|is_undefined|container|align|_s_paddingold|_s_paddingcur|opacity|switch|play|Math|cover|_position|scroll|extend|duration|eq|_a_wrapper|triggerHandler|mousewheel|usePadding|marginRight|is_object|circular|fx|each|max|sz_resetMargin|i_cur_l|old|i_old_l|uncover|unbind||cookie|isScrolling|isPaused|number|a_cfs|_cfs_origCssMargin|clbk|adjust|isStopped|stopImmediatePropagation|is|queu|while|i_new|w_siz|nr|direction|avail_primary|synchronise|getTime|Not|bar|i_new_l|a_cur|remove|easing|is_jquery|outerWidth|cf_getItemsAdjust|cf_c|ceil|object|pR|_s_paddingnew|preventDefault|a_itm|pauseOnHover|options|responsive|100|default|timeoutDuration|startTime|string|removeClass|queue|last|i_skp|ms_getTotalSize|a_old|a_lef|a_dur|is_array|instanceof|typeof|key|transition|adj|opts_orig|gn_getVisibleItemsNext||min|right|parent||||addClass|pause|perc|boolean|cf_sortParams|scrolling|resume|onAfter|i_old|crossfade|slideTo|window|start|outerHeight|_cfs_triggerEvent|is_true|top|position|wrapper|hidden|sc_clearTimers|timePassed|Carousel|sc_startScroll|events|infinite|nv_enableNavi|i_siz|i_siz_vis|_a_paddingold|_a_paddingcur|get|onBefore|updatePageStatus|gi_getCurrentItems|gn_getItemIndex|anchorBuilder|event|sizesConf|bt_pauseOnHoverConfig|null|ns2|split|indexOf|go_getObject|serialNumber|maxDimension|is_percentage|gn_getVisibleItemsNextFilter|deprecated|orgCSS|zIndex||sz_storeOrigCss|none|sc_stopScroll|dur2|prefix|to|appendTo|sc_setScroll||sc_fireCallbacks|currentPage|end|before|Number|of|document|onTouch|onResize|hide|parseInt|floor|show|ms_getTrueLargestSize|selector|currentPosition|destroy|primarySizePercentage|ms_getPercentage|org|onTimeoutStart|onTimeoutPause|onTimeoutEnd|sz_storeMargin|stopped|pre|post|updater|minimum|gn_getVisibleItemsPrev|cf_getAdjust|onEnd|clone|cf_getAlignPadding|cf_mapWrapperSizes|ms_getSizes|a_wsz|a_new|not|a_cfs_vis|updateSizes|eval|sz_setSizes|pgs|deviation|nv_showNavi|sz_restoreOrigCss|mouseenter|mouseleave|pauseOnEvent|keys|throttle||di|go_getNaviObject|is_false|sz|element|starting_position|_cfs_isCarousel||_cfs_init|go_getPrevNextObject|defaults|up|ms_getParentSize|ms_getMaxDimension|center|in_getResponsiveValues|bottom|in_getAlignPadding|go_complementPrevNextObject|cf_getSynchArr|onPauseStart|onPausePause|onPauseEnd|pauseDuration|marginBottom|newPosition|sz_setResponsiveSizes|_cfs_unbind_events|finish|interval|type|conditions|gn_getVisibleOrg|backward|sc_hideHiddenItems|a_lef_vis|sc_getDuration|_a_paddingnew|sc_showHiddenItems|sc_mapCallbackArguments|sc_afterScroll|sc_fireQueue|cf_setCookie|gn_getVisibleItemsNextTestCircular|slideToPage|valid|linkAnchors|value|_cfs_bind_buttons|click|_cfs_unbind_buttons|scrolled|onMouse|swP|swN|delay|pauseOnResize|debounce|onWindowResize|_windowHeight|nh||ns3|continue|classnames|set|cf_getKeyCode|gn_getItemsPrevFilter||gn_getItemsNextFilter|seco|nw|ms_getLargestSize|toLowerCase|ms_hasVariableSizes|sta|cf_getItemAdjustMinMax|is_null|console|caroufredsel|No|found|go_getItemsObject|go_getScrollObject|go_getAutoObject|go_getPaginationObject|go_getSwipeObject|go_getMousewheelObject|cf_getDimensions|in_complementItems|in_complementPrimarySize|in_complementSecondarySize|upDateOnWindowResize|in_complementVisibleItems|cf_getPadding|500|go_complementAutoObject|go_complementPaginationObject|go_complementSwipeObject|go_complementMousewheelObject|_cfs_build|in_mapCss|textAlign|float|marginTop|marginLeft|absolute|_cfs_origCssZindex|_cfs_bind_events|stop|paused|enough|needed|page|slide_|configuration|gn_getScrollItemsPrevFilter|Scrolling|gi_getOldItemsPrev|gi_getNewItemsPrev|directscroll|concat|gn_getScrollItemsNextFilter|forward|gi_getOldItemsNext|gi_getNewItemsNext|jumpToStart|after|the|append|removeItem|round|hash|index|selected|gn_getVisibleItemsPrevFilter|Item|keyup|keyCode|scN|down|cursor|mcN|configs|classname|cf_getCookie|random|itm|onCreate|swing|namespace|pageAnchorBuilder|span|progressbarUpdater|new|Date|_cfs_isHidden|triggerOnTouchEnd|_cfs_tempCssMargin|_cfs_origCss|attr|style|newS|secp|ms_getPaddingBorderMargin|l1|l2|join|innerWidth|innerHeight|dx|Set|undefined|jQuery|log|caroufredsel_cookie_|relative|fixed|overflow|setInterval|setTimeout|or|Callback|returned|Page|resumed|currently|slide_prev|prependTo|slide_next|prevPage|nextPage|prepend|carousel|insertItem|Correct|insert|Appending|item|add|detach|currentVisible|body|find|Preventing|non|sliding|replaceWith|widths|heights|automatically|ontouchstart|in|swipeUp|swipeDown|swipeLeft|swipeRight|move|200|300|resize|wrap|class|animate|unshift|location|cfs|div|caroufredsel_wrapper|href|charAt|setTime|1000|expires|toGMTString|path|ease|orgDuration|shift|clearTimeout|clearInterval|skipped|Hiding|navigation|disabled|2500|Width|outer|px|em|even|odd|Infinity|immediate|bt_mousesheelNumber|Array|Object|isNaN|String|Function|Boolean|DEPRECATED|support|it|will|be|removed|Use|instead|quadratic|cubic|elastic|106|126'.split('|'),0,{}))
|