function currentBreakpoint(n){if(typeof n=="undefined")return!1;switch(n){case"undefined":return!1;case"small-screen":return Modernizr.mq("screen and (max-width:499px)");case"medium-screen":return Modernizr.mq("screen and (min-width:500px)")&&Modernizr.mq("screen and (max-width:779px)");case"medium-screen-or-bigger":return Modernizr.mq("screen and (min-width:500px)");case"large-screen":return Modernizr.mq("screen and (min-width:780px)")||Modernizr.mq("screen and (device-height: 1024px) and (orientation:landscape)")}return!1}function calculate_main_nav_department_link_widths(){if(main_nav_links.length>0)return!1;$("#main-nav-overflow > ul > li").each(function(){original_link=$(this);temp_copy_of_link=original_link.clone();temp_copy_of_link.appendTo(main_nav_ul);width=temp_copy_of_link.outerWidth(!0);main_nav_links.push([original_link,width])});remove_department_links_from_main_nav()}function remove_department_links_from_main_nav(){$("#main-nav > ul > li.department-link").remove()}function reveal_department_links_in_main_nav_overflow(){$("#main-nav-overflow > ul > li.hidden").removeClass("hidden")}function add_department_links_to_main_nav(){for(var i=$("#main-nav").width(),t=0,n=0;n<required_navbar_elements.length;n++)link=required_navbar_elements[n],link.is(":visible")&&(t+=link.outerWidth(!0));for(available_main_nav_space=i-t,links_that_will_fit=[],links_to_be_added_to_main_nav=[],n=0;n<main_nav_links.length;n++)link=main_nav_links[n],link_width=link[1],available_main_nav_space>=link_width?(links_to_be_added_to_main_nav.push(link[0]),available_main_nav_space=available_main_nav_space-link_width):available_main_nav_space=0;for(n=0;n<links_to_be_added_to_main_nav.length;n++)links_to_be_added_to_main_nav[n].clone().appendTo(main_nav_ul),links_to_be_added_to_main_nav[n].addClass("hidden")}function add_toggle_control(n,t){$(n).click(function(n){var r=$(t).length,i;if(r<2)$(t).toggleClass("hidden");else for(i=0;i<r;i++)$(t[i]).toggleClass("hidden");n.preventDefault()})}function enable_category_filter_overflow_toggle(){$("#category-filter .more").click(function(n){$("#category-filter-overflow").toggleClass("hidden");n.preventDefault()})}function enable_small_screen_search_toggle(){$("#main-nav #search-glass").click(function(n){$("#mobile-search").toggleClass("hidden");n.preventDefault()})}function configure_header_for_current_screen_size(){remove_department_links_from_main_nav();reveal_department_links_in_main_nav_overflow();(!Modernizr.mq("only all")||currentBreakpoint("large-screen"))&&(calculate_main_nav_department_link_widths(),add_department_links_to_main_nav(),enable_mega_menu_toggles("#main-nav"))}function configure_product_filter_and_sort_for_current_screen_size(){$("#category-filter .more").addClass("hidden");$("#category-filter ul:not(#category-filter-overflow) li:not(.more)").removeClass("hidden");$("#category-filter-overflow").addClass("hidden");$("#category-filter-overflow li").remove();currentBreakpoint("medium-screen")&&set_category_filter_overflow()}function set_category_filter_overflow(){var i=0,n;if($("#category-filter ul:not(#category-filter-overflow) li:not(.more)").each(function(){i+=$(this).outerWidth(!0)}),n=$("#category-filter").width(),n<i){$("#category-filter .more").removeClass("hidden");var r=$("#category-filter .current").outerWidth(!0),u=$("#category-filter .more").outerWidth(!0),t=n-(r+u);$("#category-filter ul:not(#category-filter-overflow) li:not(.more, .current)").each(function(){width=$(this).outerWidth(!0);width<=t?($(this).removeClass("hidden"),t=t-width):($("ul#category-filter-overflow").append($(this).clone()),$(this).addClass("hidden"))})}}function enable_mega_menu_toggles(){return}function showBgOverlay(){$(".bg-overlay").fadeIn(200)}function hideBgOverlay(){$("#main-nav-overflow").hasClass("hidden")&&$(".bg-overlay").fadeOut(200)}function createDiv(){var i=document.getElementsByTagName("body")[0],t=document.createElement("div"),n;t.setAttribute("id","cookie-law");t.innerHTML='<div class="cookie-law-inner"><p><b>Important message regarding cookies<\/b> <br />By using this website you consent to the use of cookies in accordance with our <a href="/termsandconditions" rel="nofollow" title="Privacy Policy">Terms and Conditions<\/a>.<\/p> <a class="close-cookie-banner" href="javascript:void(0);" onclick="removeMe();"><span>Hide this message<\/span><\/a><\/div>';n=document.createElement("style");n.type="text/css";n.innerHTML="#cookie-law";document.getElementsByTagName("head")[0].appendChild(n);i.insertBefore(t,i.firstChild);document.getElementsByTagName("body")[0].className+=" cookiebanner";createCookie(window.cookieName,window.cookieValue,window.cookieDuration)}function createCookie(n,t,i){var r,u;i?(r=new Date,r.setTime(r.getTime()+i*864e5),u="; expires="+r.toGMTString()):u="";window.dropCookie&&(document.cookie=n+"="+t+u+"; path=/")}function checkCookie(n){for(var r=n+"=",u=document.cookie.split(";"),t,i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1,t.length);if(t.indexOf(r)==0)return t.substring(r.length,t.length)}return null}function eraseCookie(n){createCookie(n,"",-1)}function removeMe(){$("#cookie-law").slideToggle()}function memberSlider(){this.container=$(".member-slider-wrapper");this.slides=this.container.find("ul.slides li");this.rightSide=$(".member-slider-right");this.currentIndex=0}function AlgoliaExplainResults(n,t,i){function u(n,t){var i=[],e,r,o,f,h,s;if("object"==typeof n&&"matchedWords"in n&&"value"in n){for(e=!1,r=0;r<n.matchedWords.length;++r)o=n.matchedWords[r],o in t||(t[o]=1,e=!0);e&&i.push(n.value)}else if("[object Array]"===Object.prototype.toString.call(n))for(f=0;f<n.length;++f)h=u(n[f],t),i=i.concat(h);else if("object"==typeof n)for(s in n)n.hasOwnProperty(s)&&(i=i.concat(u(n[s],t)));return i}function o(n,t,i){var c=n._highlightResult||n,s,h;if(-1===i.indexOf("."))return i in c?u(c[i],t):[];for(var e=i.split("."),r=c,f=0;f<e.length;++f){if("[object Array]"===Object.prototype.toString.call(r)){for(s=[],h=0;h<r.length;++h)s=s.concat(o(r[h],t,e.slice(f).join(".")));return s}if(!(e[f]in r))return[];r=r[e[f]]}return u(r,t)}var f={},h={},c=o(n,h,t),r,s,e;if(f.title=c.length>0?c[0]:"",f.subtitles=[],"undefined"!=typeof i)for(r=0;r<i.length;++r)for(s=o(n,h,i[r]),e=0;e<s.length;++e)f.subtitles.push({attr:i[r],value:s[e]});return f}var hashgrid,ALGOLIA_VERSION,AlgoliaSearch;equalHeightRows=function(n){var r=0,u=0,i=[],t;$(n).each(function(){t=$(this);var n=$(window).width()<500?Math.max($(t).find(".image-wrap").height(),$(t).find("h4").height()+$(t).find(".was-price").height()+$(t).find(".hp-price").height()):$(t).find(".image-wrap").height()+$(t).find("h4").height()+$(t).find(".was-price").height()+$(t).find(".hp-price").height();if($(t).height("auto"),topPostion=t.position().top,u!=topPostion){for(currentDiv=0;currentDiv<i.length;currentDiv++)i[currentDiv].height(r+5);i.length=0;u=topPostion;r=n;i.push(t)}else i.push(t),r=r<n?n:r;for(currentDiv=0;currentDiv<i.length;currentDiv++)i[currentDiv].height(r+5)})};equalHeights=function(n){var r=0,u=0,t,i,f,e;$(n).each(function(){$el=$(this);$($el).height("auto");elementHeight=$($el).height();elementOuterHeight=$($el).outerHeight();elementHeight>r&&(r=elementHeight,u=elementOuterHeight)});$(n).height(r);t=$(".special-event .height");i=653/351;currentBreakpoint("large-screen")&&t.height(u*2+12);currentBreakpoint("medium-screen")&&(width=t.width(),t.height(width/i));currentBreakpoint("small-screen")&&(width=t.width(),t.height(width/i));f=t.width();e=t.height();f/e<i?t.addClass("tall"):t.removeClass("tall")};padHeights=function(n){$(n).each(function(){$(this).height($(this).height()+20)})};getupdatedSpecialOffersSecondaryColumnHeight=function(){var n=0;return $(".special-offers-wrap .secondary-column .offer .wrap:not(:first)").each(function(){n+=$(this).height()+parseFloat($(this).css("border-bottom-width").replace("px",""))+parseFloat($(this).css("padding-top").replace("px",""))*2}),n/2};equalheight=function(n){var r=0,u=0,i=[],t;$(n).each(function(){if(t=$(this),$(t).height("auto"),topPostion=t.position().top,u!=topPostion){for(currentDiv=0;currentDiv<i.length;currentDiv++)i[currentDiv].height(r);i.length=0;u=topPostion;r=t.height();i.push(t)}else i.push(t),r=r<t.height()?t.height():r;for(currentDiv=0;currentDiv<i.length;currentDiv++)i[currentDiv].height(r)})},function(n,t){function dt(n){var t=n.length,r=i.type(n);return i.isWindow(n)?!1:n.nodeType===1&&t?!0:r==="array"||r!=="function"&&(t===0||typeof t=="number"&&t>0&&t-1 in n)}function kf(n){var t=gt[n]={};return i.each(n.match(s)||[],function(n,i){t[i]=!0}),t}function ir(n,r,u,f){if(i.acceptData(n)){var s,h,c=i.expando,a=typeof r=="string",l=n.nodeType,o=l?i.cache:n,e=l?n[c]:n[c]&&c;if(e&&o[e]&&(f||o[e].data)||!a||u!==t)return e||(l?n[c]=e=b.pop()||i.guid++:e=c),o[e]||(o[e]={},l||(o[e].toJSON=i.noop)),(typeof r=="object"||typeof r=="function")&&(f?o[e]=i.extend(o[e],r):o[e].data=i.extend(o[e].data,r)),s=o[e],f||(s.data||(s.data={}),s=s.data),u!==t&&(s[i.camelCase(r)]=u),a?(h=s[r],h==null&&(h=s[i.camelCase(r)])):h=s,h}}function rr(n,t,r){if(i.acceptData(n)){var o,h,e,s=n.nodeType,u=s?i.cache:n,f=s?n[i.expando]:i.expando;if(u[f]){if(t&&(e=r?u[f]:u[f].data,e)){for(i.isArray(t)?t=t.concat(i.map(t,i.camelCase)):(t in e)?t=[t]:(t=i.camelCase(t),t=t in e?[t]:t.split(" ")),o=0,h=t.length;o<h;o++)delete e[t[o]];if(!(r?ni:i.isEmptyObject)(e))return}(r||(delete u[f].data,ni(u[f])))&&(s?i.cleanData([n],!0):i.support.deleteExpando||u!=u.window?delete u[f]:u[f]=null)}}}function ur(n,r,u){if(u===t&&n.nodeType===1){var f="data-"+r.replace(tr,"-$1").toLowerCase();if(u=n.getAttribute(f),typeof u=="string"){try{u=u==="true"?!0:u==="false"?!1:u==="null"?null:+u+""===u?+u:nr.test(u)?i.parseJSON(u):u}catch(e){}i.data(n,r,u)}else u=t}return u}function ni(n){var t;for(t in n)if((t!=="data"||!i.isEmptyObject(n[t]))&&t!=="toJSON")return!1;return!0}function ht(){return!0}function d(){return!1}function cr(n,t){do n=n[t];while(n&&n.nodeType!==1);return n}function lr(n,t,r){if(t=t||0,i.isFunction(t))return i.grep(n,function(n,i){var u=!!t.call(n,i,n);return u===r});if(t.nodeType)return i.grep(n,function(n){return n===t===r});if(typeof t=="string"){var u=i.grep(n,function(n){return n.nodeType===1});if(fe.test(t))return i.filter(t,u,!r);t=i.filter(t,u)}return i.grep(n,function(n){return i.inArray(n,t)>=0===r})}function ar(n){var i=vr.split("|"),t=n.createDocumentFragment();if(t.createElement)while(i.length)t.createElement(i.pop());return t}function ye(n,t){return n.getElementsByTagName(t)[0]||n.appendChild(n.ownerDocument.createElement(t))}function dr(n){var t=n.getAttributeNode("type");return n.type=(t&&t.specified)+"/"+n.type,n}function gr(n){var t=le.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function si(n,t){for(var u,r=0;(u=n[r])!=null;r++)i._data(u,"globalEval",!t||i._data(t[r],"globalEval"))}function nu(n,t){if(t.nodeType===1&&i.hasData(n)){var u,f,o,s=i._data(n),r=i._data(t,s),e=s.events;if(e){delete r.handle;r.events={};for(u in e)for(f=0,o=e[u].length;f<o;f++)i.event.add(t,u,e[u][f])}r.data&&(r.data=i.extend({},r.data))}}function pe(n,t){var r,f,u;if(t.nodeType===1){if(r=t.nodeName.toLowerCase(),!i.support.noCloneEvent&&t[i.expando]){u=i._data(t);for(f in u.events)i.removeEvent(t,f,u.handle);t.removeAttribute(i.expando)}r==="script"&&t.text!==n.text?(dr(t).text=n.text,gr(t)):r==="object"?(t.parentNode&&(t.outerHTML=n.outerHTML),i.support.html5Clone&&n.innerHTML&&!i.trim(t.innerHTML)&&(t.innerHTML=n.innerHTML)):r==="input"&&ei.test(n.type)?(t.defaultChecked=t.checked=n.checked,t.value!==n.value&&(t.value=n.value)):r==="option"?t.defaultSelected=t.selected=n.defaultSelected:(r==="input"||r==="textarea")&&(t.defaultValue=n.defaultValue)}}function u(n,r){var s,e,h=0,f=typeof n.getElementsByTagName!==o?n.getElementsByTagName(r||"*"):typeof n.querySelectorAll!==o?n.querySelectorAll(r||"*"):t;if(!f)for(f=[],s=n.childNodes||n;(e=s[h])!=null;h++)!r||i.nodeName(e,r)?f.push(e):i.merge(f,u(e,r));return r===t||r&&i.nodeName(n,r)?i.merge([n],f):f}function we(n){ei.test(n.type)&&(n.defaultChecked=n.checked)}function fu(n,t){if(t in n)return t;for(var r=t.charAt(0).toUpperCase()+t.slice(1),u=t,i=uu.length;i--;)if(t=uu[i]+r,t in n)return t;return u}function ut(n,t){return n=t||n,i.css(n,"display")==="none"||!i.contains(n.ownerDocument,n)}function eu(n,t){for(var f,r,o,e=[],u=0,s=n.length;u<s;u++)(r=n[u],r.style)&&(e[u]=i._data(r,"olddisplay"),f=r.style.display,t?(e[u]||f!=="none"||(r.style.display=""),r.style.display===""&&ut(r)&&(e[u]=i._data(r,"olddisplay",cu(r.nodeName)))):e[u]||(o=ut(r),(f&&f!=="none"||!o)&&i._data(r,"olddisplay",o?f:i.css(r,"display"))));for(u=0;u<s;u++)(r=n[u],r.style)&&(t&&r.style.display!=="none"&&r.style.display!==""||(r.style.display=t?e[u]||"":"none"));return n}function ou(n,t,i){var r=ge.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function su(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:t==="width"?1:0,o=0;e<4;e+=2)r==="margin"&&(o+=i.css(n,r+p[e],!0,f)),u?(r==="content"&&(o-=i.css(n,"padding"+p[e],!0,f)),r!=="margin"&&(o-=i.css(n,"border"+p[e]+"Width",!0,f))):(o+=i.css(n,"padding"+p[e],!0,f),r!=="padding"&&(o+=i.css(n,"border"+p[e]+"Width",!0,f)));return o}function hu(n,t,r){var e=!0,u=t==="width"?n.offsetWidth:n.offsetHeight,f=v(n),o=i.support.boxSizing&&i.css(n,"boxSizing",!1,f)==="border-box";if(u<=0||u==null){if(u=y(n,t,f),(u<0||u==null)&&(u=n.style[t]),ct.test(u))return u;e=o&&(i.support.boxSizingReliable||u===n.style[t]);u=parseFloat(u)||0}return u+su(n,t,r||(o?"border":"content"),e,f)+"px"}function cu(n){var u=r,t=iu[n];return t||(t=lu(n,u),t!=="none"&&t||(rt=(rt||i("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(u.documentElement),u=(rt[0].contentWindow||rt[0].contentDocument).document,u.write("<!doctype html><html><body>"),u.close(),t=lu(n,u),rt.detach()),iu[n]=t),t}function lu(n,t){var r=i(t.createElement(n)).appendTo(t.body),u=i.css(r[0],"display");return r.remove(),u}function ci(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||ro.test(n)?u(n,i):ci(n+"["+(typeof i=="object"?t:"")+"]",i,r,u)});else if(r||i.type(t)!=="object")u(n,t);else for(f in t)ci(n+"["+f+"]",t[f],r,u)}function ku(n){return function(t,r){typeof t!="string"&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(s)||[];if(i.isFunction(r))while(u=e[f++])u[0]==="+"?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function du(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);if(typeof s!="string"||o||f[s]){if(o)return!(h=s)}else return t.dataTypes.unshift(s),e(s),!1}),h}var f={},o=n===vi;return e(t.dataTypes[0])||!f["*"]&&e("*")}function yi(n,r){var f,u,e=i.ajaxSettings.flatOptions||{};for(u in r)r[u]!==t&&((e[u]?n:f||(f={}))[u]=r[u]);return f&&i.extend(!0,n,f),n}function co(n,i,r){var s,o,e,u,h=n.contents,f=n.dataTypes,c=n.responseFields;for(u in c)u in r&&(i[c[u]]=r[u]);while(f[0]==="*")f.shift(),o===t&&(o=n.mimeType||i.getResponseHeader("Content-Type"));if(o)for(u in h)if(h[u]&&h[u].test(o)){f.unshift(u);break}if(f[0]in r)e=f[0];else{for(u in r){if(!f[0]||n.converters[u+" "+f[0]]){e=u;break}s||(s=u)}e=e||s}if(e)return e!==f[0]&&f.unshift(e),r[e]}function lo(n,t){var o,r,i,e,u={},h=0,s=n.dataTypes.slice(),f=s[0];if(n.dataFilter&&(t=n.dataFilter(t,n.dataType)),s[1])for(i in n.converters)u[i.toLowerCase()]=n.converters[i];for(;r=s[++h];)if(r!=="*"){if(f!=="*"&&f!==r){if(i=u[f+" "+r]||u["* "+r],!i)for(o in u)if(e=o.split(" "),e[1]===r&&(i=u[f+" "+e[0]]||u["* "+e[0]],i)){i===!0?i=u[o]:u[o]!==!0&&(r=e[0],s.splice(h--,0,r));break}if(i!==!0)if(i&&n.throws)t=i(t);else try{t=i(t)}catch(c){return{state:"parsererror",error:i?c:"No conversion from "+f+" to "+r}}}f=r}return{state:"success",data:t}}function nf(){try{return new n.XMLHttpRequest}catch(t){}}function ao(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function tf(){return setTimeout(function(){tt=t}),tt=i.now()}function wo(n,t){i.each(t,function(t,i){for(var u=(ft[t]||[]).concat(ft["*"]),r=0,f=u.length;r<f;r++)if(u[r].call(n,t,i))return})}function rf(n,t,r){var e,o,s=0,l=yt.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(o)return!1;for(var s=tt||tf(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,e=u.tweens.length;r<e;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),i<1&&e?t:(f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{}},r),originalProperties:t,originalOptions:r,startTime:tt||tf(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(o)return this;for(o=!0;i<r;i++)u.tweens[i].run(1);return t?f.resolveWith(n,[u,t]):f.rejectWith(n,[u,t]),this}}),h=u.props;for(bo(h,u.opts.specialEasing);s<l;s++)if(e=yt[s].call(u,n,h,u.opts),e)return e;return wo(u,h),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function bo(n,t){var u,f,r,e,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function ko(n,t,r){var u,o,v,a,s,y,l,f,b,h=this,e=n.style,p={},w=[],c=n.nodeType&&ut(n);r.queue||(f=i._queueHooks(n,"fx"),f.unqueued==null&&(f.unqueued=0,b=f.empty.fire,f.empty.fire=function(){f.unqueued||b()}),f.unqueued++,h.always(function(){h.always(function(){f.unqueued--;i.queue(n,"fx").length||f.empty.fire()})}));n.nodeType===1&&("height"in t||"width"in t)&&(r.overflow=[e.overflow,e.overflowX,e.overflowY],i.css(n,"display")==="inline"&&i.css(n,"float")==="none"&&(i.support.inlineBlockNeedsLayout&&cu(n.nodeName)!=="inline"?e.zoom=1:e.display="inline-block"));r.overflow&&(e.overflow="hidden",i.support.shrinkWrapBlocks||h.always(function(){e.overflow=r.overflow[0];e.overflowX=r.overflow[1];e.overflowY=r.overflow[2]}));for(o in t)if(a=t[o],vo.exec(a)){if(delete t[o],y=y||a==="toggle",a===(c?"hide":"show"))continue;w.push(o)}if(v=w.length,v)for(s=i._data(n,"fxshow")||i._data(n,"fxshow",{}),("hidden"in s)&&(c=s.hidden),y&&(s.hidden=!c),c?i(n).show():h.done(function(){i(n).hide()}),h.done(function(){var t;i._removeData(n,"fxshow");for(t in p)i.style(n,t,p[t])}),o=0;o<v;o++)u=w[o],l=h.createTween(u,c?s[u]:0),p[u]=s[u]||i.style(n,u),u in s||(s[u]=l.start,c&&(l.end=l.start,l.start=u==="width"||u==="height"?1:0))}function f(n,t,i,r,u){return new f.prototype.init(n,t,i,r,u)}function pt(n,t){var r,i={height:n},u=0;for(t=t?1:0;u<4;u+=2-t)r=p[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function uf(n){return i.isWindow(n)?n:n.nodeType===9?n.defaultView||n.parentWindow:!1}var et,wi,o=typeof t,r=n.document,ff=n.location,ef=n.jQuery,of=n.$,ot={},b=[],wt="1.9.1",bi=b.concat,bt=b.push,l=b.slice,ki=b.indexOf,sf=ot.toString,it=ot.hasOwnProperty,kt=wt.trim,i=function(n,t){return new i.fn.init(n,t,wi)},st=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,s=/\S+/g,hf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,cf=/^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,di=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,lf=/^[\],:{}\s]*$/,af=/(?:^|:|,)(?:\s*\[)+/g,vf=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,yf=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,pf=/^-ms-/,wf=/-([\da-z])/gi,bf=function(n,t){return t.toUpperCase()},h=function(n){(r.addEventListener||n.type==="load"||r.readyState==="complete")&&(gi(),i.ready())},gi=function(){r.addEventListener?(r.removeEventListener("DOMContentLoaded",h,!1),n.removeEventListener("load",h,!1)):(r.detachEvent("onreadystatechange",h),n.detachEvent("onload",h))},gt,nr,tr,pi,lt,g,nt,gu,at;i.fn=i.prototype={jquery:wt,constructor:i,init:function(n,u,f){var e,o;if(!n)return this;if(typeof n=="string"){if(e=n.charAt(0)==="<"&&n.charAt(n.length-1)===">"&&n.length>=3?[null,n,null]:cf.exec(n),e&&(e[1]||!u)){if(e[1]){if(u=u instanceof i?u[0]:u,i.merge(this,i.parseHTML(e[1],u&&u.nodeType?u.ownerDocument||u:r,!0)),di.test(e[1])&&i.isPlainObject(u))for(e in u)i.isFunction(this[e])?this[e](u[e]):this.attr(e,u[e]);return this}if(o=r.getElementById(e[2]),o&&o.parentNode){if(o.id!==e[2])return f.find(n);this.length=1;this[0]=o}return this.context=r,this.selector=n,this}return!u||u.jquery?(u||f).find(n):this.constructor(u).find(n)}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?f.ready(n):(n.selector!==t&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))},selector:"",length:0,size:function(){return this.length},toArray:function(){return l.call(this)},get:function(n){return n==null?this.toArray():n<0?this[this.length+n]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,t},each:function(n,t){return i.each(this,n,t)},ready:function(n){return i.ready.promise().done(n),this},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(t>=0&&t<i?[this[t]]:[])},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:bt,sort:[].sort,splice:[].splice};i.fn.init.prototype=i.fn;i.extend=i.fn.extend=function(){var u,o,r,e,s,h,n=arguments[0]||{},f=1,l=arguments.length,c=!1;for(typeof n=="boolean"&&(c=n,n=arguments[1]||{},f=2),typeof n=="object"||i.isFunction(n)||(n={}),l===f&&(n=this,--f);f<l;f++)if((s=arguments[f])!=null)for(e in s)(u=n[e],r=s[e],n!==r)&&(c&&r&&(i.isPlainObject(r)||(o=i.isArray(r)))?(o?(o=!1,h=u&&i.isArray(u)?u:[]):h=u&&i.isPlainObject(u)?u:{},n[e]=i.extend(c,h,r)):r!==t&&(n[e]=r));return n};i.extend({noConflict:function(t){return n.$===i&&(n.$=of),t&&n.jQuery===i&&(n.jQuery=ef),i},isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){if(n===!0?!--i.readyWait:!i.isReady){if(!r.body)return setTimeout(i.ready);(i.isReady=!0,n!==!0&&--i.readyWait>0)||(et.resolveWith(r,[i]),i.fn.trigger&&i(r).trigger("ready").off("ready"))}},isFunction:function(n){return i.type(n)==="function"},isArray:Array.isArray||function(n){return i.type(n)==="array"},isWindow:function(n){return n!=null&&n==n.window},isNumeric:function(n){return!isNaN(parseFloat(n))&&isFinite(n)},type:function(n){return n==null?String(n):typeof n=="object"||typeof n=="function"?ot[sf.call(n)]||"object":typeof n},isPlainObject:function(n){if(!n||i.type(n)!=="object"||n.nodeType||i.isWindow(n))return!1;try{if(n.constructor&&!it.call(n,"constructor")&&!it.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(u){return!1}var r;for(r in n);return r===t||it.call(n,r)},isEmptyObject:function(n){var t;for(t in n)return!1;return!0},error:function(n){throw new Error(n);},parseHTML:function(n,t,u){if(!n||typeof n!="string")return null;typeof t=="boolean"&&(u=t,t=!1);t=t||r;var f=di.exec(n),e=!u&&[];return f?[t.createElement(f[1])]:(f=i.buildFragment([n],t,e),e&&i(e).remove(),i.merge([],f.childNodes))},parseJSON:function(t){if(n.JSON&&n.JSON.parse)return n.JSON.parse(t);if(t===null)return t;if(typeof t=="string"&&(t=i.trim(t),t&&lf.test(t.replace(vf,"@").replace(yf,"]").replace(af,""))))return new Function("return "+t)();i.error("Invalid JSON: "+t)},parseXML:function(r){var u,f;if(!r||typeof r!="string")return null;try{n.DOMParser?(f=new DOMParser,u=f.parseFromString(r,"text/xml")):(u=new ActiveXObject("Microsoft.XMLDOM"),u.async="false",u.loadXML(r))}catch(e){u=t}return u&&u.documentElement&&!u.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+r),u},noop:function(){},globalEval:function(t){t&&i.trim(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(n){return n.replace(pf,"ms-").replace(wf,bf)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t,i){var u,r=0,f=n.length,e=dt(n);if(i){if(e){for(;r<f;r++)if(u=t.apply(n[r],i),u===!1)break}else for(r in n)if(u=t.apply(n[r],i),u===!1)break}else if(e){for(;r<f;r++)if(u=t.call(n[r],r,n[r]),u===!1)break}else for(r in n)if(u=t.call(n[r],r,n[r]),u===!1)break;return n},trim:kt&&!kt.call("﻿ ")?function(n){return n==null?"":kt.call(n)}:function(n){return n==null?"":(n+"").replace(hf,"")},makeArray:function(n,t){var r=t||[];return n!=null&&(dt(Object(n))?i.merge(r,typeof n=="string"?[n]:n):bt.call(r,n)),r},inArray:function(n,t,i){var r;if(t){if(ki)return ki.call(t,n,i);for(r=t.length,i=i?i<0?Math.max(0,r+i):i:0;i<r;i++)if(i in t&&t[i]===n)return i}return-1},merge:function(n,i){var f=i.length,u=n.length,r=0;if(typeof f=="number")for(;r<f;r++)n[u++]=i[r];else while(i[r]!==t)n[u++]=i[r++];return n.length=u,n},grep:function(n,t,i){var u,f=[],r=0,e=n.length;for(i=!!i;r<e;r++)u=!!t(n[r],r),i!==u&&f.push(n[r]);return f},map:function(n,t,i){var u,r=0,e=n.length,o=dt(n),f=[];if(o)for(;r<e;r++)u=t(n[r],r,i),u!=null&&(f[f.length]=u);else for(r in n)u=t(n[r],r,i),u!=null&&(f[f.length]=u);return bi.apply([],f)},guid:1,proxy:function(n,r){var f,u,e;return(typeof r=="string"&&(e=n[r],r=n,n=e),!i.isFunction(n))?t:(f=l.call(arguments,2),u=function(){return n.apply(r||this,f.concat(l.call(arguments)))},u.guid=n.guid=n.guid||i.guid++,u)},access:function(n,r,u,f,e,o,s){var h=0,l=n.length,c=u==null;if(i.type(u)==="object"){e=!0;for(h in u)i.access(n,r,h,u[h],!0,o,s)}else if(f!==t&&(e=!0,i.isFunction(f)||(s=!0),c&&(s?(r.call(n,f),r=null):(c=r,r=function(n,t,r){return c.call(i(n),r)})),r))for(;h<l;h++)r(n[h],u,s?f:f.call(n[h],h,r(n[h],u)));return e?n:c?r.call(n):l?r(n[0],u):o},now:function(){return(new Date).getTime()}});i.ready.promise=function(t){if(!et)if(et=i.Deferred(),r.readyState==="complete")setTimeout(i.ready);else if(r.addEventListener)r.addEventListener("DOMContentLoaded",h,!1),n.addEventListener("load",h,!1);else{r.attachEvent("onreadystatechange",h);n.attachEvent("onload",h);var u=!1;try{u=n.frameElement==null&&r.documentElement}catch(e){}u&&u.doScroll&&function f(){if(!i.isReady){try{u.doScroll("left")}catch(n){return setTimeout(f,50)}gi();i.ready()}}()}return et.promise(t)};i.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(n,t){ot["[object "+t+"]"]=t.toLowerCase()});wi=i(r);gt={};i.Callbacks=function(n){n=typeof n=="string"?gt[n]||kf(n):i.extend({},n);var o,f,c,s,e,l,r=[],u=!n.once&&[],a=function(t){for(f=n.memory&&t,c=!0,e=l||0,l=0,s=r.length,o=!0;r&&e<s;e++)if(r[e].apply(t[0],t[1])===!1&&n.stopOnFalse){f=!1;break}o=!1;r&&(u?u.length&&a(u.shift()):f?r=[]:h.disable())},h={add:function(){if(r){var t=r.length;(function u(t){i.each(t,function(t,f){var e=i.type(f);e==="function"?n.unique&&h.has(f)||r.push(f):f&&f.length&&e!=="string"&&u(f)})})(arguments);o?s=r.length:f&&(l=t,a(f))}return this},remove:function(){return r&&i.each(arguments,function(n,t){for(var u;(u=i.inArray(t,r,u))>-1;)r.splice(u,1),o&&(u<=s&&s--,u<=e&&e--)}),this},has:function(n){return n?i.inArray(n,r)>-1:!!(r&&r.length)},empty:function(){return r=[],this},disable:function(){return r=u=f=t,this},disabled:function(){return!r},lock:function(){return u=t,f||h.disable(),this},locked:function(){return!u},fireWith:function(n,t){return t=t||[],t=[n,t.slice?t.slice():t],r&&(!c||u)&&(o?u.push(t):a(t)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!c}};return h};i.extend({Deferred:function(n){var u=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],f="pending",r={state:function(){return f},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var n=arguments;return i.Deferred(function(f){i.each(u,function(u,e){var s=e[0],o=i.isFunction(n[u])&&n[u];t[e[1]](function(){var n=o&&o.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().done(f.resolve).fail(f.reject).progress(f.notify):f[s+"With"](this===r?f.promise():this,o?[n]:arguments)})});n=null}).promise()},promise:function(n){return n!=null?i.extend(n,r):r}},t={};return r.pipe=r.then,i.each(u,function(n,i){var e=i[2],o=i[3];r[i[1]]=e.add;o&&e.add(function(){f=o},u[n^1][2].disable,u[2][2].lock);t[i[0]]=function(){return t[i[0]+"With"](this===t?r:this,arguments),this};t[i[0]+"With"]=e.fireWith}),r.promise(t),n&&n.call(t,t),t},when:function(n){var t=0,u=l.call(arguments),r=u.length,e=r!==1||n&&i.isFunction(n.promise)?r:0,f=e===1?n:i.Deferred(),h=function(n,t,i){return function(r){t[n]=this;i[n]=arguments.length>1?l.call(arguments):r;i===o?f.notifyWith(t,i):--e||f.resolveWith(t,i)}},o,c,s;if(r>1)for(o=new Array(r),c=new Array(r),s=new Array(r);t<r;t++)u[t]&&i.isFunction(u[t].promise)?u[t].promise().done(h(t,s,u)).fail(f.reject).progress(h(t,c,o)):--e;return e||f.resolveWith(s,u),f.promise()}});i.support=function(){var u,s,e,f,h,c,l,a,y,v,t=r.createElement("div");if(t.setAttribute("className","t"),t.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>",s=t.getElementsByTagName("*"),e=t.getElementsByTagName("a")[0],!s||!e||!s.length)return{};h=r.createElement("select");l=h.appendChild(r.createElement("option"));f=t.getElementsByTagName("input")[0];e.style.cssText="top:1px;float:left;opacity:.5";u={getSetAttribute:t.className!=="t",leadingWhitespace:t.firstChild.nodeType===3,tbody:!t.getElementsByTagName("tbody").length,htmlSerialize:!!t.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.5/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:!!f.value,optSelected:l.selected,enctype:!!r.createElement("form").enctype,html5Clone:r.createElement("nav").cloneNode(!0).outerHTML!=="<:nav><\/:nav>",boxModel:r.compatMode==="CSS1Compat",deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1};f.checked=!0;u.noCloneChecked=f.cloneNode(!0).checked;h.disabled=!0;u.optDisabled=!l.disabled;try{delete t.test}catch(p){u.deleteExpando=!1}f=r.createElement("input");f.setAttribute("value","");u.input=f.getAttribute("value")==="";f.value="t";f.setAttribute("type","radio");u.radioValue=f.value==="t";f.setAttribute("checked","t");f.setAttribute("name","t");c=r.createDocumentFragment();c.appendChild(f);u.appendChecked=f.checked;u.checkClone=c.cloneNode(!0).cloneNode(!0).lastChild.checked;t.attachEvent&&(t.attachEvent("onclick",function(){u.noCloneEvent=!1}),t.cloneNode(!0).click());for(v in{submit:!0,change:!0,focusin:!0})t.setAttribute(a="on"+v,"t"),u[v+"Bubbles"]=a in n||t.attributes[a].expando===!1;return t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",u.clearCloneStyle=t.style.backgroundClip==="content-box",i(function(){var e,f,i,h="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",s=r.getElementsByTagName("body")[0];s&&(e=r.createElement("div"),e.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",s.appendChild(e).appendChild(t),t.innerHTML="<table><tr><td><\/td><td>t<\/td><\/tr><\/table>",i=t.getElementsByTagName("td"),i[0].style.cssText="padding:0;margin:0;border:0;display:none",y=i[0].offsetHeight===0,i[0].style.display="",i[1].style.display="none",u.reliableHiddenOffsets=y&&i[0].offsetHeight===0,t.innerHTML="",t.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",u.boxSizing=t.offsetWidth===4,u.doesNotIncludeMarginInBodyOffset=s.offsetTop!==1,n.getComputedStyle&&(u.pixelPosition=(n.getComputedStyle(t,null)||{}).top!=="1%",u.boxSizingReliable=(n.getComputedStyle(t,null)||{width:"4px"}).width==="4px",f=t.appendChild(r.createElement("div")),f.style.cssText=t.style.cssText=h,f.style.marginRight=f.style.width="0",t.style.width="1px",u.reliableMarginRight=!parseFloat((n.getComputedStyle(f,null)||{}).marginRight)),typeof t.style.zoom!==o&&(t.innerHTML="",t.style.cssText=h+"width:1px;padding:1px;display:inline;zoom:1",u.inlineBlockNeedsLayout=t.offsetWidth===3,t.style.display="block",t.innerHTML="<div><\/div>",t.firstChild.style.width="5px",u.shrinkWrapBlocks=t.offsetWidth!==3,u.inlineBlockNeedsLayout&&(s.style.zoom=1)),s.removeChild(e),e=t=i=f=null)}),s=h=c=l=e=f=null,u}();nr=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/;tr=/([A-Z])/g;i.extend({cache:{},expando:"jQuery"+(wt+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!ni(n)},data:function(n,t,i){return ir(n,t,i)},removeData:function(n,t){return rr(n,t)},_data:function(n,t,i){return ir(n,t,i,!0)},_removeData:function(n,t){return rr(n,t,!0)},acceptData:function(n){if(n.nodeType&&n.nodeType!==1&&n.nodeType!==9)return!1;var t=n.nodeName&&i.noData[n.nodeName.toLowerCase()];return!t||t!==!0&&n.getAttribute("classid")===t}});i.fn.extend({data:function(n,r){var e,f,u=this[0],o=0,s=null;if(n===t){if(this.length&&(s=i.data(u),u.nodeType===1&&!i._data(u,"parsedAttrs"))){for(e=u.attributes;o<e.length;o++)f=e[o].name,f.indexOf("data-")||(f=i.camelCase(f.slice(5)),ur(u,f,s[f]));i._data(u,"parsedAttrs",!0)}return s}return typeof n=="object"?this.each(function(){i.data(this,n)}):i.access(this,function(r){if(r===t)return u?ur(u,n,i.data(u,n)):null;this.each(function(){i.data(this,n,r)})},null,r,arguments.length>1,null,!0)},removeData:function(n){return this.each(function(){i.removeData(this,n)})}});i.extend({queue:function(n,t,r){var u;if(n)return t=(t||"fx")+"queue",u=i._data(n,t),r&&(!u||i.isArray(r)?u=i._data(n,t,i.makeArray(r)):u.push(r)),u||[]},dequeue:function(n,t){t=t||"fx";var f=i.queue(n,t),e=f.length,r=f.shift(),u=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};r==="inprogress"&&(r=f.shift(),e--);u.cur=r;r&&(t==="fx"&&f.unshift("inprogress"),delete u.stop,r.call(n,o,u));!e&&u&&u.empty.fire()},_queueHooks:function(n,t){var r=t+"queueHooks";return i._data(n,r)||i._data(n,r,{empty:i.Callbacks("once memory").add(function(){i._removeData(n,t+"queue");i._removeData(n,r)})})}});i.fn.extend({queue:function(n,r){var u=2;return(typeof n!="string"&&(r=n,n="fx",u--),arguments.length<u)?i.queue(this[0],n):r===t?this:this.each(function(){var t=i.queue(this,n,r);i._queueHooks(this,n);n==="fx"&&t[0]!=="inprogress"&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},delay:function(n,t){return n=i.fx?i.fx.speeds[n]||n:n,t=t||"fx",this.queue(t,function(t,i){var r=setTimeout(t,n);i.stop=function(){clearTimeout(r)}})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,r){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for(typeof n!="string"&&(r=n,n=t),n=n||"fx";s--;)u=i._data(f[s],n+"queueHooks"),u&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(r)}});var k,fr,ti=/[\t\r\n]/g,df=/\r/g,gf=/^(?:input|select|textarea|button|object)$/i,ne=/^(?:a|area)$/i,er=/^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i,ii=/^(?:checked|selected)$/i,a=i.support.getSetAttribute,ri=i.support.input;i.fn.extend({attr:function(n,t){return i.access(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})},prop:function(n,t){return i.access(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return n=i.propFix[n]||n,this.each(function(){try{this[n]=t;delete this[n]}catch(i){}})},addClass:function(n){var e,t,r,u,o,f=0,h=this.length,c=typeof n=="string"&&n;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,this.className))});if(c)for(e=(n||"").match(s)||[];f<h;f++)if(t=this[f],r=t.nodeType===1&&(t.className?(" "+t.className+" ").replace(ti," "):" "),r){for(o=0;u=e[o++];)r.indexOf(" "+u+" ")<0&&(r+=u+" ");t.className=i.trim(r)}return this},removeClass:function(n){var e,r,t,u,o,f=0,h=this.length,c=arguments.length===0||typeof n=="string"&&n;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,this.className))});if(c)for(e=(n||"").match(s)||[];f<h;f++)if(r=this[f],t=r.nodeType===1&&(r.className?(" "+r.className+" ").replace(ti," "):""),t){for(o=0;u=e[o++];)while(t.indexOf(" "+u+" ")>=0)t=t.replace(" "+u+" "," ");r.className=n?i.trim(t):""}return this},toggleClass:function(n,t){var r=typeof n,u=typeof t=="boolean";return i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,this.className,t),t)}):this.each(function(){if(r==="string")for(var f,c=0,h=i(this),e=t,l=n.match(s)||[];f=l[c++];)e=u?e:!h.hasClass(f),h[e?"addClass":"removeClass"](f);else(r===o||r==="boolean")&&(this.className&&i._data(this,"__className__",this.className),this.className=this.className||n===!1?"":i._data(this,"__className__")||"")})},hasClass:function(n){for(var i=" "+n+" ",t=0,r=this.length;t<r;t++)if(this[t].nodeType===1&&(" "+this[t].className+" ").replace(ti," ").indexOf(i)>=0)return!0;return!1},val:function(n){var u,r,e,f=this[0];return arguments.length?(e=i.isFunction(n),this.each(function(u){var f,o=i(this);this.nodeType===1&&(f=e?n.call(this,u,o.val()):n,f==null?f="":typeof f=="number"?f+="":i.isArray(f)&&(f=i.map(f,function(n){return n==null?"":n+""})),r=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,f,"value")!==t||(this.value=f))})):f?(r=i.valHooks[f.type]||i.valHooks[f.nodeName.toLowerCase()],r&&"get"in r&&(u=r.get(f,"value"))!==t)?u:(u=f.value,typeof u=="string"?u.replace(df,""):u==null?"":u):void 0}});i.extend({valHooks:{option:{get:function(n){var t=n.attributes.value;return!t||t.specified?n.value:n.text}},select:{get:function(n){for(var e,t,o=n.options,r=n.selectedIndex,u=n.type==="select-one"||r<0,s=u?null:[],h=u?r+1:o.length,f=r<0?h:u?r:0;f<h;f++)if(t=o[f],(t.selected||f===r)&&(i.support.optDisabled?!t.disabled:t.getAttribute("disabled")===null)&&(!t.parentNode.disabled||!i.nodeName(t.parentNode,"optgroup"))){if(e=i(t).val(),u)return e;s.push(e)}return s},set:function(n,t){var r=i.makeArray(t);return i(n).find("option").each(function(){this.selected=i.inArray(i(this).val(),r)>=0}),r.length||(n.selectedIndex=-1),r}}},attr:function(n,r,u){var f,s,e,h=n.nodeType;if(n&&h!==3&&h!==8&&h!==2){if(typeof n.getAttribute===o)return i.prop(n,r,u);if(s=h!==1||!i.isXMLDoc(n),s&&(r=r.toLowerCase(),f=i.attrHooks[r]||(er.test(r)?fr:k)),u!==t)if(u===null)i.removeAttr(n,r);else return f&&s&&"set"in f&&(e=f.set(n,u,r))!==t?e:(n.setAttribute(r,u+""),u);else return f&&s&&"get"in f&&(e=f.get(n,r))!==null?e:(typeof n.getAttribute!==o&&(e=n.getAttribute(r)),e==null?t:e)}},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(s);if(f&&n.nodeType===1)while(r=f[e++])u=i.propFix[r]||r,er.test(r)?!a&&ii.test(r)?n[i.camelCase("default-"+r)]=n[u]=!1:n[u]=!1:i.attr(n,r,""),n.removeAttribute(a?r:u)},attrHooks:{type:{set:function(n,t){if(!i.support.radioValue&&t==="radio"&&i.nodeName(n,"input")){var r=n.value;return n.setAttribute("type",t),r&&(n.value=r),t}}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(n,r,u){var e,f,s,o=n.nodeType;if(n&&o!==3&&o!==8&&o!==2)return s=o!==1||!i.isXMLDoc(n),s&&(r=i.propFix[r]||r,f=i.propHooks[r]),u!==t?f&&"set"in f&&(e=f.set(n,u,r))!==t?e:n[r]=u:f&&"get"in f&&(e=f.get(n,r))!==null?e:n[r]},propHooks:{tabIndex:{get:function(n){var i=n.getAttributeNode("tabindex");return i&&i.specified?parseInt(i.value,10):gf.test(n.nodeName)||ne.test(n.nodeName)&&n.href?0:t}}}});fr={get:function(n,r){var u=i.prop(n,r),f=typeof u=="boolean"&&n.getAttribute(r),e=typeof u=="boolean"?ri&&a?f!=null:ii.test(r)?n[i.camelCase("default-"+r)]:!!f:n.getAttributeNode(r);return e&&e.value!==!1?r.toLowerCase():t},set:function(n,t,r){return t===!1?i.removeAttr(n,r):ri&&a||!ii.test(r)?n.setAttribute(!a&&i.propFix[r]||r,r):n[i.camelCase("default-"+r)]=n[r]=!0,r}};ri&&a||(i.attrHooks.value={get:function(n,r){var u=n.getAttributeNode(r);return i.nodeName(n,"input")?n.defaultValue:u&&u.specified?u.value:t},set:function(n,t,r){if(i.nodeName(n,"input"))n.defaultValue=t;else return k&&k.set(n,t,r)}});a||(k=i.valHooks.button={get:function(n,i){var r=n.getAttributeNode(i);return r&&(i==="id"||i==="name"||i==="coords"?r.value!=="":r.specified)?r.value:t},set:function(n,i,r){var u=n.getAttributeNode(r);return u||n.setAttributeNode(u=n.ownerDocument.createAttribute(r)),u.value=i+="",r==="value"||i===n.getAttribute(r)?i:t}},i.attrHooks.contenteditable={get:k.get,set:function(n,t,i){k.set(n,t===""?!1:t,i)}},i.each(["width","height"],function(n,t){i.attrHooks[t]=i.extend(i.attrHooks[t],{set:function(n,i){if(i==="")return n.setAttribute(t,"auto"),i}})}));i.support.hrefNormalized||(i.each(["href","src","width","height"],function(n,r){i.attrHooks[r]=i.extend(i.attrHooks[r],{get:function(n){var i=n.getAttribute(r,2);return i==null?t:i}})}),i.each(["href","src"],function(n,t){i.propHooks[t]={get:function(n){return n.getAttribute(t,4)}}}));i.support.style||(i.attrHooks.style={get:function(n){return n.style.cssText||t},set:function(n,t){return n.style.cssText=t+""}});i.support.optSelected||(i.propHooks.selected=i.extend(i.propHooks.selected,{get:function(n){var t=n.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}));i.support.enctype||(i.propFix.enctype="encoding");i.support.checkOn||i.each(["radio","checkbox"],function(){i.valHooks[this]={get:function(n){return n.getAttribute("value")===null?"on":n.value}}});i.each(["radio","checkbox"],function(){i.valHooks[this]=i.extend(i.valHooks[this],{set:function(n,t){if(i.isArray(t))return n.checked=i.inArray(i(n).val(),t)>=0}})});var ui=/^(?:input|select|textarea)$/i,te=/^key/,ie=/^(?:mouse|contextmenu)|click/,or=/^(?:focusinfocus|focusoutblur)$/,sr=/^([^.]*)(?:\.(.+)|)$/;i.event={global:{},add:function(n,r,u,f,e){var b,p,k,w,c,l,a,v,h,d,g,y=i._data(n);if(y){for(u.handler&&(w=u,u=w.handler,e=w.selector),u.guid||(u.guid=i.guid++),(p=y.events)||(p=y.events={}),(l=y.handle)||(l=y.handle=function(n){return typeof i!==o&&(!n||i.event.triggered!==n.type)?i.event.dispatch.apply(l.elem,arguments):t},l.elem=n),r=(r||"").match(s)||[""],k=r.length;k--;)b=sr.exec(r[k])||[],h=g=b[1],d=(b[2]||"").split(".").sort(),c=i.event.special[h]||{},h=(e?c.delegateType:c.bindType)||h,c=i.event.special[h]||{},a=i.extend({type:h,origType:g,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:d.join(".")},w),(v=p[h])||(v=p[h]=[],v.delegateCount=0,c.setup&&c.setup.call(n,f,d,l)!==!1||(n.addEventListener?n.addEventListener(h,l,!1):n.attachEvent&&n.attachEvent("on"+h,l))),c.add&&(c.add.call(n,a),a.handler.guid||(a.handler.guid=u.guid)),e?v.splice(v.delegateCount++,0,a):v.push(a),i.event.global[h]=!0;n=null}},remove:function(n,t,r,u,f){var y,o,h,b,p,a,c,l,e,w,k,v=i.hasData(n)&&i._data(n);if(v&&(a=v.events)){for(t=(t||"").match(s)||[""],p=t.length;p--;){if(h=sr.exec(t[p])||[],e=k=h[1],w=(h[2]||"").split(".").sort(),!e){for(e in a)i.event.remove(n,e+t[p],r,u,!0);continue}for(c=i.event.special[e]||{},e=(u?c.delegateType:c.bindType)||e,l=a[e]||[],h=h[2]&&new RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=y=l.length;y--;)o=l[y],(f||k===o.origType)&&(!r||r.guid===o.guid)&&(!h||h.test(o.namespace))&&(!u||u===o.selector||u==="**"&&o.selector)&&(l.splice(y,1),o.selector&&l.delegateCount--,c.remove&&c.remove.call(n,o));b&&!l.length&&(c.teardown&&c.teardown.call(n,w,v.handle)!==!1||i.removeEvent(n,e,v.handle),delete a[e])}i.isEmptyObject(a)&&(delete v.handle,i._removeData(n,"events"))}},trigger:function(u,f,e,o){var a,v,h,p,l,c,w,b=[e||r],s=it.call(u,"type")?u.type:u,y=it.call(u,"namespace")?u.namespace.split("."):[];if((h=c=e=e||r,e.nodeType!==3&&e.nodeType!==8)&&!or.test(s+i.event.triggered)&&(s.indexOf(".")>=0&&(y=s.split("."),s=y.shift(),y.sort()),v=s.indexOf(":")<0&&"on"+s,u=u[i.expando]?u:new i.Event(s,typeof u=="object"&&u),u.isTrigger=!0,u.namespace=y.join("."),u.namespace_re=u.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,u.result=t,u.target||(u.target=e),f=f==null?[u]:i.makeArray(f,[u]),l=i.event.special[s]||{},o||!l.trigger||l.trigger.apply(e,f)!==!1)){if(!o&&!l.noBubble&&!i.isWindow(e)){for(p=l.delegateType||s,or.test(p+s)||(h=h.parentNode);h;h=h.parentNode)b.push(h),c=h;c===(e.ownerDocument||r)&&b.push(c.defaultView||c.parentWindow||n)}for(w=0;(h=b[w++])&&!u.isPropagationStopped();)u.type=w>1?p:l.bindType||s,a=(i._data(h,"events")||{})[u.type]&&i._data(h,"handle"),a&&a.apply(h,f),a=v&&h[v],a&&i.acceptData(h)&&a.apply&&a.apply(h,f)===!1&&u.preventDefault();if(u.type=s,!o&&!u.isDefaultPrevented()&&(!l._default||l._default.apply(e.ownerDocument,f)===!1)&&!(s==="click"&&i.nodeName(e,"a"))&&i.acceptData(e)&&v&&e[s]&&!i.isWindow(e)){c=e[v];c&&(e[v]=null);i.event.triggered=s;try{e[s]()}catch(k){}i.event.triggered=t;c&&(e[v]=c)}return u.result}},dispatch:function(n){n=i.event.fix(n);var o,e,r,u,s,h=[],c=l.call(arguments),a=(i._data(this,"events")||{})[n.type]||[],f=i.event.special[n.type]||{};if(c[0]=n,n.delegateTarget=this,!f.preDispatch||f.preDispatch.call(this,n)!==!1){for(h=i.event.handlers.call(this,n,a),o=0;(u=h[o++])&&!n.isPropagationStopped();)for(n.currentTarget=u.elem,s=0;(r=u.handlers[s++])&&!n.isImmediatePropagationStopped();)(!n.namespace_re||n.namespace_re.test(r.namespace))&&(n.handleObj=r,n.data=r.data,e=((i.event.special[r.origType]||{}).handle||r.handler).apply(u.elem,c),e!==t&&(n.result=e)===!1&&(n.preventDefault(),n.stopPropagation()));return f.postDispatch&&f.postDispatch.call(this,n),n.result}},handlers:function(n,r){var e,o,f,s,c=[],h=r.delegateCount,u=n.target;if(h&&u.nodeType&&(!n.button||n.type!=="click"))for(;u!=this;u=u.parentNode||this)if(u.nodeType===1&&(u.disabled!==!0||n.type!=="click")){for(f=[],s=0;s<h;s++)o=r[s],e=o.selector+" ",f[e]===t&&(f[e]=o.needsContext?i(e,this).index(u)>=0:i.find(e,this,null,[u]).length),f[e]&&f.push(o);f.length&&c.push({elem:u,handlers:f})}return h<r.length&&c.push({elem:this,handlers:r.slice(h)}),c},fix:function(n){if(n[i.expando])return n;var e,o,s,u=n.type,f=n,t=this.fixHooks[u];for(t||(this.fixHooks[u]=t=ie.test(u)?this.mouseHooks:te.test(u)?this.keyHooks:{}),s=t.props?this.props.concat(t.props):this.props,n=new i.Event(f),e=s.length;e--;)o=s[e],n[o]=f[o];return n.target||(n.target=f.srcElement||r),n.target.nodeType===3&&(n.target=n.target.parentNode),n.metaKey=!!n.metaKey,t.filter?t.filter(n,f):n},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return n.which==null&&(n.which=t.charCode!=null?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,i){var u,o,f,e=i.button,s=i.fromElement;return n.pageX==null&&i.clientX!=null&&(o=n.target.ownerDocument||r,f=o.documentElement,u=o.body,n.pageX=i.clientX+(f&&f.scrollLeft||u&&u.scrollLeft||0)-(f&&f.clientLeft||u&&u.clientLeft||0),n.pageY=i.clientY+(f&&f.scrollTop||u&&u.scrollTop||0)-(f&&f.clientTop||u&&u.clientTop||0)),!n.relatedTarget&&s&&(n.relatedTarget=s===n.target?i.toElement:s),n.which||e===t||(n.which=e&1?1:e&2?3:e&4?2:0),n}},special:{load:{noBubble:!0},click:{trigger:function(){if(i.nodeName(this,"input")&&this.type==="checkbox"&&this.click)return this.click(),!1}},focus:{trigger:function(){if(this!==r.activeElement&&this.focus)try{return this.focus(),!1}catch(n){}},delegateType:"focusin"},blur:{trigger:function(){if(this===r.activeElement&&this.blur)return this.blur(),!1},delegateType:"focusout"},beforeunload:{postDispatch:function(n){n.result!==t&&(n.originalEvent.returnValue=n.result)}}},simulate:function(n,t,r,u){var f=i.extend(new i.Event,r,{type:n,isSimulated:!0,originalEvent:{}});u?i.event.trigger(f,null,t):i.event.dispatch.call(t,f);f.isDefaultPrevented()&&r.preventDefault()}};i.removeEvent=r.removeEventListener?function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i,!1)}:function(n,t,i){var r="on"+t;n.detachEvent&&(typeof n[r]===o&&(n[r]=null),n.detachEvent(r,i))};i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.returnValue===!1||n.getPreventDefault&&n.getPreventDefault()?ht:d):this.type=n;t&&i.extend(this,t);this.timeStamp=n&&n.timeStamp||i.now();this[i.expando]=!0};i.Event.prototype={isDefaultPrevented:d,isPropagationStopped:d,isImmediatePropagationStopped:d,preventDefault:function(){var n=this.originalEvent;(this.isDefaultPrevented=ht,n)&&(n.preventDefault?n.preventDefault():n.returnValue=!1)},stopPropagation:function(){var n=this.originalEvent;(this.isPropagationStopped=ht,n)&&(n.stopPropagation&&n.stopPropagation(),n.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ht;this.stopPropagation()}};i.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return r&&(r===f||i.contains(f,r))||(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});i.support.submitBubbles||(i.event.special.submit={setup:function(){if(i.nodeName(this,"form"))return!1;i.event.add(this,"click._submit keypress._submit",function(n){var u=n.target,r=i.nodeName(u,"input")||i.nodeName(u,"button")?u.form:t;r&&!i._data(r,"submitBubbles")&&(i.event.add(r,"submit._submit",function(n){n._submit_bubble=!0}),i._data(r,"submitBubbles",!0))})},postDispatch:function(n){n._submit_bubble&&(delete n._submit_bubble,this.parentNode&&!n.isTrigger&&i.event.simulate("submit",this.parentNode,n,!0))},teardown:function(){if(i.nodeName(this,"form"))return!1;i.event.remove(this,"._submit")}});i.support.changeBubbles||(i.event.special.change={setup:function(){if(ui.test(this.nodeName))return(this.type==="checkbox"||this.type==="radio")&&(i.event.add(this,"propertychange._change",function(n){n.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),i.event.add(this,"click._change",function(n){this._just_changed&&!n.isTrigger&&(this._just_changed=!1);i.event.simulate("change",this,n,!0)})),!1;i.event.add(this,"beforeactivate._change",function(n){var t=n.target;ui.test(t.nodeName)&&!i._data(t,"changeBubbles")&&(i.event.add(t,"change._change",function(n){!this.parentNode||n.isSimulated||n.isTrigger||i.event.simulate("change",this.parentNode,n,!0)}),i._data(t,"changeBubbles",!0))})},handle:function(n){var t=n.target;if(this!==t||n.isSimulated||n.isTrigger||t.type!=="radio"&&t.type!=="checkbox")return n.handleObj.handler.apply(this,arguments)},teardown:function(){return i.event.remove(this,"._change"),!ui.test(this.nodeName)}});i.support.focusinBubbles||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=0,f=function(n){i.event.simulate(t,n.target,i.event.fix(n),!0)};i.event.special[t]={setup:function(){u++==0&&r.addEventListener(n,f,!0)},teardown:function(){--u==0&&r.removeEventListener(n,f,!0)}}});i.fn.extend({on:function(n,r,u,f,e){var s,o;if(typeof n=="object"){typeof r!="string"&&(u=u||r,r=t);for(s in n)this.on(s,r,u,n[s],e);return this}if(u==null&&f==null?(f=r,u=r=t):f==null&&(typeof r=="string"?(f=u,u=t):(f=u,u=r,r=t)),f===!1)f=d;else if(!f)return this;return e===1&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),this.each(function(){i.event.add(this,n,f,u,r)})},one:function(n,t,i,r){return this.on(n,t,i,r,1)},off:function(n,r,u){var f,e;if(n&&n.preventDefault&&n.handleObj)return f=n.handleObj,i(n.delegateTarget).off(f.namespace?f.origType+"."+f.namespace:f.origType,f.selector,f.handler),this;if(typeof n=="object"){for(e in n)this.off(e,r,n[e]);return this}return(r===!1||typeof r=="function")&&(u=r,r=t),u===!1&&(u=d),this.each(function(){i.event.remove(this,n,u,r)})},bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return arguments.length===1?this.off(n,"**"):this.off(t,n||"**",i)},trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}}),function(n,t){function ti(n){return tr.test(n+"")}function ii(){var n,t=[];return n=function(i,u){return t.push(i+=" ")>r.cacheLength&&delete n[t.shift()],n[i]=u}}function l(n){return n[f]=!0,n}function b(n){var t=s.createElement("div");try{return n(t)}catch(i){return!1}finally{t=null}}function u(n,t,i,r){var y,u,e,l,p,v,w,h,d,b;if((t?t.ownerDocument||t:k)!==s&&it(t),t=t||s,i=i||[],!n||typeof n!="string")return i;if((l=t.nodeType)!==1&&l!==9)return[];if(!c&&!r){if(y=ir.exec(n))if(e=y[1]){if(l===9)if(u=t.getElementById(e),u&&u.parentNode){if(u.id===e)return i.push(u),i}else return i;else if(t.ownerDocument&&(u=t.ownerDocument.getElementById(e))&&et(t,u)&&u.id===e)return i.push(u),i}else{if(y[2])return ut.apply(i,ft.call(t.getElementsByTagName(n),0)),i;if((e=y[3])&&o.getByClassName&&t.getElementsByClassName)return ut.apply(i,ft.call(t.getElementsByClassName(e),0)),i}if(o.qsa&&!a.test(n)){if(w=!0,h=f,d=t,b=l===9&&n,l===1&&t.nodeName.toLowerCase()!=="object"){for(v=yt(n),(w=t.getAttribute("id"))?h=w.replace(fr,"\\$&"):t.setAttribute("id",h),h="[id='"+h+"'] ",p=v.length;p--;)v[p]=h+pt(v[p]);d=ni.test(n)&&t.parentNode||t;b=v.join(",")}if(b)try{return ut.apply(i,ft.call(d.querySelectorAll(b),0)),i}catch(g){}finally{w||t.removeAttribute("id")}}}return lr(n.replace(at,"$1"),t,i,r)}function yi(n,t){var i=t&&n,r=i&&(~t.sourceIndex||li)-(~n.sourceIndex||li);if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function or(n){return function(t){var i=t.nodeName.toLowerCase();return i==="input"&&t.type===n}}function sr(n){return function(t){var i=t.nodeName.toLowerCase();return(i==="input"||i==="button")&&t.type===n}}function g(n){return l(function(t){return t=+t,l(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function yt(n,t){var e,f,s,o,i,h,c,l=hi[n+" "];if(l)return t?0:l.slice(0);for(i=n,h=[],c=r.preFilter;i;){(!e||(f=ki.exec(i)))&&(f&&(i=i.slice(f[0].length)||i),h.push(s=[]));e=!1;(f=di.exec(i))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),i=i.slice(e.length));for(o in r.filter)(f=vt[o].exec(i))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),i=i.slice(e.length));if(!e)break}return t?i.length:i?u.error(n):hi(n,h).slice(0)}function pt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function ri(n,t,i){var r=t.dir,u=i&&r==="parentNode",e=wi++;return t.first?function(t,i,f){while(t=t[r])if(t.nodeType===1||u)return n(t,i,f)}:function(t,i,o){var h,s,c,l=v+" "+e;if(o){while(t=t[r])if((t.nodeType===1||u)&&n(t,i,o))return!0}else while(t=t[r])if(t.nodeType===1||u)if(c=t[f]||(t[f]={}),(s=c[r])&&s[0]===l){if((h=s[1])===!0||h===ot)return h===!0}else if(s=c[r]=[l],s[1]=n(t,i,o)||ot,s[1]===!0)return!0}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function wt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=t!=null;f<s;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function fi(n,t,i,r,u,e){return r&&!r[f]&&(r=fi(r)),u&&!u[f]&&(u=fi(u,e)),l(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,b=f||cr(t||"*",o.nodeType?[o]:o,[]),v=n&&(f||!t)?wt(b,p,n,o,s):b,h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=wt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?dt.call(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=wt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):ut.apply(e,h)})}function ei(n){for(var s,u,i,o=n.length,h=r.relative[n[0].type],c=h||r.relative[" "],t=h?1:0,l=ri(function(n){return n===s},c,!0),a=ri(function(n){return dt.call(s,n)>-1},c,!0),e=[function(n,t,i){return!h&&(i||t!==ht)||((s=t).nodeType?l(n,t,i):a(n,t,i))}];t<o;t++)if(u=r.relative[n[t].type])e=[ri(ui(e),u)];else{if(u=r.filter[n[t].type].apply(null,n[t].matches),u[f]){for(i=++t;i<o;i++)if(r.relative[n[i].type])break;return fi(t>1&&ui(e),t>1&&pt(n.slice(0,t-1)).replace(at,"$1"),u,t<i&&ei(n.slice(t,i)),i<o&&ei(n=n.slice(i)),i<o&&pt(n))}e.push(u)}return ui(e)}function hr(n,t){var f=0,i=t.length>0,e=n.length>0,o=function(o,h,c,l,a){var p,d,b,w=[],k=0,y="0",g=o&&[],nt=a!=null,tt=ht,rt=o||e&&r.find.TAG("*",a&&h.parentNode||h),it=v+=tt==null?1:Math.random()||.1;for(nt&&(ht=h!==s&&h,ot=f);(p=rt[y])!=null;y++){if(e&&p){for(d=0;b=n[d++];)if(b(p,h,c)){l.push(p);break}nt&&(v=it,ot=++f)}i&&((p=!b&&p)&&k--,o&&g.push(p))}if(k+=y,i&&y!==k){for(d=0;b=t[d++];)b(g,w,h,c);if(o){if(k>0)while(y--)g[y]||w[y]||(w[y]=bi.call(l));w=wt(w)}ut.apply(l,w);nt&&!o&&w.length>0&&k+t.length>1&&u.uniqueSort(l)}return nt&&(v=it,ht=tt),g};return i?l(o):o}function cr(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}function lr(n,t,i,u){var o,f,e,h,l,s=yt(n);if(!u&&s.length===1){if(f=s[0]=s[0].slice(0),f.length>2&&(e=f[0]).type==="ID"&&t.nodeType===9&&!c&&r.relative[f[1].type]){if(t=r.find.ID(e.matches[0].replace(p,w),t)[0],!t)return i;n=n.slice(f.shift().value.length)}for(o=vt.needsContext.test(n)?0:f.length;o--;){if(e=f[o],r.relative[h=e.type])break;if((l=r.find[h])&&(u=l(e.matches[0].replace(p,w),ni.test(f[0].type)&&t.parentNode||t))){if(f.splice(o,1),n=u.length&&pt(f),!n)return ut.apply(i,ft.call(u,0)),i;break}}}return bt(n,s)(u,t,c,i,ni.test(n)),i}function pi(){}var nt,ot,r,st,oi,bt,tt,ht,it,s,h,c,a,rt,ct,et,kt,f="sizzle"+-new Date,k=n.document,o={},v=0,wi=0,si=ii(),hi=ii(),ci=ii(),y=typeof t,li=-2147483648,lt=[],bi=lt.pop,ut=lt.push,ft=lt.slice,dt=lt.indexOf||function(n){for(var t=0,i=this.length;t<i;t++)if(this[t]===n)return t;return-1},e="[\\x20\\t\\r\\n\\f]",d="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ai=d.replace("w","w#"),vi="\\["+e+"*("+d+")"+e+"*(?:([*^$|!~]?=)"+e+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+ai+")|)|)"+e+"*\\]",gt=":("+d+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+vi.replace(3,8)+")*)|.*)\\)|)",at=new RegExp("^"+e+"+|((?:^|[^\\\\])(?:\\\\.)*)"+e+"+$","g"),ki=new RegExp("^"+e+"*,"+e+"*"),di=new RegExp("^"+e+"*([\\x20\\t\\r\\n\\f>+~])"+e+"*"),gi=new RegExp(gt),nr=new RegExp("^"+ai+"$"),vt={ID:new RegExp("^#("+d+")"),CLASS:new RegExp("^\\.("+d+")"),NAME:new RegExp("^\\[name=['\"]?("+d+")['\"]?\\]"),TAG:new RegExp("^("+d.replace("w","w*")+")"),ATTR:new RegExp("^"+vi),PSEUDO:new RegExp("^"+gt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+e+"*(even|odd|(([+-]|)(\\d*)n|)"+e+"*(?:([+-]|)"+e+"*(\\d+)|))"+e+"*\\)|)","i"),needsContext:new RegExp("^"+e+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+e+"*((?:-\\d)?\\d*)"+e+"*\\)|)(?=[^-]|$)","i")},ni=/[\x20\t\r\n\f]*[+~]/,tr=/^[^{]+\{\s*\[native code/,ir=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,rr=/^(?:input|select|textarea|button)$/i,ur=/^h\d$/i,fr=/'|\\/g,er=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,p=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,w=function(n,t){var i="0x"+t-65536;return i!==i?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,i&1023|56320)};try{ft.call(k.documentElement.childNodes,0)[0].nodeType}catch(ar){ft=function(n){for(var t,i=[];t=this[n++];)i.push(t);return i}}oi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?t.nodeName!=="HTML":!1};it=u.setDocument=function(n){var i=n?n.ownerDocument||n:k;return i===s||i.nodeType!==9||!i.documentElement?s:(s=i,h=i.documentElement,c=oi(i),o.tagNameNoComments=b(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),o.attributes=b(function(n){n.innerHTML="<select><\/select>";var t=typeof n.lastChild.getAttribute("multiple");return t!=="boolean"&&t!=="string"}),o.getByClassName=b(function(n){return(n.innerHTML="<div class='hidden e'><\/div><div class='hidden'><\/div>",!n.getElementsByClassName||!n.getElementsByClassName("e").length)?!1:(n.lastChild.className="e",n.getElementsByClassName("e").length===2)}),o.getByName=b(function(n){n.id=f+0;n.innerHTML="<a name='"+f+"'><\/a><div name='"+f+"'><\/div>";h.insertBefore(n,h.firstChild);var t=i.getElementsByName&&i.getElementsByName(f).length===2+i.getElementsByName(f+0).length;return o.getIdNotName=!i.getElementById(f),h.removeChild(n),t}),r.attrHandle=b(function(n){return n.innerHTML="<a href='#'><\/a>",n.firstChild&&typeof n.firstChild.getAttribute!==y&&n.firstChild.getAttribute("href")==="#"})?{}:{href:function(n){return n.getAttribute("href",2)},type:function(n){return n.getAttribute("type")}},o.getIdNotName?(r.find.ID=function(n,t){if(typeof t.getElementById!==y&&!c){var i=t.getElementById(n);return i&&i.parentNode?[i]:[]}},r.filter.ID=function(n){var t=n.replace(p,w);return function(n){return n.getAttribute("id")===t}}):(r.find.ID=function(n,i){if(typeof i.getElementById!==y&&!c){var r=i.getElementById(n);return r?r.id===n||typeof r.getAttributeNode!==y&&r.getAttributeNode("id").value===n?[r]:t:[]}},r.filter.ID=function(n){var t=n.replace(p,w);return function(n){var i=typeof n.getAttributeNode!==y&&n.getAttributeNode("id");return i&&i.value===t}}),r.find.TAG=o.tagNameNoComments?function(n,t){if(typeof t.getElementsByTagName!==y)return t.getElementsByTagName(n)}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if(n==="*"){while(i=u[f++])i.nodeType===1&&r.push(i);return r}return u},r.find.NAME=o.getByName&&function(n,t){if(typeof t.getElementsByName!==y)return t.getElementsByName(name)},r.find.CLASS=o.getByClassName&&function(n,t){if(typeof t.getElementsByClassName!==y&&!c)return t.getElementsByClassName(n)},rt=[],a=[":focus"],(o.qsa=ti(i.querySelectorAll))&&(b(function(n){n.innerHTML="<select><option selected=''><\/option><\/select>";n.querySelectorAll("[selected]").length||a.push("\\["+e+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)");n.querySelectorAll(":checked").length||a.push(":checked")}),b(function(n){n.innerHTML="<input type='hidden' i=''/>";n.querySelectorAll("[i^='']").length&&a.push("[*^$]="+e+"*(?:\"\"|'')");n.querySelectorAll(":enabled").length||a.push(":enabled",":disabled");n.querySelectorAll("*,:x");a.push(",.*:")})),(o.matchesSelector=ti(ct=h.matchesSelector||h.mozMatchesSelector||h.webkitMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&b(function(n){o.disconnectedMatch=ct.call(n,"div");ct.call(n,"[s!='']:x");rt.push("!=",gt)}),a=new RegExp(a.join("|")),rt=new RegExp(rt.join("|")),et=ti(h.contains)||h.compareDocumentPosition?function(n,t){var r=n.nodeType===9?n.documentElement:n,i=t&&t.parentNode;return n===i||!!(i&&i.nodeType===1&&(r.contains?r.contains(i):n.compareDocumentPosition&&n.compareDocumentPosition(i)&16))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},kt=h.compareDocumentPosition?function(n,t){var r;return n===t?(tt=!0,0):(r=t.compareDocumentPosition&&n.compareDocumentPosition&&n.compareDocumentPosition(t))?r&1||n.parentNode&&n.parentNode.nodeType===11?n===i||et(k,n)?-1:t===i||et(k,t)?1:0:r&4?-1:1:n.compareDocumentPosition?-1:1}:function(n,t){var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(n===t)return tt=!0,0;if(o&&s){if(o===s)return yi(n,t)}else return n===i?-1:t===i?1:o?-1:s?1:0;for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?yi(f[u],e[u]):f[u]===k?-1:e[u]===k?1:0},tt=!1,[0,0].sort(kt),o.detectDuplicates=tt,s)};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==s&&it(n),t=t.replace(er,"='$1']"),o.matchesSelector&&!c&&(!rt||!rt.test(t))&&!a.test(t))try{var i=ct.call(n,t);if(i||o.disconnectedMatch||n.document&&n.document.nodeType!==11)return i}catch(r){}return u(t,s,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==s&&it(n),et(n,t)};u.attr=function(n,t){var i;return((n.ownerDocument||n)!==s&&it(n),c||(t=t.toLowerCase()),i=r.attrHandle[t])?i(n):c||o.attributes?n.getAttribute(t):((i=n.getAttributeNode(t))||n.getAttribute(t))&&n[t]===!0?t:i&&i.specified?i.value:null};u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var r,u=[],t=1,i=0;if(tt=!o.detectDuplicates,n.sort(kt),tt){for(;r=n[t];t++)r===n[t-1]&&(i=u.push(t));while(i--)n.splice(u[i],1)}return n};st=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(t===1||t===9||t===11){if(typeof n.textContent=="string")return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(t===3||t===4)return n.nodeValue}else for(;r=n[u];u++)i+=st(r);return i};r=u.selectors={cacheLength:50,createPseudo:l,match:vt,find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(p,w),n[3]=(n[4]||n[5]||"").replace(p,w),n[2]==="~="&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),n[1].slice(0,3)==="nth"?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*(n[3]==="even"||n[3]==="odd")),n[5]=+(n[7]+n[8]||n[3]==="odd")):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[5]&&n[2];return vt.CHILD.test(n[0])?null:(n[4]?n[2]=n[4]:t&&gi.test(t)&&(i=yt(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){return n==="*"?function(){return!0}:(n=n.replace(p,w).toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===n})},CLASS:function(n){var t=si[n+" "];return t||(t=new RegExp("(^|"+e+")"+n+"("+e+"|$)"))&&si(n,function(n){return t.test(n.className||typeof n.getAttribute!==y&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return f==null?t==="!=":t?(f+="",t==="="?f===i:t==="!="?f!==i:t==="^="?i&&f.indexOf(i)===0:t==="*="?i&&f.indexOf(i)>-1:t==="$="?i&&f.slice(-i.length)===i:t==="~="?(" "+f+" ").indexOf(i)>-1:t==="|="?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s=n.slice(0,3)!=="nth",o=n.slice(-4)!=="last",e=t==="of-type";return r===1&&u===0?function(n){return!!n.parentNode}:function(t,i,h){var a,k,c,l,y,w,b=s!==o?"nextSibling":"previousSibling",p=t.parentNode,g=e&&t.nodeName.toLowerCase(),d=!h&&!e;if(p){if(s){while(b){for(c=t;c=c[b];)if(e?c.nodeName.toLowerCase()===g:c.nodeType===1)return!1;w=b=n==="only"&&!w&&"nextSibling"}return!0}if(w=[o?p.firstChild:p.lastChild],o&&d){for(k=p[f]||(p[f]={}),a=k[n]||[],y=a[0]===v&&a[1],l=a[0]===v&&a[2],c=y&&p.childNodes[y];c=++y&&c&&c[b]||(l=y=0)||w.pop();)if(c.nodeType===1&&++l&&c===t){k[n]=[v,y,l];break}}else if(d&&(a=(t[f]||(t[f]={}))[n])&&a[0]===v)l=a[1];else while(c=++y&&c&&c[b]||(l=y=0)||w.pop())if((e?c.nodeName.toLowerCase()===g:c.nodeType===1)&&++l&&(d&&((c[f]||(c[f]={}))[n]=[v,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,t){var e,i=r.pseudos[n]||r.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return i[f]?i(t):i.length>1?(e=[n,n,"",t],r.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,r){for(var u,f=i(n,t),e=f.length;e--;)u=dt.call(n,f[e]),n[u]=!(r[u]=f[e])}):function(n){return i(n,0,e)}):i}},pseudos:{not:l(function(n){var i=[],r=[],t=bt(n.replace(at,"$1"));return t[f]?l(function(n,i,r,u){for(var e,o=t(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(i[f]=e))}):function(n,u,f){return i[0]=n,t(i,null,f,r),!r.pop()}}),has:l(function(n){return function(t){return u(n,t).length>0}}),contains:l(function(n){return function(t){return(t.textContent||t.innerText||st(t)).indexOf(n)>-1}}),lang:l(function(n){return nr.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(p,w).toLowerCase(),function(t){var i;do if(i=c?t.getAttribute("xml:lang")||t.getAttribute("lang"):t.lang)return i=i.toLowerCase(),i===n||i.indexOf(n+"-")===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===h},focus:function(n){return n===s.activeElement&&(!s.hasFocus||s.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&!!n.checked||t==="option"&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeName>"@"||n.nodeType===3||n.nodeType===4)return!1;return!0},parent:function(n){return!r.pseudos.empty(n)},header:function(n){return ur.test(n.nodeName)},input:function(n){return rr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&n.type==="button"||t==="button"},text:function(n){var t;return n.nodeName.toLowerCase()==="input"&&n.type==="text"&&((t=n.getAttribute("type"))==null||t.toLowerCase()===n.type)},first:g(function(){return[0]}),last:g(function(n,t){return[t-1]}),eq:g(function(n,t,i){return[i<0?i+t:i]}),even:g(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:g(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:g(function(n,t,i){for(var r=i<0?i+t:i;--r>=0;)n.push(r);return n}),gt:g(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}};for(nt in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[nt]=or(nt);for(nt in{submit:!0,reset:!0})r.pseudos[nt]=sr(nt);bt=u.compile=function(n,t){var r,u=[],e=[],i=ci[n+" "];if(!i){for(t||(t=yt(n)),r=t.length;r--;)i=ei(t[r]),i[f]?u.push(i):e.push(i);i=ci(n,hr(e,u))}return i};r.pseudos.nth=r.pseudos.eq;r.filters=pi.prototype=r.pseudos;r.setFilters=new pi;it();u.attr=i.attr;i.find=u;i.expr=u.selectors;i.expr[":"]=i.expr.pseudos;i.unique=u.uniqueSort;i.text=u.getText;i.isXMLDoc=u.isXML;i.contains=u.contains}(n);var re=/Until$/,ue=/^(?:parents|prev(?:Until|All))/,fe=/^.[^:#\[\.,]*$/,hr=i.expr.match.needsContext,ee={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({find:function(n){var t,r,f,u=this.length;if(typeof n!="string")return f=this,this.pushStack(i(n).filter(function(){for(t=0;t<u;t++)if(i.contains(f[t],this))return!0}));for(r=[],t=0;t<u;t++)i.find(n,this[t],r);return r=this.pushStack(u>1?i.unique(r):r),r.selector=(this.selector?this.selector+" ":"")+n,r},has:function(n){var t,r=i(n,this),u=r.length;return this.filter(function(){for(t=0;t<u;t++)if(i.contains(this,r[t]))return!0})},not:function(n){return this.pushStack(lr(this,n,!1))},filter:function(n){return this.pushStack(lr(this,n,!0))},is:function(n){return!!n&&(typeof n=="string"?hr.test(n)?i(n,this.context).index(this[0])>=0:i.filter(n,this).length>0:this.filter(n).length>0)},closest:function(n,t){for(var r,f=0,o=this.length,u=[],e=hr.test(n)||typeof n!="string"?i(n,t||this.context):0;f<o;f++)for(r=this[f];r&&r.ownerDocument&&r!==t&&r.nodeType!==11;){if(e?e.index(r)>-1:i.find.matchesSelector(r,n)){u.push(r);break}r=r.parentNode}return this.pushStack(u.length>1?i.unique(u):u)},index:function(n){return n?typeof n=="string"?i.inArray(this[0],i(n)):i.inArray(n.jquery?n[0]:n,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){var r=typeof n=="string"?i(n,t):i.makeArray(n&&n.nodeType?[n]:n),u=i.merge(this.get(),r);return this.pushStack(i.unique(u))},addBack:function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))}});i.fn.andSelf=i.fn.addBack;i.each({parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?t:null},parents:function(n){return i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return cr(n,"nextSibling")},prev:function(n){return cr(n,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling((n.parentNode||{}).firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return re.test(n)||(u=r),u&&typeof u=="string"&&(f=i.filter(u,f)),f=this.length>1&&!ee[n]?i.unique(f):f,this.length>1&&ue.test(n)&&(f=f.reverse()),this.pushStack(f)}});i.extend({filter:function(n,t,r){return r&&(n=":not("+n+")"),t.length===1?i.find.matchesSelector(t[0],n)?[t[0]]:[]:i.find.matches(n,t)},dir:function(n,r,u){for(var e=[],f=n[r];f&&f.nodeType!==9&&(u===t||f.nodeType!==1||!i(f).is(u));)f.nodeType===1&&e.push(f),f=f[r];return e},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)n.nodeType===1&&n!==t&&i.push(n);return i}});var vr="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",oe=/ jQuery\d+="(?:null|\d+)"/g,yr=new RegExp("<(?:"+vr+")[\\s/>]","i"),fi=/^\s+/,pr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,wr=/<([\w:]+)/,br=/<tbody/i,se=/<|&#?\w+;/,he=/<(?:script|style|link)/i,ei=/^(?:checkbox|radio)$/i,ce=/checked\s*(?:[^=]|=\s*.checked.)/i,kr=/^$|\/(?:java|ecma)script/i,le=/^true\/(.*)/,ae=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,e={option:[1,"<select multiple='multiple'>","<\/select>"],legend:[1,"<fieldset>","<\/fieldset>"],area:[1,"<map>","<\/map>"],param:[1,"<object>","<\/object>"],thead:[1,"<table>","<\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],col:[2,"<table><tbody><\/tbody><colgroup>","<\/colgroup><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:i.support.htmlSerialize?[0,"",""]:[1,"X<div>","<\/div>"]},ve=ar(r),oi=ve.appendChild(r.createElement("div"));e.optgroup=e.option;e.tbody=e.tfoot=e.colgroup=e.caption=e.thead;e.th=e.td;i.fn.extend({text:function(n){return i.access(this,function(n){return n===t?i.text(this):this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(n))},null,n,arguments.length)},wrapAll:function(n){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var t=i(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]);t.map(function(){for(var n=this;n.firstChild&&n.firstChild.nodeType===1;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(n){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&this.appendChild(n)})},prepend:function(){return this.domManip(arguments,!0,function(n){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&this.insertBefore(n,this.firstChild)})},before:function(){return this.domManip(arguments,!1,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return this.domManip(arguments,!1,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},remove:function(n,t){for(var r,f=0;(r=this[f])!=null;f++)(!n||i.filter(n,[r]).length>0)&&(t||r.nodeType!==1||i.cleanData(u(r)),r.parentNode&&(t&&i.contains(r.ownerDocument,r)&&si(u(r,"script")),r.parentNode.removeChild(r)));return this},empty:function(){for(var n,t=0;(n=this[t])!=null;t++){for(n.nodeType===1&&i.cleanData(u(n,!1));n.firstChild;)n.removeChild(n.firstChild);n.options&&i.nodeName(n,"select")&&(n.options.length=0)}return this},clone:function(n,t){return n=n==null?!1:n,t=t==null?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return i.access(this,function(n){var r=this[0]||{},f=0,o=this.length;if(n===t)return r.nodeType===1?r.innerHTML.replace(oe,""):t;if(typeof n=="string"&&!he.test(n)&&(i.support.htmlSerialize||!yr.test(n))&&(i.support.leadingWhitespace||!fi.test(n))&&!e[(wr.exec(n)||["",""])[1].toLowerCase()]){n=n.replace(pr,"<$1><\/$2>");try{for(;f<o;f++)r=this[f]||{},r.nodeType===1&&(i.cleanData(u(r,!1)),r.innerHTML=n);r=0}catch(s){}}r&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(n){var t=i.isFunction(n);return t||typeof n=="string"||(n=i(n).not(this).detach()),this.domManip([n],!0,function(n){var r=this.nextSibling,t=this.parentNode;t&&(i(this).remove(),t.insertBefore(n,r))})},detach:function(n){return this.remove(n,!0)},domManip:function(n,r,f){n=bi.apply([],n);var c,e,l,s,y,h,o=0,a=this.length,w=this,b=a-1,v=n[0],p=i.isFunction(v);if(p||!(a<=1||typeof v!="string"||i.support.checkClone||!ce.test(v)))return this.each(function(i){var u=w.eq(i);p&&(n[0]=v.call(this,i,r?u.html():t));u.domManip(n,r,f)});if(a&&(h=i.buildFragment(n,this[0].ownerDocument,!1,this),c=h.firstChild,h.childNodes.length===1&&(h=c),c)){for(r=r&&i.nodeName(c,"tr"),s=i.map(u(h,"script"),dr),l=s.length;o<a;o++)e=h,o!==b&&(e=i.clone(e,!0,!0),l&&i.merge(s,u(e,"script"))),f.call(r&&i.nodeName(this[o],"table")?ye(this[o],"tbody"):this[o],e,o);if(l)for(y=s[s.length-1].ownerDocument,i.map(s,gr),o=0;o<l;o++)e=s[o],kr.test(e.type||"")&&!i._data(e,"globalEval")&&i.contains(y,e)&&(e.src?i.ajax({url:e.src,type:"GET",dataType:"script",async:!1,global:!1,throws:!0}):i.globalEval((e.text||e.textContent||e.innerHTML||"").replace(ae,"")));h=c=null}return this}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,r=0,f=[],e=i(n),o=e.length-1;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),bt.apply(f,u.get());return this.pushStack(f)}});i.extend({clone:function(n,t,r){var f,h,o,e,s,c=i.contains(n.ownerDocument,n);if(i.support.html5Clone||i.isXMLDoc(n)||!yr.test("<"+n.nodeName+">")?o=n.cloneNode(!0):(oi.innerHTML=n.outerHTML,oi.removeChild(o=oi.firstChild)),(!i.support.noCloneEvent||!i.support.noCloneChecked)&&(n.nodeType===1||n.nodeType===11)&&!i.isXMLDoc(n))for(f=u(o),s=u(n),e=0;(h=s[e])!=null;++e)f[e]&&pe(h,f[e]);if(t)if(r)for(s=s||u(n),f=f||u(o),e=0;(h=s[e])!=null;e++)nu(h,f[e]);else nu(n,o);return f=u(o,"script"),f.length>0&&si(f,!c&&u(n,"script")),f=s=h=null,o},buildFragment:function(n,t,r,f){for(var h,o,w,s,y,p,l,b=n.length,a=ar(t),c=[],v=0;v<b;v++)if(o=n[v],o||o===0)if(i.type(o)==="object")i.merge(c,o.nodeType?[o]:o);else if(se.test(o)){for(s=s||a.appendChild(t.createElement("div")),y=(wr.exec(o)||["",""])[1].toLowerCase(),l=e[y]||e._default,s.innerHTML=l[1]+o.replace(pr,"<$1><\/$2>")+l[2],h=l[0];h--;)s=s.lastChild;if(!i.support.leadingWhitespace&&fi.test(o)&&c.push(t.createTextNode(fi.exec(o)[0])),!i.support.tbody)for(o=y==="table"&&!br.test(o)?s.firstChild:l[1]==="<table>"&&!br.test(o)?s:0,h=o&&o.childNodes.length;h--;)i.nodeName(p=o.childNodes[h],"tbody")&&!p.childNodes.length&&o.removeChild(p);for(i.merge(c,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=a.lastChild}else c.push(t.createTextNode(o));for(s&&a.removeChild(s),i.support.appendChecked||i.grep(u(c,"input"),we),v=0;o=c[v++];)if((!f||i.inArray(o,f)===-1)&&(w=i.contains(o.ownerDocument,o),s=u(a.appendChild(o),"script"),w&&si(s),r))for(h=0;o=s[h++];)kr.test(o.type||"")&&r.push(o);return s=null,a},cleanData:function(n,t){for(var r,e,u,f,c=0,s=i.expando,h=i.cache,l=i.support.deleteExpando,a=i.event.special;(r=n[c])!=null;c++)if((t||i.acceptData(r))&&(u=r[s],f=u&&h[u],f)){if(f.events)for(e in f.events)a[e]?i.event.remove(r,e):i.removeEvent(r,e,f.handle);h[u]&&(delete h[u],l?delete r[s]:typeof r.removeAttribute!==o?r.removeAttribute(s):r[s]=null,b.push(u))}}});var rt,v,y,hi=/alpha\([^)]*\)/i,be=/opacity\s*=\s*([^)]*)/,ke=/^(top|right|bottom|left)$/,de=/^(none|table(?!-c[ea]).+)/,tu=/^margin/,ge=new RegExp("^("+st+")(.*)$","i"),ct=new RegExp("^("+st+")(?!px)[a-z%]+$","i"),no=new RegExp("^([+-])=("+st+")","i"),iu={BODY:"block"},to={position:"absolute",visibility:"hidden",display:"block"},ru={letterSpacing:0,fontWeight:400},p=["Top","Right","Bottom","Left"],uu=["Webkit","O","Moz","ms"];i.fn.extend({css:function(n,r){return i.access(this,function(n,r,u){var e,o,s={},f=0;if(i.isArray(r)){for(o=v(n),e=r.length;f<e;f++)s[r[f]]=i.css(n,r[f],!1,o);return s}return u!==t?i.style(n,r,u):i.css(n,r)},n,r,arguments.length>1)},show:function(){return eu(this,!0)},hide:function(){return eu(this)},toggle:function(n){var t=typeof n=="boolean";return this.each(function(){(t?n:ut(this))?i(this).show():i(this).hide()})}});i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=y(n,"opacity");return i===""?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:i.support.cssFloat?"cssFloat":"styleFloat"},style:function(n,r,u,f){if(n&&n.nodeType!==3&&n.nodeType!==8&&n.style){var o,s,e,h=i.camelCase(r),c=n.style;if(r=i.cssProps[h]||(i.cssProps[h]=fu(c,h)),e=i.cssHooks[r]||i.cssHooks[h],u!==t){if(s=typeof u,s==="string"&&(o=no.exec(u))&&(u=(o[1]+1)*o[2]+parseFloat(i.css(n,r)),s="number"),u==null||s==="number"&&isNaN(u))return;if(s!=="number"||i.cssNumber[h]||(u+="px"),i.support.clearCloneStyle||u!==""||r.indexOf("background")!==0||(c[r]="inherit"),!e||!("set"in e)||(u=e.set(n,u,f))!==t)try{c[r]=u}catch(l){}}else return e&&"get"in e&&(o=e.get(n,!1,f))!==t?o:c[r]}},css:function(n,r,u,f){var h,e,o,s=i.camelCase(r);return(r=i.cssProps[s]||(i.cssProps[s]=fu(n.style,s)),o=i.cssHooks[r]||i.cssHooks[s],o&&"get"in o&&(e=o.get(n,!0,u)),e===t&&(e=y(n,r,f)),e==="normal"&&r in ru&&(e=ru[r]),u===""||u)?(h=parseFloat(e),u===!0||i.isNumeric(h)?h||0:e):e},swap:function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f}});n.getComputedStyle?(v=function(t){return n.getComputedStyle(t,null)},y=function(n,r,u){var s,h,c,o=u||v(n),e=o?o.getPropertyValue(r)||o[r]:t,f=n.style;return o&&(e!==""||i.contains(n.ownerDocument,n)||(e=i.style(n,r)),ct.test(e)&&tu.test(r)&&(s=f.width,h=f.minWidth,c=f.maxWidth,f.minWidth=f.maxWidth=f.width=e,e=o.width,f.width=s,f.minWidth=h,f.maxWidth=c)),e}):r.documentElement.currentStyle&&(v=function(n){return n.currentStyle},y=function(n,i,r){var s,e,o,h=r||v(n),u=h?h[i]:t,f=n.style;return u==null&&f&&f[i]&&(u=f[i]),ct.test(u)&&!ke.test(i)&&(s=f.left,e=n.runtimeStyle,o=e&&e.left,o&&(e.left=n.currentStyle.left),f.left=i==="fontSize"?"1em":u,u=f.pixelLeft+"px",f.left=s,o&&(e.left=o)),u===""?"auto":u});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return n.offsetWidth===0&&de.test(i.css(n,"display"))?i.swap(n,to,function(){return hu(n,t,u)}):hu(n,t,u)},set:function(n,r,u){var f=u&&v(n);return ou(n,r,u?su(n,t,u,i.support.boxSizing&&i.css(n,"boxSizing",!1,f)==="border-box",f):0)}}});i.support.opacity||(i.cssHooks.opacity={get:function(n,t){return be.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(n,t){var r=n.style,u=n.currentStyle,e=i.isNumeric(t)?"alpha(opacity="+t*100+")":"",f=u&&u.filter||r.filter||"";(r.zoom=1,(t>=1||t==="")&&i.trim(f.replace(hi,""))===""&&r.removeAttribute&&(r.removeAttribute("filter"),t===""||u&&!u.filter))||(r.filter=hi.test(f)?f.replace(hi,e):f+" "+e)}});i(function(){i.support.reliableMarginRight||(i.cssHooks.marginRight={get:function(n,t){if(t)return i.swap(n,{display:"inline-block"},y,[n,"marginRight"])}});!i.support.pixelPosition&&i.fn.position&&i.each(["top","left"],function(n,t){i.cssHooks[t]={get:function(n,r){if(r)return r=y(n,t),ct.test(r)?i(n).position()[t]+"px":r}}})});i.expr&&i.expr.filters&&(i.expr.filters.hidden=function(n){return n.offsetWidth<=0&&n.offsetHeight<=0||!i.support.reliableHiddenOffsets&&(n.style&&n.style.display||i.css(n,"display"))==="none"},i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u=typeof i=="string"?i.split(" "):[i];r<4;r++)f[n+p[r]+t]=u[r]||u[r-2]||u[0];return f}};tu.test(n)||(i.cssHooks[n+t].set=ou)});var io=/%20/g,ro=/\[\]$/,au=/\r?\n/g,uo=/^(?:submit|button|image|reset|file)$/i,fo=/^(?:input|select|textarea|keygen)/i;i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&fo.test(this.nodeName)&&!uo.test(n)&&(this.checked||!ei.test(n))}).map(function(n,t){var r=i(this).val();return r==null?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(au,"\r\n")}}):{name:t.name,value:r.replace(au,"\r\n")}}).get()}});i.param=function(n,r){var u,f=[],e=function(n,t){t=i.isFunction(t)?t():t==null?"":t;f[f.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(r===t&&(r=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(u in n)ci(u,n[u],r,e);return f.join("&").replace(io,"+")};i.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.hover=function(n,t){return this.mouseenter(n).mouseleave(t||n)};var w,c,li=i.now(),ai=/\?/,eo=/#.*$/,vu=/([?&])_=[^&]*/,oo=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,so=/^(?:GET|HEAD)$/,ho=/^\/\//,yu=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,pu=i.fn.load,wu={},vi={},bu="*/".concat("*");try{c=ff.href}catch(go){c=r.createElement("a");c.href="";c=c.href}w=yu.exec(c.toLowerCase())||[];i.fn.load=function(n,r,u){if(typeof n!="string"&&pu)return pu.apply(this,arguments);var f,s,h,e=this,o=n.indexOf(" ");return o>=0&&(f=n.slice(o,n.length),n=n.slice(0,o)),i.isFunction(r)?(u=r,r=t):r&&typeof r=="object"&&(h="POST"),e.length>0&&i.ajax({url:n,type:h,dataType:"html",data:r}).done(function(n){s=arguments;e.html(f?i("<div>").append(i.parseHTML(n)).find(f):n)}).complete(u&&function(n,t){e.each(u,s||[n.responseText,t,n])}),this};i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}});i.each(["get","post"],function(n,r){i[r]=function(n,u,f,e){return i.isFunction(u)&&(e=e||f,f=u,u=t),i.ajax({url:n,type:r,dataType:e,data:u,success:f})}});i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:c,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(w[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":bu,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":n.String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?yi(yi(n,i.ajaxSettings),t):yi(i.ajaxSettings,n)},ajaxPrefilter:ku(wu),ajaxTransport:ku(vi),ajax:function(n,r){function k(n,r,s,c){var l,k,w,rt,p,a=r;o!==2&&(o=2,g&&clearTimeout(g),v=t,d=c||"",f.readyState=n>0?4:0,s&&(rt=co(u,f,s)),n>=200&&n<300||n===304?(u.ifModified&&(p=f.getResponseHeader("Last-Modified"),p&&(i.lastModified[e]=p),p=f.getResponseHeader("etag"),p&&(i.etag[e]=p)),n===204?(l=!0,a="nocontent"):n===304?(l=!0,a="notmodified"):(l=lo(u,rt),a=l.state,k=l.data,w=l.error,l=!w)):(w=a,(n||!a)&&(a="error",n<0&&(n=0))),f.status=n,f.statusText=(r||a)+"",l?tt.resolveWith(h,[k,a,f]):tt.rejectWith(h,[f,a,w]),f.statusCode(b),b=t,y&&nt.trigger(l?"ajaxSuccess":"ajaxError",[f,u,l?k:w]),it.fireWith(h,[f,a]),y&&(nt.trigger("ajaxComplete",[f,u]),--i.active||i.event.trigger("ajaxStop")))}typeof n=="object"&&(r=n,n=t);r=r||{};var l,a,e,d,g,y,v,p,u=i.ajaxSetup({},r),h=u.context||u,nt=u.context&&(h.nodeType||h.jquery)?i(h):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),b=u.statusCode||{},rt={},ut={},o=0,ft="canceled",f={readyState:0,getResponseHeader:function(n){var t;if(o===2){if(!p)for(p={};t=oo.exec(d);)p[t[1].toLowerCase()]=t[2];t=p[n.toLowerCase()]}return t==null?null:t},getAllResponseHeaders:function(){return o===2?d:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return o||(n=ut[i]=ut[i]||n,rt[n]=t),this},overrideMimeType:function(n){return o||(u.mimeType=n),this},statusCode:function(n){var t;if(n)if(o<2)for(t in n)b[t]=[b[t],n[t]];else f.always(n[f.status]);return this},abort:function(n){var t=n||ft;return v&&v.abort(t),k(0,t),this}};if(tt.promise(f).complete=it.add,f.success=f.done,f.error=f.fail,u.url=((n||u.url||c)+"").replace(eo,"").replace(ho,w[1]+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=i.trim(u.dataType||"*").toLowerCase().match(s)||[""],u.crossDomain==null&&(l=yu.exec(u.url.toLowerCase()),u.crossDomain=!!(l&&(l[1]!==w[1]||l[2]!==w[2]||(l[3]||(l[1]==="http:"?80:443))!=(w[3]||(w[1]==="http:"?80:443))))),u.data&&u.processData&&typeof u.data!="string"&&(u.data=i.param(u.data,u.traditional)),du(wu,u,r,f),o===2)return f;y=u.global;y&&i.active++==0&&i.event.trigger("ajaxStart");u.type=u.type.toUpperCase();u.hasContent=!so.test(u.type);e=u.url;u.hasContent||(u.data&&(e=u.url+=(ai.test(e)?"&":"?")+u.data,delete u.data),u.cache===!1&&(u.url=vu.test(e)?e.replace(vu,"$1_="+li++):e+(ai.test(e)?"&":"?")+"_="+li++));u.ifModified&&(i.lastModified[e]&&f.setRequestHeader("If-Modified-Since",i.lastModified[e]),i.etag[e]&&f.setRequestHeader("If-None-Match",i.etag[e]));(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&f.setRequestHeader("Content-Type",u.contentType);f.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+(u.dataTypes[0]!=="*"?", "+bu+"; q=0.01":""):u.accepts["*"]);for(a in u.headers)f.setRequestHeader(a,u.headers[a]);if(u.beforeSend&&(u.beforeSend.call(h,f,u)===!1||o===2))return f.abort();ft="abort";for(a in{success:1,error:1,complete:1})f[a](u[a]);if(v=du(vi,u,r,f),v){f.readyState=1;y&&nt.trigger("ajaxSend",[f,u]);u.async&&u.timeout>0&&(g=setTimeout(function(){f.abort("timeout")},u.timeout));try{o=1;v.send(rt,k)}catch(et){if(o<2)k(-1,et);else throw et;}}else k(-1,"No Transport");return f},getScript:function(n,r){return i.get(n,t,r,"script")},getJSON:function(n,t,r){return i.get(n,t,r,"json")}});i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(n){return i.globalEval(n),n}}});i.ajaxPrefilter("script",function(n){n.cache===t&&(n.cache=!1);n.crossDomain&&(n.type="GET",n.global=!1)});i.ajaxTransport("script",function(n){if(n.crossDomain){var u,f=r.head||i("head")[0]||r.documentElement;return{send:function(t,i){u=r.createElement("script");u.async=!0;n.scriptCharset&&(u.charset=n.scriptCharset);u.src=n.url;u.onload=u.onreadystatechange=function(n,t){(t||!u.readyState||/loaded|complete/.test(u.readyState))&&(u.onload=u.onreadystatechange=null,u.parentNode&&u.parentNode.removeChild(u),u=null,t||i(200,"success"))};f.insertBefore(u,f.firstChild)},abort:function(){if(u)u.onload(t,!0)}}}});pi=[];lt=/(=)\?(?=&|$)|\?\?/;i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=pi.pop()||i.expando+"_"+li++;return this[n]=!0,n}});i.ajaxPrefilter("json jsonp",function(r,u,f){var e,s,o,h=r.jsonp!==!1&&(lt.test(r.url)?"url":typeof r.data=="string"&&!(r.contentType||"").indexOf("application/x-www-form-urlencoded")&&lt.test(r.data)&&"data");if(h||r.dataTypes[0]==="jsonp")return e=r.jsonpCallback=i.isFunction(r.jsonpCallback)?r.jsonpCallback():r.jsonpCallback,h?r[h]=r[h].replace(lt,"$1"+e):r.jsonp!==!1&&(r.url+=(ai.test(r.url)?"&":"?")+r.jsonp+"="+e),r.converters["script json"]=function(){return o||i.error(e+" was not called"),o[0]},r.dataTypes[0]="json",s=n[e],n[e]=function(){o=arguments},f.always(function(){n[e]=s;r[e]&&(r.jsonpCallback=u.jsonpCallback,pi.push(e));o&&i.isFunction(s)&&s(o[0]);o=s=t}),"script"});gu=0;at=n.ActiveXObject&&function(){var n;for(n in g)g[n](t,!0)};i.ajaxSettings.xhr=n.ActiveXObject?function(){return!this.isLocal&&nf()||ao()}:nf;nt=i.ajaxSettings.xhr();i.support.cors=!!nt&&"withCredentials"in nt;nt=i.support.ajax=!!nt;nt&&i.ajaxTransport(function(r){if(!r.crossDomain||i.support.cors){var u;return{send:function(f,e){var h,s,o=r.xhr();if(r.username?o.open(r.type,r.url,r.async,r.username,r.password):o.open(r.type,r.url,r.async),r.xhrFields)for(s in r.xhrFields)o[s]=r.xhrFields[s];r.mimeType&&o.overrideMimeType&&o.overrideMimeType(r.mimeType);r.crossDomain||f["X-Requested-With"]||(f["X-Requested-With"]="XMLHttpRequest");try{for(s in f)o.setRequestHeader(s,f[s])}catch(c){}o.send(r.hasContent&&r.data||null);u=function(n,f){var s,a,l,c;try{if(u&&(f||o.readyState===4))if(u=t,h&&(o.onreadystatechange=i.noop,at&&delete g[h]),f)o.readyState!==4&&o.abort();else{c={};s=o.status;a=o.getAllResponseHeaders();typeof o.responseText=="string"&&(c.text=o.responseText);try{l=o.statusText}catch(y){l=""}s||!r.isLocal||r.crossDomain?s===1223&&(s=204):s=c.text?200:404}}catch(v){f||e(-1,v)}c&&e(s,l,c,a)};r.async?o.readyState===4?setTimeout(u):(h=++gu,at&&(g||(g={},i(n).unload(at)),g[h]=u),o.onreadystatechange=u):u()},abort:function(){u&&u(t,!0)}}}});var tt,vt,vo=/^(?:toggle|show|hide)$/,yo=new RegExp("^(?:([+-])=|)("+st+")([a-z%]*)$","i"),po=/queueHooks$/,yt=[ko],ft={"*":[function(n,t){var o,s,r=this.createTween(n,t),e=yo.exec(t),h=r.cur(),u=+h||0,f=1,c=20;if(e){if(o=+e[2],s=e[3]||(i.cssNumber[n]?"":"px"),s!=="px"&&u){u=i.css(r.elem,n,!0)||o||1;do f=f||".5",u=u/f,i.style(r.elem,n,u+s);while(f!==(f=r.cur()/h)&&f!==1&&--c)}r.unit=s;r.start=u;r.end=e[1]?u+(e[1]+1)*o:o}return r}]};i.Animation=i.extend(rf,{tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.split(" ");for(var r,u=0,f=n.length;u<f;u++)r=n[u],ft[r]=ft[r]||[],ft[r].unshift(t)},prefilter:function(n,t){t?yt.unshift(n):yt.push(n)}});i.Tween=f;f.prototype={constructor:f,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||"swing";this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=f.propHooks[this.prop];return n&&n.get?n.get(this):f.propHooks._default.get(this)},run:function(n){var t,r=f.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):f.propHooks._default.set(this),this}};f.prototype.init.prototype=f.prototype;f.propHooks={_default:{get:function(n){var t;return n.elem[n.prop]!=null&&(!n.elem.style||n.elem.style[n.prop]==null)?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""),!t||t==="auto"?0:t)},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.style&&(n.elem.style[i.cssProps[n.prop]]!=null||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};f.propHooks.scrollTop=f.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return n==null||typeof n=="boolean"?r.apply(this,arguments):this.animate(pt(t,!0),n,i,u)}});i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(ut).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,r,u){var o=i.isEmptyObject(n),e=i.speed(t,r,u),f=function(){var t=rf(this,i.extend({},n),e);f.finish=function(){t.stop(!0)};(o||i._data(this,"finish"))&&t.stop(!0)};return f.finish=f,o||e.queue===!1?this.each(f):this.queue(e.queue,f)},stop:function(n,r,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return typeof n!="string"&&(u=r,r=n,n=t),r&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var o=!0,t=n!=null&&n+"queueHooks",e=i.timers,r=i._data(this);if(t)r[t]&&r[t].stop&&f(r[t]);else for(t in r)r[t]&&r[t].stop&&po.test(t)&&f(r[t]);for(t=e.length;t--;)e[t].elem===this&&(n==null||e[t].queue===n)&&(e[t].anim.stop(u),o=!1,e.splice(t,1));(o||!u)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,f=i._data(this),r=f[n+"queue"],e=f[n+"queueHooks"],u=i.timers,o=r?r.length:0;for(f.finish=!0,i.queue(this,n,[]),e&&e.cur&&e.cur.finish&&e.cur.finish.call(this),t=u.length;t--;)u[t].elem===this&&u[t].queue===n&&(u[t].anim.stop(!0),u.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete f.finish})}});i.each({slideDown:pt("show"),slideUp:pt("hide"),slideToggle:pt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.speed=function(n,t,r){var u=n&&typeof n=="object"?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:typeof u.duration=="number"?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(u.queue==null||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2}};i.timers=[];i.fx=f.prototype.init;i.fx.tick=function(){var u,n=i.timers,r=0;for(tt=i.now();r<n.length;r++)u=n[r],u()||n[r]!==u||n.splice(r--,1);n.length||i.fx.stop();tt=t};i.fx.timer=function(n){n()&&i.timers.push(n)&&i.fx.start()};i.fx.interval=13;i.fx.start=function(){vt||(vt=setInterval(i.fx.tick,i.fx.interval))};i.fx.stop=function(){clearInterval(vt);vt=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fx.step={};i.expr&&i.expr.filters&&(i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length});i.fn.offset=function(n){if(arguments.length)return n===t?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,e,f={top:0,left:0},u=this[0],s=u&&u.ownerDocument;if(s)return(r=s.documentElement,!i.contains(r,u))?f:(typeof u.getBoundingClientRect!==o&&(f=u.getBoundingClientRect()),e=uf(s),{top:f.top+(e.pageYOffset||r.scrollTop)-(r.clientTop||0),left:f.left+(e.pageXOffset||r.scrollLeft)-(r.clientLeft||0)})};i.offset={setOffset:function(n,t,r){var f=i.css(n,"position");f==="static"&&(n.style.position="relative");var e=i(n),o=e.offset(),l=i.css(n,"top"),a=i.css(n,"left"),v=(f==="absolute"||f==="fixed")&&i.inArray("auto",[l,a])>-1,u={},s={},h,c;v?(s=e.position(),h=s.top,c=s.left):(h=parseFloat(l)||0,c=parseFloat(a)||0);i.isFunction(t)&&(t=t.call(n,r,o));t.top!=null&&(u.top=t.top-o.top+h);t.left!=null&&(u.left=t.left-o.left+c);"using"in t?t.using.call(n,u):e.css(u)}};i.fn.extend({position:function(){if(this[0]){var n,r,t={top:0,left:0},u=this[0];return i.css(u,"position")==="fixed"?r=u.getBoundingClientRect():(n=this.offsetParent(),r=this.offset(),i.nodeName(n[0],"html")||(t=n.offset()),t.top+=i.css(n[0],"borderTopWidth",!0),t.left+=i.css(n[0],"borderLeftWidth",!0)),{top:r.top-t.top-i.css(u,"marginTop",!0),left:r.left-t.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent||r.documentElement;n&&!i.nodeName(n,"html")&&i.css(n,"position")==="static";)n=n.offsetParent;return n||r.documentElement})}});i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,r){var u=/Y/.test(r);i.fn[n]=function(f){return i.access(this,function(n,f,e){var o=uf(n);if(e===t)return o?r in o?o[r]:o.document.documentElement[f]:n[f];o?o.scrollTo(u?i(o).scrollLeft():e,u?e:i(o).scrollTop()):n[f]=e},n,f,arguments.length,null)}});i.each({Height:"height",Width:"width"},function(n,r){i.each({padding:"inner"+n,content:r,"":"outer"+n},function(u,f){i.fn[f]=function(f,e){var o=arguments.length&&(u||typeof f!="boolean"),s=u||(f===!0||e===!0?"margin":"border");return i.access(this,function(r,u,f){var e;return i.isWindow(r)?r.document.documentElement["client"+n]:r.nodeType===9?(e=r.documentElement,Math.max(r.body["scroll"+n],e["scroll"+n],r.body["offset"+n],e["offset"+n],e["client"+n])):f===t?i.css(r,u,s):i.style(r,u,f,s)},r,o?f:t,o,null)}})});n.jQuery=n.$=i;typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return i})}(window),function(){for(var n,u=function(){},t=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"],i=t.length,r=window.console=window.console||{};i--;)n=t[i],r[n]||(r[n]=u)}();var main_nav_links_total_width=0,main_nav_links=[],main_nav_ul=$("#main-nav > ul"),required_navbar_elements=[$("#offers"),$("#ideas-link"),$("#tablet-search"),$("#search-glass"),$("#main-nav li.more")];$(window).resize(function(){configure_header_for_current_screen_size();configure_product_filter_and_sort_for_current_screen_size()});$(document).ready(function(){configure_header_for_current_screen_size();configure_product_filter_and_sort_for_current_screen_size();enable_mega_menu_toggles("#main-nav-overflow");enable_small_screen_search_toggle();enable_category_filter_overflow_toggle();add_toggle_control("#filter-button",["#product-filter","#sort-options"]);add_toggle_control("#main-nav .more","#main-nav-overflow")});$(document).ready(function(){});$(document).ready(function(){if(Modernizr.mq("screen and (min-width:767px)")){$("#main-nav, #main-nav-overflow").on("mouseenter",function(){showBgOverlay()});$("#main-nav, #main-nav-overflow").on("mouseleave",function(){hideBgOverlay()});$(".bg-overlay").on("click",function(){$("#main-nav-overflow").addClass("hidden");hideBgOverlay()})}});!function(n){var t=function(t){this.element=n(t)},i;t.prototype={constructor:t,show:function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),i=t.attr("data-target"),r,u,f;(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),t.parent("li").hasClass("active"))||(r=e.find(".active:last a")[0],f=n.Event("show",{relatedTarget:r}),t.trigger(f),f.isDefaultPrevented())||(u=n(i),this.activate(t.parent("li"),e),this.activate(u,u.parent(),function(){t.trigger({type:"shown",relatedTarget:r})}))},activate:function(t,i,r){function f(){u.removeClass("active").find("> .dropdown-menu > .active").removeClass("active");t.addClass("active");e?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade");t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active");r&&r()}var u=i.find("> .active"),e=r&&n.support.transition&&u.hasClass("fade");e?u.one(n.support.transition.end,f):f();u.removeClass("in")}};i=n.fn.tab;n.fn.tab=function(i){return this.each(function(){var u=n(this),r=u.data("tab");r||u.data("tab",r=new t(this));typeof i=="string"&&r[i]()})};n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=i,this};n(document).on("click.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault();n(this).tab("show")})}(window.jQuery);$(document).ready(function(){$("#myTab a").click(function(n){n.preventDefault();$(this).tab("show")})});var dropCookie=!0,cookieDuration=180,cookieName="complianceCookie",cookieValue="on";$(function(){checkCookie(window.cookieName)!=window.cookieValue&&createDiv()});$(document).ready(function(){$("div#product-image div#paint-options span").on("click",function(){var t=$(this),i=t.data("paint-colour"),r=t.html(),n;$("div#swatch-preview").remove();$("div#paint-image").hide();n=$("script#swatch-preview-template").html();n=n.replace("{{name}}",r);$("div#paint-image").after(n);$(".large-swatch").css({backgroundColor:"#"+i});$("div#paint-options").addClass("active").find("span.active").removeClass("active");t.addClass("active")});$("div#product-image").on("click","div#swatch-preview a.close-swatch",function(){$("div#swatch-preview").remove();$("div#paint-image").show();$("div#paint-options").removeClass("active").find("span.active").removeClass("active")})});$(document).ready(function(){var i=!1,n=$("img#zoom"),t=$("div.zoomContainer");if(t.remove(),n.length>0){currentBreakpoint("small-screen")&&Modernizr.touch||n.elevateZoom({zoomType:"inner",zoomWindowFadeIn:200,zoomWindowFadeOut:200});i=!0;n.on("mouseenter",function(){currentBreakpoint("small-screen")&&Modernizr.touch||i==!1&&n.elevateZoom({zoomType:"inner",zoomWindowFadeIn:200,zoomWindowFadeOut:200})});$("img#zoom").parent().on("mouseenter",function(){t.show()});$("img#zoom").parent().on("mouseleave",function(){t.hide()});$(window).on("resize",function(){i=!1;t.remove();r(n);currentBreakpoint("small-screen")&&Modernizr.touch||n.elevateZoom({zoomType:"inner",zoomWindowFadeIn:200,zoomWindowFadeOut:200})});function r(n){n.unbind("touchmove")}}});$(document).ready(function(){function u(){var r=$(".special-offers-wrap"),u=r.find(".primary-column"),i=r.find(".secondary-column"),f=currentBreakpoint("large-screen"),e,t,o;r.find(".offer .wrap").height("auto");f&&f&&(equalHeights(".special-offers-wrap .offer.size-large .wrap, .special-offers-wrap .secondary-column .offer .wrap:first"),padHeights(".special-offers-wrap .offer.size-large .wrap, .special-offers-wrap .secondary-column .offer .wrap:first"),$(".special-offers-wrap").hasClass("four-offer")?(equalHeights(".special-offers-wrap .secondary-column .offer .wrap"),padHeights(".special-offers-wrap .secondary-column .offer .wrap")):padHeights(".special-offers-wrap .secondary-column .offer .wrap:not(:first)"),equalHeights(".special-offers-wrap .primary-column .size-narrow .wrap"),padHeights(".special-offers-wrap .primary-column .size-narrow .wrap"),e=u.find(".size-narrow .wrap:first").height(),t=r.hasClass("four-offer")?i.find(".offer .wrap:first").first().height()+n(i.find(" .offer .wrap"))*2:getupdatedSpecialOffersSecondaryColumnHeight(),e<t*2?r.hasClass("four-offer")?u.find(" .size-narrow .wrap").height(t*2-n(i.find(".offer .wrap"))*2):u.find(" .size-narrow .wrap").height(t*2-n(i.find(".offer .wrap:not(:first)"))*2):(o=(e-(t+n(i.find(".offer .wrap")))*2)/2,r.hasClass("four-offer")?i.find(" .offer .wrap").height(t+o):i.find(" .offer .wrap:not(:first)").height(t+o)));f||(equalHeights(".special-offers-wrap .primary-column .size-narrow .wrap"),equalHeights(".special-offers-wrap .secondary-column .wrap"))}function n(n){return parseFloat(n.css("padding-top").replace("px",""))}function t(){var n=$(".special-offers-wrap"),r=$(".special-offers-wrap .primary-column"),t=n.find(".secondary-column"),i=currentBreakpoint("large-screen");t.find(".wrap").each(function(){var n=$(this).find("h2");i?$(this).find(".image").before(n):$(this).find(".copy h2").length===0&&$(this).find(".green-bull").before(n)})}function i(){equalHeightRows(".product-grid .product-tile");equalHeightRows(".similar-products-grid .product-tile");equalHeights(".special-offer a");!$("html").hasClass("lt-ie8")&&$(".special-offers-wrap").length>0&&(t(),u(),t())}function r(n){var t=$("body").width();t<=756?$(n).hide():$(n).show()}$(window).load(function(){i();$(".hp-hero-image")!==undefined?r(".hp-hero-image"):console.log("hello")});$(window).resize(function(){i();$(".hp-hero-image")!==undefined?r(".hp-hero-image"):console.log("hello")})});typeof Object.create!="function"&&(Object.create=function(n){function t(){}return t.prototype=n,new t}),function(n){var t={init:function(t,i){var r=this;r.elem=i;r.$elem=n(i);r.imageSrc=r.$elem.data("zoom-image")?r.$elem.data("zoom-image"):r.$elem.attr("src");r.options=n.extend({},n.fn.elevateZoom.options,t);r.options.tint&&(r.options.lensColour="none",r.options.lensOpacity="1");r.options.zoomType=="inner"&&(r.options.showLens=!1);r.$elem.parent().removeAttr("title").removeAttr("alt");r.zoomImage=r.imageSrc;r.refresh(1);n("#"+r.options.gallery+" a").click(function(t){return r.options.galleryActiveClass&&(n("#"+r.options.gallery+" a").removeClass(r.options.galleryActiveClass),n(this).addClass(r.options.galleryActiveClass)),t.preventDefault(),r.zoomImagePre=n(this).data("zoom-image")?n(this).data("zoom-image"):n(this).data("image"),r.swaptheimage(n(this).data("image"),r.zoomImagePre),!1})},refresh:function(n){var t=this;setTimeout(function(){t.fetch(t.imageSrc)},n||t.options.refresh)},fetch:function(n){var t=this,i=new Image;i.onload=function(){t.largeWidth=i.width;t.largeHeight=i.height;t.startZoom();t.currentImage=t.imageSrc;t.options.onZoomedImageLoaded(t.$elem)};i.src=n;return},startZoom:function(){var t=this;t.nzWidth=t.$elem.width();t.nzHeight=t.$elem.height();t.nzOffset=t.$elem.offset();t.widthRatio=t.largeWidth/t.options.zoomLevel/t.nzWidth;t.heightRatio=t.largeHeight/t.options.zoomLevel/t.nzHeight;t.options.zoomType=="window"&&(t.zoomWindowStyle="overflow: hidden;background-position: 0px 0px;text-align:center;background-color: "+String(t.options.zoomWindowBgColour)+";width: "+String(t.options.zoomWindowWidth)+"px;height: "+String(t.options.zoomWindowHeight)+"px;float: left;background-size: "+t.largeWidth/t.options.zoomLevel+"px "+t.largeHeight/t.options.zoomLevel+"px;display: none;z-index:100px;border: "+String(t.options.borderSize)+"px solid "+t.options.borderColour+";background-repeat: no-repeat;position: absolute;");t.options.zoomType=="inner"&&(t.zoomWindowStyle="overflow: hidden;background-position: 0px 0px;width: "+String(t.nzWidth)+"px;height: "+String(t.nzHeight)+"px;float: left;display: none;cursor:"+t.options.cursor+";px solid "+t.options.borderColour+";background-repeat: no-repeat;position: absolute;");t.options.zoomType=="window"&&(lensHeight=t.nzHeight<t.options.zoomWindowWidth/t.widthRatio?t.nzHeight:String(t.options.zoomWindowHeight/t.heightRatio),lensWidth=t.largeWidth<t.options.zoomWindowWidth?t.nzWidth:t.options.zoomWindowWidth/t.widthRatio,t.lensStyle="background-position: 0px 0px;width: "+String(t.options.zoomWindowWidth/t.widthRatio)+"px;height: "+String(t.options.zoomWindowHeight/t.heightRatio)+"px;float: right;display: none;overflow: hidden;z-index: 999;-webkit-transform: translateZ(0);opacity:"+t.options.lensOpacity+";filter: alpha(opacity = "+t.options.lensOpacity*100+"); zoom:1;width:"+lensWidth+"px;height:"+lensHeight+"px;background-color:"+t.options.lensColour+";cursor:"+t.options.cursor+";border: "+t.options.lensBorderSize+"px solid "+t.options.lensBorderColour+";background-repeat: no-repeat;position: absolute;");t.tintStyle="display: block;position: absolute;background-color: "+t.options.tintColour+";filter:alpha(opacity=0);opacity: 0;width: "+t.nzWidth+"px;height: "+t.nzHeight+"px;";t.lensRound="";t.options.zoomType=="lens"&&(t.lensStyle="background-position: 0px 0px;float: left;display: none;border: "+String(t.options.borderSize)+"px solid "+t.options.borderColour+";width:"+String(t.options.lensSize)+"px;height:"+String(t.options.lensSize)+"px;background-repeat: no-repeat;position: absolute;");t.options.lensShape=="round"&&(t.lensRound="border-top-left-radius: "+String(t.options.lensSize/2+t.options.borderSize)+"px;border-top-right-radius: "+String(t.options.lensSize/2+t.options.borderSize)+"px;border-bottom-left-radius: "+String(t.options.lensSize/2+t.options.borderSize)+"px;border-bottom-right-radius: "+String(t.options.lensSize/2+t.options.borderSize)+"px;");t.zoomContainer=n('<div class="zoomContainer" style="-webkit-transform: translateZ(0);position:absolute;left:'+t.nzOffset.left+"px;top:"+t.nzOffset.top+"px;height:"+t.nzHeight+"px;width:"+t.nzWidth+'px;"><\/div>');n("body").append(t.zoomContainer);t.options.containLensZoom&&t.options.zoomType=="lens"&&t.zoomContainer.css("overflow","hidden");t.options.zoomType!="inner"&&(t.zoomLens=n("<div class='zoomLens' style='"+t.lensStyle+t.lensRound+"'>&nbsp;<\/div>").appendTo(t.zoomContainer).click(function(){t.$elem.trigger("click")}));t.options.tint&&(t.tintContainer=n("<div/>").addClass("tintContainer"),t.zoomTint=n("<div class='zoomTint' style='"+t.tintStyle+"'><\/div>"),t.zoomLens.wrap(t.tintContainer),t.zoomTintcss=t.zoomLens.after(t.zoomTint),t.zoomTintImage=n('<img style="position: absolute; left: 0px; top: 0px; max-width: none; width: '+t.nzWidth+"px; height: "+t.nzHeight+'px;" src="'+t.imageSrc+'">').appendTo(t.zoomLens).click(function(){t.$elem.trigger("click")}));t.zoomWindow=isNaN(t.options.zoomWindowPosition)?n("<div style='z-index:999;left:"+t.windowOffsetLeft+"px;top:"+t.windowOffsetTop+"px;"+t.zoomWindowStyle+"' class='zoomWindow'>&nbsp;<\/div>").appendTo("body").click(function(){t.$elem.trigger("click")}):n("<div style='z-index:999;left:"+t.windowOffsetLeft+"px;top:"+t.windowOffsetTop+"px;"+t.zoomWindowStyle+"' class='zoomWindow'>&nbsp;<\/div>").appendTo(t.zoomContainer).click(function(){t.$elem.trigger("click")});t.zoomWindowContainer=n("<div/>").addClass("zoomWindowContainer").css("width",t.options.zoomWindowWidth);t.zoomWindow.wrap(t.zoomWindowContainer);t.options.zoomType=="lens"&&t.zoomLens.css({backgroundImage:"url('"+t.imageSrc+"')"});t.options.zoomType=="window"&&t.zoomWindow.css({backgroundImage:"url('"+t.imageSrc+"')"});t.options.zoomType=="inner"&&t.zoomWindow.css({backgroundImage:"url('"+t.imageSrc+"')"});t.$elem.bind("touchmove",function(n){n.preventDefault();var i=n.originalEvent.touches[0]||n.originalEvent.changedTouches[0];t.setPosition(i)});t.zoomContainer.bind("touchmove",function(n){t.options.zoomType=="inner"&&(t.options.zoomWindowFadeIn?t.zoomWindow.stop(!0,!0).fadeIn(t.options.zoomWindowFadeIn):t.zoomWindow.show());n.preventDefault();var i=n.originalEvent.touches[0]||n.originalEvent.changedTouches[0];t.setPosition(i)});t.zoomContainer.bind("touchend",function(){t.zoomWindow.hide();t.options.showLens&&t.zoomLens.hide();t.options.tint&&t.zoomTint.hide()});t.$elem.bind("touchend",function(){t.zoomWindow.hide();t.options.showLens&&t.zoomLens.hide();t.options.tint&&t.zoomTint.hide()});t.options.showLens&&(t.zoomLens.bind("touchmove",function(n){n.preventDefault();var i=n.originalEvent.touches[0]||n.originalEvent.changedTouches[0];t.setPosition(i)}),t.zoomLens.bind("touchend",function(){t.zoomWindow.hide();t.options.showLens&&t.zoomLens.hide();t.options.tint&&t.zoomTint.hide()}));t.$elem.bind("mousemove",function(n){(t.lastX!==n.clientX||t.lastY!==n.clientY)&&t.setPosition(n);t.lastX=n.clientX;t.lastY=n.clientY});t.zoomContainer.bind("mousemove",function(n){(t.lastX!==n.clientX||t.lastY!==n.clientY)&&t.setPosition(n);t.lastX=n.clientX;t.lastY=n.clientY});t.options.zoomType!="inner"&&t.zoomLens.bind("mousemove",function(n){(t.lastX!==n.clientX||t.lastY!==n.clientY)&&t.setPosition(n);t.lastX=n.clientX;t.lastY=n.clientY});t.options.tint&&t.zoomTint.bind("mousemove",function(n){(t.lastX!==n.clientX||t.lastY!==n.clientY)&&t.setPosition(n);t.lastX=n.clientX;t.lastY=n.clientY});t.options.zoomType=="inner"&&t.zoomWindow.bind("mousemove",function(n){(t.lastX!==n.clientX||t.lastY!==n.clientY)&&t.setPosition(n);t.lastX=n.clientX;t.lastY=n.clientY});t.zoomContainer.mouseenter(function(){t.options.active&&(t.options.zoomType=="inner"&&(t.options.zoomWindowFadeIn?t.zoomWindow.stop(!0,!0).fadeIn(t.options.zoomWindowFadeIn):t.zoomWindow.show()),t.options.zoomType=="window"&&(t.options.zoomWindowFadeIn?t.zoomWindow.stop(!0,!0).fadeIn(t.options.zoomWindowFadeIn):t.zoomWindow.show()),t.options.showLens&&(t.options.lensFadeIn?t.zoomLens.stop(!0,!0).fadeIn(t.options.lensFadeIn):t.zoomLens.show()),t.options.tint&&(t.options.zoomTintFadeIn?t.zoomTint.stop(!0,!0).fadeIn(t.options.zoomTintFadeIn):t.zoomTint.show()))}).mouseleave(function(){t.zoomWindow.hide();t.options.showLens&&t.zoomLens.hide();t.options.tint&&t.zoomTint.hide()});t.$elem.mouseenter(function(){t.options.zoomType=="inner"&&(t.options.zoomWindowFadeIn?t.zoomWindow.stop(!0,!0).fadeIn(t.options.zoomWindowFadeIn):t.zoomWindow.show());t.options.zoomType=="window"&&(t.options.zoomWindowFadeIn?t.zoomWindow.stop(!0,!0).fadeIn(t.options.zoomWindowFadeIn):t.zoomWindow.show());t.options.showLens&&(t.options.lensFadeIn?t.zoomLens.stop(!0,!0).fadeIn(t.options.lensFadeIn):t.zoomLens.show());t.options.tint&&(t.options.zoomTintFadeIn?t.zoomTint.stop(!0,!0).fadeIn(t.options.zoomTintFadeIn):t.zoomTint.show())}).mouseleave(function(){t.zoomWindow.hide();t.options.showLens&&t.zoomLens.hide();t.options.tint&&t.zoomTint.hide()});t.options.zoomType!="inner"&&t.zoomLens.mouseenter(function(){t.options.zoomType=="inner"&&(t.options.zoomWindowFadeIn?t.zoomWindow.stop(!0,!0).fadeIn(t.options.zoomWindowFadeIn):t.zoomWindow.show());t.options.zoomType=="window"&&t.zoomWindow.show();t.options.showLens&&t.zoomLens.show();t.options.tint&&t.zoomTint.show()}).mouseleave(function(){t.options.zoomWindowFadeOut?t.zoomWindow.stop(!0,!0).fadeOut(t.options.zoomWindowFadeOut):t.zoomWindow.hide();t.options.zoomType!="inner"&&t.zoomLens.hide();t.options.tint&&t.zoomTint.hide()});t.options.tint&&t.zoomTint.mouseenter(function(){t.options.zoomType=="inner"&&t.zoomWindow.show();t.options.zoomType=="window"&&t.zoomWindow.show();t.options.showLens&&t.zoomLens.show();t.zoomTint.show()}).mouseleave(function(){t.zoomWindow.hide();t.options.zoomType!="inner"&&t.zoomLens.hide();t.zoomTint.hide()});t.options.zoomType=="inner"&&t.zoomWindow.mouseenter(function(){t.options.zoomType=="inner"&&t.zoomWindow.show();t.options.zoomType=="window"&&t.zoomWindow.show();t.options.showLens&&t.zoomLens.show()}).mouseleave(function(){t.options.zoomWindowFadeOut?t.zoomWindow.stop(!0,!0).fadeOut(t.options.zoomWindowFadeOut):t.zoomWindow.hide();t.options.zoomType!="inner"&&t.zoomLens.hide()})},setPosition:function(n){var t=this;if(t.nzHeight=t.$elem.height(),t.nzWidth=t.$elem.width(),t.nzOffset=t.$elem.offset(),t.options.tint&&(t.zoomTint.css({top:0}),t.zoomTint.css({left:0})),t.options.responsive&&(lensHeight=t.nzHeight<t.options.zoomWindowWidth/t.widthRatio?t.nzHeight:String(t.options.zoomWindowHeight/t.heightRatio),lensWidth=t.largeWidth<t.options.zoomWindowWidth?t.nzHWidth:t.options.zoomWindowWidth/t.widthRatio,t.widthRatio=t.largeWidth/t.nzWidth,t.heightRatio=t.largeHeight/t.nzHeight,t.zoomLens.css({width:String(t.options.zoomWindowWidth/t.widthRatio)+"px",height:String(t.options.zoomWindowHeight/t.heightRatio)+"px"})),t.zoomContainer.css({top:t.nzOffset.top}),t.zoomContainer.css({left:t.nzOffset.left}),t.mouseLeft=parseInt(n.pageX-t.nzOffset.left),t.mouseTop=parseInt(n.pageY-t.nzOffset.top),t.options.zoomType=="window"&&(t.Etoppos=t.mouseTop<t.zoomLens.height()/2,t.Eboppos=t.mouseTop>t.nzHeight-t.zoomLens.height()/2-t.options.lensBorderSize*2,t.Eloppos=t.mouseLeft<0+t.zoomLens.width()/2,t.Eroppos=t.mouseLeft>t.nzWidth-t.zoomLens.width()/2-t.options.lensBorderSize*2),t.options.zoomType=="inner"&&(t.Etoppos=t.mouseTop<t.nzHeight/2/t.heightRatio,t.Eboppos=t.mouseTop>t.nzHeight-t.nzHeight/2/t.heightRatio,t.Eloppos=t.mouseLeft<0+t.nzWidth/2/t.widthRatio,t.Eroppos=t.mouseLeft>t.nzWidth-t.nzWidth/2/t.widthRatio-t.options.lensBorderSize*2),t.mouseLeft<0||t.mouseTop<=0||t.mouseLeft>t.nzWidth||t.mouseTop>t.nzHeight){t.zoomWindow.hide();t.options.showLens&&t.zoomLens.hide();t.options.tint&&t.zoomTint.hide();return}t.options.zoomType=="window"&&t.zoomWindow.show();t.options.tint&&t.zoomTint.show();t.options.showLens&&(t.zoomLens.show(),t.lensLeftPos=String(t.mouseLeft-t.zoomLens.width()/2),t.lensTopPos=String(t.mouseTop-t.zoomLens.height()/2));t.Etoppos&&(t.lensTopPos=0);t.Eloppos&&(t.windowLeftPos=0,t.lensLeftPos=0,t.tintpos=0);t.options.zoomType=="window"&&(t.Eboppos&&(t.lensTopPos=Math.max(t.nzHeight-t.zoomLens.height()-t.options.lensBorderSize*2,0)),t.Eroppos&&(t.lensLeftPos=t.nzWidth-t.zoomLens.width()-t.options.lensBorderSize*2));t.options.zoomType=="inner"&&(t.Eboppos&&(t.lensTopPos=Math.max(t.nzHeight-t.options.lensBorderSize*2,0)),t.Eroppos&&(t.lensLeftPos=t.nzWidth-t.nzWidth-t.options.lensBorderSize*2));t.options.zoomType=="lens"&&(t.windowLeftPos=String(((n.pageX-t.nzOffset.left)*t.widthRatio-t.zoomLens.width()/2)*-1),t.windowTopPos=String(((n.pageY-t.nzOffset.top)*t.heightRatio-t.zoomLens.height()/2)*-1),t.zoomLens.css({backgroundPosition:t.windowLeftPos+"px "+t.windowTopPos+"px"}),t.setWindowPostition(n));t.options.tint&&t.setTintPosition(n);t.options.zoomType=="window"&&t.setWindowPostition(n);t.options.zoomType=="inner"&&t.setWindowPostition(n);t.options.showLens&&t.zoomLens.css({left:t.lensLeftPos+"px",top:t.lensTopPos+"px"})},setLensPostition:function(){},setWindowPostition:function(t){var i=this;if(isNaN(i.options.zoomWindowPosition))i.externalContainer=n("#"+i.options.zoomWindowPosition),i.externalContainerWidth=i.externalContainer.width(),i.externalContainerHeight=i.externalContainer.height(),i.externalContainerOffset=i.externalContainer.offset(),i.windowOffsetTop=i.externalContainerOffset.top,i.windowOffsetLeft=i.externalContainerOffset.left;else switch(i.options.zoomWindowPosition){case 1:i.windowOffsetTop=i.options.zoomWindowOffety;i.windowOffsetLeft=+i.nzWidth;break;case 2:i.options.zoomWindowHeight>i.nzHeight&&(i.windowOffsetTop=(i.options.zoomWindowHeight/2-i.nzHeight/2)*-1,i.windowOffsetLeft=i.nzWidth);break;case 3:i.windowOffsetTop=i.nzHeight-i.zoomWindow.height()-i.options.borderSize*2;i.windowOffsetLeft=i.nzWidth;break;case 4:i.windowOffsetTop=i.nzHeight;i.windowOffsetLeft=i.nzWidth;break;case 5:i.windowOffsetTop=i.nzHeight;i.windowOffsetLeft=i.nzWidth-i.zoomWindow.width()-i.options.borderSize*2;break;case 6:i.options.zoomWindowHeight>i.nzHeight&&(i.windowOffsetTop=i.nzHeight,i.windowOffsetLeft=(i.options.zoomWindowWidth/2-i.nzWidth/2+i.options.borderSize*2)*-1);break;case 7:i.windowOffsetTop=i.nzHeight;i.windowOffsetLeft=0;break;case 8:i.windowOffsetTop=i.nzHeight;i.windowOffsetLeft=(i.zoomWindow.width()+i.options.borderSize*2)*-1;break;case 9:i.windowOffsetTop=i.nzHeight-i.zoomWindow.height()-i.options.borderSize*2;i.windowOffsetLeft=(i.zoomWindow.width()+i.options.borderSize*2)*-1;break;case 10:i.options.zoomWindowHeight>i.nzHeight&&(i.windowOffsetTop=(i.options.zoomWindowHeight/2-i.nzHeight/2)*-1,i.windowOffsetLeft=(i.zoomWindow.width()+i.options.borderSize*2)*-1);break;case 11:i.windowOffsetTop=i.options.zoomWindowOffety;i.windowOffsetLeft=(i.zoomWindow.width()+i.options.borderSize*2)*-1;break;case 12:i.windowOffsetTop=(i.zoomWindow.height()+i.options.borderSize*2)*-1;i.windowOffsetLeft=(i.zoomWindow.width()+i.options.borderSize*2)*-1;break;case 13:i.windowOffsetTop=(i.zoomWindow.height()+i.options.borderSize*2)*-1;i.windowOffsetLeft=0;break;case 14:i.options.zoomWindowHeight>i.nzHeight&&(i.windowOffsetTop=(i.zoomWindow.height()+i.options.borderSize*2)*-1,i.windowOffsetLeft=(i.options.zoomWindowWidth/2-i.nzWidth/2+i.options.borderSize*2)*-1);break;case 15:i.windowOffsetTop=(i.zoomWindow.height()+i.options.borderSize*2)*-1;i.windowOffsetLeft=i.nzWidth-i.zoomWindow.width()-i.options.borderSize*2;break;case 16:i.windowOffsetTop=(i.zoomWindow.height()+i.options.borderSize*2)*-1;i.windowOffsetLeft=i.nzWidth;break;default:i.windowOffsetTop=i.options.zoomWindowOffety;i.windowOffsetLeft=i.nzWidth}i.windowOffsetTop=i.windowOffsetTop+i.options.zoomWindowOffety;i.windowOffsetLeft=i.windowOffsetLeft+i.options.zoomWindowOffetx;i.zoomWindow.css({top:i.windowOffsetTop});i.zoomWindow.css({left:i.windowOffsetLeft});i.options.zoomType=="inner"&&(i.zoomWindow.css({top:0}),i.zoomWindow.css({left:0}));i.windowLeftPos=String(((t.pageX-i.nzOffset.left)*i.widthRatio-i.zoomWindow.width()/2)*-1);i.windowTopPos=String(((t.pageY-i.nzOffset.top)*i.heightRatio-i.zoomWindow.height()/2)*-1);i.Etoppos&&(i.windowTopPos=0);i.Eloppos&&(i.windowLeftPos=0);i.Eboppos&&(i.windowTopPos=(i.largeHeight/i.options.zoomLevel-i.zoomWindow.height())*-1);i.Eroppos&&(i.windowLeftPos=(i.largeWidth/i.options.zoomLevel-i.zoomWindow.width())*-1);(i.options.zoomType=="window"||i.options.zoomType=="inner")&&(i.widthRatio<=1&&(i.windowLeftPos=0),i.heightRatio<=1&&(i.windowTopPos=0),i.largeHeight<i.options.zoomWindowHeight&&(i.windowTopPos=0),i.largeWidth<i.options.zoomWindowWidth&&(i.windowLeftPos=0),i.options.easing?(i.xp||(i.xp=0),i.yp||(i.yp=0),i.loop||(i.loop=setInterval(function(){i.xp+=(i.windowLeftPos-i.xp)/i.options.easingAmount;i.yp+=(i.windowTopPos-i.yp)/i.options.easingAmount;i.zoomWindow.css({backgroundPosition:i.xp+"px "+i.yp+"px"})},16))):i.zoomWindow.css({backgroundPosition:i.windowLeftPos+"px "+i.windowTopPos+"px"}))},setTintPosition:function(n){var t=this;t.nzOffset=t.$elem.offset();t.tintpos=String((n.pageX-t.nzOffset.left-t.zoomLens.width()/2)*-1);t.tintposy=String((n.pageY-t.nzOffset.top-t.zoomLens.height()/2)*-1);t.Etoppos&&(t.tintposy=0);t.Eloppos&&(t.tintpos=0);t.Eboppos&&(t.tintposy=(t.nzHeight-t.zoomLens.height()-t.options.lensBorderSize*2)*-1);t.Eroppos&&(t.tintpos=(t.nzWidth-t.zoomLens.width()-t.options.lensBorderSize*2)*-1);t.options.tint&&(t.zoomTint.css({opacity:t.options.tintOpacity}).animate().fadeIn("slow"),t.zoomTintImage.css({left:t.tintpos-t.options.lensBorderSize+"px"}),t.zoomTintImage.css({top:t.tintposy-t.options.lensBorderSize+"px"}))},swaptheimage:function(n,t){var i=this,r=new Image;i.options.onImageSwap(i.$elem);r.onload=function(){i.largeWidth=r.width;i.largeHeight=r.height;i.zoomImage=t;i.zoomWindow.css({"background-size":i.largeWidth+"px "+i.largeHeight+"px"});i.swapAction(n,t);return};r.src=t},swapAction:function(n,t){var i=this,r=new Image;r.onload=function(){i.nzHeight=r.height;i.nzWidth=r.width;i.options.onImageSwapComplete(i.$elem);i.doneCallback();return};r.src=n;i.options.zoomType=="lens"&&i.zoomLens.css({backgroundImage:"url('"+t+"')"});i.options.zoomType=="window"&&i.zoomWindow.css({backgroundImage:"url('"+t+"')"});i.options.zoomType=="inner"&&i.zoomWindow.css({backgroundImage:"url('"+t+"')"});i.currentImage=t;i.$elem.attr("src",n)},doneCallback:function(){var n=this;n.options.tint&&(n.zoomTintImage.attr("src",largeimage),n.zoomTintImage.attr("height",n.$elem.height()),n.zoomTintImage.css({height:n.$elem.height()}),n.zoomTint.css({height:n.$elem.height()}));n.nzOffset=n.$elem.offset();n.nzWidth=n.$elem.width();n.nzHeight=n.$elem.height();n.widthRatio=n.largeWidth/n.nzWidth;n.heightRatio=n.largeHeight/n.nzHeight;n.options.zoomType=="window"&&(lensHeight=n.nzHeight<n.options.zoomWindowWidth/n.widthRatio?n.nzHeight:String(n.options.zoomWindowHeight/n.heightRatio),lensWidth=n.largeWidth<n.options.zoomWindowWidth?n.nzHWidth:n.options.zoomWindowWidth/n.widthRatio,n.zoomLens&&(n.zoomLens.css("width",lensWidth),n.zoomLens.css("height",lensHeight)))},getCurrentImage:function(){var n=this;return n.zoomImage},getGalleryList:function(){var t=this;return t.gallerylist=[],t.options.gallery?n("#"+t.options.gallery+" a").each(function(){var i="";n(this).data("zoom-image")?i=n(this).data("zoom-image"):n(this).data("image")&&(i=n(this).data("image"));i==t.zoomImage?t.gallerylist.unshift({href:""+i+"",title:n(this).find("img").attr("title")}):t.gallerylist.push({href:""+i+"",title:n(this).find("img").attr("title")})}):t.gallerylist.push({href:""+t.zoomImage+"",title:n(this).find("img").attr("title")}),t.gallerylist},changeZoomLevel:function(n){var t=this;t.widthRatio=t.largeWidth/n/t.nzWidth;t.heightRatio=t.largeHeight/n/t.nzHeight;t.zoomWindow.css({"background-size":t.largeWidth/n+"px "+t.largeHeight/n+"px"});t.zoomLens.css({width:String(t.options.zoomWindowWidth/t.widthRatio)+"px",height:String(t.options.zoomWindowHeight/t.heightRatio)+"px"});t.options.zoomLevel=n},closeAll:function(){self.zoomWindow&&self.zoomWindow.hide();self.zoomLens&&self.zoomLens.hide();self.zoomTint&&self.zoomTint.hide()}};n.fn.elevateZoom=function(i){return this.each(function(){var r=Object.create(t);r.init(i,this);n.data(this,"elevateZoom",r)})};n.fn.elevateZoom.options={active:!0,zoomLevel:1,easing:!1,easingAmount:12,lensSize:200,zoomWindowWidth:400,zoomWindowHeight:400,zoomWindowOffetx:0,zoomWindowOffety:0,zoomWindowPosition:1,zoomWindowBgColour:"#fff",lensFadeIn:!1,lensFadeOut:!1,debug:!1,zoomWindowFadeIn:!1,zoomWindowFadeOut:!1,zoomWindowAlwaysShow:!1,zoomTintFadeIn:!1,zoomTintFadeOut:!1,borderSize:4,showLens:!0,borderColour:"#888",lensBorderSize:1,lensBorderColour:"#000",lensShape:"square",zoomType:"window",containLensZoom:!1,lensColour:"white",lensOpacity:.4,lenszoom:!1,tint:!1,tintColour:"#333",tintOpacity:.4,gallery:!1,galleryActiveClass:"zoomGalleryActive",cursor:"default",responsive:!1,onComplete:n.noop,onZoomedImageLoaded:function(){},onImageSwap:n.noop,onImageSwapComplete:n.noop}}(jQuery,window,document),function(n,t,i,r,u,f,e,o,s,h,c){function p(n,t,i){var s=n[0],o=/ble/.test(i)?f:u;if(active="update"==i?{checked:s[u],disabled:s[f]}:s[o],/^ch|di/.test(i)&&!active)v(n,o);else if(/^un|en/.test(i)&&active)y(n,o);else if("update"==i)for(o in active)active[o]?v(n,o,!0):y(n,o,!0);else t&&"toggle"!=i||(t||n.trigger("ifClicked"),active?s[e]!==r&&y(n,o):v(n,o))}function v(i,o,s){var c=i[0],v=i.parent(),p=o==f?"enabled":"un"+u,w=l(i,p+a(c[e])),b=l(i,o+a(c[e]));!0===c[o]||s||(c[o]=!0,i.trigger("ifChanged").trigger("if"+a(o)),o==u&&c[e]==r&&c.name&&n('input[name="'+c.name+'"]').each(function(){this!==c&&n(this).data(t)&&y(n(this),o)}));c[f]&&l(i,h,!0)&&v.find("."+t+"-helper").css(h,"default");v.addClass(b||l(i,o));v.removeClass(w||l(i,p)||"")}function y(n,i,r){var o=n[0],s=n.parent(),c=i==f?"enabled":"un"+u,v=l(n,c+a(o[e])),y=l(n,i+a(o[e]));!1===o[i]||r||(o[i]=!1,n.trigger("ifChanged").trigger("if"+a(c)));!o[f]&&l(n,h,!0)&&s.find("."+t+"-helper").css(h,"pointer");s.removeClass(y||l(n,i)||"");s.addClass(v||l(n,c))}function w(i,r){i.data(t)&&(i.parent().html(i.attr("style",i.data(t).s||"").trigger(r||"")),i.off(".i").unwrap(),n('label[for="'+i[0].id+'"]').add(i.closest("label")).off(".i"))}function l(n,i,r){if(n.data(t))return n.data(t).o[i+(r?"":"Class")]}function a(n){return n.charAt(0).toUpperCase()+n.slice(1)}n.fn[t]=function(h){var tt=navigator.userAgent,g=/ipad|iphone|ipod/i.test(tt),a=":"+i+", :"+r;if(/^(check|uncheck|toggle|disable|enable|update|destroy)$/.test(h))return this.each(function(){var t=n(this);(t.is(a)?t:t.find(a)).each(function(){t=n(this);"destroy"==h?w(t,"ifDestroyed"):p(t,!0,h)})});if("object"==typeof h||!h){var l=n.extend({checkedClass:u,disabledClass:f,labelHover:!0},h),nt=l.handle,k=l.hoverClass||"hover",it=l.focusClass||"focus",rt=l.activeClass||"active",ut=!!l.labelHover,d=l.labelHoverClass||"hover",b=(""+l.increaseArea).replace("%","")|0;return(nt==i||nt==r)&&(a=":"+nt),-50>b&&(b=-50),this.each(function(){var h=n(this);(h.is(a)?h:h.find(a)).each(function(){h=n(this);w(h);var nt=this,st=nt.id,ot=-b+"%",ft=100+2*b+"%",ft={position:c,top:ot,left:ot,display:"block",width:ft,height:ft,margin:0,padding:0,background:"#fff",border:0,opacity:0},ot=g||/android|blackberry|windows phone|opera mini/i.test(tt)?{position:c,visibility:"hidden"}:b?ft:{position:c,opacity:0},ht=nt[e]==i?l.checkboxClass||"i"+i:l.radioClass||"i"+r,et=n('label[for="'+st+'"]').add(h.closest("label")),a=h.wrap('<div class="'+ht+'"/>').trigger("ifCreated").parent().append(l.insert),ft=n('<ins class="'+t+'-helper"/>').css(ft).appendTo(a);if(h.data(t,{o:l,s:h.attr("style")}).css(ot),l.inheritClass&&a.addClass(nt.className),l.inheritID&&st&&a.attr("id",t+"-"+st),"static"==a.css("position")&&a.css("position","relative"),p(h,!0,"update"),et.length)et.on(o+".i mouseenter.i mouseleave.i "+s,function(t){var i=t[e],r=n(this);if(!nt[f])if(i==o?p(h,!1,!0):ut&&(/ve|nd/.test(i)?(a.removeClass(k),r.removeClass(d)):(a.addClass(k),r.addClass(d))),g)t.stopPropagation();else return!1});h.on(o+".i focus.i blur.i keyup.i keydown.i keypress.i",function(n){var t=n[e];if(n=n.keyCode,t==o)return!1;if("keydown"==t&&32==n)return nt[e]==r&&nt[u]||(nt[u]?y(h,u):v(h,u)),!1;"keyup"==t&&nt[e]==r?!nt[u]&&v(h,u):/us|ur/.test(t)&&("blur"==t?a.removeClass(it):a.addClass(it))});ft.on(o+" mousedown mouseup mouseover mouseout "+s,function(n){var t=n[e],i=/wn|up/.test(t)?rt:k;if(!nt[f])if(t==o?p(h,!1,!0):(/wn|er|in/.test(t)?a.addClass(i):a.removeClass(i+" "+rt),et.length&&ut&&i==k&&(/ut|nd/.test(t)?et.removeClass(d):et.addClass(d))),g)n.stopPropagation();else return!1})})})}return this}}(jQuery,"iCheck","checkbox","radio","checked","disabled","type","click","touchbegin.i touchend.i","cursor","absolute"),function(n){n.flexslider=function(t,i){var r=n(t),u=n.extend({},n.flexslider.defaults,i),f=u.namespace,l="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch,v=l?"touchend":"click",h="vertical"===u.direction,s=u.reverse,o=0<u.itemWidth,c="fade"===u.animation,a=""!==u.asNavFor,e={};n.data(t,"flexslider",r);e={init:function(){var o,t,i,f;if(r.animating=!1,r.currentSlide=u.startAt,r.animatingTo=r.currentSlide,r.atEnd=0===r.currentSlide||r.currentSlide===r.last,r.containerSelector=u.selector.substr(0,u.selector.search(" ")),r.slides=n(u.selector,r),r.container=n(r.containerSelector,r),r.count=r.slides.length,r.syncExists=0<n(u.sync).length,"slide"===u.animation&&(u.animation="swing"),r.prop=h?"top":"marginLeft",r.args={},r.manualPause=!1,o=r,(t=!u.video)&&(t=!c)&&(t=u.useCSS))n:{t=document.createElement("div");i=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(f in i)if(void 0!==t.style[i[f]]){r.pfx=i[f].replace("Perspective","").toLowerCase();r.prop="-"+r.pfx+"-transform";t=!0;break n}t=!1}o.transitions=t;""!==u.controlsContainer&&(r.controlsContainer=0<n(u.controlsContainer).length&&n(u.controlsContainer));""!==u.manualControls&&(r.manualControls=0<n(u.manualControls).length&&n(u.manualControls));u.randomize&&(r.slides.sort(function(){return Math.round(Math.random())-.5}),r.container.empty().append(r.slides));r.doMath();a&&e.asNav.setup();r.setup("init");u.controlNav&&e.controlNav.setup();u.directionNav&&e.directionNav.setup();u.keyboard&&(1===n(r.containerSelector).length||u.multipleKeyboard)&&n(document).bind("keyup",function(n){n=n.keyCode;r.animating||39!==n&&37!==n||(n=39===n?r.getTarget("next"):37===n?r.getTarget("prev"):!1,r.flexAnimate(n,u.pauseOnAction))});u.mousewheel&&r.bind("mousewheel",function(n,t){n.preventDefault();var i=0>t?r.getTarget("next"):r.getTarget("prev");r.flexAnimate(i,u.pauseOnAction)});u.pausePlay&&e.pausePlay.setup();u.slideshow&&(u.pauseOnHover&&r.hover(function(){r.manualPlay||r.manualPause||r.pause()},function(){r.manualPause||r.manualPlay||r.play()}),0<u.initDelay?setTimeout(r.play,u.initDelay):r.play());l&&u.touch&&e.touch();(!c||c&&u.smoothHeight)&&n(window).bind("resize focus",e.resize);setTimeout(function(){u.start(r)},200)},asNav:{setup:function(){r.asNav=!0;r.animatingTo=Math.floor(r.currentSlide/r.move);r.currentItem=r.currentSlide;r.slides.removeClass(f+"active-slide").eq(r.currentItem).addClass(f+"active-slide");r.slides.click(function(t){t.preventDefault();t=n(this);var i=t.index();n(u.asNavFor).data("flexslider").animating||t.hasClass("active")||(r.direction=r.currentItem<i?"next":"prev",r.flexAnimate(i,u.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){r.manualControls?e.controlNav.setupManual():e.controlNav.setupPaging()},setupPaging:function(){var i=1,o,t;if(r.controlNavScaffold=n('<ol class="'+f+"control-nav "+f+("thumbnails"===u.controlNav?"control-thumbs":"control-paging")+'"><\/ol>'),1<r.pagingCount)for(t=0;t<r.pagingCount;t++)o="thumbnails"===u.controlNav?'<img src="'+r.slides.eq(t).attr("data-thumb")+'"/>':"<a>"+i+"<\/a>",r.controlNavScaffold.append("<li>"+o+"<\/li>"),i++;r.controlsContainer?n(r.controlsContainer).append(r.controlNavScaffold):r.append(r.controlNavScaffold);e.controlNav.set();e.controlNav.active();r.controlNavScaffold.delegate("a, img",v,function(t){t.preventDefault();t=n(this);var i=r.controlNav.index(t);t.hasClass(f+"active")||(r.direction=i>r.currentSlide?"next":"prev",r.flexAnimate(i,u.pauseOnAction))});l&&r.controlNavScaffold.delegate("a","click touchstart",function(n){n.preventDefault()})},setupManual:function(){r.controlNav=r.manualControls;e.controlNav.active();r.controlNav.live(v,function(t){t.preventDefault();t=n(this);var i=r.controlNav.index(t);t.hasClass(f+"active")||(r.direction=i>r.currentSlide?"next":"prev",r.flexAnimate(i,u.pauseOnAction))});l&&r.controlNav.live("click touchstart",function(n){n.preventDefault()})},set:function(){r.controlNav=n("."+f+"control-nav li "+("thumbnails"===u.controlNav?"img":"a"),r.controlsContainer?r.controlsContainer:r)},active:function(){r.controlNav.removeClass(f+"active").eq(r.animatingTo).addClass(f+"active")},update:function(t,i){1<r.pagingCount&&"add"===t?r.controlNavScaffold.append(n("<li><a>"+r.count+"<\/a><\/li>")):1===r.pagingCount?r.controlNavScaffold.find("li").remove():r.controlNav.eq(i).closest("li").remove();e.controlNav.set();1<r.pagingCount&&r.pagingCount!==r.controlNav.length?r.update(i,t):e.controlNav.active()}},directionNav:{setup:function(){var t=n('<ul class="'+f+'direction-nav"><li><a class="'+f+'prev" href="#">'+u.prevText+'<\/a><\/li><li><a class="'+f+'next" href="#">'+u.nextText+"<\/a><\/li><\/ul>");r.controlsContainer?(n(r.controlsContainer).append(t),r.directionNav=n("."+f+"direction-nav li a",r.controlsContainer)):(r.append(t),r.directionNav=n("."+f+"direction-nav li a",r));e.directionNav.update();r.directionNav.bind(v,function(t){t.preventDefault();t=n(this).hasClass(f+"next")?r.getTarget("next"):r.getTarget("prev");r.flexAnimate(t,u.pauseOnAction)});l&&r.directionNav.bind("click touchstart",function(n){n.preventDefault()})},update:function(){var n=f+"disabled";1===r.pagingCount?r.directionNav.addClass(n):u.animationLoop?r.directionNav.removeClass(n):0===r.animatingTo?r.directionNav.removeClass(n).filter("."+f+"prev").addClass(n):r.animatingTo===r.last?r.directionNav.removeClass(n).filter("."+f+"next").addClass(n):r.directionNav.removeClass(n)}},pausePlay:{setup:function(){var t=n('<div class="'+f+'pauseplay"><a><\/a><\/div>');r.controlsContainer?(r.controlsContainer.append(t),r.pausePlay=n("."+f+"pauseplay a",r.controlsContainer)):(r.append(t),r.pausePlay=n("."+f+"pauseplay a",r));e.pausePlay.update(u.slideshow?f+"pause":f+"play");r.pausePlay.bind(v,function(t){t.preventDefault();n(this).hasClass(f+"pause")?(r.manualPause=!0,r.manualPlay=!1,r.pause()):(r.manualPause=!1,r.manualPlay=!0,r.play())});l&&r.pausePlay.bind("click touchstart",function(n){n.preventDefault()})},update:function(n){"play"===n?r.pausePlay.removeClass(f+"pause").addClass(f+"play").text(u.playText):r.pausePlay.removeClass(f+"play").addClass(f+"pause").text(u.pauseText)}},touch:function(){function y(t){n=h?f-t.touches[0].pageY:f-t.touches[0].pageX;v=h?Math.abs(n)<Math.abs(t.touches[0].pageX-e):Math.abs(n)<Math.abs(t.touches[0].pageY-e);(!v||500<Number(new Date)-a)&&(t.preventDefault(),!c&&r.transitions&&(u.animationLoop||(n/=0===r.currentSlide&&0>n||r.currentSlide===r.last&&0<n?Math.abs(n)/i+2:1),r.setProps(l+n,"setTouch")))}function p(){if(t.removeEventListener("touchmove",y,!1),r.animatingTo===r.currentSlide&&!v&&null!==n){var o=s?-n:n,h=0<o?r.getTarget("next"):r.getTarget("prev");r.canAdvance(h)&&(550>Number(new Date)-a&&50<Math.abs(o)||Math.abs(o)>i/2)?r.flexAnimate(h,u.pauseOnAction):c||r.flexAnimate(r.currentSlide,u.pauseOnAction,!0)}t.removeEventListener("touchend",p,!1);l=n=e=f=null}var f,e,l,i,n,a,v=!1;t.addEventListener("touchstart",function(n){r.animating?n.preventDefault():1===n.touches.length&&(r.pause(),i=h?r.h:r.w,a=Number(new Date),l=o&&s&&r.animatingTo===r.last?0:o&&s?r.limit-(r.itemW+u.itemMargin)*r.move*r.animatingTo:o&&r.currentSlide===r.last?r.limit:o?(r.itemW+u.itemMargin)*r.move*r.currentSlide:s?(r.last-r.currentSlide+r.cloneOffset)*i:(r.currentSlide+r.cloneOffset)*i,f=h?n.touches[0].pageY:n.touches[0].pageX,e=h?n.touches[0].pageX:n.touches[0].pageY,t.addEventListener("touchmove",y,!1),t.addEventListener("touchend",p,!1))},!1)},resize:function(){!r.animating&&r.is(":visible")&&(o||r.doMath(),c?e.smoothHeight():o?(r.slides.width(r.computedW),r.update(r.pagingCount),r.setProps()):h?(r.viewport.height(r.h),r.setProps(r.h,"setTotal")):(u.smoothHeight&&e.smoothHeight(),r.newSlides.width(r.computedW),r.setProps(r.computedW,"setTotal")))},smoothHeight:function(n){if(!h||c){var t=c?r:r.viewport;n?t.animate({height:r.slides.eq(r.animatingTo).height()},n):t.height(r.slides.eq(r.animatingTo).height())}},sync:function(t){var i=n(u.sync).data("flexslider"),f=r.animatingTo;switch(t){case"animate":i.flexAnimate(f,u.pauseOnAction,!1,!0);break;case"play":i.playing||i.asNav||i.play();break;case"pause":i.pause()}}};r.flexAnimate=function(t,i,v,y,p){if(a&&1===r.pagingCount&&(r.direction=r.currentItem<t?"next":"prev"),!r.animating&&(r.canAdvance(t,p)||v)&&r.is(":visible")){if(a&&y)if(v=n(u.asNavFor).data("flexslider"),r.atEnd=0===t||t===r.count-1,v.flexAnimate(t,!0,!1,!0,p),r.direction=r.currentItem<t?"next":"prev",v.direction=r.direction,Math.ceil((t+1)/r.visible)-1!==r.currentSlide&&0!==t)r.currentItem=t,r.slides.removeClass(f+"active-slide").eq(t).addClass(f+"active-slide"),t=Math.floor(t/r.visible);else return r.currentItem=t,r.slides.removeClass(f+"active-slide").eq(t).addClass(f+"active-slide"),!1;if(r.animating=!0,r.animatingTo=t,u.before(r),i&&r.pause(),r.syncExists&&!p&&e.sync("animate"),u.controlNav&&e.controlNav.active(),o||r.slides.removeClass(f+"active-slide").eq(t).addClass(f+"active-slide"),r.atEnd=0===t||t===r.last,u.directionNav&&e.directionNav.update(),t===r.last&&(u.end(r),u.animationLoop||r.pause()),c)l?(r.slides.eq(r.currentSlide).css({opacity:0,zIndex:1}),r.slides.eq(t).css({opacity:1,zIndex:2}),r.slides.unbind("webkitTransitionEnd transitionend"),r.slides.eq(r.currentSlide).bind("webkitTransitionEnd transitionend",function(){u.after(r)}),r.animating=!1,r.currentSlide=r.animatingTo):(r.slides.eq(r.currentSlide).fadeOut(u.animationSpeed,u.easing),r.slides.eq(t).fadeIn(u.animationSpeed,u.easing,r.wrapup));else{var w=h?r.slides.filter(":first").height():r.computedW;o?(t=u.itemWidth>r.w?2*u.itemMargin:u.itemMargin,t=(r.itemW+t)*r.move*r.animatingTo,t=t>r.limit&&1!==r.visible?r.limit:t):t=0===r.currentSlide&&t===r.count-1&&u.animationLoop&&"next"!==r.direction?s?(r.count+r.cloneOffset)*w:0:r.currentSlide===r.last&&0===t&&u.animationLoop&&"prev"!==r.direction?s?0:(r.count+1)*w:s?(r.count-1-t+r.cloneOffset)*w:(t+r.cloneOffset)*w;r.setProps(t,"",u.animationSpeed);r.transitions?(u.animationLoop&&r.atEnd||(r.animating=!1,r.currentSlide=r.animatingTo),r.container.unbind("webkitTransitionEnd transitionend"),r.container.bind("webkitTransitionEnd transitionend",function(){r.wrapup(w)})):r.container.animate(r.args,u.animationSpeed,u.easing,function(){r.wrapup(w)})}u.smoothHeight&&e.smoothHeight(u.animationSpeed)}};r.wrapup=function(n){c||o||(0===r.currentSlide&&r.animatingTo===r.last&&u.animationLoop?r.setProps(n,"jumpEnd"):r.currentSlide===r.last&&0===r.animatingTo&&u.animationLoop&&r.setProps(n,"jumpStart"));r.animating=!1;r.currentSlide=r.animatingTo;u.after(r)};r.animateSlides=function(){r.animating||r.flexAnimate(r.getTarget("next"))};r.pause=function(){clearInterval(r.animatedSlides);r.playing=!1;u.pausePlay&&e.pausePlay.update("play");r.syncExists&&e.sync("pause")};r.play=function(){r.animatedSlides=setInterval(r.animateSlides,u.slideshowSpeed);r.playing=!0;u.pausePlay&&e.pausePlay.update("pause");r.syncExists&&e.sync("play")};r.canAdvance=function(n,t){var i=a?r.pagingCount-1:r.last;return t?!0:a&&r.currentItem===r.count-1&&0===n&&"prev"===r.direction?!0:a&&0===r.currentItem&&n===r.pagingCount-1&&"next"!==r.direction?!1:n===r.currentSlide&&!a?!1:u.animationLoop?!0:r.atEnd&&0===r.currentSlide&&n===i&&"next"!==r.direction?!1:r.atEnd&&r.currentSlide===i&&0===n&&"next"===r.direction?!1:!0};r.getTarget=function(n){return r.direction=n,"next"===n?r.currentSlide===r.last?0:r.currentSlide+1:0===r.currentSlide?r.last:r.currentSlide-1};r.setProps=function(n,t,i){var f,e=n?n:(r.itemW+u.itemMargin)*r.move*r.animatingTo;f=-1*function(){if(o)return"setTouch"===t?n:s&&r.animatingTo===r.last?0:s?r.limit-(r.itemW+u.itemMargin)*r.move*r.animatingTo:r.animatingTo===r.last?r.limit:e;switch(t){case"setTotal":return s?(r.count-1-r.currentSlide+r.cloneOffset)*n:(r.currentSlide+r.cloneOffset)*n;case"setTouch":return n;case"jumpEnd":return s?n:r.count*n;case"jumpStart":return s?r.count*n:n;default:return n}}()+"px";r.transitions&&(f=h?"translate3d(0,"+f+",0)":"translate3d("+f+",0,0)",i=void 0!==i?i/1e3+"s":"0s",r.container.css("-"+r.pfx+"-transition-duration",i));r.args[r.prop]=f;(r.transitions||void 0===i)&&r.container.css(r.args)};r.setup=function(t){if(c)r.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),"init"===t&&(l?r.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+u.animationSpeed/1e3+"s ease",zIndex:1}).eq(r.currentSlide).css({opacity:1,zIndex:2}):r.slides.eq(r.currentSlide).fadeIn(u.animationSpeed,u.easing)),u.smoothHeight&&e.smoothHeight();else{var i,a;"init"===t&&(r.viewport=n('<div class="'+f+'viewport"><\/div>').css({overflow:"hidden",position:"relative"}).appendTo(r).append(r.container),r.cloneCount=0,r.cloneOffset=0,s&&(a=n.makeArray(r.slides).reverse(),r.slides=n(a),r.container.empty().append(r.slides)));u.animationLoop&&!o&&(r.cloneCount=2,r.cloneOffset=1,"init"!==t&&r.container.find(".clone").remove(),r.container.append(r.slides.first().clone().addClass("clone")).prepend(r.slides.last().clone().addClass("clone")));r.newSlides=n(u.selector,r);i=s?r.count-1-r.currentSlide+r.cloneOffset:r.currentSlide+r.cloneOffset;h&&!o?(r.container.height(200*(r.count+r.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){r.newSlides.css({display:"block"});r.doMath();r.viewport.height(r.h);r.setProps(i*r.h,"init")},"init"===t?100:0)):(r.container.width(200*(r.count+r.cloneCount)+"%"),r.setProps(i*r.computedW,"init"),setTimeout(function(){r.doMath();r.newSlides.css({width:r.computedW,float:"left",display:"block"});u.smoothHeight&&e.smoothHeight()},"init"===t?100:0))}o||r.slides.removeClass(f+"active-slide").eq(r.currentSlide).addClass(f+"active-slide")};r.doMath=function(){var f=r.slides.first(),n=u.itemMargin,t=u.minItems,i=u.maxItems;r.w=r.width();r.h=f.height();r.boxPadding=f.outerWidth()-f.width();o?(r.itemT=u.itemWidth+n,r.minW=t?t*r.itemT:r.w,r.maxW=i?i*r.itemT:r.w,r.itemW=r.minW>r.w?(r.w-n*t)/t:r.maxW<r.w?(r.w-n*i)/i:u.itemWidth>r.w?r.w:u.itemWidth,r.visible=Math.floor(r.w/(r.itemW+n)),r.move=0<u.move&&u.move<r.visible?u.move:r.visible,r.pagingCount=Math.ceil((r.count-r.visible)/r.move+1),r.last=r.pagingCount-1,r.limit=1===r.pagingCount?0:u.itemWidth>r.w?(r.itemW+2*n)*r.count-r.w-n:(r.itemW+n)*r.count-r.w-n):(r.itemW=r.w,r.pagingCount=r.count,r.last=r.count-1);r.computedW=r.itemW-r.boxPadding};r.update=function(n,t){r.doMath();o||(n<r.currentSlide?r.currentSlide+=1:n<=r.currentSlide&&0!==n&&(r.currentSlide-=1),r.animatingTo=r.currentSlide);u.controlNav&&!r.manualControls&&("add"===t&&!o||r.pagingCount>r.controlNav.length?e.controlNav.update("add"):("remove"===t&&!o||r.pagingCount<r.controlNav.length)&&(o&&r.currentSlide>r.last&&(r.currentSlide-=1,r.animatingTo-=1),e.controlNav.update("remove",r.last)));u.directionNav&&e.directionNav.update()};r.addSlide=function(t,i){var f=n(t);r.count+=1;r.last=r.count-1;h&&s?void 0!==i?r.slides.eq(r.count-i).after(f):r.container.prepend(f):void 0!==i?r.slides.eq(i).before(f):r.container.append(f);r.update(i,"add");r.slides=n(u.selector+":not(.clone)",r);r.setup();u.added(r)};r.removeSlide=function(t){var i=isNaN(t)?r.slides.index(n(t)):t;r.count-=1;r.last=r.count-1;isNaN(t)?n(t,r.slides).remove():h&&s?r.slides.eq(r.last).remove():r.slides.eq(t).remove();r.doMath();r.update(i,"remove");r.slides=n(u.selector+":not(.clone)",r);r.setup();u.removed(r)};e.init()};n.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,pauseOnAction:!0,pauseOnHover:!1,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"More ideas",nextText:"More ideas",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:0,maxItems:0,move:0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){}};n.fn.flexslider=function(t){if(void 0===t&&(t={}),"object"==typeof t)return this.each(function(){var i=n(this),r=i.find(t.selector?t.selector:".slides > li");1===r.length?(r.fadeIn(400),t.start&&t.start(i)):void 0==i.data("flexslider")&&new n.flexslider(this,t)});var i=n(this).data("flexslider");switch(t){case"play":i.play();break;case"pause":i.pause();break;case"next":i.flexAnimate(i.getTarget("next"),!0);break;case"prev":case"previous":i.flexAnimate(i.getTarget("prev"),!0);break;default:"number"==typeof t&&i.flexAnimate(t,!0)}}}(jQuery),function(n,t,i){var s={required:"The %s field is required.",matches:"The %s field does not match the %s field.","default":"The %s field is still set to default, please change.",valid_email:"The %s field must contain a valid email address.",valid_emails:"The %s field must contain all valid email addresses.",min_length:"The %s field must be at least %s characters in length.",max_length:"The %s field must not exceed %s characters in length.",exact_length:"The %s field must be exactly %s characters in length.",greater_than:"The %s field must contain a number greater than %s.",less_than:"The %s field must contain a number less than %s.",alpha:"The %s field must only contain alphabetical characters.",alpha_numeric:"The %s field must only contain alpha-numeric characters.",alpha_dash:"The %s field must only contain alpha-numeric characters, underscores, and dashes.",numeric:"The %s field must contain only numbers.",integer:"The %s field must contain an integer.",decimal:"The %s field must contain a decimal number.",is_natural:"The %s field must contain only positive numbers.",is_natural_no_zero:"The %s field must contain a number greater than zero.",valid_ip:"The %s field must contain a valid IP.",valid_base64:"The %s field must contain a base64 string.",valid_credit_card:"The %s field must contain a valid credit card number.",is_file_type:"The %s field must contain only %s files.",valid_url:"The %s field must contain a valid URL."},h=function(){},c=/^(.+?)\[(.+)\]$/,u=/^[0-9]+$/,l=/^\-?[0-9]+$/,f=/^\-?[0-9]*\.?[0-9]+$/,o=/^[a-zA-Z0-9.!#$%&amp;'*+\-\/=?\^_`{|}~\-]+@[a-zA-Z0-9\-]+(?:\.[a-zA-Z0-9\-]+)*$/,a=/^[a-z]+$/i,v=/^[a-z0-9]+$/i,y=/^[a-z0-9_\-]+$/i,p=/^[0-9]+$/i,w=/^[1-9][0-9]*$/i,b=/^((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){3}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})$/i,k=/[^a-zA-Z0-9\/\+=]/i,d=/^[\d\-\s]+$/,g=/^((http|https):\/\/(\w+:{0,1}\w*@)?(\S+)|)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,r=function(n,t,r){var u,f,e;for(this.callback=r||h,this.errors=[],this.fields={},this.form=this._formByNameOrNode(n)||{},this.messages={},this.handlers={},n=0,r=t.length;n<r;n++)if(u=t[n],(u.name||u.names)&&u.rules)if(u.names)for(f=0;f<u.names.length;f++)this._addField(u,u.names[f]);else this._addField(u,u.name);e=this.form.onsubmit;this.form.onsubmit=function(n){return function(t){try{return n._validateForm(t)&&(e===i||e())}catch(r){}}}(this)},e=function(n,t){var i;if(0<n.length&&("radio"===n[0].type||"checkbox"===n[0].type)){for(i=0;i<n.length;i++)if(n[i].checked)return n[i][t]}else return n[t]};r.prototype.setMessage=function(n,t){return this.messages[n]=t,this};r.prototype.registerCallback=function(n,t){return n&&"string"==typeof n&&t&&"function"==typeof t&&(this.handlers[n]=t),this};r.prototype._formByNameOrNode=function(n){return"object"==typeof n?n:t.forms[n]};r.prototype._addField=function(n,t){this.fields[t]={name:t,display:n.display||t,rules:n.rules,id:null,type:null,value:null,checked:null}};r.prototype._validateForm=function(n){var u,r,t;this.errors=[];for(u in this.fields)this.fields.hasOwnProperty(u)&&(r=this.fields[u]||{},t=this.form[r.name],t&&t!==i&&(r.id=e(t,"id"),r.type=0<t.length?t[0].type:t.type,r.value=e(t,"value"),r.checked=e(t,"checked"),this._validateField(r)));return"function"==typeof this.callback&&this.callback(this.errors,n),0<this.errors.length&&(n&&n.preventDefault?n.preventDefault():event&&(event.returnValue=!1)),!0};r.prototype._validateField=function(n){for(var f=n.rules.split("|"),u=n.rules.indexOf("required"),l=!n.value||""===n.value||n.value===i,e=0,a=f.length;e<a;e++){var t=f[e],r=null,o=!1,h=c.exec(t);if((-1!==u||-1!==t.indexOf("!callback_")||!l)&&(h&&(t=h[1],r=h[2]),"!"===t.charAt(0)&&(t=t.substring(1,t.length)),"function"==typeof this._hooks[t]?this._hooks[t].apply(this,[n,r])||(o=!0):"callback_"===t.substring(0,9)&&(t=t.substring(9,t.length),"function"==typeof this.handlers[t]&&!1===this.handlers[t].apply(this,[n.value,r])&&(o=!0)),o)){f=this.messages[t]||s[t];u="An error has occurred with the "+n.display+" field.";f&&(u=f.replace("%s",n.display),r&&(u=u.replace("%s",this.fields[r]?this.fields[r].display:r)));this.errors.push({id:n.id,name:n.name,message:u,rule:t});break}}};r.prototype._hooks={required:function(n){var t=n.value;return"checkbox"===n.type||"radio"===n.type?!0===n.checked:null!==t&&""!==t},"default":function(n,t){return n.value!==t},matches:function(n,t){var i=this.form[t];return i?n.value===i.value:!1},valid_email:function(n){return o.test(n.value)},valid_emails:function(n){n=n.value.split(",");for(var t=0;t<n.length;t++)if(!o.test(n[t]))return!1;return!0},min_length:function(n,t){return u.test(t)?n.value.length>=parseInt(t,10):!1},max_length:function(n,t){return u.test(t)?n.value.length<=parseInt(t,10):!1},exact_length:function(n,t){return u.test(t)?n.value.length===parseInt(t,10):!1},greater_than:function(n,t){return f.test(n.value)?parseFloat(n.value)>parseFloat(t):!1},less_than:function(n,t){return f.test(n.value)?parseFloat(n.value)<parseFloat(t):!1},alpha:function(n){return a.test(n.value)},alpha_numeric:function(n){return v.test(n.value)},alpha_dash:function(n){return y.test(n.value)},numeric:function(n){return u.test(n.value)},integer:function(n){return l.test(n.value)},decimal:function(n){return f.test(n.value)},is_natural:function(n){return p.test(n.value)},is_natural_no_zero:function(n){return w.test(n.value)},valid_ip:function(n){return b.test(n.value)},valid_base64:function(n){return k.test(n.value)},valid_url:function(n){return g.test(n.value)},valid_credit_card:function(n){var i;if(!d.test(n.value))return!1;var u=0,t=0,r=!1;for(n=n.value.replace(/\D/g,""),i=n.length-1;0<=i;i--)t=n.charAt(i),t=parseInt(t,10),r&&9<(t*=2)&&(t-=9),u+=t,r=!r;return 0==u%10},is_file_type:function(n,t){if("file"!==n.type)return!0;var f=n.value.substr(n.value.lastIndexOf(".")+1),r=t.split(","),u=!1,i=0,e=r.length;for(i;i<e;i++)f==r[i]&&(u=!0);return u}};n.FormValidator=r}(window,document);gs={init:function(){window.location.href.match("gridset=show")&&gs.show();gs.bind(document,"keydown",function(n){var n,t;if(n||(n=window.event),n.metaKey||n.ctrlKey)switch(n.which||n.keyCode){case 71:t=document.getElementById("gridsetoverlaywrap");t?gs.remove(t):gs.show();gs.prevent(n)}})},remove:function(n){document.body.removeChild(n);window.detachEvent?window.detachEvent("onresize",gs.width):window.removeEventListener("resize",gs.width,!1)},width:function(){var n=document.getElementById("gridscreenwidthval");n&&(n.innerHTML=window.innerWidth+"px")},show:function(){for(var i=["d","dca","t"],h=[12,7,8],r=[912,912,780],c=document.getElementsByTagName("body")[0],t='<div id="gridwrap"><div id="gridscreenwidthwrap"><p id="gridscreenwidth">Screen width: <strong id="gridscreenwidthval"><\/strong><\/p><\/div><div id="gridoverlay" class="container">',n=0,o="",s,u,f,e;i[n];){for(s="",u=0,r[n]!=o&&n==0?t+="<div>":r[n]!=o&&(t+="<\/div><div>");i[u];)u!=n&&r[u]!=r[n]&&(s+=i[u]+"-hide "),u++;for(t+='<div class="gridset '+s+'"><div class="'+i[n]+'1"><small>'+i[n]+"1<\/small><\/div>",f=1;f++<h[n];)t+='<div class="'+i[n]+f+'"><small>'+i[n]+f+"<\/small><\/div>";t+="<\/div>";n==r.length-1&&(t+="<\/div>");o=r[n];n++}t+="<\/div><\/div>";e=document.createElement("div");e.id="gridsetoverlaywrap";e.innerHTML=t+'<style id="gridsetoverlaystyles" type="text/css">#gridsetoverlaywrap{position:static;}#gridwrap{display:block;position:fixed;top:0;left:0;width:100%;height:100%;z-index:1000;pointer-events:none;font-family:Helvetica, Arial, sans-serif !important;}#gridoverlay{position:relative;height:100%;overflow:hidden !important;background:none !important;}#gridoverlay div{display:block;position:static;height:100%;color:#bcbcff;}#gridoverlay .gridset{position:absolute;width:100%;height:100%;top:0;left:0;opacity:0.7;}#gridoverlay .gridset div{text-align:left;font-size:10px !important;border-right:1px solid #bcbcff;border-left:1px solid #bcbcff;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;}#gridoverlay div small{width:100%;display:block;text-align:center;color:#7D80DB;font-weight:700 !important;border-bottom:1px solid #bcbcff;border-top:1px solid #bcbcff;padding-top:0 !important;background-color:rgb(240,240,255) !important;text-transform:none !important;height:22px !important;line-height:22px !important;text-style:normal !important;}#gridoverlay .gridset:nth-child(2) div{border-style:dashed;padding-top:23px;}#gridoverlay .gridset:nth-child(2) small{border-style:dashed;}#gridoverlay .gridset:nth-child(3) div{border-style:dotted;padding-top:45px;}#gridoverlay .gridset:nth-child(3) small{border-style:dotted;}#gridsetoverlaywrap .noshow{display:none;}#gridscreenwidthwrap{display:block !important;width:100% !important;position:absolute !important;bottom:0 !important;left:0 !important;height:30px !important;border-top:1px solid #7D80DB !important;opacity:0.7 !important;background-color:rgb(240,240,255) !important;}#gridscreenwidth{display:block !important;width:100% !important;text-align:center !important;font-size:12px !important;line-height:1 !important;padding-top:8px !important;font-family:Helvetica, Arial, sans-serif !important; margin: 0 !important;color:#7D80DB !important;}@media only screen and (max-width:911px) {#gridsetoverlaywrap [class*=t1],#gridsetoverlaywrap [class*=t2],#gridsetoverlaywrap [class*=t3],#gridsetoverlaywrap [class*=t4],#gridsetoverlaywrap [class*=t5],#gridsetoverlaywrap [class*=t6],#gridsetoverlaywrap [class*=t7],#gridsetoverlaywrap [class*=t8],#gridsetoverlaywrap .t-all{display:block;float:left;margin-right:-100%;}#gridsetoverlaywrap [class*=t1]{width:9.746045593834664%;margin-left:0%;}#gridsetoverlaywrap [class*=t2]{width:9.807341471943033%;margin-left:12.822968673835%;}#gridsetoverlaywrap [class*=t3]{width:9.807341471943033%;margin-left:25.707233225778%;}#gridsetoverlaywrap [class*=t4]{width:9.807341471943033%;margin-left:38.591497777721%;}#gridsetoverlaywrap [class*=t5]{width:9.807341471943033%;margin-left:51.475762329664%;}#gridsetoverlaywrap [class*=t6]{width:9.807341471943033%;margin-left:64.360026881607%;}#gridsetoverlaywrap [class*=t7]{width:9.807341471943033%;margin-left:77.24429143355%;}#gridsetoverlaywrap [class*=t8]{width:9.807341471943033%;margin-left:90.128555985493%;}#gridsetoverlaywrap .t-hide{display:none !important;}}@media only screen and (min-width:912px) {#gridsetoverlaywrap [class*=d1],#gridsetoverlaywrap [class*=d2],#gridsetoverlaywrap [class*=d3],#gridsetoverlaywrap [class*=d4],#gridsetoverlaywrap [class*=d5],#gridsetoverlaywrap [class*=d6],#gridsetoverlaywrap [class*=d7],#gridsetoverlaywrap [class*=d8],#gridsetoverlaywrap [class*=d9],#gridsetoverlaywrap [class*=d10],#gridsetoverlaywrap [class*=d11],#gridsetoverlaywrap [class*=d12],#gridsetoverlaywrap .d-all{display:block;float:left;margin-right:-100%;}#gridsetoverlaywrap [class*=d1]{width:5.92105263%;margin-left:0%;}#gridsetoverlaywrap [class*=d2]{width:5.92105263%;margin-left:8.55263158%;}#gridsetoverlaywrap [class*=d3]{width:5.92105263%;margin-left:17.10526316%;}#gridsetoverlaywrap [class*=d4]{width:5.92105263%;margin-left:25.65789474%;}#gridsetoverlaywrap [class*=d5]{width:5.92105263%;margin-left:34.21052632%;}#gridsetoverlaywrap [class*=d6]{width:5.92105263%;margin-left:42.7631579%;}#gridsetoverlaywrap [class*=d7]{width:5.92105263%;margin-left:51.31578948%;}#gridsetoverlaywrap [class*=d8]{width:5.92105263%;margin-left:59.86842106%;}#gridsetoverlaywrap [class*=d9]{width:5.92105263%;margin-left:68.42105264%;}#gridsetoverlaywrap [class*=d10]{width:5.92105263%;margin-left:76.97368422%;}#gridsetoverlaywrap [class*=d11]{width:5.92105263%;margin-left:85.5263158%;}#gridsetoverlaywrap [class*=d12]{width:5.92105263%;margin-left:94.07894738%;}#gridsetoverlaywrap .d-hide{display:none !important;}#gridsetoverlaywrap [class*=dca1],#gridsetoverlaywrap [class*=dca2],#gridsetoverlaywrap [class*=dca3],#gridsetoverlaywrap [class*=dca4],#gridsetoverlaywrap [class*=dca5],#gridsetoverlaywrap [class*=dca6],#gridsetoverlaywrap [class*=dca7],#gridsetoverlaywrap .dca-all{display:block;float:left;margin-right:-100%;}#gridsetoverlaywrap [class*=dca1]{width:20.17543859%;margin-left:0%;}#gridsetoverlaywrap [class*=dca2]{width:20.17543859%;margin-left:22.80701754%;}#gridsetoverlaywrap [class*=dca3]{width:20.17543859%;margin-left:45.61403508%;}#gridsetoverlaywrap [class*=dca4]{width:5.92105263%;margin-left:68.42105262%;}#gridsetoverlaywrap [class*=dca5]{width:5.92105263%;margin-left:76.9736842%;}#gridsetoverlaywrap [class*=dca6]{width:5.92105263%;margin-left:85.52631578%;}#gridsetoverlaywrap [class*=dca7]{width:5.92105263%;margin-left:94.07894736%;}#gridsetoverlaywrap .dca-hide{display:none !important;}}<\/style>';c.appendChild(e);gs.width();gs.bind(window,"resize",gs.width)},bind:function(n,t,i){n.attachEvent?n.attachEvent("on"+t,i):n.addEventListener(t,i,!1)},prevent:function(n){n.preventDefault?n.preventDefault():event.returnValue=!1}};gs.init();typeof jQuery=="undefined"&&alert("Hashgrid: jQuery not loaded. Make sure it's linked to your pages.");hashgrid=function(n){function ut(n){if(t.modifierKey==null)return!0;var i=!0;switch(t.modifierKey){case"ctrl":i=n.ctrlKey?n.ctrlKey:!1;break;case"alt":i=n.altKey?n.altKey:!1;break;case"shift":i=n.shiftKey?n.shiftKey:!1}return i}function ft(n){var t=n.keyCode?n.keyCode:n.which;return t==13?"enter":String.fromCharCode(t).toLowerCase()}function v(){et(t.cookiePrefix+t.id,(o?"1":"0")+"-"+l+"-"+r,1)}function d(){i.show();e.css({width:i.width()});e.children(".vert").each(function(){var n=$(this);n.css("display","inline-block");n.offset().top>n.parent().offset().top&&n.hide()})}function ot(n){var f,s,e=n.target.tagName.toLowerCase();if(e=="input"||e=="textarea"||e=="select"||(s=ut(n),!s)||(f=ft(n),!f)||c[f])return!0;c[f]=!0;switch(f){case t.showGridKey:u?o&&(i.hide(),u=!1,o=!1,v()):(d(),u=!0);break;case t.holdGridKey:u&&!o&&(o=!0,v());break;case t.foregroundKey:u&&(i.css("z-index")==b?(i.css("z-index",it),l="B"):(i.css("z-index",b),l="F"),v());break;case t.jumpGridsKey:u&&t.numberOfGrids>1&&(i.removeClass(t.classPrefix+r),r++,r>t.numberOfGrids&&(r=1),i.addClass(t.classPrefix+r),d(),/webkit/.test(navigator.userAgent.toLowerCase())&&ct(),v())}return!0}function st(n){var r,f=ut(n);return f?(r=ft(n),c[r]=!1,r&&r==t.showGridKey&&!o&&(i.hide(),u=!1),!0):!0}function et(n,t,i){var r,u="";i&&(r=new Date,r.setTime(r.getTime()+i*864e5),u="; expires="+r.toGMTString());document.cookie=n+"="+t+u+"; path=/"}function ht(n){for(var t,r=document.cookie.split(";"),i=0,f=r.length,u=n+"=";i<f;i++){for(t=r[i];t.charAt(0)==" ";)t=t.substring(1,t.length);if(t.indexOf(u)==0)return t.substring(u.length,t.length)}return null}function ct(){var n=document.styleSheets[0];try{n.addRule(".xxxxxx","position: relative");n.removeRule(n.rules.length-1)}catch(t){}}var t={id:"grid",modifierKey:null,showGridKey:"g",holdGridKey:"h",foregroundKey:"f",jumpGridsKey:"j",numberOfGrids:1,classPrefix:"grid-",cookiePrefix:"hashgrid"},c,r=1,s,g,h,nt,y,tt,i,p,w,u=!1,e,l="B",it=-1,b=9999,a,k,f,o=!1,rt;if(typeof n=="object")for(k in n)t[k]=n[k];else typeof n=="string"&&(t.id=n);if($("#"+t.id).length>0&&$("#"+t.id).remove(),w=$("<div><\/div>"),w.attr("id",t.id).css({display:"none",pointerEvents:"none"}),$("body").prepend(w),i=$("#"+t.id),i.css("z-index")=="auto"&&i.css("z-index",it),a=parseFloat($(document).height()),i.height(a),i.append('<div id="'+t.id+'-horiz" class="horiz first-line">'),rt=i.css("top"),i.css({top:"-999px",display:"block"}),nt=$("#"+t.id+"-horiz"),y=nt.outerHeight(),i.css({display:"none",top:rt}),y<=0)return!1;for(tt=Math.floor(a/y),s="",h=tt-1;h>=1;h--)s+='<div class="horiz"><\/div>';for(i.append(s),i.append($('<div class="vert-container"><\/div>')),e=i.children(".vert-container"),g=i.width(),e.css({width:g,position:"absolute",top:0}),e.append('<div class="vert first-line">&nbsp;<\/div>'),s="",h=0;h<30;h++)s+='<div class="vert">&nbsp;<\/div>';return e.append(s),e.children().height(a).css({display:"inline-block"}),p=ht(t.cookiePrefix+t.id),typeof p=="string"?(f=p.split("-"),f[2]=Number(f[2]),typeof f[2]!="number"||isNaN(f[2])||(r=f[2].toFixed(0),i.addClass(t.classPrefix+r)),f[1]=="F"&&(l="F",i.css("z-index",b)),f[0]=="1"&&(u=!0,o=!0,d())):i.addClass(t.classPrefix+r),$(document).bind("keydown",ot),$(document).bind("keyup",st),c={},{}};$(document).ready(function(){var n=new hashgrid({numberOfGrids:2})});!function(n){"use strict";var t=function(n,t){this.init("tooltip",n,t)},i;t.prototype={constructor:t,init:function(t,i,r){var o,s,f,u,e;for(this.type=t,this.$element=n(i),this.options=this.getOptions(r),this.enabled=!0,f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],u=="click")this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else if(u!="manual"){o=u=="hover"?"mouseenter":"focus";s=u=="hover"?"mouseleave":"blur";this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this));this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this))}this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(t){return t=n.extend({},n.fn[this.type].defaults,this.$element.data(),t),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t},enter:function(t){var u=n.fn[this.type].defaults,r={},i;if(this._options&&n.each(this._options,function(n,t){u[n]!=t&&(r[n]=t)},this),i=n(t.currentTarget)[this.type](r).data(this.type),!i.options.delay||!i.options.delay.show)return i.show();clearTimeout(this.timeout);i.hoverState="in";this.timeout=setTimeout(function(){i.hoverState=="in"&&i.show()},i.options.delay.show)},leave:function(t){var i=n(t.currentTarget)[this.type](this._options).data(this.type);if(this.timeout&&clearTimeout(this.timeout),!i.options.delay||!i.options.delay.hide)return i.hide();i.hoverState="out";this.timeout=setTimeout(function(){i.hoverState=="out"&&i.hide()},i.options.delay.hide)},show:function(){var i,t,u,f,e,r,o=n.Event("show");if(this.hasContent()&&this.enabled){if(this.$element.trigger(o),o.isDefaultPrevented())return;i=this.tip();this.setContent();this.options.animation&&i.addClass("fade");e=typeof this.options.placement=="function"?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement;i.detach().css({top:0,left:0,display:"block"});this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element);t=this.getPosition();u=i[0].offsetWidth;f=i[0].offsetHeight;switch(e){case"bottom":r={top:t.top+t.height,left:t.left+t.width/2-u/2};break;case"top":r={top:t.top-f,left:t.left+t.width/2-u/2};break;case"left":r={top:t.top+t.height/2-f/2,left:t.left-u};break;case"right":r={top:t.top+t.height/2-f/2,left:t.left+t.width}}this.applyPlacement(r,e);this.$element.trigger("shown")}},applyPlacement:function(n,t){var i=this.tip(),s=i[0].offsetWidth,f=i[0].offsetHeight,u,r,e,o;i.offset(n).addClass(t).addClass("in");u=i[0].offsetWidth;r=i[0].offsetHeight;t=="top"&&r!=f&&(n.top=n.top+f-r,o=!0);t=="bottom"||t=="top"?(e=0,n.left<0&&(e=n.left*-2,n.left=0,i.offset(n),u=i[0].offsetWidth,r=i[0].offsetHeight),this.replaceArrow(e-s+u,u,"left")):this.replaceArrow(r-f,r,"top");o&&i.offset(n)},replaceArrow:function(n,t,i){this.arrow().css(i,n?50*(1-n/t)+"%":"")},setContent:function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")},hide:function(){function r(){var i=setTimeout(function(){t.off(n.support.transition.end).detach()},500);t.one(n.support.transition.end,function(){clearTimeout(i);t.detach()})}var u=this,t=this.tip(),i=n.Event("hide");if(this.$element.trigger(i),!i.isDefaultPrevented())return t.removeClass("in"),n.support.transition&&this.$tip.hasClass("fade")?r():t.detach(),this.$element.trigger("hidden"),this},fixTitle:function(){var n=this.$element;(n.attr("title")||typeof n.attr("data-original-title")!="string")&&n.attr("data-original-title",n.attr("title")||"").attr("title","")},hasContent:function(){return this.getTitle()},getPosition:function(){var t=this.$element[0];return n.extend({},typeof t.getBoundingClientRect=="function"?t.getBoundingClientRect():{width:t.offsetWidth,height:t.offsetHeight},this.$element.offset())},getTitle:function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title)},tip:function(){return this.$tip=this.$tip||n(this.options.template)},arrow:function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(t){var i=t?n(t.currentTarget)[this.type](this._options).data(this.type):this;i.tip().hasClass("in")?i.hide():i.show()},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}};i=n.fn.tooltip;n.fn.tooltip=function(i){return this.each(function(){var u=n(this),r=u.data("tooltip"),f=typeof i=="object"&&i;r||u.data("tooltip",r=new t(this,f));typeof i=="string"&&r[i]()})};n.fn.tooltip.Constructor=t;n.fn.tooltip.defaults={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1};n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(window.jQuery);!function(n){"use strict";var t=function(n,t){this.init("popover",n,t)},i;t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype,{constructor:t,setContent:function(){var n=this.tip(),t=this.getTitle(),i=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](t);n.find(".popover-content")[this.options.html?"html":"text"](i);n.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var t=this.$element,n=this.options;return(typeof n.content=="function"?n.content.call(t[0]):n.content)||t.attr("data-content")},tip:function(){return this.$tip||(this.$tip=n(this.options.template)),this.$tip},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}});i=n.fn.popover;n.fn.popover=function(i){return this.each(function(){var u=n(this),r=u.data("popover"),f=typeof i=="object"&&i;r||u.data("popover",r=new t(this,f));typeof i=="string"&&r[i]()})};n.fn.popover.Constructor=t;n.fn.popover.defaults=n.extend({},n.fn.tooltip.defaults,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"><\/div><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>'});n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(window.jQuery);$(document).ready(function(){$("#popover").popover({content:"test"})});memberSlider.prototype={init:function(){this.slides.length==0&&console.warn("No slides found.");this.createDots()},createDots:function(){var n="<ul class='member-slider-dots'>";for(i=0;i<this.slides.length;i++)n+="<li>&#11044;<\/li>";n+="<\/ul>";this.rightSide.append(n);this.dots=$(".member-slider-dots");this.addDotEvents()},addDotEvents:function(){var n=this.slides,t=this.dots;this.dots.find("li").on("click",function(){var i=this.currentIndex=$(this).index();t.find("li").removeClass("active");$(this).addClass("active");$(n[i]).show();$(n).each(function(){$(this).index()!=i&&$(this).hide()})})},rotate:function(){}};$(document).ready(function(){function n(){$(".facebook-link a").not("#social-options .share-content .facebook-link a").each(function(){if(!$(this).hasClass("ignoreLink")){var n=window.location;$(this).attr("href","https://www.facebook.com/sharer/sharer.php?u="+n);$(this).click(function(){var n=!1;return $.ajax({url:this.href,dataType:"json",async:!1,success:function(){n=!0}}),window.open(this.href,"mywin","left=20,top=20,width=500,height=500,toolbar=1,resizable=0"),!1})}});$(".twitter-link a").not("#social-options .share-content .twitter-link a").each(function(){if(!$(this).hasClass("ignoreLink")){var n=window.location;$(this).attr("href","http://www.twitter.com/share?url="+n);$(this).click(function(){return window.open(this.href,"mywin","left=20,top=20,width=500,height=500,toolbar=1,resizable=0"),!1})}})}function t(n){$(n).addClass("hidden")}function i(n){$(n).removeClass("hidden")}function r(){var n=$("#sharing"),u=n.find(".sharing-list"),f=n.find(".email-link"),r=n.find(".email-form"),e=n.find(".cancel-email-share"),o=n.find("input[name=submit]");f.click(function(n){n.preventDefault();t(u);i(r);r=$(".email-form:visible");r.attr("name","sharing-form-name");var f=new FormValidator("sharing-form-name",[{name:"name",display:"required",rules:"required"},{name:"email",display:"valid email",rules:"valid_email|required"}],function(n){if($("form[name=sharing-form-name]").find("input").removeClass("error"),n.length>0)for(var t=0,i=n.length;t<i;t++)$("form[name=sharing-form-name]").find("#"+n[t].id).addClass("error")});n.stopPropagation()});r.click(function(n){n.stopPropagation()});o.click(function(n){return n.preventDefault(),!1});e.click(function(){i(u);t(r)})}r();var u=new FormValidator("contact-us",[{name:"name",display:"required",rules:"required"},{name:"email",display:"valid email",rules:"valid_email|required"}],function(n){if($("form[name=contact-us]").find("input").removeClass("error").css("border",""),$("form[name=contact-us]").find("textarea").removeClass("error").css("border",""),$(".message-response").hide(),n.length>0){for(var t=0,i=n.length;t<i;t++)$("form[name=contact-us]").find("#"+n[t].id).addClass("error").css("border","1px solid red"),$("#message-field").val().length<2&&$("#message-field").addClass("error").css({border:"1px solid red",opacity:"0.5"});$(".message-response.fail").show()}else $(".message-response.success").show()}),f=new FormValidator("corporate-contact",[{name:"name",display:"required",rules:"required"},{name:"subject",display:"required",rules:"required"},{name:"email",display:"required",rules:"required"},{name:"phone",display:"required",rules:"required"}],function(n){if($("form[name=corporate-contact]").find("input").removeClass("error").css("border",""),$("form[name=corporate-contact]").find("textarea").removeClass("error").css("border",""),$(".message-response").hide(),n.length>0){for(var t=0,i=n.length;t<i;t++)$("form[name=corporate-contact]").find("#"+n[t].id).addClass("error").css("border","1px solid red"),$("#message-field").val().length<2&&$("#message-field").addClass("error").css({border:"1px solid red",opacity:"0.5"});$(".message-response.fail").show()}});n();$("#sharing.share-content:visible")?$("#sharing.share-content").css("visibilty","none"):"false";$(document).click(function(){$(".popover-content").length>0?$("#share-offers-link").trigger("click"):"false"});$("#share-offers-link").popover({placement:function(){return currentBreakpoint("medium-screen")?"left":"bottom"},container:$(".share-content:first"),trigger:"click",content:$("#share-offers-link-content").html(),html:!0});$("#share-offers-link").click(function(t){$(document).trigger("ATTACH_EMAIL_SHARE");n();t.stopPropagation();t.preventDefault()});$(window).on("resize",function(){$("#share-offers-link-content").fadeOut("slow");$("#share-offers-link").popover("hide")});$(document).bind("ATTACH_EMAIL_SHARE",function(){r()});$(".popover").click(function(){alert("this has been clicked")});$(window).on("resize",function(){$("#share-offers-link").popover("hide")})});$(document).ready(function(){var n=document.createElement("input");if(!("placeholder"in n)){$("*[placeholder]").each(function(){var n=$(this);n.val()===""&&n.val(n.attr("placeholder"))});$(document).on({focus:function(){var n=$(this);n.val()===n.attr("placeholder")&&(n.val(""),n.removeClass("placeholder"))},blur:function(){var n=$(this);(n.val()===""||n.val()===n.attr("placeholder"))&&(n.addClass("placeholder"),n.val(n.attr("placeholder")))}},"input[placeholder]");$(document).on("submit","form",function(){$(this).find("input[placeholder]").each(function(){var n=$(this);n.val()===n.attr("placeholder")&&n.val("")})})}});$(document).ready(function(){var t=$(".member-slider").length,n;$(".slides").css("overflow","hidden");t>=0&&($(window).width()<1045&&$(window).width()>501?(n=(1045-parseInt($(".container").width()))/5,$(".member-slider ul.slides img").css("margin-left","-"+n+"px")):$(window).width()>=1045&&$(".member-slider ul.slides img").css("margin-left","0px"),$(window).resize(function(){$(window).width()<1045&&$(window).width()>501?(n=(1045-parseInt($(".container").width()))/5,$(".member-slider ul.slides img").css("margin-left","-"+n+"px")):$(window).width()>=1045&&$(".member-slider ul.slides img").css("margin-left","0px")}));$(".print-article").click(function(){return window.print(),!1});$("#more-brands #show-more-brands").click(function(){$(this).hide();$("#product-filter #brand-filter li.collapsed").removeClass("collapsed")});$(".flexslider").flexslider({animation:"slide",slideshow:!1,animationLoop:!1,smoothHeight:!0});$(".member-slider").flexslider({animation:"fade",controlNav:!0,directionNav:!1});$(".other-store").click(function(){$(this).hasClass("expanded")?$(".other-store").removeClass("expanded"):($(".other-store").removeClass("expanded"),$(this).addClass("expanded"))});$(window).load(function(){equalHeightRows(".product-grid .product-tile");equalHeightRows(".similar-products-grid .product-tile")});$(window).resize(function(){equalHeightRows(".product-grid .product-tile");equalHeightRows(".similar-products-grid .product-tile");Modernizr.touch||$("#share-offers-link").popover("hide")})}),function(n,t){function i(t,i){var u,f,e,o=t.nodeName.toLowerCase();return"area"===o?(u=t.parentNode,f=u.name,t.href&&f&&"map"===u.nodeName.toLowerCase()?(e=n("img[usemap=#"+f+"]")[0],!!e&&r(e)):!1):(/input|select|textarea|button|object/.test(o)?!t.disabled:"a"===o?t.href||i:i)&&r(t)}function r(t){return n.expr.filters.visible(t)&&!n(t).parents().addBack().filter(function(){return"hidden"===n.css(this,"visibility")}).length}var u=0,f=/^ui-id-\d+$/;n.ui=n.ui||{};n.extend(n.ui,{version:"1.10.4",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}});n.fn.extend({focus:function(t){return function(i,r){return"number"==typeof i?this.each(function(){var t=this;setTimeout(function(){n(t).focus();r&&r.call(t)},i)}):t.apply(this,arguments)}}(n.fn.focus),scrollParent:function(){var t;return t=n.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(n.css(this,"position"))&&/(auto|scroll)/.test(n.css(this,"overflow")+n.css(this,"overflow-y")+n.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(n.css(this,"overflow")+n.css(this,"overflow-y")+n.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?n(document):t},zIndex:function(i){if(i!==t)return this.css("zIndex",i);if(this.length)for(var u,f,r=n(this[0]);r.length&&r[0]!==document;){if(u=r.css("position"),("absolute"===u||"relative"===u||"fixed"===u)&&(f=parseInt(r.css("zIndex"),10),!isNaN(f)&&0!==f))return f;r=r.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++u)})},removeUniqueId:function(){return this.each(function(){f.test(this.id)&&n(this).removeAttr("id")})}});n.extend(n.expr[":"],{data:n.expr.createPseudo?n.expr.createPseudo(function(t){return function(i){return!!n.data(i,t)}}):function(t,i,r){return!!n.data(t,r[3])},focusable:function(t){return i(t,!isNaN(n.attr(t,"tabindex")))},tabbable:function(t){var r=n.attr(t,"tabindex"),u=isNaN(r);return(u||r>=0)&&i(t,!u)}});n("<a>").outerWidth(1).jquery||n.each(["Width","Height"],function(i,r){function u(t,i,r,u){return n.each(o,function(){i-=parseFloat(n.css(t,"padding"+this))||0;r&&(i-=parseFloat(n.css(t,"border"+this+"Width"))||0);u&&(i-=parseFloat(n.css(t,"margin"+this))||0)}),i}var o="Width"===r?["Left","Right"]:["Top","Bottom"],f=r.toLowerCase(),e={innerWidth:n.fn.innerWidth,innerHeight:n.fn.innerHeight,outerWidth:n.fn.outerWidth,outerHeight:n.fn.outerHeight};n.fn["inner"+r]=function(i){return i===t?e["inner"+r].call(this):this.each(function(){n(this).css(f,u(this,i)+"px")})};n.fn["outer"+r]=function(t,i){return"number"!=typeof t?e["outer"+r].call(this,t):this.each(function(){n(this).css(f,u(this,t,!0,i)+"px")})}});n.fn.addBack||(n.fn.addBack=function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))});n("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(n.fn.removeData=function(t){return function(i){return arguments.length?t.call(this,n.camelCase(i)):t.call(this)}}(n.fn.removeData));n.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());n.support.selectstart="onselectstart"in document.createElement("div");n.fn.extend({disableSelection:function(){return this.bind((n.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(n){n.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});n.extend(n.ui,{plugin:{add:function(t,i,r){var u,f=n.ui[t].prototype;for(u in r)f.plugins[u]=f.plugins[u]||[],f.plugins[u].push([i,r[u]])},call:function(n,t,i){var r,u=n.plugins[t];if(u&&n.element[0].parentNode&&11!==n.element[0].parentNode.nodeType)for(r=0;u.length>r;r++)n.options[u[r][0]]&&u[r][1].apply(n.element,i)}},hasScroll:function(t,i){if("hidden"===n(t).css("overflow"))return!1;var r=i&&"left"===i?"scrollLeft":"scrollTop",u=!1;return t[r]>0?!0:(t[r]=1,u=t[r]>0,t[r]=0,u)}})}(jQuery),function(n,t){var r=0,i=Array.prototype.slice,u=n.cleanData;n.cleanData=function(t){for(var i,r=0;null!=(i=t[r]);r++)try{n(i).triggerHandler("remove")}catch(f){}u(t)};n.widget=function(i,r,u){var h,e,f,s,c={},o=i.split(".")[0];i=i.split(".")[1];h=o+"-"+i;u||(u=r,r=n.Widget);n.expr[":"][h.toLowerCase()]=function(t){return!!n.data(t,h)};n[o]=n[o]||{};e=n[o][i];f=n[o][i]=function(n,i){return this._createWidget?(arguments.length&&this._createWidget(n,i),t):new f(n,i)};n.extend(f,e,{version:u.version,_proto:n.extend({},u),_childConstructors:[]});s=new r;s.options=n.widget.extend({},s.options);n.each(u,function(i,u){return n.isFunction(u)?(c[i]=function(){var n=function(){return r.prototype[i].apply(this,arguments)},t=function(n){return r.prototype[i].apply(this,n)};return function(){var i,r=this._super,f=this._superApply;return this._super=n,this._superApply=t,i=u.apply(this,arguments),this._super=r,this._superApply=f,i}}(),t):(c[i]=u,t)});f.prototype=n.widget.extend(s,{widgetEventPrefix:e?s.widgetEventPrefix||i:i},c,{constructor:f,namespace:o,widgetName:i,widgetFullName:h});e?(n.each(e._childConstructors,function(t,i){var r=i.prototype;n.widget(r.namespace+"."+r.widgetName,f,i._proto)}),delete e._childConstructors):r._childConstructors.push(f);n.widget.bridge(i,f)};n.widget.extend=function(r){for(var u,f,o=i.call(arguments,1),e=0,s=o.length;s>e;e++)for(u in o[e])f=o[e][u],o[e].hasOwnProperty(u)&&f!==t&&(r[u]=n.isPlainObject(f)?n.isPlainObject(r[u])?n.widget.extend({},r[u],f):n.widget.extend({},f):f);return r};n.widget.bridge=function(r,u){var f=u.prototype.widgetFullName||r;n.fn[r]=function(e){var h="string"==typeof e,o=i.call(arguments,1),s=this;return e=!h&&o.length?n.widget.extend.apply(null,[e].concat(o)):e,h?this.each(function(){var i,u=n.data(this,f);return u?n.isFunction(u[e])&&"_"!==e.charAt(0)?(i=u[e].apply(u,o),i!==u&&i!==t?(s=i&&i.jquery?s.pushStack(i.get()):i,!1):t):n.error("no such method '"+e+"' for "+r+" widget instance"):n.error("cannot call methods on "+r+" prior to initialization; attempted to call method '"+e+"'")}):this.each(function(){var t=n.data(this,f);t?t.option(e||{})._init():n.data(this,f,new u(e,this))}),s}};n.Widget=function(){};n.Widget._childConstructors=[];n.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,i){i=n(i||this.defaultElement||this)[0];this.element=n(i);this.uuid=r++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=n.widget.extend({},this.options,this._getCreateOptions(),t);this.bindings=n();this.hoverable=n();this.focusable=n();i!==this&&(n.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(n){n.target===i&&this.destroy()}}),this.document=n(i.style?i.ownerDocument:i.document||i),this.window=n(this.document[0].defaultView||this.document[0].parentWindow));this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:n.noop,_getCreateEventData:n.noop,_create:n.noop,_init:n.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(n.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:n.noop,widget:function(){return this.element},option:function(i,r){var u,f,e,o=i;if(0===arguments.length)return n.widget.extend({},this.options);if("string"==typeof i)if(o={},u=i.split("."),i=u.shift(),u.length){for(f=o[i]=n.widget.extend({},this.options[i]),e=0;u.length-1>e;e++)f[u[e]]=f[u[e]]||{},f=f[u[e]];if(i=u.pop(),1===arguments.length)return f[i]===t?null:f[i];f[i]=r}else{if(1===arguments.length)return this.options[i]===t?null:this.options[i];o[i]=r}return this._setOptions(o),this},_setOptions:function(n){var t;for(t in n)this._setOption(t,n[t]);return this},_setOption:function(n,t){return this.options[n]=t,"disabled"===n&&(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,r,u){var e,f=this;"boolean"!=typeof i&&(u=r,r=i,i=!1);u?(r=e=n(r),this.bindings=this.bindings.add(r)):(u=r,r=this.element,e=this.widget());n.each(u,function(u,o){function s(){return i||f.options.disabled!==!0&&!n(this).hasClass("ui-state-disabled")?("string"==typeof o?f[o]:o).apply(f,arguments):t}"string"!=typeof o&&(s.guid=o.guid=o.guid||s.guid||n.guid++);var h=u.match(/^(\w+)\s*(.*)$/),c=h[1]+f.eventNamespace,l=h[2];l?e.delegate(l,c,s):r.bind(c,s)})},_off:function(n,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;n.unbind(t).undelegate(t)},_delay:function(n,t){function r(){return("string"==typeof n?i[n]:n).apply(i,arguments)}var i=this;return setTimeout(r,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t);this._on(t,{mouseenter:function(t){n(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){n(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t);this._on(t,{focusin:function(t){n(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){n(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,i,r){var u,f,e=this.options[t];if(r=r||{},i=n.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],f=i.originalEvent)for(u in f)u in i||(i[u]=f[u]);return this.element.trigger(i,r),!(n.isFunction(e)&&e.apply(this.element[0],[i].concat(r))===!1||i.isDefaultPrevented())}};n.each({show:"fadeIn",hide:"fadeOut"},function(t,i){n.Widget.prototype["_"+t]=function(r,u,f){"string"==typeof u&&(u={effect:u});var o,e=u?u===!0||"number"==typeof u?i:u.effect||i:t;u=u||{};"number"==typeof u&&(u={duration:u});o=!n.isEmptyObject(u);u.complete=f;u.delay&&r.delay(u.delay);o&&n.effects&&n.effects.effect[e]?r[t](u):e!==t&&r[e]?r[e](u.duration,u.easing,f):r.queue(function(i){n(this)[t]();f&&f.call(r[0]);i()})}})}(jQuery),function(n){var t=!1;n(document).mouseup(function(){t=!1});n.widget("ui.mouse",{version:"1.10.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,function(n){return t._mouseDown(n)}).bind("click."+this.widgetName,function(i){return!0===n.data(i.target,t.widgetName+".preventClickEvent")?(n.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):undefined});this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);this._mouseMoveDelegate&&n(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 r=this,u=1===i.which,f="string"==typeof this.options.cancel&&i.target.nodeName?n(i.target).closest(this.options.cancel).length:!1;return u&&!f&&this._mouseCapture(i)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){r.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=this._mouseStart(i)!==!1,!this._mouseStarted)?(i.preventDefault(),!0):(!0===n.data(i.target,this.widgetName+".preventClickEvent")&&n.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(n){return r._mouseMove(n)},this._mouseUpDelegate=function(n){return r._mouseUp(n)},n(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),t=!0,!0)):!0}},_mouseMove:function(t){return n.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 n(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&n.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),!1},_mouseDistanceMet:function(n){return Math.max(Math.abs(this._mouseDownEvent.pageX-n.pageX),Math.abs(this._mouseDownEvent.pageY-n.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(n,t){function e(n,t,i){return[parseFloat(n[0])*(a.test(n[0])?t/100:1),parseFloat(n[1])*(a.test(n[1])?i/100:1)]}function r(t,i){return parseInt(n.css(t,i),10)||0}function v(t){var i=t[0];return 9===i.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:n.isWindow(i)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}n.ui=n.ui||{};var f,u=Math.max,i=Math.abs,o=Math.round,s=/left|center|right/,h=/top|center|bottom/,c=/[\+\-]\d+(\.[\d]+)?%?/,l=/^\w+/,a=/%$/,y=n.fn.position;n.position={scrollbarWidth:function(){if(f!==t)return f;var u,r,i=n("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'><\/div><\/div>"),e=i.children()[0];return n("body").append(i),u=e.offsetWidth,i.css("overflow","scroll"),r=e.offsetWidth,u===r&&(r=i[0].clientWidth),i.remove(),f=u-r},getScrollInfo:function(t){var i=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),r=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),u="scroll"===i||"auto"===i&&t.width<t.element[0].scrollWidth,f="scroll"===r||"auto"===r&&t.height<t.element[0].scrollHeight;return{width:f?n.position.scrollbarWidth():0,height:u?n.position.scrollbarWidth():0}},getWithinInfo:function(t){var i=n(t||window),r=n.isWindow(i[0]),u=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:r,isDocument:u,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:r?i.width():i.outerWidth(),height:r?i.height():i.outerHeight()}}};n.fn.position=function(t){if(!t||!t.of)return y.apply(this,arguments);t=n.extend({},t);var b,f,a,w,p,d,g=n(t.of),tt=n.position.getWithinInfo(t.within),it=n.position.getScrollInfo(tt),k=(t.collision||"flip").split(" "),nt={};return d=v(g),g[0].preventDefault&&(t.at="left top"),f=d.width,a=d.height,w=d.offset,p=n.extend({},w),n.each(["my","at"],function(){var i,r,n=(t[this]||"").split(" ");1===n.length&&(n=s.test(n[0])?n.concat(["center"]):h.test(n[0])?["center"].concat(n):["center","center"]);n[0]=s.test(n[0])?n[0]:"center";n[1]=h.test(n[1])?n[1]:"center";i=c.exec(n[0]);r=c.exec(n[1]);nt[this]=[i?i[0]:0,r?r[0]:0];t[this]=[l.exec(n[0])[0],l.exec(n[1])[0]]}),1===k.length&&(k[1]=k[0]),"right"===t.at[0]?p.left+=f:"center"===t.at[0]&&(p.left+=f/2),"bottom"===t.at[1]?p.top+=a:"center"===t.at[1]&&(p.top+=a/2),b=e(nt.at,f,a),p.left+=b[0],p.top+=b[1],this.each(function(){var y,d,h=n(this),c=h.outerWidth(),l=h.outerHeight(),rt=r(this,"marginLeft"),ut=r(this,"marginTop"),ft=c+rt+r(this,"marginRight")+it.width,et=l+ut+r(this,"marginBottom")+it.height,s=n.extend({},p),v=e(nt.my,h.outerWidth(),h.outerHeight());"right"===t.my[0]?s.left-=c:"center"===t.my[0]&&(s.left-=c/2);"bottom"===t.my[1]?s.top-=l:"center"===t.my[1]&&(s.top-=l/2);s.left+=v[0];s.top+=v[1];n.support.offsetFractions||(s.left=o(s.left),s.top=o(s.top));y={marginLeft:rt,marginTop:ut};n.each(["left","top"],function(i,r){n.ui.position[k[i]]&&n.ui.position[k[i]][r](s,{targetWidth:f,targetHeight:a,elemWidth:c,elemHeight:l,collisionPosition:y,collisionWidth:ft,collisionHeight:et,offset:[b[0]+v[0],b[1]+v[1]],my:t.my,at:t.at,within:tt,elem:h})});t.using&&(d=function(n){var r=w.left-s.left,v=r+f-c,e=w.top-s.top,y=e+a-l,o={target:{element:g,left:w.left,top:w.top,width:f,height:a},element:{element:h,left:s.left,top:s.top,width:c,height:l},horizontal:0>v?"left":r>0?"right":"center",vertical:0>y?"top":e>0?"bottom":"middle"};c>f&&f>i(r+v)&&(o.horizontal="center");l>a&&a>i(e+y)&&(o.vertical="middle");o.important=u(i(r),i(v))>u(i(e),i(y))?"horizontal":"vertical";t.using.call(this,n,o)});h.offset(n.extend(s,{using:d}))})};n.ui.position={fit:{left:function(n,t){var h,e=t.within,r=e.isWindow?e.scrollLeft:e.offset.left,o=e.width,s=n.left-t.collisionPosition.marginLeft,i=r-s,f=s+t.collisionWidth-o-r;t.collisionWidth>o?i>0&&0>=f?(h=n.left+i+t.collisionWidth-o-r,n.left+=i-h):n.left=f>0&&0>=i?r:i>f?r+o-t.collisionWidth:r:i>0?n.left+=i:f>0?n.left-=f:n.left=u(n.left-s,n.left)},top:function(n,t){var h,o=t.within,r=o.isWindow?o.scrollTop:o.offset.top,e=t.within.height,s=n.top-t.collisionPosition.marginTop,i=r-s,f=s+t.collisionHeight-e-r;t.collisionHeight>e?i>0&&0>=f?(h=n.top+i+t.collisionHeight-e-r,n.top+=i-h):n.top=f>0&&0>=i?r:i>f?r+e-t.collisionHeight:r:i>0?n.top+=i:f>0?n.top-=f:n.top=u(n.top-s,n.top)}},flip:{left:function(n,t){var o,s,r=t.within,y=r.offset.left+r.scrollLeft,c=r.width,h=r.isWindow?r.scrollLeft:r.offset.left,l=n.left-t.collisionPosition.marginLeft,a=l-h,v=l+t.collisionWidth-c-h,u="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,f="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,e=-2*t.offset[0];0>a?(o=n.left+u+f+e+t.collisionWidth-c-y,(0>o||i(a)>o)&&(n.left+=u+f+e)):v>0&&(s=n.left-t.collisionPosition.marginLeft+u+f+e-h,(s>0||v>i(s))&&(n.left+=u+f+e))},top:function(n,t){var o,s,r=t.within,y=r.offset.top+r.scrollTop,a=r.height,h=r.isWindow?r.scrollTop:r.offset.top,v=n.top-t.collisionPosition.marginTop,c=v-h,l=v+t.collisionHeight-a-h,p="top"===t.my[1],u=p?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,f="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,e=-2*t.offset[1];0>c?(s=n.top+u+f+e+t.collisionHeight-a-y,n.top+u+f+e>c&&(0>s||i(c)>s)&&(n.top+=u+f+e)):l>0&&(o=n.top-t.collisionPosition.marginTop+u+f+e-h,n.top+u+f+e>l&&(o>0||l>i(o))&&(n.top+=u+f+e))}},flipfit:{left:function(){n.ui.position.flip.left.apply(this,arguments);n.ui.position.fit.left.apply(this,arguments)},top:function(){n.ui.position.flip.top.apply(this,arguments);n.ui.position.fit.top.apply(this,arguments)}}},function(){var t,i,r,u,f,e=document.getElementsByTagName("body")[0],o=document.createElement("div");t=document.createElement(e?"div":"body");r={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};e&&n.extend(r,{position:"absolute",left:"-1000px",top:"-1000px"});for(f in r)t.style[f]=r[f];t.appendChild(o);i=e||document.documentElement;i.insertBefore(t,i.firstChild);o.style.cssText="position: absolute; left: 10.7432222px;";u=n(o).offset().left;n.support.offsetFractions=u>10&&11>u;t.innerHTML="";i.removeChild(t)}()}(jQuery),function(n,t){var i="ui-effects-";n.effects={effect:{}},function(n,t){function f(n,t,i){var r=h[t.type]||{};return null==n?i||!t.def?null:t.def:(n=r.floor?~~n:parseFloat(n),isNaN(n)?t.def:r.mod?(n+r.mod)%r.mod:0>n?0:n>r.max?r.max:n)}function s(f){var o=i(),s=o._rgba=[];return f=f.toLowerCase(),r(v,function(n,i){var r,h=i.re.exec(f),c=h&&i.parse(h),e=i.space||"rgba";return c?(r=o[e](c),o[u[e].cache]=r[u[e].cache],s=o._rgba=r._rgba,!1):t}),s.length?("0,0,0,0"===s.join()&&n.extend(s,e.transparent),o):e[f]}function o(n,t,i){return i=(i+1)%1,1>6*i?n+6*(t-n)*i:1>2*i?t:2>3*i?n+6*(t-n)*(2/3-i):n}var e,a=/^([\-+])=\s*(\d+\.?\d*)/,v=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(n){return[n[1],n[2],n[3],n[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(n){return[2.55*n[1],2.55*n[2],2.55*n[3],n[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(n){return[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(n){return[parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(n){return[n[1],n[2]/100,n[3]/100,n[4]]}}],i=n.Color=function(t,i,r,u){return new n.Color.fn.parse(t,i,r,u)},u={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},h={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},c=i.support={},l=n("<p>")[0],r=n.each;l.style.cssText="background-color:rgba(1,1,1,.5)";c.rgba=l.style.backgroundColor.indexOf("rgba")>-1;r(u,function(n,t){t.cache="_"+n;t.props.alpha={idx:3,type:"percent",def:1}});i.fn=n.extend(i.prototype,{parse:function(o,h,c,l){if(o===t)return this._rgba=[null,null,null,null],this;(o.jquery||o.nodeType)&&(o=n(o).css(h),h=t);var a=this,v=n.type(o),y=this._rgba=[];return h!==t&&(o=[o,h,c,l],v="array"),"string"===v?this.parse(s(o)||e._default):"array"===v?(r(u.rgba.props,function(n,t){y[t.idx]=f(o[t.idx],t)}),this):"object"===v?(o instanceof i?r(u,function(n,t){o[t.cache]&&(a[t.cache]=o[t.cache].slice())}):r(u,function(t,i){var u=i.cache;r(i.props,function(n,t){if(!a[u]&&i.to){if("alpha"===n||null==o[n])return;a[u]=i.to(a._rgba)}a[u][t.idx]=f(o[n],t,!0)});a[u]&&0>n.inArray(null,a[u].slice(0,3))&&(a[u][3]=1,i.from&&(a._rgba=i.from(a[u])))}),this):t},is:function(n){var o=i(n),f=!0,e=this;return r(u,function(n,i){var s,u=o[i.cache];return u&&(s=e[i.cache]||i.to&&i.to(e._rgba)||[],r(i.props,function(n,i){return null!=u[i.idx]?f=u[i.idx]===s[i.idx]:t})),f}),f},_space:function(){var n=[],t=this;return r(u,function(i,r){t[r.cache]&&n.push(i)}),n.pop()},transition:function(n,t){var e=i(n),c=e._space(),o=u[c],l=0===this.alpha()?i("transparent"):this,a=l[o.cache]||o.to(l._rgba),s=a.slice();return e=e[o.cache],r(o.props,function(n,i){var c=i.idx,r=a[c],u=e[c],o=h[i.type]||{};null!==u&&(null===r?s[c]=u:(o.mod&&(u-r>o.mod/2?r+=o.mod:r-u>o.mod/2&&(r-=o.mod)),s[c]=f((u-r)*t+r,i)))}),this[c](s)},blend:function(t){if(1===this._rgba[3])return this;var r=this._rgba.slice(),u=r.pop(),f=i(t)._rgba;return i(n.map(r,function(n,t){return(1-u)*f[t]+u*n}))},toRgbaString:function(){var i="rgba(",t=n.map(this._rgba,function(n,t){return null==n?t>2?1:0:n});return 1===t[3]&&(t.pop(),i="rgb("),i+t.join()+")"},toHslaString:function(){var i="hsla(",t=n.map(this.hsla(),function(n,t){return null==n&&(n=t>2?1:0),t&&3>t&&(n=Math.round(100*n)+"%"),n});return 1===t[3]&&(t.pop(),i="hsl("),i+t.join()+")"},toHexString:function(t){var i=this._rgba.slice(),r=i.pop();return t&&i.push(~~(255*r)),"#"+n.map(i,function(n){return n=(n||0).toString(16),1===n.length?"0"+n:n}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}});i.fn.parse.prototype=i.fn;u.hsla.to=function(n){if(null==n[0]||null==n[1]||null==n[2])return[null,null,null,n[3]];var s,h,i=n[0]/255,r=n[1]/255,f=n[2]/255,c=n[3],u=Math.max(i,r,f),e=Math.min(i,r,f),t=u-e,o=u+e,l=.5*o;return s=e===u?0:i===u?60*(r-f)/t+360:r===u?60*(f-i)/t+120:60*(i-r)/t+240,h=0===t?0:.5>=l?t/o:t/(2-o),[Math.round(s)%360,h,l,null==c?1:c]};u.hsla.from=function(n){if(null==n[0]||null==n[1]||null==n[2])return[null,null,null,n[3]];var r=n[0]/360,u=n[1],t=n[2],e=n[3],i=.5>=t?t*(1+u):t+u-t*u,f=2*t-i;return[Math.round(255*o(f,i,r+1/3)),Math.round(255*o(f,i,r)),Math.round(255*o(f,i,r-1/3)),e]};r(u,function(u,e){var s=e.props,o=e.cache,h=e.to,c=e.from;i.fn[u]=function(u){if(h&&!this[o]&&(this[o]=h(this._rgba)),u===t)return this[o].slice();var l,a=n.type(u),v="array"===a||"object"===a?u:arguments,e=this[o].slice();return r(s,function(n,t){var i=v["object"===a?n:t.idx];null==i&&(i=e[t.idx]);e[t.idx]=f(i,t)}),c?(l=i(c(e)),l[o]=e,l):i(e)};r(s,function(t,r){i.fn[t]||(i.fn[t]=function(i){var f,e=n.type(i),h="alpha"===t?this._hsla?"hsla":"rgba":u,o=this[h](),s=o[r.idx];return"undefined"===e?s:("function"===e&&(i=i.call(this,s),e=n.type(i)),null==i&&r.empty?this:("string"===e&&(f=a.exec(i),f&&(i=s+parseFloat(f[2])*("+"===f[1]?1:-1))),o[r.idx]=i,this[h](o)))})})});i.hook=function(t){var u=t.split(" ");r(u,function(t,r){n.cssHooks[r]={set:function(t,u){var o,f,e="";if("transparent"!==u&&("string"!==n.type(u)||(o=s(u)))){if(u=i(o||u),!c.rgba&&1!==u._rgba[3]){for(f="backgroundColor"===r?t.parentNode:t;(""===e||"transparent"===e)&&f&&f.style;)try{e=n.css(f,"backgroundColor");f=f.parentNode}catch(h){}u=u.blend(e&&"transparent"!==e?e:"_default")}u=u.toRgbaString()}try{t.style[r]=u}catch(h){}}};n.fx.step[r]=function(t){t.colorInit||(t.start=i(t.elem,r),t.end=i(t.end),t.colorInit=!0);n.cssHooks[r].set(t.elem,t.start.transition(t.end,t.pos))}})};i.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor");n.cssHooks.borderColor={expand:function(n){var t={};return r(["Top","Right","Bottom","Left"],function(i,r){t["border"+r+"Color"]=n}),t}};e=n.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(jQuery),function(){function i(t){var r,u,i=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,f={};if(i&&i.length&&i[0]&&i[i[0]])for(u=i.length;u--;)r=i[u],"string"==typeof i[r]&&(f[n.camelCase(r)]=i[r]);else for(r in i)"string"==typeof i[r]&&(f[r]=i[r]);return f}function r(t,i){var r,u,e={};for(r in i)u=i[r],t[r]!==u&&(f[r]||(n.fx.step[r]||!isNaN(parseFloat(u)))&&(e[r]=u));return e}var u=["add","remove","toggle"],f={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};n.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,i){n.fx.step[i]=function(n){("none"===n.end||n.setAttr)&&(1!==n.pos||n.setAttr)||(jQuery.style(n.elem,i,n.end),n.setAttr=!0)}});n.fn.addBack||(n.fn.addBack=function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))});n.effects.animateClass=function(t,f,e,o){var s=n.speed(f,e,o);return this.queue(function(){var o,e=n(this),h=e.attr("class")||"",f=s.children?e.find("*").addBack():e;f=f.map(function(){var t=n(this);return{el:t,start:i(this)}});o=function(){n.each(u,function(n,i){t[i]&&e[i+"Class"](t[i])})};o();f=f.map(function(){return this.end=i(this.el[0]),this.diff=r(this.start,this.end),this});e.attr("class",h);f=f.map(function(){var i=this,t=n.Deferred(),r=n.extend({},s,{queue:!1,complete:function(){t.resolve(i)}});return this.el.animate(this.diff,r),t.promise()});n.when.apply(n,f.get()).done(function(){o();n.each(arguments,function(){var t=this.el;n.each(this.diff,function(n){t.css(n,"")})});s.complete.call(e[0])})})};n.fn.extend({addClass:function(t){return function(i,r,u,f){return r?n.effects.animateClass.call(this,{add:i},r,u,f):t.apply(this,arguments)}}(n.fn.addClass),removeClass:function(t){return function(i,r,u,f){return arguments.length>1?n.effects.animateClass.call(this,{remove:i},r,u,f):t.apply(this,arguments)}}(n.fn.removeClass),toggleClass:function(i){return function(r,u,f,e,o){return"boolean"==typeof u||u===t?f?n.effects.animateClass.call(this,u?{add:r}:{remove:r},f,e,o):i.apply(this,arguments):n.effects.animateClass.call(this,{toggle:r},u,f,e)}}(n.fn.toggleClass),switchClass:function(t,i,r,u,f){return n.effects.animateClass.call(this,{add:i,remove:t},r,u,f)}})}(),function(){function r(t,i,r,u){return n.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},null==i&&(i={}),n.isFunction(i)&&(u=i,r=null,i={}),("number"==typeof i||n.fx.speeds[i])&&(u=r,r=i,i={}),n.isFunction(r)&&(u=r,r=null),i&&n.extend(t,i),r=r||i.duration,t.duration=n.fx.off?0:"number"==typeof r?r:r in n.fx.speeds?n.fx.speeds[r]:n.fx.speeds._default,t.complete=u||i.complete,t}function u(t){return!t||"number"==typeof t||n.fx.speeds[t]?!0:"string"!=typeof t||n.effects.effect[t]?n.isFunction(t)?!0:"object"!=typeof t||t.effect?!1:!0:!0}n.extend(n.effects,{version:"1.10.4",save:function(n,t){for(var r=0;t.length>r;r++)null!==t[r]&&n.data(i+t[r],n[0].style[t[r]])},restore:function(n,r){for(var f,u=0;r.length>u;u++)null!==r[u]&&(f=n.data(i+r[u]),f===t&&(f=""),n.css(r[u],f))},setMode:function(n,t){return"toggle"===t&&(t=n.is(":hidden")?"show":"hide"),t},getBaseline:function(n,t){var i,r;switch(n[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=n[0]/t.height}switch(n[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=n[1]/t.width}return{x:r,y:i}},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},u=n("<div><\/div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),f={width:t.width(),height:t.height()},r=document.activeElement;try{r.id}catch(e){r=document.body}return t.wrap(u),(t[0]===r||n.contains(t[0],r))&&n(r).focus(),u=t.parent(),"static"===t.css("position")?(u.css({position:"relative"}),t.css({position:"relative"})):(n.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),n.each(["top","left","bottom","right"],function(n,r){i[r]=t.css(r);isNaN(parseInt(i[r],10))&&(i[r]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(f),u.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||n.contains(t[0],i))&&n(i).focus()),t},setTransition:function(t,i,r,u){return u=u||{},n.each(i,function(n,i){var f=t.cssUnit(i);f[0]>0&&(u[i]=f[0]*r+f[1])}),u}});n.fn.extend({effect:function(){function i(i){function f(){n.isFunction(o)&&o.call(r[0]);n.isFunction(i)&&i()}var r=n(this),o=t.complete,u=t.mode;(r.is(":hidden")?"hide"===u:"show"===u)?(r[u](),f()):e.call(r[0],t,f)}var t=r.apply(this,arguments),u=t.mode,f=t.queue,e=n.effects.effect[t.effect];return n.fx.off||!e?u?this[u](t.duration,t.complete):this.each(function(){t.complete&&t.complete.call(this)}):f===!1?this.each(i):this.queue(f||"fx",i)},show:function(n){return function(t){if(u(t))return n.apply(this,arguments);var i=r.apply(this,arguments);return i.mode="show",this.effect.call(this,i)}}(n.fn.show),hide:function(n){return function(t){if(u(t))return n.apply(this,arguments);var i=r.apply(this,arguments);return i.mode="hide",this.effect.call(this,i)}}(n.fn.hide),toggle:function(n){return function(t){if(u(t)||"boolean"==typeof t)return n.apply(this,arguments);var i=r.apply(this,arguments);return i.mode="toggle",this.effect.call(this,i)}}(n.fn.toggle),cssUnit:function(t){var i=this.css(t),r=[];return n.each(["em","px","%","pt"],function(n,t){i.indexOf(t)>0&&(r=[parseFloat(i),t])}),r}})}(),function(){var t={};n.each(["Quad","Cubic","Quart","Quint","Expo"],function(n,i){t[i]=function(t){return Math.pow(t,n+2)}});n.extend(t,{Sine:function(n){return 1-Math.cos(n*Math.PI/2)},Circ:function(n){return 1-Math.sqrt(1-n*n)},Elastic:function(n){return 0===n||1===n?n:-Math.pow(2,8*(n-1))*Math.sin((80*(n-1)-7.5)*Math.PI/15)},Back:function(n){return n*n*(3*n-2)},Bounce:function(n){for(var t,i=4;((t=Math.pow(2,--i))-1)/11>n;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-n,2)}});n.each(t,function(t,i){n.easing["easeIn"+t]=i;n.easing["easeOut"+t]=function(n){return 1-i(1-n)};n.easing["easeInOut"+t]=function(n){return.5>n?i(2*n)/2:1-i(-2*n+2)/2}})}()}(jQuery),function(n){var t=/up|down|vertical/,i=/up|left|vertical|horizontal/;n.effects.effect.blind=function(r,u){var e,o,s,f=n(this),c=["position","top","bottom","left","right","height","width"],p=n.effects.setMode(f,r.mode||"hide"),w=r.direction||"up",h=t.test(w),l=h?"height":"width",a=h?"top":"left",b=i.test(w),v={},y="show"===p;f.parent().is(".ui-effects-wrapper")?n.effects.save(f.parent(),c):n.effects.save(f,c);f.show();e=n.effects.createWrapper(f).css({overflow:"hidden"});o=e[l]();s=parseFloat(e.css(a))||0;v[l]=y?o:0;b||(f.css(h?"bottom":"right",0).css(h?"top":"left","auto").css({position:"absolute"}),v[a]=y?s:o+s);y&&(e.css(l,0),b||e.css(a,s+o));e.animate(v,{duration:r.duration,easing:r.easing,queue:!1,complete:function(){"hide"===p&&f.hide();n.effects.restore(f,c);n.effects.removeWrapper(f);u()}})}}(jQuery),function(n){n.effects.effect.bounce=function(t,i){var v,f,e,r=n(this),y=["position","top","bottom","left","right","height","width"],k=n.effects.setMode(r,t.mode||"effect"),o="hide"===k,p="show"===k,h=t.direction||"up",u=t.distance,w=t.times||5,d=2*w+(p||o?1:0),c=t.duration/d,l=t.easing,s="up"===h||"down"===h?"top":"left",b="up"===h||"left"===h,a=r.queue(),g=a.length;for((p||o)&&y.push("opacity"),n.effects.save(r,y),r.show(),n.effects.createWrapper(r),u||(u=r["top"===s?"outerHeight":"outerWidth"]()/3),p&&(e={opacity:1},e[s]=0,r.css("opacity",0).css(s,b?2*-u:2*u).animate(e,c,l)),o&&(u/=Math.pow(2,w-1)),e={},e[s]=0,v=0;w>v;v++)f={},f[s]=(b?"-=":"+=")+u,r.animate(f,c,l).animate(e,c,l),u=o?2*u:u/2;o&&(f={opacity:0},f[s]=(b?"-=":"+=")+u,r.animate(f,c,l));r.queue(function(){o&&r.hide();n.effects.restore(r,y);n.effects.removeWrapper(r);i()});g>1&&a.splice.apply(a,[1,0].concat(a.splice(g,d+1)));r.dequeue()}}(jQuery),function(n){n.effects.effect.clip=function(t,i){var h,u,f,r=n(this),c=["position","top","bottom","left","right","height","width"],v=n.effects.setMode(r,t.mode||"hide"),e="show"===v,y=t.direction||"vertical",l="vertical"===y,o=l?"height":"width",a=l?"top":"left",s={};n.effects.save(r,c);r.show();h=n.effects.createWrapper(r).css({overflow:"hidden"});u="IMG"===r[0].tagName?h:r;f=u[o]();e&&(u.css(o,0),u.css(a,f/2));s[o]=e?f:0;s[a]=e?0:f/2;u.animate(s,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){e||r.hide();n.effects.restore(r,c);n.effects.removeWrapper(r);i()}})}}(jQuery),function(n){n.effects.effect.drop=function(t,i){var u,r=n(this),h=["position","top","bottom","left","right","opacity","height","width"],c=n.effects.setMode(r,t.mode||"hide"),e="show"===c,f=t.direction||"left",o="up"===f||"down"===f?"top":"left",s="up"===f||"left"===f?"pos":"neg",l={opacity:e?1:0};n.effects.save(r,h);r.show();n.effects.createWrapper(r);u=t.distance||r["top"===o?"outerHeight":"outerWidth"](!0)/2;e&&r.css("opacity",0).css(o,"pos"===s?-u:u);l[o]=(e?"pos"===s?"+=":"-=":"pos"===s?"-=":"+=")+u;r.animate(l,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===c&&r.hide();n.effects.restore(r,h);n.effects.removeWrapper(r);i()}})}}(jQuery),function(n){n.effects.effect.explode=function(t,i){function b(){p.push(this);p.length===o*c&&k()}function k(){r.css({visibility:"visible"});n(p).remove();u||r.hide();i()}for(var e,l,a,v,y,o=t.pieces?Math.round(Math.sqrt(t.pieces)):3,c=o,r=n(this),d=n.effects.setMode(r,t.mode||"hide"),u="show"===d,w=r.show().css("visibility","hidden").offset(),s=Math.ceil(r.outerWidth()/c),h=Math.ceil(r.outerHeight()/o),p=[],f=0;o>f;f++)for(a=w.top+f*h,y=f-(o-1)/2,e=0;c>e;e++)l=w.left+e*s,v=e-(c-1)/2,r.clone().appendTo("body").wrap("<div><\/div>").css({position:"absolute",visibility:"visible",left:-e*s,top:-f*h}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:s,height:h,left:l+(u?v*s:0),top:a+(u?y*h:0),opacity:u?0:1}).animate({left:l+(u?0:v*s),top:a+(u?0:y*h),opacity:u?1:0},t.duration||500,t.easing,b)}}(jQuery),function(n){n.effects.effect.fade=function(t,i){var r=n(this),u=n.effects.setMode(r,t.mode||"toggle");r.animate({opacity:u},{queue:!1,duration:t.duration,easing:t.easing,complete:i})}}(jQuery),function(n){n.effects.effect.fold=function(t,i){var r,e,u=n(this),s=["position","top","bottom","left","right","height","width"],h=n.effects.setMode(u,t.mode||"hide"),o="show"===h,c="hide"===h,f=t.size||15,l=/([0-9]+)%/.exec(f),a=!!t.horizFirst,v=o!==a,y=v?["width","height"]:["height","width"],p=t.duration/2,w={},b={};n.effects.save(u,s);u.show();r=n.effects.createWrapper(u).css({overflow:"hidden"});e=v?[r.width(),r.height()]:[r.height(),r.width()];l&&(f=parseInt(l[1],10)/100*e[c?0:1]);o&&r.css(a?{height:0,width:f}:{height:f,width:0});w[y[0]]=o?e[0]:f;b[y[1]]=o?e[1]:0;r.animate(w,p,t.easing).animate(b,p,t.easing,function(){c&&u.hide();n.effects.restore(u,s);n.effects.removeWrapper(u);i()})}}(jQuery),function(n){n.effects.effect.highlight=function(t,i){var r=n(this),u=["backgroundImage","backgroundColor","opacity"],f=n.effects.setMode(r,t.mode||"show"),e={backgroundColor:r.css("backgroundColor")};"hide"===f&&(e.opacity=0);n.effects.save(r,u);r.show().css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(e,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===f&&r.hide();n.effects.restore(r,u);i()}})}}(jQuery),function(n){n.effects.effect.pulsate=function(t,i){var e,r=n(this),o=n.effects.setMode(r,t.mode||"show"),h="show"===o,a="hide"===o,v=h||"hide"===o,s=2*(t.times||5)+(v?1:0),c=t.duration/s,u=0,f=r.queue(),l=f.length;for((h||!r.is(":visible"))&&(r.css("opacity",0).show(),u=1),e=1;s>e;e++)r.animate({opacity:u},c,t.easing),u=1-u;r.animate({opacity:u},c,t.easing);r.queue(function(){a&&r.hide();i()});l>1&&f.splice.apply(f,[1,0].concat(f.splice(l,s+1)));r.dequeue()}}(jQuery),function(n){n.effects.effect.puff=function(t,i){var r=n(this),e=n.effects.setMode(r,t.mode||"hide"),o="hide"===e,s=parseInt(t.percent,10)||150,f=s/100,u={height:r.height(),width:r.width(),outerHeight:r.outerHeight(),outerWidth:r.outerWidth()};n.extend(t,{effect:"scale",queue:!1,fade:!0,mode:e,complete:i,percent:o?s:100,from:o?u:{height:u.height*f,width:u.width*f,outerHeight:u.outerHeight*f,outerWidth:u.outerWidth*f}});r.effect(t)};n.effects.effect.scale=function(t,i){var u=n(this),r=n.extend(!0,{},t),f=n.effects.setMode(u,t.mode||"effect"),s=parseInt(t.percent,10)||(0===parseInt(t.percent,10)?0:"hide"===f?0:100),h=t.direction||"both",c=t.origin,e={height:u.height(),width:u.width(),outerHeight:u.outerHeight(),outerWidth:u.outerWidth()},o={y:"horizontal"!==h?s/100:1,x:"vertical"!==h?s/100:1};r.effect="size";r.queue=!1;r.complete=i;"effect"!==f&&(r.origin=c||["middle","center"],r.restore=!0);r.from=t.from||("show"===f?{height:0,width:0,outerHeight:0,outerWidth:0}:e);r.to={height:e.height*o.y,width:e.width*o.x,outerHeight:e.outerHeight*o.y,outerWidth:e.outerWidth*o.x};r.fade&&("show"===f&&(r.from.opacity=0,r.to.opacity=1),"hide"===f&&(r.from.opacity=1,r.to.opacity=0));u.effect(r)};n.effects.effect.size=function(t,i){var f,l,u,r=n(this),w=["position","top","bottom","left","right","width","height","overflow","opacity"],a=["width","height","overflow"],v=["fontSize"],e=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],o=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],h=n.effects.setMode(r,t.mode||"effect"),y=t.restore||"effect"!==h,c=t.scale||"both",b=t.origin||["middle","center"],k=r.css("position"),s=y?w:["position","top","bottom","left","right","overflow","opacity"],p={height:0,width:0,outerHeight:0,outerWidth:0};"show"===h&&r.show();f={height:r.height(),width:r.width(),outerHeight:r.outerHeight(),outerWidth:r.outerWidth()};"toggle"===t.mode&&"show"===h?(r.from=t.to||p,r.to=t.from||f):(r.from=t.from||("show"===h?p:f),r.to=t.to||("hide"===h?p:f));u={from:{y:r.from.height/f.height,x:r.from.width/f.width},to:{y:r.to.height/f.height,x:r.to.width/f.width}};("box"===c||"both"===c)&&(u.from.y!==u.to.y&&(s=s.concat(e),r.from=n.effects.setTransition(r,e,u.from.y,r.from),r.to=n.effects.setTransition(r,e,u.to.y,r.to)),u.from.x!==u.to.x&&(s=s.concat(o),r.from=n.effects.setTransition(r,o,u.from.x,r.from),r.to=n.effects.setTransition(r,o,u.to.x,r.to)));("content"===c||"both"===c)&&u.from.y!==u.to.y&&(s=s.concat(v).concat(a),r.from=n.effects.setTransition(r,v,u.from.y,r.from),r.to=n.effects.setTransition(r,v,u.to.y,r.to));n.effects.save(r,s);r.show();n.effects.createWrapper(r);r.css("overflow","hidden").css(r.from);b&&(l=n.effects.getBaseline(b,f),r.from.top=(f.outerHeight-r.outerHeight())*l.y,r.from.left=(f.outerWidth-r.outerWidth())*l.x,r.to.top=(f.outerHeight-r.to.outerHeight)*l.y,r.to.left=(f.outerWidth-r.to.outerWidth)*l.x);r.css(r.from);("content"===c||"both"===c)&&(e=e.concat(["marginTop","marginBottom"]).concat(v),o=o.concat(["marginLeft","marginRight"]),a=w.concat(e).concat(o),r.find("*[width]").each(function(){var i=n(this),r={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};y&&n.effects.save(i,a);i.from={height:r.height*u.from.y,width:r.width*u.from.x,outerHeight:r.outerHeight*u.from.y,outerWidth:r.outerWidth*u.from.x};i.to={height:r.height*u.to.y,width:r.width*u.to.x,outerHeight:r.height*u.to.y,outerWidth:r.width*u.to.x};u.from.y!==u.to.y&&(i.from=n.effects.setTransition(i,e,u.from.y,i.from),i.to=n.effects.setTransition(i,e,u.to.y,i.to));u.from.x!==u.to.x&&(i.from=n.effects.setTransition(i,o,u.from.x,i.from),i.to=n.effects.setTransition(i,o,u.to.x,i.to));i.css(i.from);i.animate(i.to,t.duration,t.easing,function(){y&&n.effects.restore(i,a)})}));r.animate(r.to,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){0===r.to.opacity&&r.css("opacity",r.from.opacity);"hide"===h&&r.hide();n.effects.restore(r,s);y||("static"===k?r.css({position:"relative",top:r.to.top,left:r.to.left}):n.each(["top","left"],function(n,t){r.css(t,function(t,i){var f=parseInt(i,10),u=n?r.to.left:r.to.top;return"auto"===i?u+"px":f+u+"px"})}));n.effects.removeWrapper(r);i()}})}}(jQuery),function(n){n.effects.effect.shake=function(t,i){var o,r=n(this),v=["position","top","bottom","left","right","height","width"],k=n.effects.setMode(r,t.mode||"effect"),f=t.direction||"left",s=t.distance||20,y=t.times||3,p=2*y+1,u=Math.round(t.duration/p),h="up"===f||"down"===f?"top":"left",c="up"===f||"left"===f,l={},a={},w={},e=r.queue(),b=e.length;for(n.effects.save(r,v),r.show(),n.effects.createWrapper(r),l[h]=(c?"-=":"+=")+s,a[h]=(c?"+=":"-=")+2*s,w[h]=(c?"-=":"+=")+2*s,r.animate(l,u,t.easing),o=1;y>o;o++)r.animate(a,u,t.easing).animate(w,u,t.easing);r.animate(a,u,t.easing).animate(l,u/2,t.easing).queue(function(){"hide"===k&&r.hide();n.effects.restore(r,v);n.effects.removeWrapper(r);i()});b>1&&e.splice.apply(e,[1,0].concat(e.splice(b,p+1)));r.dequeue()}}(jQuery),function(n){n.effects.effect.slide=function(t,i){var u,r=n(this),s=["position","top","bottom","left","right","width","height"],h=n.effects.setMode(r,t.mode||"show"),c="show"===h,f=t.direction||"left",e="up"===f||"down"===f?"top":"left",o="up"===f||"left"===f,l={};n.effects.save(r,s);r.show();u=t.distance||r["top"===e?"outerHeight":"outerWidth"](!0);n.effects.createWrapper(r).css({overflow:"hidden"});c&&r.css(e,o?isNaN(u)?"-"+u:-u:u);l[e]=(c?o?"+=":"-=":o?"-=":"+=")+u;r.animate(l,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===h&&r.hide();n.effects.restore(r,s);n.effects.removeWrapper(r);i()}})}}(jQuery),function(n){n.effects.effect.transfer=function(t,i){var u=n(this),r=n(t.to),f="fixed"===r.css("position"),e=n("body"),o=f?e.scrollTop():0,s=f?e.scrollLeft():0,h=r.offset(),l={top:h.top-o,left:h.left-s,height:r.innerHeight(),width:r.innerWidth()},c=u.offset(),a=n("<div class='ui-effects-transfer'><\/div>").appendTo(document.body).addClass(t.className).css({top:c.top-o,left:c.left-s,height:u.innerHeight(),width:u.innerWidth(),position:f?"fixed":"absolute"}).animate(l,t.duration,t.easing,function(){a.remove();i()})}}(jQuery),function(n){var b=0,c=0,w=0,o=0,ut="ontouchstart"in window||0<navigator.msMaxTouchPoints,ft="onorientationchange"in window,g=!1,v=!1,l=!1,k=!1,it=!1,y="pointer",nt="pointer",rt=[],e=[],tt=[],s=[],f=[],a=[],u=[],i=[],r=[],d=[],p=[],t={showScrollbar:function(t,i){t.scrollbarHide&&n("."+i).css({opacity:t.scrollbarOpacity,filter:"alpha(opacity:"+100*t.scrollbarOpacity+")"})},hideScrollbar:function(n,i,r,u,f,e,o,s,h,c){if(n.scrollbar&&n.scrollbarHide)for(var l=r;l<r+25;l++)i[i.length]=t.hideScrollbarIntervalTimer(10*l,u[r],(r+24-l)/24,f,e,o,s,h,c,n)},hideScrollbarInterval:function(i,u,f,e,s,h,c,l,a){o=-1*i/r[l]*(s-h-c-e);t.setSliderOffset("."+f,o);n("."+f).css({opacity:a.scrollbarOpacity*u,filter:"alpha(opacity:"+a.scrollbarOpacity*u*100+")"})},slowScrollHorizontalInterval:function(e,s,h,c,l,v,y,p,w,b,k,g,nt,tt,it,rt,ut,ft,et){var ot,st,lt,at,ht,ct;if(et.infiniteSlider){if(h<=-1*r[rt]||h<=-1*d[rt])for(ot=n(e).width(),h<=-1*d[rt]&&(st=-1*k[0],n(s).each(function(i){t.setSliderOffset(n(s)[i],st+ut);i<g.length&&(g[i]=-1*st);st+=it[i]}),h+=-1*g[0],i[rt]=-1*g[0]+ut,r[rt]=i[rt]+ot-v,u[rt]=0);h<=-1*r[rt];)lt=0,at=t.getSliderOffset(n(s[0]),"x"),n(s).each(function(n){t.getSliderOffset(this,"x")<at&&(at=t.getSliderOffset(this,"x"),lt=n)}),nt=i[rt]+ot,t.setSliderOffset(n(s)[lt],nt),i[rt]=-1*g[1]+ut,r[rt]=i[rt]+ot-v,g.splice(0,1),g.splice(g.length,0,-1*nt+ut),u[rt]++;if(h>=-1*i[rt]||0<=h){if(ot=n(e).width(),0<h)for(st=-1*k[0],n(s).each(function(i){t.setSliderOffset(n(s)[i],st+ut);i<g.length&&(g[i]=-1*st);st+=it[i]}),h-=-1*g[0],i[rt]=-1*g[0]+ut,r[rt]=i[rt]+ot-v,u[rt]=tt;0<-1*g[0]-ot+ut;)ht=0,ct=t.getSliderOffset(n(s[0]),"x"),n(s).each(function(n){t.getSliderOffset(this,"x")>ct&&(ct=t.getSliderOffset(this,"x"),ht=n)}),nt=i[rt]-it[ht],t.setSliderOffset(n(s)[ht],nt),g.splice(0,0,-1*nt+ut),g.splice(g.length-1,1),i[rt]=-1*g[0]+ut,r[rt]=i[rt]+ot-v,u[rt]--,f[rt]++;for(;h>-1*i[rt];)ht=0,ct=t.getSliderOffset(n(s[0]),"x"),n(s).each(function(n){t.getSliderOffset(this,"x")>ct&&(ct=t.getSliderOffset(this,"x"),ht=n)}),nt=i[rt]-it[ht],t.setSliderOffset(n(s)[ht],nt),g.splice(0,0,-1*nt+ut),g.splice(g.length-1,1),i[rt]=-1*g[0]+ut,r[rt]=i[rt]+ot-v,u[rt]--}}if(k=!1,v=t.calcActiveOffset(et,h,g,v,u[rt],tt,b,rt),nt=(v+u[rt]+tt)%tt,et.infiniteSlider?nt!=a[rt]&&(k=!0):v!=f[rt]&&(k=!0),k&&(tt=new t.args("change",et,e,n(e).children(":eq("+nt+")"),nt,ft),n(e).parent().data("args",tt),""!=et.onSlideChange))et.onSlideChange(tt);if(f[rt]=v,a[rt]=nt,h=Math.floor(h),rt!=n(e).parent().data("args").data.sliderNumber)return!0;t.setSliderOffset(e,h);et.scrollbar&&(o=Math.floor((-1*h-i[rt]+ut)/(r[rt]-i[rt]+ut)*(y-p-l)),e=l-w,h>=-1*i[rt]+ut?(e=l-w- -1*o,t.setSliderOffset(n("."+c),0)):(h<=-1*r[rt]+1&&(e=y-p-w-o),t.setSliderOffset(n("."+c),o)),n("."+c).css({width:e+"px"}))},slowScrollHorizontal:function(e,o,h,c,l,v,y,p,w,b,k,d,g,nt,tt,it,rt,ut,ft,et,ot){var st=t.getSliderOffset(e,"x"),at,lt,vt,ct,ht;for(v=[],at=0,ct=25/1024*p,frictionCoefficient=ot.frictionCoefficient,elasticFrictionCoefficient=ot.elasticFrictionCoefficient,snapFrictionCoefficient=ot.snapFrictionCoefficient,l>ot.snapVelocityThreshold&&ot.snapToChildren&&!ft?at=1:l<-1*ot.snapVelocityThreshold&&ot.snapToChildren&&!ft&&(at=-1),l<-1*ct?l=-1*ct:l>ct&&(l=ct),n(e)[0]!==n(ut)[0]&&(at*=-1,l*=-2),ut=u[tt],ot.infiniteSlider&&(lt=i[tt],vt=r[tt]),ft=[],ct=[],ht=0;ht<g.length;ht++)ft[ht]=g[ht],ht<o.length&&(ct[ht]=t.getSliderOffset(n(o[ht]),"x"));for(;1<l||-1>l;){if(l*=frictionCoefficient,st+=l,(st>-1*i[tt]||st<-1*r[tt])&&!ot.infiniteSlider&&(l*=elasticFrictionCoefficient,st+=l),ot.infiniteSlider){if(st<=-1*vt){for(var vt=n(e).width(),yt=0,pt=ct[0],ht=0;ht<ct.length;ht++)ct[ht]<pt&&(pt=ct[ht],yt=ht);ht=lt+vt;ct[yt]=ht;lt=-1*ft[1]+et;vt=lt+vt-p;ft.splice(0,1);ft.splice(ft.length,0,-1*ht+et);ut++}if(st>=-1*lt){for(vt=n(e).width(),yt=0,pt=ct[0],ht=0;ht<ct.length;ht++)ct[ht]>pt&&(pt=ct[ht],yt=ht);ht=lt-nt[yt];ct[yt]=ht;ft.splice(0,0,-1*ht+et);ft.splice(ft.length-1,1);lt=-1*ft[0]+et;vt=lt+vt-p;ut--}}v[v.length]=st}if(ct=!1,l=t.calcActiveOffset(ot,st,ft,p,ut,rt,f[tt],tt),lt=(l+ut+rt)%rt,ot.snapToChildren&&(ot.infiniteSlider?lt!=a[tt]&&(ct=!0):l!=f[tt]&&(ct=!0),0>at&&!ct?(l++,l>=g.length&&!ot.infiniteSlider&&(l=g.length-1)):0<at&&!ct&&(l--,0>l&&!ot.infiniteSlider&&(l=0))),ot.snapToChildren||(st>-1*i[tt]||st<-1*r[tt])&&!ot.infiniteSlider){for((st>-1*i[tt]||st<-1*r[tt])&&!ot.infiniteSlider?v.splice(0,v.length):(v.splice(.1*v.length,v.length),st=0<v.length?v[v.length-1]:st);st<ft[l]-.5||st>ft[l]+.5;)st=(st-ft[l])*snapFrictionCoefficient+ft[l],v[v.length]=st;v[v.length]=ft[l]}for(at=1,0!=v.length%2&&(at=0),st=0;st<h.length;st++)clearTimeout(h[st]);for(ut=(l+ut+rt)%rt,lt=0,st=at;st<v.length;st+=2)(st==at||1<Math.abs(v[st]-lt)||st>=v.length-2)&&(lt=v[st],h[h.length]=t.slowScrollHorizontalIntervalTimer(10*st,e,o,v[st],c,y,p,w,b,k,l,d,g,it,rt,nt,tt,et,ut,ot));lt=(l+u[tt]+rt)%rt;""!=ot.onSlideComplete&&1<v.length&&(h[h.length]=t.onSlideCompleteTimer(10*(st+1),ot,e,n(e).children(":eq("+lt+")"),ut,tt));h[h.length]=t.updateBackfaceVisibilityTimer(10*(st+1),o,tt,rt,ot);s[tt]=h;t.hideScrollbar(ot,h,st,v,c,y,p,b,k,tt)},onSlideComplete:function(i,r,u,f){if(u=new t.args("complete",i,n(r),u,f,f),n(r).parent().data("args",u),""!=i.onSlideComplete)i.onSlideComplete(u)},getSliderOffset:function(t,i){var r=0,f,u;if(i="x"==i?4:5,!g||v||l)r=parseInt(n(t).css("left"),10);else{for(r=["-webkit-transform","-moz-transform","transform"],u=0;u<r.length;u++)if(void 0!=n(t).css(r[u])&&0<n(t).css(r[u]).length){f=n(t).css(r[u]).split(",");break}r=void 0==f[i]?0:parseInt(f[i],10)}return r},setSliderOffset:function(t,i){i=parseInt(i,10);!g||v||l?n(t).css({left:i+"px"}):n(t).css({msTransform:"matrix(1,0,0,1,"+i+",0)",webkitTransform:"matrix(1,0,0,1,"+i+",0)",MozTransform:"matrix(1,0,0,1,"+i+",0)",transform:"matrix(1,0,0,1,"+i+",0)"})},setBrowserInfo:function(){null!=navigator.userAgent.match("WebKit")?(y="-webkit-grab",nt="-webkit-grabbing"):null!=navigator.userAgent.match("Gecko")?(it=!0,y="move",nt="-moz-grabbing"):null!=navigator.userAgent.match("MSIE 7")?k=v=!0:null!=navigator.userAgent.match("MSIE 8")?k=l=!0:null!=navigator.userAgent.match("MSIE 9")&&(k=!0)},has3DTransform:function(){var t=!1,i=n("<div />").css({msTransform:"matrix(1,1,1,1,1,1)",webkitTransform:"matrix(1,1,1,1,1,1)",MozTransform:"matrix(1,1,1,1,1,1)",transform:"matrix(1,1,1,1,1,1)"});return""==i.attr("style")?t=!1:it&&21<=parseInt(navigator.userAgent.split("/")[3],10)?t=!1:void 0!=i.attr("style")&&(t=!0),t},getSlideNumber:function(n,t,i){return(n-u[t]+i)%i},calcActiveOffset:function(n,t,i,r,u,f,e){u=!1;n=[];var o;for(t>i[0]&&(o=0),t<i[i.length-1]&&(o=f-1),f=0;f<i.length;f++)i[f]<=t&&i[f]>t-r&&(u||i[f]==t||(n[n.length]=i[f-1]),n[n.length]=i[f],u=!0);for(0==n.length&&(n[0]=i[i.length-1]),f=u=0;f<n.length;f++)e=Math.abs(t-n[f]),e<r&&(u=n[f],r=e);for(f=0;f<i.length;f++)u==i[f]&&(o=f);return o},changeSlide:function(i,r,e,o,h,c,l,v,y,p,w,b,k,d,g,nt,tt,it){var rt;for(t.autoSlidePause(d),rt=0;rt<o.length;rt++)clearTimeout(o[rt]);var st=Math.ceil(it.autoSlideTransTimer/10)+1,ft=t.getSliderOffset(r,"x"),ut=b[i],ut=ut-ft,et=i-(f[d]+u[d]+nt)%nt;if(it.infiniteSlider){i=(i-u[d]+2*nt)%nt;rt=!1;0==i&&2==nt&&(i=nt,b[i]=b[i-1]-n(e).eq(0).outerWidth(!0),rt=!0);var ut=b[i],ut=ut-ft,ot=[b[i]-n(r).width(),b[i]+n(r).width()];for(rt&&b.splice(b.length-1,1),rt=0;rt<ot.length;rt++)Math.abs(ot[rt]-ft)<Math.abs(ut)&&(ut=ot[rt]-ft)}for(0>ut&&-1==et?ut+=n(r).width():0<ut&&1==et&&(ut-=n(r).width()),et=[],t.showScrollbar(it,h),rt=0;rt<=st;rt++)ot=rt,ot/=st,ot--,ot=ft+ut*(Math.pow(ot,5)+1),et[et.length]=ot;for(st=(i+u[d]+nt)%nt,rt=ft=0;rt<et.length;rt++)(0==rt||1<Math.abs(et[rt]-ft)||rt>=et.length-2)&&(ft=et[rt],o[rt]=t.slowScrollHorizontalIntervalTimer(10*(rt+1),r,e,et[rt],h,c,l,v,y,p,i,w,b,g,nt,k,d,tt,st,it)),0==rt&&""!=it.onSlideStart&&(ut=(f[d]+u[d]+nt)%nt,it.onSlideStart(new t.args("start",it,r,n(r).children(":eq("+ut+")"),ut,i)));ft=!1;it.infiniteSlider?st!=a[d]&&(ft=!0):i!=f[d]&&(ft=!0);ft&&""!=it.onSlideComplete&&(o[o.length]=t.onSlideCompleteTimer(10*(rt+1),it,r,n(r).children(":eq("+st+")"),st,d));s[d]=o;t.hideScrollbar(it,o,rt,et,h,c,l,y,p,d);t.autoSlide(r,e,o,h,c,l,v,y,p,w,b,k,d,g,nt,tt,it)},changeOffset:function(e,o,h,c,l,v,y,p,w,b,k,d,g,nt,tt,it,rt,ut){var et,ct,ht;for(t.autoSlidePause(nt),et=0;et<c.length;et++)clearTimeout(c[et]);ut.infiniteSlider||(e=e>-1*i[nt]+rt?-1*i[nt]+rt:e,e=e<-1*r[nt]?-1*r[nt]:e);var ot=Math.ceil(ut.autoSlideTransTimer/10)+1,st=t.getSliderOffset(o,"x"),et=(t.calcActiveOffset(ut,e,d,y,u,it,f[nt],nt)+u[nt]+it)%it,ft=d.slice();if(ut.snapToChildren&&!ut.infiniteSlider)e=d[et];else if(ut.infiniteSlider&&ut.snapToChildren){for(;e>=ft[0];)ft.splice(0,0,ft[it-1]+n(o).width()),ft.splice(it,1);for(;e<=ft[it-1];)ft.splice(it,0,ft[0]-n(o).width()),ft.splice(0,1);et=t.calcActiveOffset(ut,e,ft,y,u,it,f[nt],nt);e=ft[et]}for(ct=e-st,e=[],t.showScrollbar(ut,l),ft=0;ft<=ot;ft++)ht=ft,ht/=ot,ht--,ht=st+ct*(Math.pow(ht,5)+1),e[e.length]=ht;for(ot=(et+u[nt]+it)%it,ft=st=0;ft<e.length;ft++)(0==ft||1<Math.abs(e[ft]-st)||ft>=e.length-2)&&(st=e[ft],c[ft]=t.slowScrollHorizontalIntervalTimer(10*(ft+1),o,h,e[ft],l,v,y,p,w,b,et,k,d,tt,it,g,nt,rt,ot,ut)),0==ft&&""!=ut.onSlideStart&&(ot=(f[nt]+u[nt]+it)%it,ut.onSlideStart(new t.args("start",ut,o,n(o).children(":eq("+ot+")"),ot,et)));st=!1;ut.infiniteSlider?ot!=a[nt]&&(st=!0):et!=f[nt]&&(st=!0);st&&""!=ut.onSlideComplete&&(c[c.length]=t.onSlideCompleteTimer(10*(ft+1),ut,o,n(o).children(":eq("+ot+")"),ot,nt));s[nt]=c;t.hideScrollbar(ut,c,ft,e,l,v,y,w,b,nt);t.autoSlide(o,h,c,l,v,y,p,w,b,k,d,g,nt,tt,it,rt,ut)},autoSlide:function(n,i,r,o,s,h,c,l,a,v,y,p,w,b,k,d,g){if(!e[w].autoSlide)return!1;t.autoSlidePause(w);rt[w]=setTimeout(function(){!g.infiniteSlider&&f[w]>y.length-1&&(f[w]-=k);t.changeSlide(f[w]+u[w]+1,n,i,r,o,s,h,c,l,a,v,y,p,w,b,k,d,g);t.autoSlide(n,i,r,o,s,h,c,l,a,v,y,p,w,b,k,d,g)},g.autoSlideTimer+g.autoSlideTransTimer)},autoSlidePause:function(n){clearTimeout(rt[n])},isUnselectable:function(t,i){return""!=i.unselectableSelector&&1==n(t).closest(i.unselectableSelector).length?!0:!1},slowScrollHorizontalIntervalTimer:function(n,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d,g){return setTimeout(function(){t.slowScrollHorizontalInterval(i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d,g)},n)},onSlideCompleteTimer:function(n,i,r,u,f,e){return setTimeout(function(){t.onSlideComplete(i,r,u,f,e)},n)},hideScrollbarIntervalTimer:function(n,i,r,u,f,e,o,s,h,c){return setTimeout(function(){t.hideScrollbarInterval(i,r,u,f,e,o,s,h,c)},n)},updateBackfaceVisibilityTimer:function(n,i,r,u,f){return setTimeout(function(){t.updateBackfaceVisibility(i,r,u,f)},n)},updateBackfaceVisibility:function(i,r,e,o){var h,c,s,l,a;for(r=(f[r]+u[r]+e)%e,h=[],c=0;c<2*o.hardwareAccelBuffer;c++)s=t.mod(r+c-o.hardwareAccelBuffer,e),"visible"==n(i).eq(s).css("-webkit-backface-visibility")&&(h[h.length]=s,l=t.mod(s+2*o.hardwareAccelBuffer,e),a=t.mod(s-2*o.hardwareAccelBuffer,e),n(i).eq(s).css("-webkit-backface-visibility","hidden"),-1==h.indexOf(a)&&n(i).eq(a).css("-webkit-backface-visibility",""),-1==h.indexOf(l)&&n(i).eq(l).css("-webkit-backface-visibility",""))},mod:function(n,t){var i=n%t;return 0>i?i+t:i},args:function(i,r,u,f,e,o){this.prevSlideNumber=void 0==n(u).parent().data("args")?void 0:n(u).parent().data("args").prevSlideNumber;this.prevSlideObject=void 0==n(u).parent().data("args")?void 0:n(u).parent().data("args").prevSlideObject;this.targetSlideNumber=o+1;this.targetSlideObject=n(u).children(":eq("+o+")");this.slideChanged=!1;"load"==i?this.targetSlideObject=this.targetSlideNumber=void 0:"start"==i?this.targetSlideObject=this.targetSlideNumber=void 0:"change"==i?(this.slideChanged=!0,this.prevSlideNumber=void 0==n(u).parent().data("args")?r.startAtSlide:n(u).parent().data("args").currentSlideNumber,this.prevSlideObject=n(u).children(":eq("+this.prevSlideNumber+")")):"complete"==i&&(this.slideChanged=n(u).parent().data("args").slideChanged);this.settings=r;this.data=n(u).parent().data("iosslider");this.sliderObject=u;this.sliderContainerObject=n(u).parent();this.currentSlideObject=f;this.currentSlideNumber=e+1;this.currentSliderOffset=-1*t.getSliderOffset(u,"x")},preventDrag:function(n){n.preventDefault()},preventClick:function(n){return n.stopImmediatePropagation(),!1},enableClick:function(){return!0}},h;t.setBrowserInfo();h={init:function(it,rt){g=t.has3DTransform();var et=n.extend(!0,{elasticPullResistance:.6,frictionCoefficient:.92,elasticFrictionCoefficient:.6,snapFrictionCoefficient:.92,snapToChildren:!1,snapSlideCenter:!1,startAtSlide:1,scrollbar:!1,scrollbarDrag:!1,scrollbarHide:!0,scrollbarPaging:!1,scrollbarLocation:"top",scrollbarContainer:"",scrollbarOpacity:.4,scrollbarHeight:"4px",scrollbarBorder:"0",scrollbarMargin:"5px",scrollbarBackground:"#000",scrollbarBorderRadius:"100px",scrollbarShadow:"0 0 0 #000",scrollbarElasticPullResistance:.9,desktopClickDrag:!1,keyboardControls:!1,tabToAdvance:!1,responsiveSlideContainer:!0,responsiveSlides:!0,navSlideSelector:"",navPrevSelector:"",navNextSelector:"",autoSlideToggleSelector:"",autoSlide:!1,autoSlideTimer:5e3,autoSlideTransTimer:750,autoSlideHoverPause:!0,infiniteSlider:!1,snapVelocityThreshold:5,slideStartVelocityThreshold:0,horizontalSlideLockThreshold:5,verticalSlideLockThreshold:3,hardwareAccelBuffer:5,stageCSS:{position:"relative",top:"0",left:"0",overflow:"hidden",zIndex:1},unselectableSelector:"",onSliderLoaded:"",onSliderUpdate:"",onSliderResize:"",onSlideStart:"",onSlideChange:"",onSlideComplete:""},it);return void 0==rt&&(rt=this),n(rt).each(function(g){function cr(){var o,s,c,l,h,v,p;for(t.autoSlidePause(it),or=n(ht).find("a"),yr=n(ht).find("[onclick]"),gi=n(ht).find("*"),n(bt).css("width",""),n(bt).css("height",""),n(ht).css("width",""),st=n(ht).children().not("script").get(),ai=[],vt=[],et.responsiveSlides&&n(st).css("width",""),r[it]=0,rt=[],ir=n(bt).parent().width(),ct=n(bt).outerWidth(!0),et.responsiveSlideContainer&&(ct=n(bt).outerWidth(!0)>ir?ir:n(bt).width()),n(bt).css({position:et.stageCSS.position,top:et.stageCSS.top,left:et.stageCSS.left,overflow:et.stageCSS.overflow,zIndex:et.stageCSS.zIndex,webkitPerspective:1e3,webkitBackfaceVisibility:"hidden",msTouchAction:"pan-y",width:ct}),n(et.unselectableSelector).css({cursor:"default"}),o=0;o<st.length;o++)ai[o]=n(st[o]).width(),vt[o]=n(st[o]).outerWidth(!0),s=vt[o],et.responsiveSlides&&(vt[o]>ct?(s=ct+-1*(vt[o]-ai[o]),ai[o]=s,vt[o]=ct):s=ai[o],n(st[o]).css({width:s})),n(st[o]).css({overflow:"hidden",position:"absolute"}),rt[o]=-1*r[it],r[it]=r[it]+s+(vt[o]-ai[o]);for(et.snapSlideCenter&&(ot=.5*(ct-vt[0]),et.responsiveSlides&&vt[0]>ct&&(ot=0)),d[it]=2*r[it],o=0;o<st.length;o++)t.setSliderOffset(n(st[o]),-1*rt[o]+r[it]+ot),rt[o]-=r[it];if(!et.infiniteSlider&&!et.snapSlideCenter){for(o=0;o<rt.length&&!(rt[o]<=-1*(2*r[it]-ct));o++)vr=o;rt.splice(vr+1,rt.length);rt[rt.length]=-1*(2*r[it]-ct)}for(o=0;o<rt.length;o++)gt[o]=rt[o];if(ur&&(e[it].startAtSlide=e[it].startAtSlide>rt.length?rt.length:e[it].startAtSlide,et.infiniteSlider?(e[it].startAtSlide=(e[it].startAtSlide-1+lt)%lt,f[it]=e[it].startAtSlide):(e[it].startAtSlide=0>e[it].startAtSlide-1?rt.length-1:e[it].startAtSlide,f[it]=e[it].startAtSlide-1),a[it]=f[it]),i[it]=r[it]+ot,n(ht).css({position:"relative",cursor:y,webkitPerspective:"0",webkitBackfaceVisibility:"hidden",width:r[it]+"px"}),fi=r[it],r[it]=2*r[it]-ct+2*ot,(ri=fi+ot<ct||0==ct?!0:!1)&&n(ht).css({cursor:"default"}),rr=n(bt).parent().outerHeight(!0),yi=n(bt).height(),et.responsiveSlideContainer&&(yi=yi>rr?rr:yi),n(bt).css({height:yi}),t.setSliderOffset(ht,rt[f[it]]),et.infiniteSlider&&!ri){for(o=t.getSliderOffset(n(ht),"x"),s=(u[it]+lt)%lt*-1;0>s;)c=0,l=t.getSliderOffset(n(st[0]),"x"),n(st).each(function(n){t.getSliderOffset(this,"x")<l&&(l=t.getSliderOffset(this,"x"),c=n)}),h=i[it]+fi,t.setSliderOffset(n(st)[c],h),i[it]=-1*rt[1]+ot,r[it]=i[it]+fi-ct,rt.splice(0,1),rt.splice(rt.length,0,-1*h+ot),s++;for(;0<-1*rt[0]-fi+ot&&et.snapSlideCenter&&ur;)v=0,p=t.getSliderOffset(n(st[0]),"x"),n(st).each(function(n){t.getSliderOffset(this,"x")>p&&(p=t.getSliderOffset(this,"x"),v=n)}),h=i[it]-vt[v],t.setSliderOffset(n(st)[v],h),rt.splice(0,0,-1*h+ot),rt.splice(rt.length-1,1),i[it]=-1*rt[0]+ot,r[it]=i[it]+fi-ct,u[it]--,f[it]++;for(;o<=-1*r[it];)c=0,l=t.getSliderOffset(n(st[0]),"x"),n(st).each(function(n){t.getSliderOffset(this,"x")<l&&(l=t.getSliderOffset(this,"x"),c=n)}),h=i[it]+fi,t.setSliderOffset(n(st)[c],h),i[it]=-1*rt[1]+ot,r[it]=i[it]+fi-ct,rt.splice(0,1),rt.splice(rt.length,0,-1*h+ot),u[it]++,f[it]--}return t.setSliderOffset(ht,rt[f[it]]),t.updateBackfaceVisibility(st,it,lt,et),et.desktopClickDrag||n(ht).css({cursor:"default"}),et.scrollbar&&(n("."+dt).css({margin:et.scrollbarMargin,overflow:"hidden",display:"none"}),n("."+dt+" ."+at).css({border:et.scrollbarBorder}),wt=parseInt(n("."+dt).css("marginLeft"))+parseInt(n("."+dt).css("marginRight")),kt=parseInt(n("."+dt+" ."+at).css("borderLeftWidth"),10)+parseInt(n("."+dt+" ."+at).css("borderRightWidth"),10),pt=""!=et.scrollbarContainer?n(et.scrollbarContainer).width():ct,yt=ct/fi*(pt-wt),et.scrollbarHide||(fr=et.scrollbarOpacity),n("."+dt).css({position:"absolute",left:0,width:pt-wt+"px",margin:et.scrollbarMargin}),"top"==et.scrollbarLocation?n("."+dt).css("top","0"):n("."+dt).css("bottom","0"),n("."+dt+" ."+at).css({borderRadius:et.scrollbarBorderRadius,background:et.scrollbarBackground,height:et.scrollbarHeight,width:yt-kt+"px",minWidth:et.scrollbarHeight,border:et.scrollbarBorder,webkitPerspective:1e3,webkitBackfaceVisibility:"hidden",position:"relative",opacity:fr,filter:"alpha(opacity:"+100*fr+")",boxShadow:et.scrollbarShadow}),t.setSliderOffset(n("."+dt+" ."+at),Math.floor((-1*rt[f[it]]-i[it]+ot)/(r[it]-i[it]+ot)*(pt-wt-yt))),n("."+dt).css({display:"block"}),ii=n("."+dt+" ."+at),bi=n("."+dt)),et.scrollbarDrag&&!ri&&n("."+dt+" ."+at).css({cursor:y}),et.infiniteSlider&&(ti=(r[it]+ct)/3),""!=et.navSlideSelector&&n(et.navSlideSelector).each(function(i){n(this).css({cursor:"pointer"});n(this).unbind(ui).bind(ui,function(r){"touchstart"==r.type?n(this).unbind("click.iosSliderEvent"):n(this).unbind("touchstart.iosSliderEvent");ui=r.type+".iosSliderEvent";t.changeSlide(i,ht,st,ni,at,yt,ct,pt,wt,kt,gt,rt,vt,it,ti,lt,ot,et)})}),""!=et.navPrevSelector&&(n(et.navPrevSelector).css({cursor:"pointer"}),n(et.navPrevSelector).unbind(ui).bind(ui,function(i){"touchstart"==i.type?n(this).unbind("click.iosSliderEvent"):n(this).unbind("touchstart.iosSliderEvent");ui=i.type+".iosSliderEvent";i=(f[it]+u[it]+lt)%lt;(0<i||et.infiniteSlider)&&t.changeSlide(i-1,ht,st,ni,at,yt,ct,pt,wt,kt,gt,rt,vt,it,ti,lt,ot,et)})),""!=et.navNextSelector&&(n(et.navNextSelector).css({cursor:"pointer"}),n(et.navNextSelector).unbind(ui).bind(ui,function(i){"touchstart"==i.type?n(this).unbind("click.iosSliderEvent"):n(this).unbind("touchstart.iosSliderEvent");ui=i.type+".iosSliderEvent";i=(f[it]+u[it]+lt)%lt;(i<rt.length-1||et.infiniteSlider)&&t.changeSlide(i+1,ht,st,ni,at,yt,ct,pt,wt,kt,gt,rt,vt,it,ti,lt,ot,et)})),et.autoSlide&&!ri&&""!=et.autoSlideToggleSelector&&(n(et.autoSlideToggleSelector).css({cursor:"pointer"}),n(et.autoSlideToggleSelector).unbind(ui).bind(ui,function(i){"touchstart"==i.type?n(this).unbind("click.iosSliderEvent"):n(this).unbind("touchstart.iosSliderEvent");ui=i.type+".iosSliderEvent";vi?(t.autoSlide(ht,st,ni,at,yt,ct,pt,wt,kt,gt,rt,vt,it,ti,lt,ot,et),vi=!1,n(et.autoSlideToggleSelector).removeClass("on")):(t.autoSlidePause(it),vi=!0,n(et.autoSlideToggleSelector).addClass("on"))})),t.autoSlide(ht,st,ni,at,yt,ct,pt,wt,kt,gt,rt,vt,it,ti,lt,ot,et),n(bt).bind("mouseleave.iosSliderEvent",function(){if(vi)return!0;t.autoSlide(ht,st,ni,at,yt,ct,pt,wt,kt,gt,rt,vt,it,ti,lt,ot,et)}),n(bt).bind("touchend.iosSliderEvent",function(){if(vi)return!0;t.autoSlide(ht,st,ni,at,yt,ct,pt,wt,kt,gt,rt,vt,it,ti,lt,ot,et)}),et.autoSlideHoverPause&&n(bt).bind("mouseenter.iosSliderEvent",function(){t.autoSlidePause(it)}),n(bt).data("iosslider",{obj:sr,settings:et,scrollerNode:ht,slideNodes:st,numberOfSlides:lt,centeredSlideOffset:ot,sliderNumber:it,originalOffsets:gt,childrenOffsets:rt,sliderMax:r[it],scrollbarClass:at,scrollbarWidth:yt,scrollbarStageWidth:pt,stageWidth:ct,scrollMargin:wt,scrollBorder:kt,infiniteSliderOffset:u[it],infiniteSliderWidth:ti,slideNodeOuterWidths:vt,shortContent:ri}),ur=!1,!0}var it,ni,ri,vi,sr,hi,nr,wi,tr,hr;b++;it=b;ni=[];e[it]=n.extend({},et);i[it]=0;r[it]=0;var ci=[0,0],li=[0,0],dt="scrollbarBlock"+b,at="scrollbar"+b,ii,bi,pt,yt,ir,rr,ot=0,bt=n(this),ct,yi,wt,kt,lr,ur=!0;g=-1;var rt,gt=[],fr=0,oi=0,ar=0,ht=n(this).children(":first-child"),st,ai,vt,lt=n(ht).children().not("script").length,ei=!1,vr=0,er=!1,ki=void 0,ti;u[it]=0;ri=!1;vi=!1;tt[it]=!1;var si,di=!1,pi=!1,ui="touchstart.iosSliderEvent click.iosSliderEvent",fi,or,yr,gi;if((p[it]=!1,s[it]=[],et.scrollbarDrag&&(et.scrollbar=!0,et.scrollbarHide=!1),sr=n(this),void 0!=sr.data("iosslider"))||(14.2<=parseInt(n().jquery.split(".").join(""),10)?n(this).delegate("img","dragstart.iosSliderEvent",function(n){n.preventDefault()}):n(this).find("img").bind("dragstart.iosSliderEvent",function(n){n.preventDefault()}),et.infiniteSlider&&(et.scrollbar=!1),et.infiniteSlider&&1==lt&&(et.infiniteSlider=!1),et.scrollbar&&(""!=et.scrollbarContainer?n(et.scrollbarContainer).append("<div class = '"+dt+"'><div class = '"+at+"'><\/div><\/div>"):n(ht).parent().append("<div class = '"+dt+"'><div class = '"+at+"'><\/div><\/div>")),!cr()))return!0;if(n(this).find("a").bind("mousedown",t.preventDrag),n(this).find("[onclick]").bind("click",t.preventDrag).each(function(){n(this).data("onclick",this.onclick)}),g=t.calcActiveOffset(et,t.getSliderOffset(n(ht),"x"),rt,ct,u[it],lt,void 0,it),g=(g+u[it]+lt)%lt,g=new t.args("load",et,ht,n(ht).children(":eq("+g+")"),g,g),n(bt).data("args",g),""!=et.onSliderLoaded)et.onSliderLoaded(g);et.scrollbarPaging&&et.scrollbar&&!ri&&(n(bi).css("cursor","pointer"),n(bi).bind("click.iosSliderEvent",function(t){this==t.target&&(t.pageX>n(ii).offset().left?h.nextPage(bt):h.prevPage(bt))}));(e[it].responsiveSlides||e[it].responsiveSlideContainer)&&(g=ft?"orientationchange":"resize",n(window).bind(g+".iosSliderEvent-"+it,function(){if(!cr())return!0;var t=n(bt).data("args");if(""!=et.onSliderResize)et.onSliderResize(t)}));(et.keyboardControls||et.tabToAdvance)&&!ri&&n(document).bind("keydown.iosSliderEvent",function(n){if(v||l||(n=n.originalEvent),"INPUT"==n.target.nodeName||p[it])return!0;37==n.keyCode&&et.keyboardControls?(n.preventDefault(),n=(f[it]+u[it]+lt)%lt,(0<n||et.infiniteSlider)&&t.changeSlide(n-1,ht,st,ni,at,yt,ct,pt,wt,kt,gt,rt,vt,it,ti,lt,ot,et)):(39==n.keyCode&&et.keyboardControls||9==n.keyCode&&et.tabToAdvance)&&(n.preventDefault(),n=(f[it]+u[it]+lt)%lt,(n<rt.length-1||et.infiniteSlider)&&t.changeSlide(n+1,ht,st,ni,at,yt,ct,pt,wt,kt,gt,rt,vt,it,ti,lt,ot,et))});(ut||et.desktopClickDrag)&&(hi=!1,nr=!1,g=n(ht),wi=n(ht),tr=!1,et.scrollbarDrag&&(g=g.add(ii),wi=wi.add(bi)),n(g).bind("mousedown.iosSliderEvent touchstart.iosSliderEvent",function(u){n(window).one("scroll.iosSliderEvent",function(){hi=!1});if(hi)return!0;if(hi=!0,nr=!1,"touchstart"==u.type?n(wi).unbind("mousedown.iosSliderEvent"):n(wi).unbind("touchstart.iosSliderEvent"),p[it]||ri||(tr=t.isUnselectable(u.target,et)))return ei=hi=!1,!0;if(si=n(this)[0]===n(ii)[0]?ii:ht,v||l||(u=u.originalEvent),t.autoSlidePause(it),gi.unbind(".disableClick"),"touchstart"==u.type)eventX=u.touches[0].pageX,eventY=u.touches[0].pageY;else{if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges();else if(document.selection)if(l)try{document.selection.empty()}catch(f){}else document.selection.empty();eventX=u.pageX;eventY=u.pageY;er=!0;ki=ht;n(this).css({cursor:nt})}for(ci=[0,0],li=[0,0],c=0,ei=!1,u=0;u<ni.length;u++)clearTimeout(ni[u]);u=t.getSliderOffset(ht,"x");u>-1*i[it]+ot+fi?(u=-1*i[it]+ot+fi,t.setSliderOffset(n("."+at),u),n("."+at).css({width:yt-kt+"px"})):u<-1*r[it]&&(u=-1*r[it],t.setSliderOffset(n("."+at),pt-wt-yt),n("."+at).css({width:yt-kt+"px"}));u=n(this)[0]===n(ii)[0]?i[it]:0;oi=-1*(t.getSliderOffset(this,"x")-eventX-u);t.getSliderOffset(this,"y");ci[1]=eventX;li[1]=eventY;pi=!1}),n(document).bind("touchmove.iosSliderEvent mousemove.iosSliderEvent",function(e){var y,s,b,g,dt,ni,nt,ft;if(v||l||(e=e.originalEvent),p[it]||ri||tr||!hi)return!0;if(y=0,"touchmove"==e.type)eventX=e.touches[0].pageX,eventY=e.touches[0].pageY;else{if(window.getSelection)window.getSelection().empty||window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges();else if(document.selection)if(l)try{document.selection.empty()}catch(fi){}else document.selection.empty();if(eventX=e.pageX,eventY=e.pageY,!er||!k&&("undefined"!=typeof e.webkitMovementX||"undefined"!=typeof e.webkitMovementY)&&0===e.webkitMovementY&&0===e.webkitMovementX)return!0}if(ci[0]=ci[1],ci[1]=eventX,c=(ci[1]-ci[0])/2,li[0]=li[1],li[1]=eventY,w=(li[1]-li[0])/2,!ei&&(s=(f[it]+u[it]+lt)%lt,s=new t.args("start",et,ht,n(ht).children(":eq("+s+")"),s,void 0),n(bt).data("args",s),""!=et.onSlideStart))et.onSlideStart(s);if((w>et.verticalSlideLockThreshold||w<-1*et.verticalSlideLockThreshold)&&"touchmove"==e.type&&!ei&&(di=!0),(c>et.horizontalSlideLockThreshold||c<-1*et.horizontalSlideLockThreshold)&&"touchmove"==e.type&&e.preventDefault(),(c>et.slideStartVelocityThreshold||c<-1*et.slideStartVelocityThreshold)&&(ei=!0),ei&&!di){var s=t.getSliderOffset(ht,"x"),tt=n(si)[0]===n(ii)[0]?i[it]:ot,ut=n(si)[0]===n(ii)[0]?(i[it]-r[it]-ot)/(pt-wt-yt):1,h=n(si)[0]===n(ii)[0]?et.scrollbarElasticPullResistance:et.elasticPullResistance,ti=et.snapSlideCenter&&n(si)[0]===n(ii)[0]?0:ot,ui=et.snapSlideCenter&&n(si)[0]===n(ii)[0]?ot:0;if("touchmove"==e.type&&(ar!=e.touches.length&&(oi=-1*s+eventX),ar=e.touches.length),et.infiniteSlider){if(s<=-1*r[it]&&(b=n(ht).width(),s<=-1*d[it]?(g=-1*gt[0],n(st).each(function(i){t.setSliderOffset(n(st)[i],g+ot);i<rt.length&&(rt[i]=-1*g);g+=vt[i]}),oi-=-1*rt[0],i[it]=-1*rt[0]+ot,r[it]=i[it]+b-ct,u[it]=0):(dt=0,ni=t.getSliderOffset(n(st[0]),"x"),n(st).each(function(n){t.getSliderOffset(this,"x")<ni&&(ni=t.getSliderOffset(this,"x"),dt=n)}),h=i[it]+b,t.setSliderOffset(n(st)[dt],h),i[it]=-1*rt[1]+ot,r[it]=i[it]+b-ct,rt.splice(0,1),rt.splice(rt.length,0,-1*h+ot),u[it]++)),s>=-1*i[it]||0<=s)if(b=n(ht).width(),0<=s)for(g=-1*gt[0],n(st).each(function(i){t.setSliderOffset(n(st)[i],g+ot);i<rt.length&&(rt[i]=-1*g);g+=vt[i]}),oi+=-1*rt[0],i[it]=-1*rt[0]+ot,r[it]=i[it]+b-ct,u[it]=lt;0<-1*rt[0]-b+ot;)nt=0,ft=t.getSliderOffset(n(st[0]),"x"),n(st).each(function(n){t.getSliderOffset(this,"x")>ft&&(ft=t.getSliderOffset(this,"x"),nt=n)}),h=i[it]-vt[nt],t.setSliderOffset(n(st)[nt],h),rt.splice(0,0,-1*h+ot),rt.splice(rt.length-1,1),i[it]=-1*rt[0]+ot,r[it]=i[it]+b-ct,u[it]--,f[it]++;else nt=0,ft=t.getSliderOffset(n(st[0]),"x"),n(st).each(function(n){t.getSliderOffset(this,"x")>ft&&(ft=t.getSliderOffset(this,"x"),nt=n)}),h=i[it]-vt[nt],t.setSliderOffset(n(st)[nt],h),rt.splice(0,0,-1*h+ot),rt.splice(rt.length-1,1),i[it]=-1*rt[0]+ot,r[it]=i[it]+b-ct,u[it]--}else b=n(ht).width(),s>-1*i[it]+ot&&(y=(i[it]+-1*(oi-tt-eventX+ti)*ut-tt)*h*-1/ut),s<-1*r[it]&&(y=(r[it]+ui+-1*(oi-tt-eventX)*ut-tt)*h*-1/ut);if(t.setSliderOffset(ht,-1*(oi-tt-eventX-y)*ut-tt+ui),et.scrollbar&&(t.showScrollbar(et,at),o=Math.floor((oi-eventX-y-i[it]+ti)/(r[it]-i[it]+ot)*(pt-wt-yt)*ut),s=yt,0>=o?(s=yt-kt- -1*o,t.setSliderOffset(n("."+at),0),n("."+at).css({width:s+"px"})):o>=pt-wt-kt-yt?(s=pt-wt-kt-o,t.setSliderOffset(n("."+at),o),n("."+at).css({width:s+"px"})):t.setSliderOffset(n("."+at),o)),"touchmove"==e.type&&(lr=e.touches[0].pageX),e=!1,y=t.calcActiveOffset(et,-1*(oi-eventX-y),rt,ct,u[it],lt,void 0,it),s=(y+u[it]+lt)%lt,et.infiniteSlider?s!=a[it]&&(e=!0):y!=f[it]&&(e=!0),e){if(f[it]=y,a[it]=s,pi=!0,s=new t.args("change",et,ht,n(ht).children(":eq("+s+")"),s,s),n(bt).data("args",s),""!=et.onSlideChange)et.onSlideChange(s);t.updateBackfaceVisibility(st,it,lt,et)}}}),hr=n(window),(l||v)&&(hr=n(document)),n(g).bind("touchcancel.iosSliderEvent touchend.iosSliderEvent",function(n){if(n=n.originalEvent,nr)return!1;if(nr=!0,p[it]||ri||tr)return!0;if(0!=n.touches.length)for(var i=0;i<n.touches.length;i++)n.touches[i].pageX==lr&&t.slowScrollHorizontal(ht,st,ni,at,c,w,yt,ct,pt,wt,kt,gt,rt,vt,it,ti,lt,si,pi,ot,et);else t.slowScrollHorizontal(ht,st,ni,at,c,w,yt,ct,pt,wt,kt,gt,rt,vt,it,ti,lt,si,pi,ot,et);return hi=di=!1,!0}),n(hr).bind("mouseup.iosSliderEvent-"+it,function(){if(ei?or.unbind("click.disableClick").bind("click.disableClick",t.preventClick):or.unbind("click.disableClick").bind("click.disableClick",t.enableClick),yr.each(function(){this.onclick=function(t){if(ei)return!1;n(this).data("onclick")&&n(this).data("onclick").call(this,t||window.event)};this.onclick=n(this).data("onclick")}),1.8<=parseFloat(n().jquery)?gi.each(function(){var i=n._data(this,"events"),r;if(void 0!=i&&void 0!=i.click&&"iosSliderEvent"!=i.click[0].namespace){if(!ei)return!1;n(this).one("click.disableClick",t.preventClick);i=n._data(this,"events").click;r=i.pop();i.splice(0,0,r)}}):1.6<=parseFloat(n().jquery)&&gi.each(function(){var i=n(this).data("events"),r;if(void 0!=i&&void 0!=i.click&&"iosSliderEvent"!=i.click[0].namespace){if(!ei)return!1;n(this).one("click.disableClick",t.preventClick);i=n(this).data("events").click;r=i.pop();i.splice(0,0,r)}}),!tt[it]){if(ri||(et.desktopClickDrag&&n(ht).css({cursor:y}),et.scrollbarDrag&&n(ii).css({cursor:y}),er=!1,void 0==ki))return!0;t.slowScrollHorizontal(ki,st,ni,at,c,w,yt,ct,pt,wt,kt,gt,rt,vt,it,ti,lt,si,pi,ot,et);ki=void 0}hi=di=!1}))})},destroy:function(i,r){return void 0==r&&(r=this),n(r).each(function(){var f=n(this),r=f.data("iosslider"),u;if(void 0==r)return!1;for(void 0==i&&(i=!0),t.autoSlidePause(r.sliderNumber),tt[r.sliderNumber]=!0,n(window).unbind(".iosSliderEvent-"+r.sliderNumber),n(document).unbind(".iosSliderEvent-"+r.sliderNumber),n(document).unbind("keydown.iosSliderEvent"),n(this).unbind(".iosSliderEvent"),n(this).children(":first-child").unbind(".iosSliderEvent"),n(this).children(":first-child").children().unbind(".iosSliderEvent"),n(r.settings.scrollbarBlockNode).unbind(".iosSliderEvent"),i&&(n(this).attr("style",""),n(this).children(":first-child").attr("style",""),n(this).children(":first-child").children().attr("style",""),n(r.settings.navSlideSelector).attr("style",""),n(r.settings.navPrevSelector).attr("style",""),n(r.settings.navNextSelector).attr("style",""),n(r.settings.autoSlideToggleSelector).attr("style",""),n(r.settings.unselectableSelector).attr("style","")),r.settings.scrollbar&&n(".scrollbarBlock"+r.sliderNumber).remove(),r=s[r.sliderNumber],u=0;u<r.length;u++)clearTimeout(r[u]);f.removeData("iosslider");f.removeData("args")})},update:function(i){return void 0==i&&(i=this),n(i).each(function(){var r=n(this),i=r.data("iosslider");if(void 0==i)return!1;if(i.settings.startAtSlide=r.data("args").currentSlideNumber,h.destroy(!1,this),1!=i.numberOfSlides&&i.settings.infiniteSlider&&(i.settings.startAtSlide=(f[i.sliderNumber]+1+u[i.sliderNumber]+i.numberOfSlides)%i.numberOfSlides),h.init(i.settings,this),r=new t.args("update",i.settings,i.scrollerNode,n(i.scrollerNode).children(":eq("+(i.settings.startAtSlide-1)+")"),i.settings.startAtSlide-1,i.settings.startAtSlide-1),n(i.stageNode).data("args",r),""!=i.settings.onSliderUpdate)i.settings.onSliderUpdate(r)})},addSlide:function(t,i){return this.each(function(){var e=n(this),r=e.data("iosslider");if(void 0==r)return!1;0==n(r.scrollerNode).children().length?(n(r.scrollerNode).append(t),e.data("args").currentSlideNumber=1):r.settings.infiniteSlider?(1==i?n(r.scrollerNode).children(":eq(0)").before(t):n(r.scrollerNode).children(":eq("+(i-2)+")").after(t),-1>u[r.sliderNumber]&&f[r.sliderNumber]--,e.data("args").currentSlideNumber>=i&&f[r.sliderNumber]++):(i<=r.numberOfSlides?n(r.scrollerNode).children(":eq("+(i-1)+")").before(t):n(r.scrollerNode).children(":eq("+(i-2)+")").after(t),e.data("args").currentSlideNumber>=i&&e.data("args").currentSlideNumber++);e.data("iosslider").numberOfSlides++;h.update(this)})},removeSlide:function(t){return this.each(function(){var r=n(this),i=r.data("iosslider");if(void 0==i)return!1;n(i.scrollerNode).children(":eq("+(t-1)+")").remove();f[i.sliderNumber]>t-1&&f[i.sliderNumber]--;r.data("iosslider").numberOfSlides--;h.update(this)})},goToSlide:function(i,r,u){return void 0==u&&(u=this),n(u).each(function(){var u=n(this).data("iosslider");if(void 0==u||u.shortContent)return!1;i=i>u.childrenOffsets.length?u.childrenOffsets.length-1:i-1;void 0!=r&&(u.settings.autoSlideTransTimer=r);t.changeSlide(i,n(u.scrollerNode),n(u.slideNodes),s[u.sliderNumber],u.scrollbarClass,u.scrollbarWidth,u.stageWidth,u.scrollbarStageWidth,u.scrollMargin,u.scrollBorder,u.originalOffsets,u.childrenOffsets,u.slideNodeOuterWidths,u.sliderNumber,u.infiniteSliderWidth,u.numberOfSlides,u.centeredSlideOffset,u.settings)})},prevSlide:function(i){return this.each(function(){var r=n(this).data("iosslider"),e;if(void 0==r||r.shortContent)return!1;e=(f[r.sliderNumber]+u[r.sliderNumber]+r.numberOfSlides)%r.numberOfSlides;void 0!=i&&(r.settings.autoSlideTransTimer=i);(0<e||r.settings.infiniteSlider)&&t.changeSlide(e-1,n(r.scrollerNode),n(r.slideNodes),s[r.sliderNumber],r.scrollbarClass,r.scrollbarWidth,r.stageWidth,r.scrollbarStageWidth,r.scrollMargin,r.scrollBorder,r.originalOffsets,r.childrenOffsets,r.slideNodeOuterWidths,r.sliderNumber,r.infiniteSliderWidth,r.numberOfSlides,r.centeredSlideOffset,r.settings);f[r.sliderNumber]=e})},nextSlide:function(i){return this.each(function(){var r=n(this).data("iosslider"),e;if(void 0==r||r.shortContent)return!1;e=(f[r.sliderNumber]+u[r.sliderNumber]+r.numberOfSlides)%r.numberOfSlides;void 0!=i&&(r.settings.autoSlideTransTimer=i);(e<r.childrenOffsets.length-1||r.settings.infiniteSlider)&&t.changeSlide(e+1,n(r.scrollerNode),n(r.slideNodes),s[r.sliderNumber],r.scrollbarClass,r.scrollbarWidth,r.stageWidth,r.scrollbarStageWidth,r.scrollMargin,r.scrollBorder,r.originalOffsets,r.childrenOffsets,r.slideNodeOuterWidths,r.sliderNumber,r.infiniteSliderWidth,r.numberOfSlides,r.centeredSlideOffset,r.settings);f[r.sliderNumber]=e})},prevPage:function(i,r){return void 0==r&&(r=this),n(r).each(function(){var r=n(this).data("iosslider"),u;if(void 0==r)return!1;u=t.getSliderOffset(r.scrollerNode,"x")+r.stageWidth;void 0!=i&&(r.settings.autoSlideTransTimer=i);t.changeOffset(u,n(r.scrollerNode),n(r.slideNodes),s[r.sliderNumber],r.scrollbarClass,r.scrollbarWidth,r.stageWidth,r.scrollbarStageWidth,r.scrollMargin,r.scrollBorder,r.originalOffsets,r.childrenOffsets,r.slideNodeOuterWidths,r.sliderNumber,r.infiniteSliderWidth,r.numberOfSlides,r.centeredSlideOffset,r.settings)})},nextPage:function(i,r){return void 0==r&&(r=this),n(r).each(function(){var r=n(this).data("iosslider"),u;if(void 0==r)return!1;u=t.getSliderOffset(r.scrollerNode,"x")-r.stageWidth;void 0!=i&&(r.settings.autoSlideTransTimer=i);t.changeOffset(u,n(r.scrollerNode),n(r.slideNodes),s[r.sliderNumber],r.scrollbarClass,r.scrollbarWidth,r.stageWidth,r.scrollbarStageWidth,r.scrollMargin,r.scrollBorder,r.originalOffsets,r.childrenOffsets,r.slideNodeOuterWidths,r.sliderNumber,r.infiniteSliderWidth,r.numberOfSlides,r.centeredSlideOffset,r.settings)})},lock:function(){return this.each(function(){var t=n(this).data("iosslider");if(void 0==t||t.shortContent)return!1;n(t.scrollerNode).css({cursor:"default"});p[t.sliderNumber]=!0})},unlock:function(){return this.each(function(){var t=n(this).data("iosslider");if(void 0==t||t.shortContent)return!1;n(t.scrollerNode).css({cursor:y});p[t.sliderNumber]=!1})},getData:function(){return this.each(function(){var t=n(this).data("iosslider");return void 0==t||t.shortContent?!1:t})},autoSlidePause:function(){return this.each(function(){var i=n(this).data("iosslider");return void 0==i||i.shortContent?!1:(e[i.sliderNumber].autoSlide=!1,t.autoSlidePause(i.sliderNumber),i)})},autoSlidePlay:function(){return this.each(function(){var i=n(this).data("iosslider");return void 0==i||i.shortContent?!1:(e[i.sliderNumber].autoSlide=!0,t.autoSlide(n(i.scrollerNode),n(i.slideNodes),s[i.sliderNumber],i.scrollbarClass,i.scrollbarWidth,i.stageWidth,i.scrollbarStageWidth,i.scrollMargin,i.scrollBorder,i.originalOffsets,i.childrenOffsets,i.slideNodeOuterWidths,i.sliderNumber,i.infiniteSliderWidth,i.numberOfSlides,i.centeredSlideOffset,i.settings),i)})}};n.fn.iosSlider=function(t){if(h[t])return h[t].apply(this,Array.prototype.slice.call(arguments,1));if("object"!=typeof t&&t)n.error("invalid method call!");else return h.init.apply(this,arguments)}}(jQuery);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(n,t,i,r,u){return jQuery.easing[jQuery.easing.def](n,t,i,r,u)},easeInQuad:function(n,t,i,r,u){return r*(t/=u)*t+i},easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i},easeInOutQuad:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i},easeInCubic:function(n,t,i,r,u){return r*(t/=u)*t*t+i},easeOutCubic:function(n,t,i,r,u){return r*((t=t/u-1)*t*t+1)+i},easeInOutCubic:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i},easeInQuart:function(n,t,i,r,u){return r*(t/=u)*t*t*t+i},easeOutQuart:function(n,t,i,r,u){return-r*((t=t/u-1)*t*t*t-1)+i},easeInOutQuart:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t+i:-r/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(n,t,i,r,u){return r*(t/=u)*t*t*t*t+i},easeOutQuint:function(n,t,i,r,u){return r*((t=t/u-1)*t*t*t*t+1)+i},easeInOutQuint:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t*t+i:r/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(n,t,i,r,u){return-r*Math.cos(t/u*(Math.PI/2))+r+i},easeOutSine:function(n,t,i,r,u){return r*Math.sin(t/u*(Math.PI/2))+i},easeInOutSine:function(n,t,i,r,u){return-r/2*(Math.cos(Math.PI*t/u)-1)+i},easeInExpo:function(n,t,i,r,u){return t==0?i:r*Math.pow(2,10*(t/u-1))+i},easeOutExpo:function(n,t,i,r,u){return t==u?i+r:r*(-Math.pow(2,-10*t/u)+1)+i},easeInOutExpo:function(n,t,i,r,u){return t==0?i:t==u?i+r:(t/=u/2)<1?r/2*Math.pow(2,10*(t-1))+i:r/2*(-Math.pow(2,-10*--t)+2)+i},easeInCirc:function(n,t,i,r,u){return-r*(Math.sqrt(1-(t/=u)*t)-1)+i},easeOutCirc:function(n,t,i,r,u){return r*Math.sqrt(1-(t=t/u-1)*t)+i},easeInOutCirc:function(n,t,i,r,u){return(t/=u/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+i:r/2*(Math.sqrt(1-(t-=2)*t)+1)+i},easeInElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u)==1?i+r:(e||(e=u*.3),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),-(o*Math.pow(2,10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e))+i)},easeOutElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u)==1?i+r:(e||(e=u*.3),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),o*Math.pow(2,-10*t)*Math.sin((t*u-f)*2*Math.PI/e)+r+i)},easeInOutElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u/2)==2?i+r:(e||(e=u*.3*1.5),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),t<1)?-.5*o*Math.pow(2,10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e)+i:o*Math.pow(2,-10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e)*.5+r+i},easeInBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*(t/=u)*t*((f+1)*t-f)+i},easeOutBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*((t=t/u-1)*t*((f+1)*t+f)+1)+i},easeInOutBack:function(n,t,i,r,u,f){return(f==undefined&&(f=1.70158),(t/=u/2)<1)?r/2*t*t*(((f*=1.525)+1)*t-f)+i:r/2*((t-=2)*t*(((f*=1.525)+1)*t+f)+2)+i},easeInBounce:function(n,t,i,r,u){return r-jQuery.easing.easeOutBounce(n,u-t,0,r,u)+i},easeOutBounce:function(n,t,i,r,u){return(t/=u)<1/2.75?r*7.5625*t*t+i:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+i:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+i:r*(7.5625*(t-=2.625/2.75)*t+.984375)+i},easeInOutBounce:function(n,t,i,r,u){return t<u/2?jQuery.easing.easeInBounce(n,t*2,0,r,u)*.5+i:jQuery.easing.easeOutBounce(n,t*2-u,0,r,u)*.5+r*.5+i}});!function(n,t){"use strict";var r,i,u,f,e;(n.uaMatch=function(n){n=n.toLowerCase();var t=/(opr)[\/]([\w.]+)/.exec(n)||/(chrome)[ \/]([\w.]+)/.exec(n)||/(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(n)||/(webkit)[ \/]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(n)||/(msie) ([\w.]+)/.exec(n)||n.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(n)||n.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(n)||[],i=/(ipad)/.exec(n)||/(iphone)/.exec(n)||/(android)/.exec(n)||/(windows phone)/.exec(n)||/(win)/.exec(n)||/(mac)/.exec(n)||/(linux)/.exec(n)||/(cros)/i.exec(n)||[];return{browser:t[3]||t[1]||"",version:t[2]||"0",platform:i[0]||""}},r=n.uaMatch(t.navigator.userAgent),i={},r.browser&&(i[r.browser]=!0,i.version=r.version,i.versionNumber=parseInt(r.version)),r.platform&&(i[r.platform]=!0),(i.android||i.ipad||i.iphone||i["windows phone"])&&(i.mobile=!0),(i.cros||i.mac||i.linux||i.win)&&(i.desktop=!0),(i.chrome||i.opr||i.safari)&&(i.webkit=!0),i.rv)&&(u="msie",r.browser=u,i[u]=!0);i.opr&&(f="opera",r.browser=f,i[f]=!0);i.safari&&i.android&&(e="android",r.browser=e,i[e]=!0);i.name=r.browser;i.platform=r.platform;n.browser=i}(jQuery,window),function(n,t){function c(n){return typeof n=="string"}function o(n){var t=b.call(arguments,1);return function(){return n.apply(this,t.concat(b.call(arguments)))}}function ht(n){return n.replace(/^[^#]*#?(.*)$/,"$1")}function ct(n){return n.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,"$1")}function ft(o,h,l,v,y){var k,p,b,d,g;return v!==i?(b=l.match(o?/^([^#]*)\#?(.*)$/:/^([^#?]*)\??([^#]*)(#?.*)/),g=b[3]||"",y===2&&c(v)?p=v.replace(o?rt:it,""):(d=r(b[2]),v=c(v)?r[o?u:f](v):v,p=y===2?v:y===1?n.extend({},v,d):n.extend({},d,v),p=s(p),o&&(p=p.replace(ut,a))),k=b[1]+(o?"#":p||!b[1]?"?":"")+p+g):k=h(l!==i?l:t[w][e]),k}function et(n,t,e){return t===i||typeof t=="boolean"?(e=t,t=s[n?u:f]()):t=c(t)?t.replace(n?rt:it,""):t,r(t,e)}function ot(t,r,u,f){return c(u)||typeof u=="object"||(f=u,u=r,r=i),this.each(function(){var e=n(this),i=r||g()[(this.nodeName||"").toLowerCase()]||"",o=i&&e.attr(i)||"";e.attr(i,s[t](o,u,f))})}var i,b=Array.prototype.slice,a=decodeURIComponent,s=n.param,h,r,v,y=n.bbq=n.bbq||{},k,d,g,nt=n.event.special,tt="hashchange",f="querystring",u="fragment",p="elemUrlAttr",w="location",e="href",l="src",it=/^.*\?|#.*$/g,rt=/^.*\#/,ut,st={};s[f]=o(ft,0,ct);s[u]=h=o(ft,1,ht);h.noEscape=function(t){t=t||"";var i=n.map(t.split(""),encodeURIComponent);ut=new RegExp(i.join("|"),"g")};h.noEscape(",/");n.deparam=r=function(t,r){var u={},f={"true":!0,"false":!1,"null":null};return n.each(t.replace(/\+/g," ").split("&"),function(t,e){var y=e.split("="),h=a(y[0]),o,v=u,l=0,s=h.split("]["),c=s.length-1;if(/\[/.test(s[0])&&/\]$/.test(s[c])?(s[c]=s[c].replace(/\]$/,""),s=s.shift().split("[").concat(s),c=s.length-1):c=0,y.length===2)if(o=a(y[1]),r&&(o=o&&!isNaN(o)?+o:o==="undefined"?i:f[o]!==i?f[o]:o),c)for(;l<=c;l++)h=s[l]===""?v.length:s[l],v=v[h]=l<c?v[h]||(s[l+1]&&isNaN(s[l+1])?{}:[]):o;else n.isArray(u[h])?u[h].push(o):u[h]=u[h]!==i?[u[h],o]:o;else h&&(u[h]=r?i:"")}),u};r[f]=o(et,0);r[u]=v=o(et,1);n[p]||(n[p]=function(t){return n.extend(st,t)})({a:e,base:e,iframe:l,img:l,input:l,form:"action",link:e,script:l});g=n[p];n.fn[f]=o(ot,f);n.fn[u]=o(ot,u);y.pushState=k=function(n,r){c(n)&&/^#/.test(n)&&r===i&&(r=2);var u=n!==i,f=h(t[w][e],u?n:{},u?r:2);t[w][e]=f+(/#/.test(f)?"":"#")};y.getState=d=function(n,t){return n===i||typeof n=="boolean"?v(n):v(t)[n]};y.removeState=function(t){var r={};t!==i&&(r=d(),n.each(n.isArray(t)?t:arguments,function(n,t){delete r[t]}));k(r,2)};nt[tt]=n.extend(nt[tt],{add:function(t){function e(n){var t=n[u]=h();n.getState=function(n,u){return n===i||typeof n=="boolean"?r(t,n):r(t,u)[n]};f.apply(this,arguments)}var f;if(n.isFunction(t))return f=t,e;f=t.handler;t.handler=e}})}(jQuery,this),function(n,t,i){function e(n){return n=n||t[u][f],n.replace(/^[^#]*#?(.*)$/,"$1")}var o,s=n.event.special,u="location",r="hashchange",f="href",a=n.browser,h=document.documentMode,c=a.msie&&(h===i||h<8),l="on"+r in t&&!c;n[r+"Delay"]=100;s[r]=n.extend(s[r],{setup:function(){if(l)return!1;n(o.start)},teardown:function(){if(l)return!1;n(o.stop)}});o=function(){function a(){o=l=function(n){return n};c&&(s=n('<iframe src="javascript:0"/>').hide().insertAfter("body")[0].contentWindow,l=function(){return e(s.document[u][f])},o=function(n,t){if(n!==t){var i=s.document;i.open().close();i[u].hash="#"+n}},o(e()))}var h={},i,s,o,l;return h.start=function(){if(!i){var s=e();o||a(),function h(){var a=e(),c=l(s);a!==s?(o(s=a,c),n(t).trigger(r)):c!==s&&(t[u][f]=t[u][f].replace(/#.*/,"")+"#"+c);i=setTimeout(h,n[r+"Delay"])}()}},h.stop=function(){s||(i&&clearTimeout(i),i=0)},h}()}(jQuery,this);$(window).ready(function(){function u(n){var t=$(".filter-menu a"),r=$("#mobile-filters option"),u;if($department=n,i,n==="all"){$(t).parent().fadeIn();$(r).show();return}for(i=0;i<t.length;i++)u=$(t[i]).attr("data-general-filter"),$("."+n+"."+u).length==0&&u!="all"?($(t[i]).parent().fadeOut(100),$(r[i]).hide()):($(t[i]).parent().fadeIn(),$(r[i]).show())}function o(){var n=$(".project-departments li a"),r=$("#mobile-departments option"),t;for(i=0;i<n.length;i++)t=$(n[i]).attr("data-department-filter"),$("."+t).length==0&&t!="all"&&($(n[i]).parent().hide(),$(r[i]).remove())}function f(){setTimeout(function(){if($(".projects-wrapper").length>=0){var n=$(".project-list-wrapper").height()+200;$(".project-departments").css("height",n)}},150)}var e,r;$.browser.msie&&parseFloat($.browser.version)<=8?$("body").append($("<script />",{src:"/Portals/_default/Skins/Member_Type1/js/vendor/isotope-v1.5.js"})):$("body").append($("<script />",{src:"/Portals/_default/Skins/Member_Type1/js/vendor/isotope.js"}));$("body").on("click",".project-departments a",function(i){i.preventDefault();var r=$(this).attr("data-department-filter"),f=$(this).attr("data-general-filter");$(".filter-menu a, #mobile-filters option").attr("data-department-filter",r);t(r,f);n(r,f);u(r);setTimeout(function(){$(".filter-menu li.selected").is(":visible")===!1?$(".filter-menu li:first a").trigger("click"):"false"},400)});$("body").on("click",".filter-menu a",function(i){i.preventDefault();var r=$(this).attr("data-department-filter"),f=$(this).attr("data-general-filter");$(".project-departments a, #mobile-departments option").attr("data-general-filter",f);t(r,f);n(r,f);u(r)});$("body").on("click","#revealProducts",function(t){t.preventDefault();$(this).fadeOut();n()});$("body").on("change","#mobile-filters",function(i){i.preventDefault();var r=$(this).find(":selected").attr("data-department-filter"),f=$(this).find(":selected").attr("data-general-filter");$(".project-departments a, #mobile-departments option").attr("data-general-filter",f);t(r,f);n(r,f);u(r)});$("body").on("change","#mobile-departments",function(i){i.preventDefault();var r=$(this).find(":selected").attr("data-department-filter"),f=$(this).find(":selected").attr("data-general-filter");$(".filter-menu a, #mobile-filters option").attr("data-department-filter",r);t(r,f);n(r,f);u(r);setTimeout(function(){$(".filter-menu li.selected").is(":visible")===!1?$(".filter-menu li:first a").trigger("click"):"false"},400)});e=$(".project-items").isotope({itemSelector:".item",layoutMode:"fitRows"});var n=function(n,t,i,r){var n=n?n:"all",t=t?t:"all",i=i?i+1:!1,u=0;r||(n=="all"&&t=="all"?window.history.pushState({department:n,general:t,limit:i},window.document.title,"/blog/"+t):window.history.pushState({department:n,general:t,limit:i},window.document.title,"/blog/"+t+"/"+n));e.isotope({filter:function(){var e=$(this),r=!1,f=[];return n!=="all"&&(f.push("."+n),$("#revealProducts").hide()),t!=="all"&&(f.push("."+t),$("#revealProducts").hide()),r=f.length?e.is(f.join("")):!0,i&&r===!0&&(u++,u>=i&&(r=!1)),r}});f()},t=function(n,t){var t=t?t:"all",n=n?n:"all";$(".filter-menu .selected").removeClass("selected");$(".filter-menu a[data-general-filter="+t+"]").parent("li").addClass("selected");$("#mobile-filters option[data-general-filter="+t+"]").prop("selected",!0);$(".project-departments .selected").removeClass("selected");$(".project-departments a[data-department-filter="+n+"]").parent("li").addClass("selected");$("#mobile-departments option[data-department-filter="+n+"]").prop("selected",!0)},s=function(i,r,u){window.onpopstate=function(i){console.log(i.state);n(i.state.department,i.state.general,i.state.limit,!0);t(i.state.department,i.state.general)};$(".filter-menu a").each(function(n,t){var t=$(t),i='<option data-general-filter="'+t.attr("data-general-filter")+'" data-department-filter="'+t.attr("data-department-filter")+'">'+t.html()+"<\/option>";$("#mobile-filters").append(i)});$(".project-departments a").each(function(n,t){var t=$(t),i='<option data-general-filter="'+t.attr("data-general-filter")+'" data-department-filter="'+t.attr("data-department-filter")+'">'+t.html()+"<\/option>";$("#mobile-departments").append(i)});i&&i!="all"||r&&r!="all"?($("#revealProducts").fadeOut(),u=!1):u=u;n(i,r,u);t(i,r);o()};$(".filter-menu").length>0&&($.bbq.getState("department")!=null&&$.bbq.getState("general")!=null?(console.log("Located query strings"),general=$.bbq.getState("general"),department=$.bbq.getState("department").substr(0,$.bbq.getState("department").length-4),department=="home-d-cor"&&(department="home-decor")):(r=window.location.toString().slice(-1)=="/"?window.location.toString().substring(0,window.location.toString().length-1).split("/"):window.location.toString().split("/"),general=r[r.length-2],department=r[r.length-1],general=="blog"&&(general=department,department="all"),department=="blog"&&(general="all",department="all")),s(department,general,12));$(window).load(function(){equalHeights(".special-offers-wrap .corporate-primary-column .size-narrow .wrap")});$(window).resize(function(){equalHeights(".special-offers-wrap .corporate-primary-column .size-narrow .wrap")});$("#more-brands #show-more-brands").click(function(){$(this).hide();$("#product-filter #brand-filter li.collapsed").removeClass("collapsed")});$(".flexslider").flexslider({animation:"slide",slideshow:!1,animationLoop:!1,smoothHeight:!0});$(document).load(function(){equalHeightRows(".product-grid .product-tile");equalHeightRows(".similar-products-grid .product-tile");f()});$(window).resize(function(){equalHeightRows(".product-grid .product-tile");equalHeightRows(".similar-products-grid .product-tile");f()})});ALGOLIA_VERSION="2.6.6";AlgoliaSearch=function(n,t,i,r,u){var e=this,f;for(this.applicationID=n,this.apiKey=t,this.hosts=[],this._isUndefined(u)&&(u=[n+"-1.algolia.io",n+"-2.algolia.io",n+"-3.algolia.io"]),this.hosts=[],f=0;f<u.length;++f)Math.random()>.5&&this.hosts.reverse(),this.hosts.push(this._isUndefined(i)||null===i?("https:"==document.location.protocol?"https":"http")+"://"+u[f]:"https"===i||"HTTPS"===i?"https://"+u[f]:"http://"+u[f]);Math.random()>.5&&this.hosts.reverse();this.requestTimeoutInMs=2e3;this.currentHostIndex=0;this.jsonp=null;this.jsonpWait=0;this._jsonRequest({method:"GET",url:"/1/isalive",callback:function(n){e.jsonp=!n},removeCustomHTTPHeaders:!0});this.extraHeaders=[]};AlgoliaSearch.prototype={deleteIndex:function(n,t){this._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(n),callback:t})},moveIndex:function(n,t,i){var r={operation:"move",destination:t};this._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(n)+"/operation",body:r,callback:i})},copyIndex:function(n,t,i){var r={operation:"copy",destination:t};this._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(n)+"/operation",body:r,callback:i})},getLogs:function(n,t,i){this._isUndefined(t)&&(t=0);this._isUndefined(i)&&(i=10);this._jsonRequest({method:"GET",url:"/1/logs?offset="+t+"&length="+i,callback:n})},listIndexes:function(n,t){var i=t?"?page="+t:"";this._jsonRequest({method:"GET",url:"/1/indexes"+i,callback:n})},initIndex:function(n){return new this.Index(this,n)},listUserKeys:function(n){this._jsonRequest({method:"GET",url:"/1/keys",callback:n})},getUserKeyACL:function(n,t){this._jsonRequest({method:"GET",url:"/1/keys/"+n,callback:t})},deleteUserKey:function(n,t){this._jsonRequest({method:"DELETE",url:"/1/keys/"+n,callback:t})},addUserKey:function(n,t){var i={};i.acl=n;this._jsonRequest({method:"POST",url:"/1/keys",body:i,callback:t})},addUserKeyWithValidity:function(n,t,i,r,u){var e=this,f={};f.acl=n;f.validity=t;f.maxQueriesPerIPPerHour=i;f.maxHitsPerQuery=r;this._jsonRequest({method:"POST",url:"/1/indexes/"+e.indexName+"/keys",body:f,callback:u})},setSecurityTags:function(n){var i,t,u,r;if("[object Array]"===Object.prototype.toString.call(n)){for(i=[],t=0;t<n.length;++t)if("[object Array]"===Object.prototype.toString.call(n[t])){for(u=[],r=0;r<n[t].length;++r)u.push(n[t][r]);i.push("("+u.join(",")+")")}else i.push(n[t]);n=i.join(",")}this.tagFilters=n},setUserToken:function(n){this.userToken=n},startQueriesBatch:function(){this.batch=[]},addQueryInBatch:function(n,t,i){var r="query="+encodeURIComponent(t);this._isUndefined(i)||null===i||(r=this._getSearchParams(i,r));this.batch.push({indexName:n,params:r})},clearCache:function(){this.cache={}},sendQueriesBatch:function(n,t){var i=this,r={requests:[],apiKey:this.apiKey,appID:this.applicationID},u,f;for(this.userToken&&(r["X-Algolia-UserToken"]=this.userToken),this.tagFilters&&(r["X-Algolia-TagFilters"]=this.tagFilters),u=0;u<i.batch.length;++u)r.requests.push(i.batch[u]);(window.clearTimeout(i.onDelayTrigger),!this._isUndefined(t)&&null!==t&&t>0)?(f=window.setTimeout(function(){i._sendQueriesBatch(r,n)},t),i.onDelayTrigger=f):this._sendQueriesBatch(r,n)},setRequestTimeout:function(n){n&&(this.requestTimeoutInMs=parseInt(n,10))},Index:function(n,t){this.indexName=t;this.as=n;this.typeAheadArgs=null;this.typeAheadValueOption=null},setExtraHeader:function(n,t){this.extraHeaders.push({key:n,value:t})},_sendQueriesBatch:function(n,t){var u,r,i,f;if(null===this.jsonp)return u=this,void this._waitReady(function(){u._sendQueriesBatch(n,t)});if(this.jsonp){for(r="",i=0;i<n.requests.length;++i)f="/1/indexes/"+encodeURIComponent(n.requests[i].indexName)+"?"+n.requests[i].params,r+=i+"="+encodeURIComponent(f)+"&";this._jsonRequest({cache:this.cache,method:"GET",jsonp:!0,url:"/1/indexes/*",body:{params:r},callback:t})}else this._jsonRequest({cache:this.cache,method:"POST",url:"/1/indexes/*/queries",body:n,callback:t,removeCustomHTTPHeaders:!0})},_jsonRequest:function(n){var r=0,t=this,i=n.callback,u=null,f=n.url,e;if(this._isUndefined(n.body)||(f=n.url+"_body_"+JSON.stringify(n.body)),!this._isUndefined(n.cache)&&(u=n.cache,!this._isUndefined(u[f])))return void(this._isUndefined(i)||setTimeout(function(){i(!0,u[f])},1));e=function(){return r>=t.hosts.length?void(t._isUndefined(i)||(r=0,i(!1,{message:"Cannot connect the Algolia's Search API. Please send an email to support@algolia.com to report the issue."}))):(n.callback=function(o,s,h,c){s||t._isUndefined(c)||console&&console.log("Error: "+c.message);s&&!t._isUndefined(n.cache)&&(u[f]=c);!s&&o?(t.currentHostIndex=++t.currentHostIndex%t.hosts.length,r+=1,e()):(r=0,t._isUndefined(i)||i(s,c))},n.hostname=t.hosts[t.currentHostIndex],void t._jsonRequestByHost(n))};e()},_jsonRequestByHost:function(n){var t=n.hostname+n.url;this.jsonp?this._makeJsonpRequestByHost(t,n):this._makeXmlHttpRequestByHost(t,n)},_makeJsonpRequestByHost:function(n,t){if(!t.jsonp)return void t.callback(!0,!1,null,{message:"Method "+t.method+" "+n+" is not supported by JSONP."});this.jsonpCounter=this.jsonpCounter||0;this.jsonpCounter+=1;var f=document.getElementsByTagName("head")[0],i=document.createElement("script"),r="algoliaJSONP_"+this.jsonpCounter,e=!1,u=null;window[r]=function(n){t.callback(!1,!0,null,n);try{delete window[r]}catch(i){window[r]=void 0}};i.type="text/javascript";i.src=n+"?callback="+r+","+this.applicationID+","+this.apiKey;t.body["X-Algolia-TagFilters"]&&(i.src+="&X-Algolia-TagFilters="+encodeURIComponent(t.body["X-Algolia-TagFilters"]));t.body["X-Algolia-UserToken"]&&(i.src+="&X-Algolia-UserToken="+encodeURIComponent(t.body["X-Algolia-UserToken"]));t.body&&t.body.params&&(i.src+="&"+t.body.params);u=setTimeout(function(){i.onload=i.onreadystatechange=i.onerror=null;window[r]=function(){try{delete window[r]}catch(n){window[r]=void 0}};t.callback(!0,!1,null,{message:"Timeout - Failed to load JSONP script."});f.removeChild(i);clearTimeout(u);u=null},this.requestTimeoutInMs);i.onload=i.onreadystatechange=function(){if(clearTimeout(u),u=null,!(e||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState)){if(e=!0,"undefined"==typeof window[r+"_loaded"]){t.callback(!0,!1,null,{message:"Failed to load JSONP script."});try{delete window[r]}catch(n){window[r]=void 0}}else try{delete window[r+"_loaded"]}catch(n){window[r+"_loaded"]=void 0}i.onload=i.onreadystatechange=null;f.removeChild(i)}};i.onerror=function(){clearTimeout(u);u=null;t.callback(!0,!1,null,{message:"Failed to load JSONP script."});f.removeChild(i);try{delete window[r]}catch(n){window[r]=void 0}};f.appendChild(i)},_makeXmlHttpRequestByHost:function(n,t){var e=this,i=window.XMLHttpRequest?new XMLHttpRequest:{},f=null,r=null,u;if(this._isUndefined(t.body)||(f=JSON.stringify(t.body)),"withCredentials"in i){for(i.open(t.method,n,!0),(this._isUndefined(t.removeCustomHTTPHeaders)||!t.removeCustomHTTPHeaders)&&(i.setRequestHeader("X-Algolia-API-Key",this.apiKey),i.setRequestHeader("X-Algolia-Application-Id",this.applicationID)),i.timeout=this.requestTimeoutInMs,u=0;u<this.extraHeaders.length;++u)i.setRequestHeader(this.extraHeaders[u].key,this.extraHeaders[u].value);null!==f&&i.setRequestHeader("Content-type","application/json")}else{if("undefined"==typeof XDomainRequest)return console&&console.log("Your browser is too old to support CORS requests"),void t.callback(!1,!1,null,{message:"CORS not supported"});i=new XDomainRequest;i.open(t.method,n)}r=setTimeout(function(){return i.abort(),i.aborted===!0?void stopLoadAnimation():(t.callback(!0,!1,null,{message:"Timeout - Could not connect to endpoint "+n}),clearTimeout(r),void(r=null))},this.requestTimeoutInMs);i.onload=function(n){if(clearTimeout(r),r=null,e._isUndefined(n)||null===n.target)t.callback(!1,!0,n,JSON.parse(i.responseText));else{var o=0===n.target.status||503===n.target.status,f=!1,u=null;"undefined"!=typeof XDomainRequest?(u=n.target.responseText,f=u&&u.length>0):(u=n.target.response,f=200===n.target.status||201===n.target.status);t.callback(o,f,n.target,u?JSON.parse(u):null)}};i.ontimeout=function(){};i.onerror=function(n){clearTimeout(r);r=null;t.callback(!0,!1,null,{message:"Could not connect to host",error:n})};i.send(f)},_waitReady:function(n){null===this.jsonp&&(this.jsonpWait+=100,this.jsonpWait>2e3&&(this.jsonp=!0),setTimeout(n,100))},_getSearchParams:function(n,t){if(this._isUndefined(n)||null===n)return t;for(var i in n)null!==i&&n.hasOwnProperty(i)&&(t+=0===t.length?"?":"&",t+=i+"="+encodeURIComponent("[object Array]"===Object.prototype.toString.call(n[i])?JSON.stringify(n[i]):n[i]));return t},_isUndefined:function(n){return void 0===n},applicationID:null,apiKey:null,tagFilters:null,userToken:null,hosts:[],cache:{},extraHeaders:[]};AlgoliaSearch.prototype.Index.prototype={clearCache:function(){this.cache={}},addObject:function(n,t,i){var r=this;this.as._jsonRequest(this.as._isUndefined(i)?{method:"POST",url:"/1/indexes/"+encodeURIComponent(r.indexName),body:n,callback:t}:{method:"PUT",url:"/1/indexes/"+encodeURIComponent(r.indexName)+"/"+encodeURIComponent(i),body:n,callback:t})},addObjects:function(n,t){for(var u,f=this,r={requests:[]},i=0;i<n.length;++i)u={action:"addObject",body:n[i]},r.requests.push(u);this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(f.indexName)+"/batch",body:r,callback:t})},getObject:function(n,t,i){var f,e,r,u;if(null===this.as.jsonp)return f=this,void this.as._waitReady(function(){f.getObject(n,t,i)});if(e=this,r="",!this.as._isUndefined(i))for(r="?attributes=",u=0;u<i.length;++u)0!==u&&(r+=","),r+=i[u];this.as._jsonRequest({method:"GET",jsonp:!0,url:"/1/indexes/"+encodeURIComponent(e.indexName)+"/"+encodeURIComponent(n)+r,callback:t})},partialUpdateObject:function(n,t){var i=this;this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(i.indexName)+"/"+encodeURIComponent(n.objectID)+"/partial",body:n,callback:t})},partialUpdateObjects:function(n,t){for(var u,f=this,r={requests:[]},i=0;i<n.length;++i)u={action:"partialUpdateObject",objectID:n[i].objectID,body:n[i]},r.requests.push(u);this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(f.indexName)+"/batch",body:r,callback:t})},saveObject:function(n,t){var i=this;this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(i.indexName)+"/"+encodeURIComponent(n.objectID),body:n,callback:t})},saveObjects:function(n,t){for(var u,f=this,r={requests:[]},i=0;i<n.length;++i)u={action:"updateObject",objectID:n[i].objectID,body:n[i]},r.requests.push(u);this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(f.indexName)+"/batch",body:r,callback:t})},deleteObject:function(n,t){if(null===n||0===n.length)return void t(!1,{message:"empty objectID"});var i=this;this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(i.indexName)+"/"+encodeURIComponent(n),callback:t})},search:function(n,t,i,r){var f=this,u="query="+encodeURIComponent(n),e;(this.as._isUndefined(i)||null===i||(u=this.as._getSearchParams(i,u)),window.clearTimeout(f.onDelayTrigger),!this.as._isUndefined(r)&&null!==r&&r>0)?(e=window.setTimeout(function(){f._search(u,t)},r),f.onDelayTrigger=e):this._search(u,t)},browse:function(n,t,i){var u=this,r="?page="+n;_.isUndefined(i)||(r+="&hitsPerPage="+i);this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(u.indexName)+"/browse"+r,callback:t})},ttAdapter:function(n){var t=this;return function(i,r){t.search(i,function(n,t){n&&r(t.hits)},n)}},waitTask:function(n,t){var i=this;this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(i.indexName)+"/task/"+n,callback:function(r,u){r?"published"===u.status?t(!0,u):setTimeout(function(){i.waitTask(n,t)},100):t(!1,u)}})},clearIndex:function(n){var t=this;this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(t.indexName)+"/clear",callback:n})},getSettings:function(n){var t=this;this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(t.indexName)+"/settings",callback:n})},setSettings:function(n,t){var i=this;this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(i.indexName)+"/settings",body:n,callback:t})},listUserKeys:function(n){var t=this;this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(t.indexName)+"/keys",callback:n})},getUserKeyACL:function(n,t){var i=this;this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(i.indexName)+"/keys/"+n,callback:t})},deleteUserKey:function(n,t){var i=this;this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(i.indexName)+"/keys/"+n,callback:t})},addUserKey:function(n,t){var r=this,i={};i.acl=n;this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(r.indexName)+"/keys",body:i,callback:t})},addUserKeyWithValidity:function(n,t,i,r,u){var e=this,f={};f.acl=n;f.validity=t;f.maxQueriesPerIPPerHour=i;f.maxHitsPerQuery=r;this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(e.indexName)+"/keys",body:f,callback:u})},_search:function(n,t){var r,i;if(null===this.as.jsonp)return r=this,void this.as._waitReady(function(){r._search(n,t)});i={params:n,apiKey:this.as.apiKey,appID:this.as.applicationID};this.as.tagFilters&&(i["X-Algolia-TagFilters"]=this.as.tagFilters);this.as.userToken&&(i["X-Algolia-UserToken"]=this.as.userToken);this.as._jsonRequest(this.as.jsonp?{cache:this.cache,method:"GET",jsonp:!0,url:"/1/indexes/"+encodeURIComponent(this.indexName),body:i,callback:t}:{cache:this.cache,method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/query",body:i,callback:t,removeCustomHTTPHeaders:!0})},as:null,indexName:null,cache:{},typeAheadArgs:null,typeAheadValueOption:null,emptyConstructor:function(){}},function(){var n=function(n){var t,i;for(n=n||{},t=1;t<arguments.length;t++)if(arguments[t])for(i in arguments[t])arguments[t].hasOwnProperty(i)&&(n[i]=arguments[t][i]);return n};window.AlgoliaSearchHelper=function(t,i,r){this.init(t,i,n({},{facets:[],disjunctiveFacets:[],hitsPerPage:20},r))};AlgoliaSearchHelper.prototype={init:function(n,t,i){this.client=n;this.index=t;this.options=i;this.page=0;this.refinements={};this.disjunctiveRefinements={}},search:function(n,t,i){this.q=n;this.searchCallback=t;this.searchParams=i||{};this.page=this.page||0;this.refinements=this.refinements||{};this.disjunctiveRefinements=this.disjunctiveRefinements||{};this._search()},clearRefinements:function(){this.disjunctiveRefinements={};this.refinements={}},addDisjunctiveRefine:function(n,t){this.disjunctiveRefinements=this.disjunctiveRefinements||{};this.disjunctiveRefinements[n]=this.disjunctiveRefinements[n]||{};this.disjunctiveRefinements[n][t]=!0},removeDisjunctiveRefine:function(n,t){this.disjunctiveRefinements=this.disjunctiveRefinements||{};this.disjunctiveRefinements[n]=this.disjunctiveRefinements[n]||{};try{delete this.disjunctiveRefinements[n][t]}catch(i){this.disjunctiveRefinements[n][t]=void 0}},addRefine:function(n,t){var i=n+":"+t;this.refinements=this.refinements||{};this.refinements[i]=!0},removeRefine:function(n,t){var i=n+":"+t;this.refinements=this.refinements||{};this.refinements[i]=!1},toggleRefine:function(n,t){for(var u,r,i=0;i<this.options.facets.length;++i)if(this.options.facets[i]==n)return u=n+":"+t,this.refinements[u]=!this.refinements[u],this.page=0,this._search(),!0;for(this.disjunctiveRefinements[n]=this.disjunctiveRefinements[n]||{},r=0;r<this.options.disjunctiveFacets.length;++r)if(this.options.disjunctiveFacets[r]==n)return this.disjunctiveRefinements[n][t]=!this.disjunctiveRefinements[n][t],this.page=0,this._search(),!0;return!1},isRefined:function(n,t){var i=n+":"+t;return this.refinements[i]?!0:this.disjunctiveRefinements[n]&&this.disjunctiveRefinements[n][t]?!0:!1},nextPage:function(){this._gotoPage(this.page+1)},previousPage:function(){this.page>0&&this._gotoPage(this.page-1)},gotoPage:function(n){this._gotoPage(n)},setPage:function(n){this.page=n},setIndex:function(n){this.index=n},getIndex:function(){return this.index},_gotoPage:function(n){this.page=n;this._search()},_search:function(){var t,n;for(this.client.startQueriesBatch(),this.client.addQueryInBatch(this.index,this.q,this._getHitsSearchParams()),t=0;t<this.options.disjunctiveFacets.length;++t)this.client.addQueryInBatch(this.index,this.q,this._getDisjunctiveFacetSearchParams(this.options.disjunctiveFacets[t]));n=this;this.client.sendQueriesBatch(function(t,i){var r,f,u,e,o;if(!t)return void n.searchCallback(!1,i);for(r=i.results[0],r.disjunctiveFacets={},r.facetStats={},f=1;f<i.results.length;++f){for(u in i.results[f].facets)if(r.disjunctiveFacets[u]=i.results[f].facets[u],n.disjunctiveRefinements[u])for(e in n.disjunctiveRefinements[u])!r.disjunctiveFacets[u][e]&&n.disjunctiveRefinements[u][e]&&(r.disjunctiveFacets[u][e]=0);for(o in i.results[f].facets_stats)r.facetStats[o]=i.results[f].facets_stats[o]}n.searchCallback(!0,r)})},_getHitsSearchParams:function(){return n({},{hitsPerPage:this.options.hitsPerPage,page:this.page,facets:this.options.facets,facetFilters:this._getFacetFilters()},this.searchParams)},_getDisjunctiveFacetSearchParams:function(t){return n({},this.searchParams,{hitsPerPage:1,page:0,attributesToRetrieve:[],attributesToHighlight:[],attributesToSnippet:[],facets:t,facetFilters:this._getFacetFilters(t)})},_getFacetFilters:function(n){var r=[],u,t,i,f;for(u in this.refinements)this.refinements[u]&&r.push(u);for(t in this.disjunctiveRefinements)if(t!=n){i=[];for(f in this.disjunctiveRefinements[t])this.disjunctiveRefinements[t][f]&&i.push(t+":"+f);i.length>0&&r.push(i)}return r}}}(),function(){window.AlgoliaPlaces=function(n,t){this.init(n,t)};AlgoliaPlaces.prototype={init:function(n,t){this.client=new AlgoliaSearch(n,t,"http",!0,["places-1.algolia.io","places-2.algolia.io","places-3.algolia.io"]);this.cache={}},search:function(n,t,i){var r="query="+encodeURIComponent(n),u;this.client._isUndefined(i)||null==i||(r=this.client._getSearchParams(i,r));u={params:r,apiKey:this.client.apiKey,appID:this.client.applicationID};this.client._jsonRequest({cache:this.cache,method:"POST",url:"/1/places/query",body:u,callback:t,removeCustomHTTPHeaders:!0})}}}();"object"!=typeof JSON&&(JSON={}),function(){"use strict";function i(n){return 10>n?"0"+n:n}function o(n){return f.lastIndex=0,f.test(n)?'"'+n.replace(f,function(n){var t=s[n];return"string"==typeof t?t:"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function r(i,u){var s,l,h,a,c,v=n,f=u[i];switch(f&&"object"==typeof f&&"function"==typeof f.toJSON&&(f=f.toJSON(i)),"function"==typeof t&&(f=t.call(u,i,f)),typeof f){case"string":return o(f);case"number":return isFinite(f)?String(f):"null";case"boolean":case"null":return String(f);case"object":if(!f)return"null";if(n+=e,c=[],"[object Array]"===Object.prototype.toString.apply(f)){for(a=f.length,s=0;a>s;s+=1)c[s]=r(s,f)||"null";return h=0===c.length?"[]":n?"[\n"+n+c.join(",\n"+n)+"\n"+v+"]":"["+c.join(",")+"]",n=v,h}if(t&&"object"==typeof t)for(a=t.length,s=0;a>s;s+=1)"string"==typeof t[s]&&(l=t[s],h=r(l,f),h&&c.push(o(l)+(n?": ":":")+h));else for(l in f)Object.prototype.hasOwnProperty.call(f,l)&&(h=r(l,f),h&&c.push(o(l)+(n?": ":":")+h));return h=0===c.length?"{}":n?"{\n"+n+c.join(",\n"+n)+"\n"+v+"}":"{"+c.join(",")+"}",n=v,h}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+i(this.getUTCMonth()+1)+"-"+i(this.getUTCDate())+"T"+i(this.getUTCHours())+":"+i(this.getUTCMinutes())+":"+i(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var u,f,n,e,s,t;"function"!=typeof JSON.stringify&&(f=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(i,u,f){var o;if(n="",e="","number"==typeof f)for(o=0;f>o;o+=1)e+=" ";else"string"==typeof f&&(e=f);if(t=u,u&&"function"!=typeof u&&("object"!=typeof u||"number"!=typeof u.length))throw new Error("JSON.stringify");return r("",{"":i})});"function"!=typeof JSON.parse&&(u=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,JSON.parse=function(text,reviver){function walk(n,t){var r,u,i=n[t];if(i&&"object"==typeof i)for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(u=walk(i,r),void 0!==u?i[r]=u:delete i[r]);return reviver.call(n,t,i)}var j;if(text=String(text),u.lastIndex=0,u.test(text)&&(text=text.replace(u,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse");})}()