(function(t,o){o.behaviors.bt_leads_antibot_workaround={attach:function(e,o){t('body').once(function(){const targetNode=document.getElementsByTagName('body')[0];const config={attributes:!1,childList:!0,subtree:!1};const callback=(mutationList,observer)=>{for(const mutation of mutationList){if(mutation.type==='childList'){let $form=t('body > div.reveal-modal form[id^=bt-leads]');if(!$form.length){return};t.get('/bt-leads-antibot-workaround').done(function(t){if(!o.antibot){return};o.antibot.forms=t;o.antibot.human=!1})}}};const observer=new MutationObserver(callback);observer.observe(targetNode,config)})}}})(jQuery,Drupal);(function(n){Drupal.behaviors.riotSolrFacetGroupTooltip={attach:function(o,t){const infoIcons=n(".amenity-info-icon",o);if(infoIcons.length){infoIcons.each(function(){const currentIcon=n(this);const categoryId=currentIcon[0].id;const popupElementId="amenity-detail-"+categoryId;n(this).hover(function(){n("div[id='"+popupElementId+"']",o).addClass("open")},function(){n("div[id='"+popupElementId+"']",o).removeClass("open")})})}},}})(jQuery);(function(t){t(document).bind('insertIntoActiveEditor',function(i,t){if(t['fields']['title']&&Drupal.settings.captionFilter.widgets[t['widgetType']]){t['content']='[caption caption="'+t['fields']['title'].replace(/"/g,'\\"')+'"]'+t['content']+'[/caption]'}});Drupal.captionFilter=Drupal.captionFilter||{};Drupal.captionFilter.toHTML=function(t,i){return t.replace(/(?:<p>)?\[caption([^\]]*)\]([\s\S]+?)\[\/caption\](?:<\/p>)?[\s\u00a0]*/g,function(n,c,e){var p,t,a,o;c=c.replace(/\\?'|\\&#39;|\\&#039;/g,'&#39;').replace(/\\"|\\&quot;/g,'&quot;');e=e.replace(/\\&#39;|\\&#039;/g,'&#39;').replace(/\\&quot;/g,'&quot;');p=c.match(/id=['"]([^'"]+)/i);t=c.match(/align=['"]([^'"]+)/i);ct=c.match(/caption=['"]([^'"]+)/i);a=e.match(/width=['"]([0-9]+)/);p=(p&&p[1])?p[1]:'';t=(t&&t[1])?'caption-'+t[1]:'';ct=(ct&&ct[1])?ct[1].replace(/\\\\"/,'"'):'';a=(a&&a[1])?parseInt(a[1])+'px':'auto';if(i=='tinymce')o=(t=='caption-center')?'mceTemp mceIEcenter':'mceTemp';else if(i=='ckeditor')o=(t=='caption-center')?'mceTemp mceIEcenter':'mceTemp';else o='';if(ct){return'<div class="caption '+t+' '+o+' draggable"><div class="caption-width-container" style="width: '+a+'"><div class="caption-inner">'+e+'<p class="caption-text">'+ct+'</p></div></div></div>'}
else{return'<div class="caption '+t+' '+o+' draggable"><div class="caption-width-container" style="width: '+a+'"><div class="caption-inner">'+e+'</div></div></div>'}})};Drupal.captionFilter.toTag=function(t){return t.replace(/(<div class="caption [^"]*">)\s*<div[^>]+>\s*<div[^>]+>(.+?)<\/div>\s*<\/div>\s*<\/div>\s*/gi,function(i,a,c){var t;t=a.match(/class=.*?caption-(left|center|right)/i);t=(t&&t[1])?t[1]:'';caption=c.match(/\<p class="caption-text"\>(.*)\<\/p\>/);caption_html=(caption&&caption[0])?caption[0]:'';caption=(caption&&caption[1])?caption[1].replace(/"/g,'\\"'):'';c=c.replace(caption_html,'');return'[caption'+(caption?(' caption="'+caption+'"'):'')+(t?(' align="'+t+'"'):'')+']'+c+'[/caption]'})}})(jQuery);(function(e){Drupal.googleanalytics={};e(document).ready(function(){e(document.body).bind("mousedown keyup touchstart",function(t){e(t.target).closest("a,area").each(function(){if(Drupal.googleanalytics.isInternal(this.href)){if(e(this).is(".colorbox")&&(Drupal.settings.googleanalytics.trackColorbox)){}
else if(Drupal.settings.googleanalytics.trackDownload&&Drupal.googleanalytics.isDownload(this.href)){ga("send",{"hitType":"event","eventCategory":"Downloads","eventAction":Drupal.googleanalytics.getDownloadExtension(this.href).toUpperCase(),"eventLabel":Drupal.googleanalytics.getPageUrl(this.href),"transport":"beacon"})}
else if(Drupal.googleanalytics.isInternalSpecial(this.href)){ga("send",{"hitType":"pageview","page":Drupal.googleanalytics.getPageUrl(this.href),"transport":"beacon"})}}
else{if(Drupal.settings.googleanalytics.trackMailto&&e(this).is("a[href^='mailto:'],area[href^='mailto:']")){ga("send",{"hitType":"event","eventCategory":"Mails","eventAction":"Click","eventLabel":this.href.substring(7),"transport":"beacon"})}
else if(Drupal.settings.googleanalytics.trackOutbound&&this.href.match(/^\w+:\/\//i)){if(Drupal.settings.googleanalytics.trackDomainMode!==2||(Drupal.settings.googleanalytics.trackDomainMode===2&&!Drupal.googleanalytics.isCrossDomain(this.hostname,Drupal.settings.googleanalytics.trackCrossDomains))){ga("send",{"hitType":"event","eventCategory":"Outbound links","eventAction":"Click","eventLabel":this.href,"transport":"beacon"})}}}})});if(Drupal.settings.googleanalytics.trackUrlFragments){window.onhashchange=function(){ga("send",{"hitType":"pageview","page":location.pathname+location.search+location.hash})}};if(Drupal.settings.googleanalytics.trackColorbox){e(document).bind("cbox_complete",function(){var t=e.colorbox.element().attr("href");if(t){ga("send",{"hitType":"pageview","page":Drupal.googleanalytics.getPageUrl(t)})}})}});Drupal.googleanalytics.isCrossDomain=function(t,a){if(!a){return!1}
else{return e.inArray(t,a)>-1?!0:!1}};Drupal.googleanalytics.isDownload=function(e){var t=new RegExp("\\.("+Drupal.settings.googleanalytics.trackDownloadExtensions+")([\?#].*)?$","i");return t.test(e)};Drupal.googleanalytics.isInternal=function(e){var t=new RegExp("^(https?):\/\/"+window.location.host,"i");return t.test(e)};Drupal.googleanalytics.isInternalSpecial=function(e){var t=new RegExp("(\/go\/.*)$","i");return t.test(e)};Drupal.googleanalytics.getPageUrl=function(e){var t=new RegExp("^(https?):\/\/"+window.location.host,"i");return e.replace(t,"")};Drupal.googleanalytics.getDownloadExtension=function(e){var a=new RegExp("\\.("+Drupal.settings.googleanalytics.trackDownloadExtensions+")([\?#].*)?$","i"),t=a.exec(e);return(t===null)?"":t[1]}})(jQuery);[].filter||(Array.prototype.filter=function(e,t,c,r,a){c=this;r=[];for(a in c)~~a+''==a&&a>=0&&e.call(t,c[a],+a,c)&&r.push(c[a]);return r});if(!Array.prototype.lastIndexOf){Array.prototype.lastIndexOf=function(e){'use strict';if(this==null){throw new TypeError()};var r=Object(this),a=r.length>>>0;if(a===0){return-1};var t=a;if(arguments.length>1){t=Number(arguments[1]);if(t!=t){t=0}
else{if(t!=0&&t!=(1/0)&&t!=-(1/0)){t=(t>0||-1)*Math.floor(Math.abs(t))}}};var c=t>=0?Math.min(t,a-1):a-Math.abs(t);for(;c>=0;c--){if(c in r&&r[c]===e){return c}};return-1}}(function(e){Drupal.rc_ua={trackAddtoCartFunc:function(e,t,c){var r,a,i='rc.ecom.addToCart';if(t.parents('[data-rc-ua-ecommerce-detail]').length>0){a='Details'}
else{if(t.parents().find('.ui-dialog').length>0){i='rc.ecom.addToCartQuote';a='Detailed Quote'}
else{var o=t.parents('[data-rc-ua-ecommerce-impression]').data('data-rc-ua-ecommerce-list');a='List: '+o}};if(Drupal.settings.rc_ua.rc_ua_tracking_method=='tm'){r={'event':i,'eventCategory':'eCommerce','eventAction':'Add to Cart from '+a,'eventLabel':e.id,'ecommerce':{'add':{'products':[e]}},'eventCallback':c,'callback':c};window[Drupal.settings.rc_ua.rc_ua_tm_datalayer].push(r)}
else{ga('ec:addProduct',e);ga('ec:setAction','add');ga('send',{'hitType':'event','eventCategory':'eCommerce','eventAction':'Add to Cart from '+a,'eventLabel':e.id,'eventValue':Math.round(e.price),'hitCallback':c})};ga4.event({event:'add_to_cart',value:Math.round(e.price),eventAction:'Add to Cart from '+a,eventCategory:'eCommerce',eventLabel:e.id,items:[e]})},trackCheckoutStepFunc:function(e,t,c){if(Drupal.settings.rc_ua.rc_ua_tracking_method=='tm'){dlo=Object.assign({},t,{'callback':c,'eventCallback':c,'eventCategory':'eCommerce','eventAction':'Checkout Step','eventLabel':e.step});window[Drupal.settings.rc_ua.rc_ua_tm_datalayer].push(dlo)}
else{ga('ec:addProduct',e.product);ga('ec:setAction','checkout',{'step':e.step});ga('send',{'hitType':'event','eventCategory':'eCommerce','eventAction':'Checkout Step','eventLabel':e.step,'eventValue':Math.round(e.product.price),'hitCallback':c})};ga4.event({value:Math.round(e.product.price),items:[e.product],step:e.step,event:'begin_checkout',eventCategory:'eCommerce',eventAction:'Checkout Step',eventLabel:e.step,})}};Drupal.behaviors.rc_ua={initProductClicks:function(t,c){e('[data-rc-ua-ecommerce-click-path]:not([data-rc-ua-ecommerce-click-path=""])',t).once('rc_ua_initProductClicks',function(){var c=e(this).attr('data-rc-ua-ecommerce-click-path'),t=e.parseJSON(e(this).attr('data-rc-ua-ecommerce-impression')),a=this;e('a',this).each(function(){var a=e(this).attr('href');if(a!==undefined&&a.indexOf(c)==0){e(this).click(function(c){c.preventDefault();var a=e(this).attr('href');if(Drupal.settings.rc_ua.rc_ua_tracking_method=='tm'){obj={'event':'rc.ecom.productClick','eventCategory':'eCommerce','eventAction':'Product Click','eventLabel':t.id,'ecommerce':{'click':{'actionField':{list:t.list,position:t.position},'products':[t]}},'eventCallback':function(){window.location=a}};window[Drupal.settings.rc_ua.rc_ua_tm_datalayer].push(obj)}
else{ga('ec:addProduct',t);ga('ec:setAction','click',{list:t.list});ga('send',{'hitType':'event','eventCategory':'eCommerce','eventAction':'Product Click','eventLabel':t.id,'eventValue':null,'hitCallback':function(){window.location=a}});ga4.event({event:'select_item',eventCategory:'eCommerce',eventAction:'Product Click',eventLabel:t.id,items:[t],});setTimeout(function(){window.location=a},2000)}})}})})},initProductLists:function(t,c){if(Drupal.settings.rc_ua.rc_ua_tracking_method!='ua'){return};e('[data-rc-ua-ecommerce-list]:not([data-rc-ua-ecommerce-list=""])',t).once('rc_ua_trackProductLists',function(){var t=e(this).attr('data-rc-ua-ecommerce-list'),c=parseInt(e(this).attr('data-rc-ua-ecommerce-list-start'));e('[data-rc-ua-ecommerce-impression]',this).each(function(a,r){e(this).data('data-rc-ua-ecommerce-list',t);e(this).data('data-rc-ua-ecommerce-list-pos',c+a+1)})})},trackProductImpressions:function(t,c){var u=!1,s=10,i=0,d=e('[data-rc-ua-ecommerce-impression]:not([data-rc-ua-ecommerce-impression=""])',t).length,o=0,r=[],a=[],n=function(e){return e.filter(function(e,t,c){return c.lastIndexOf(e)===t})};e('[data-rc-ua-ecommerce-impression]:not([data-rc-ua-ecommerce-impression=""])',t).once('rc_ua_trackProductImpressions',function(){var t=e.parseJSON(e(this).attr('data-rc-ua-ecommerce-impression')),c=e(this).data('data-rc-ua-ecommerce-list-pos'),d=e(this).data('data-rc-ua-ecommerce-list');if(typeof(d)!='undefined'&&d){t.list=d};if(typeof(c)!='undefined'&&c){t.pos=c};if(Drupal.settings.rc_ua.rc_ua_tracking_method=='tm'){window[Drupal.settings.rc_ua.rc_ua_tm_datalayer].push({eventLabel:t.list,eventCategory:'eCommerce',eventAction:'Product Impressions','event':'rc.ecom.impressions','ecommerce':{'impressions':[t]}})}
else{ga('ec:addImpression',t);i++;r.push(t.list);if((i%s)==0){a=n(r);ga('send',{'hitType':'event','eventCategory':'eCommerce','eventAction':'Product Impressions','eventLabel':'Lists: '+a.join(),'eventValue':null,'nonInteraction':1});o=o+i;i=0;r=[]};u=!0};a=n(r);ga4.event({event:'view_item',eventCategory:'eCommerce',eventAction:'Product Impressions',eventLabel:'Lists: '+a.join(),items:[t]})});if(Drupal.settings.rc_ua.rc_ua_tracking_method!='tm'&&u&&o<d){a=n(r);ga('send',{'hitType':'event','eventCategory':'eCommerce','eventAction':'Product Impressions','eventLabel':'Lists:'+a.join(),'eventValue':null,'nonInteraction':1})}},trackProductDetails:function(t,c){e('[data-rc-ua-ecommerce-detail]:not([data-rc-ua-ecommerce-detail=""])',t).once('rc_ua_trackProductDetails',function(){var t=e.parseJSON(e(this).attr('data-rc-ua-ecommerce-detail'));if(Drupal.settings.rc_ua.rc_ua_tracking_method==='ua'){ga('ec:addProduct',t);ga('ec:setAction','detail');ga('send',{'hitType':'event','eventCategory':'eCommerce','eventAction':'Product Detail View','eventLabel':t.id,'eventValue':Math.round(t.price),'nonInteraction':1})}
else if(Drupal.settings.rc_ua.rc_ua_tracking_method==='tm'){window[Drupal.settings.rc_ua.rc_ua_tm_datalayer].push({'event':'rc.ecom.productDetails','eventCategory':'eCommerce','eventAction':'Product Detail View','eventLabel':t.id,'eventValue':Math.round(t.price),'ecommerce':{'detail':{'products':[t]}}})};ga4.event({event:'view_item',value:Math.round(t.price),items:[t],eventCategory:'eCommerce',eventAction:'Product Impressions',eventLabel:t.id})})},trackAddToCart:function(t,c){var a;e('[data-rc-ua-ecommerce-submit-addtocart]:not([data-rc-ua-ecommerce-submit-addtocart=""])',t).once('rc_ua_trackSubmitAddToCart',function(){a=e.parseJSON(e(this).attr('data-rc-ua-ecommerce-submit-addtocart'));e(this).on('submit',function(){var t=this;if(!e(this).hasClass('rc-ua-tracked-item')){var c=function(){e(t).addClass('rc-ua-tracked-item');e('.form-submit',t).click()};Drupal.rc_ua.trackAddtoCartFunc(a,e(this),c);return!1};return!0})});e('[data-rc-ua-ecommerce-click-addtocart]:not([data-rc-ua-ecommerce-click-addtocart=""])',t).once('rc_ua_trackClickAddToCart',function(){a=e.parseJSON(e(this).attr('data-rc-ua-ecommerce-click-addtocart'));e(this).on('click',function(){var t=this;if(!e(this).hasClass('rc-ua-tracked-item')){var c=function(){e(t).addClass('rc-ua-tracked-item');e(t).click()};Drupal.rc_ua.trackAddtoCartFunc(a,e(this),c);return!1};return!0})});e('[data-rc-ua-ecommerce-addtocart]:not([data-rc-ua-ecommerce-addtocart=""])',t).once('rc_ua_trackAddToCart',function(){a=e.parseJSON(e(this).attr('data-rc-ua-ecommerce-addtocart'));Drupal.rc_ua.trackAddtoCartFunc(a,e(this))})},trackCheckoutSteps:function(t,a){var c,r,i;e('[data-rc-ua-ecommerce-submit-checkoutsteps]:not([data-rc-ua-ecommerce-submit-checkoutsteps=""])',t).once('rc_ua_trackSubmitCheckoutSteps',function(){e(this).submit(function(t){var a=this;if(!e(this).hasClass('rc-ua-tracked-item')){i=function(){e(a).addClass('rc-ua-tracked-item');e('.form-submit',a).last().trigger('click')};c=e.parseJSON(e(this).attr('data-rc-ua-ecommerce-submit-checkoutsteps'));r={'event':'rc.ecom.checkout','ecommerce':{'checkout':{'actionField':{'step':c.step},'products':[c.product]}}};Drupal.rc_ua.trackCheckoutStepFunc(c,r,i);return!1};return!0})});e('[data-rc-ua-ecommerce-click-checkoutsteps]:not([data-rc-ua-ecommerce-click-checkoutsteps=""])',t).once('rc_ua_trackClickCheckoutSteps',function(){c=e.parseJSON(e(this).attr('data-rc-ua-ecommerce-click-checkoutsteps'));r={'event':'rc.ecom.checkout','ecommerce':{'checkout':{'actionField':{'step':c.step},'products':[c.product]}}};e(this).on('click',function(){Drupal.rc_ua.trackCheckoutStepFunc(c,r)})});e('[data-rc-ua-ecommerce-checkoutsteps]:not([data-rc-ua-ecommerce-checkoutsteps=""])',t).once('rc_ua_trackCheckoutSteps',function(){c=e.parseJSON(e(this).attr('data-rc-ua-ecommerce-checkoutsteps'));r={'event':'rc.ecom.checkout','ecommerce':{'checkout':{'actionField':{'step':c.step},'products':[c.product]}}};Drupal.rc_ua.trackCheckoutStepFunc(c,r)})},attach:function(e,t){if(Drupal.settings.rc_ua.rc_ua_tracking_method=='ua'&&typeof ga!='undefined'){ga('require','ec')}
else if(Drupal.settings.rc_ua.rc_ua_tracking_method=='tm'){if(typeof(window[Drupal.settings.rc_ua.rc_ua_tm_datalayer])=='undefined'){return}}
else if(Drupal.settings.rc_ua.rc_ua_tracking_method!='tm'){return};this.initProductClicks(e,t);this.initProductLists(e,t);this.trackProductImpressions(e,t);this.trackProductDetails(e,t);this.trackAddToCart(e,t);this.trackCheckoutSteps(e,t)}}})(jQuery);(function(t){var o=function(){var t=window.navigator.userAgent,n=t.indexOf('MSIE ');if(n>0){return parseInt(t.substring(n+5,t.indexOf('.',n)),10)};var i=t.indexOf('Trident/');if(i>0){var r=t.indexOf('rv:');return parseInt(t.substring(r+3,t.indexOf('.',r)),10)};var e=t.indexOf('Edge/');if(e>0){return parseInt(t.substring(e+5,t.indexOf('.',e)),10)};return!1},s=!0,n=(typeof IntersectionObserver=='undefined'||o())?undefined:new IntersectionObserver(function(t){for(ind in t){if(t[ind].isIntersecting){a(t[ind].target);n.unobserve(t[ind].target)}}},{rootMargin:'80px 0px 80px 0px'});var e=(typeof IntersectionObserver=='undefined'||o())?undefined:new IntersectionObserver(function(t){for(ind in t){if(t[ind].isIntersecting){i(t[ind].target);e.unobserve(t[ind].target)}}},{rootMargin:'80px 0px 80px 0px'});var a=function(e){var r=t(e),n;if(s){d(r)}
else{n=r.attr('data-srcset');if(n){n='srcset="'+n+'" '};t('<img src="'+r.attr('data-src')+'" '+n+'/>').on('load',function(){d(r)})}};function d(t){var n=t.attr('data-src'),e=t.attr('data-srcset');t.attr('src',n);t.addClass('bto-lazy-loaded').removeClass('bto-lazy');if(e){t.attr('srcset',e)}};var r=function(r){t('img[data-src].bto-lazy',r).once('btoLazyLoad',function(){if(typeof n!='undefined'){n.observe(this)}
else{a(this)}});t('div.bto-lazy-jump',r).once('btoLazyLoad',function(){if(typeof e!='undefined'){e.observe(this)}
else{i(this)}})},i=function(e){t.get(t(e).attr('data-bto-jump-select'),function(n){var r=t(n);t(r).addClass('bto-lazy-loaded').removeClass('bto-lazy');t(e).replaceWith(r);Drupal.attachBehaviors(r,Drupal.settings)})};Drupal.behaviors.btoLazyLoad={attach:function(t){r(t)}};r(document);t(document).ready(function(){s=!1})})(jQuery);(function(o){Drupal.behaviors.CToolsJumpMenu={attach:function(e){o('.ctools-jump-menu-hide').once('ctools-jump-menu').hide();o('.ctools-jump-menu-change').once('ctools-jump-menu').change(function(){var e=o(this).val(),n=e.split('::');if(n[1]){location.href=n[1]}
else{location.href=e};return!1});o('.ctools-jump-menu-button').once('ctools-jump-menu').click(function(){var t=o(this).parents('form').find('.ctools-jump-menu-select'),e=t.val(),n=e.split('::');if(n[1]){location.href=n[1]}
else{location.href=e};return!1})}}})(jQuery);(function(t){Drupal.progressBar=function(r,i,e,s){var a=this;this.id=r;this.method=e||'GET';this.updateCallback=i;this.errorCallback=s;this.element=t('<div class="progress" aria-live="polite"></div>').attr('id',r);this.element.html('<div class="bar"><div class="filled"></div></div><div class="percentage"></div><div class="message">&nbsp;</div>')};Drupal.progressBar.prototype.setProgress=function(r,i){if(r>=0&&r<=100){t('div.filled',this.element).css('width',r+'%');t('div.percentage',this.element).html(r+'%')};t('div.message',this.element).html(i);if(this.updateCallback){this.updateCallback(r,i,this)}};Drupal.progressBar.prototype.startMonitoring=function(t,r){this.delay=r;this.uri=t;this.sendPing()};Drupal.progressBar.prototype.stopMonitoring=function(){clearTimeout(this.timer);this.uri=null};Drupal.progressBar.prototype.sendPing=function(){if(this.timer){clearTimeout(this.timer)};if(this.uri){var r=this;t.ajax({type:this.method,url:this.uri,data:'',dataType:'json',success:function(t){if(t.status==0){r.displayError(t.data);return};r.setProgress(t.percentage,t.message);r.timer=setTimeout(function(){r.sendPing()},r.delay)},error:function(t){r.displayError(Drupal.ajaxError(t,r.uri))}})}};Drupal.progressBar.prototype.displayError=function(r){var i=t('<div class="messages error"></div>').html(r);t(this.element).before(i).hide();if(this.errorCallback){this.errorCallback(this)}}})(jQuery);riot.tag2('rc-riot-order', '<div class="tag-content"> <div if="{order}" class="order"> <a if="{opts.mode == \'widget\'}" class="totals trigger" onclick="{triggerClicked}"><i class="fi-shopping-bag"> </i> <span if="{opts.txt.order_label}" class="service-label">{opts.txt.order_label}</span><span class="price sub-total" if="{opts.txt.subtot && (order.tot || order.litot)}">{(order.tot || order.litot).toLocaleString(\'en\', {minimumFractionDigits: 0, maximumFractionDigits: 0, style: \'currency\', currency: \'USD\' })} </span><span if="{order.lict > 0}" class="vrweb-collection-block-count">{order.lict}</span></a> <div if="{opts.mode == \'detail\'}" class="order-detail" id="order-detail"> <div class="line-items" if="{order.lis}"> <h5>{opts.txt.summary}</h5> <div class="line-item rc-price" each="{ind, price in order.lis}"> <div if="{typeof parent.docs[price.eid] != \'undefined\' && typeof parent.docs[price.eid][parent.opts.image] != \'undefined\' && typeof parent.docs[price.eid][parent.opts.link] != \'undefined\'}" class="teaser-img"> <a href="{parent.docs[price.eid][parent.opts.link] + \'#\' + jQuery.param({rcav: JSON.stringify(price.qp) })}"><img riot-src="{parent.docs[price.eid][parent.opts.image]}"></a> </div> <div if="{typeof parent.docs[price.eid] != \'undefined\' && typeof parent.docs[price.eid][parent.opts.image] != \'undefined\' && typeof parent.docs[price.eid][parent.opts.link] == \'undefined\'}" class="teaser-img"> <img riot-src="{parent.docs[price.eid][parent.opts.image]}"> </div> <div class="group-summary"> <div if="{price.n != \'\' && typeof parent.docs[price.eid] != \'undefined\' && typeof parent.docs[price.eid][parent.opts.link] != \'undefined\'}" class="name"> <a href="{parent.docs[price.eid][parent.opts.link] + \'#\' + jQuery.param({rcav: JSON.stringify(price.qp) })}">{price.n}</a> </div> <div if="{price.n != \'\' && typeof parent.docs[price.eid] != \'undefined\' && typeof parent.docs[price.eid][parent.opts.link] == \'undefined\'}" class="name"> {price.n} </div> <div class="dates"> <span class="dates" if="{price.bt != price.et}">{parent.RCRiotUtils.formatTimestamp(price.bt)} - {parent.RCRiotUtils.formatTimestamp(price.et, {year: \'numeric\'})}</span> <span class="dates" if="{price.bt == price.et}">{parent.RCRiotUtils.formatTimestamp(price.bt, {year: \'numeric\'})}</span> </div> <span if="{price.dn != \'\'}" class="display-name">{price.dn}</span> <span if="{price.dd != \'\'}" class="display-detail">{price.dd}</span> <span class="trav-wrap"> <span if="{price.qp.rcav.adult > 0}" class="trav adult">{price.qp.rcav.adult} {price.qp.rcav.adult == 1 ? \'Adult\' : \'Adults\'}</span> <span if="{price.qp.rcav.child > 0}" class="trav child">{price.qp.rcav.child} {price.qp.rcav.child == 1 ? \'Child\' : \'Children\'}</span> </span> </div> <div class="details"> <div class="price"> <span if="{price.p != \'\'}" class="price">{parent.RCRiotUtils.formatPrice(price, 2)}</span> <button if="{parent.opts.txt.buy}" data-ind="{ind}" onclick="{parent.buyClick}">{parent.opts.txt.buy}</button> <button if="{parent.opts.txt.quote}" data-price="{price}" onclick="{parent.quoteClicked}" class="quote">{parent.opts.txt.quote} </div> </div> <div class="actions"> <button class="remove" data-ind="{ind}" onclick="{parent.removeClick}"> Remove </button> </div> </div> </div> <div if="{activities}" class="activities"> <h5>{opts.txt.activities}</h5> <rc-riot-activity-pane each="{ind, act in activities}" category="{act}" form_settings="{parent.form_settings}" trigger_text="+ {act.n}" combine="{true}"></rc-riot-activity-pane> </div> <div class="totals" if="{(order.tot > 0 || order.litot > 0) && opts.txt.subtot}">{opts.txt.subtot} <div class="total-price">{(order.tot || order.litot).toLocaleString(\'en\', {minimumFractionDigits: 2, maximumFractionDigits: 2, style: \'currency\', currency: \'USD\' })} <sup>{opts.txt.subtotann}</sup></div></div> <div class="actions bottom" if="{order.tot > 0 || order.litot > 0}"> <button if="{opts.txt.checkout}" class="checkout" onclick="{doOrderCheckout}">{opts.txt.checkout}</button> <subtag each="{_if(sharechild)}" tag="rc-riot-share-order" options="{parent.sharechild.options}"></subtag> </div> <div class="actions accom"> <button class="search-accom" onclick="{searchAccom}"> <i> <?xml version="1.0" encoding="utf-8"?> <svg version="1.1" id="search-icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewbox="0 0 80.5 84.8" style="enable-background:new 0 0 80.5 84.8;" xml:space="preserve" preserveaspectratio="xMinYMid"> <path class="st0" d="M3,33.4c0,8.1,3.2,15.8,8.9,21.5s13.4,8.9,21.5,8.9c5,0,9.7-1.2,14-3.4l12.7,13.7c1.6,1.7,3.7,2.6,5.9,2.6 c2,0,4-0.7,5.5-2.1c3.2-3,3.4-8,0.4-11.3L59.1,49.6c3.1-4.8,4.7-10.4,4.7-16.2c0-8.1-3.2-15.8-8.9-21.5S41.5,3,33.4,3 s-15.8,3.2-21.5,8.9C6.1,17.7,3,25.3,3,33.4z M18.7,18.8c3.9-3.9,9.2-6.1,14.7-6.1s10.8,2.2,14.7,6.1c8.1,8.1,8.1,21.3,0,29.4 c-3.9,3.9-9.2,6.1-14.7,6.1c-5.5,0-10.8-2.2-14.7-6.1C10.6,40,10.6,26.8,18.7,18.8z"></path> </svg> </i>{opts.txt.search_accom} <span id="search-link-arrow"> <?xml version="1.0" encoding="utf-8"?> <svg version="1.1" id="link-arrow" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewbox="-272 381.7 30.3 50.8" style="enable-background:new -272 381.7 30.3 50.8;" xml:space="preserve" preserveaspectratio="xMaxYMid"> <g> <path class="st0" d="M-263.6,431.1l20.4-20.4c0,0,0.1,0,0.1-0.1c1-1,1.4-2.2,1.4-3.5c0-1.3-0.5-2.5-1.4-3.5c0,0-0.1,0-0.1-0.1 l-20.4-20.4c-1.9-1.9-5.1-1.9-7,0s-1.9,5.1,0,7l17,17l-17,17c-1.9,1.9-1.9,5.1,0,7C-268.6,433-265.5,433-263.6,431.1z"></path> </g> </svg> </span></button> </div> </div> </div> </div>', '.st0{fill:#1b76de;} .st0{fill:#1B76DE;} @-webkit-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @-moz-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @-o-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } rc-riot-order,[riot-tag="rc-riot-order"],[data-is="rc-riot-order"]{ display: block; } rc-riot-order .order-detail .md-content,[riot-tag="rc-riot-order"] .order-detail .md-content,[data-is="rc-riot-order"] .order-detail .md-content{ padding-bottom: 50px; } rc-riot-order .actions.accom,[riot-tag="rc-riot-order"] .actions.accom,[data-is="rc-riot-order"] .actions.accom{ padding-top: 10px; } rc-riot-order .search-accom,[riot-tag="rc-riot-order"] .search-accom,[data-is="rc-riot-order"] .search-accom{ background: none; border-radius: none; display: block; color: #ff1e00; position: absolute; margin: auto; top: auto; bottom: 0; left: 0; right: 0; width: 100%; height: 50px; border-radius: 0; text-align: left; border-top: solid 1px #ff1e00; } rc-riot-order .search-accom #search-link-arrow,[riot-tag="rc-riot-order"] .search-accom #search-link-arrow,[data-is="rc-riot-order"] .search-accom #search-link-arrow{ display: inline-block; width: 10px; height: 12px; position: absolute; bottom: 20px; right: 15px; transition: right .15s ease-out; } rc-riot-order .search-accom #search-link-arrow #link-arrow,[riot-tag="rc-riot-order"] .search-accom #search-link-arrow #link-arrow,[data-is="rc-riot-order"] .search-accom #search-link-arrow #link-arrow{ height: 12px; } rc-riot-order .search-accom:hover,[riot-tag="rc-riot-order"] .search-accom:hover,[data-is="rc-riot-order"] .search-accom:hover,rc-riot-order .search-accom:active,[riot-tag="rc-riot-order"] .search-accom:active,[data-is="rc-riot-order"] .search-accom:active{ background: none; color: #111; } rc-riot-order .search-accom:hover .search-link-arrow,[riot-tag="rc-riot-order"] .search-accom:hover .search-link-arrow,[data-is="rc-riot-order"] .search-accom:hover .search-link-arrow,rc-riot-order .search-accom:active .search-link-arrow,[riot-tag="rc-riot-order"] .search-accom:active .search-link-arrow,[data-is="rc-riot-order"] .search-accom:active .search-link-arrow{ right: 25px; } rc-riot-order .search-accom i,[riot-tag="rc-riot-order"] .search-accom i,[data-is="rc-riot-order"] .search-accom i{ display: inline-block; width: 15px; height: 18px; margin-bottom: -3px; margin-right: 6px; } rc-riot-order .line-items > h5,[riot-tag="rc-riot-order"] .line-items > h5,[data-is="rc-riot-order"] .line-items > h5{ color: #111; margin-top: -5px; } rc-riot-order .line-items .line-item,[riot-tag="rc-riot-order"] .line-items .line-item,[data-is="rc-riot-order"] .line-items .line-item{ background: #fff; text-align: left; position: relative; padding: 15px 0; border-top: dotted 1px rgba(17, 17, 17, 0.1); } @media only screen and (min-width: 36.5625em) { rc-riot-order .line-items .line-item:after,[riot-tag="rc-riot-order"] .line-items .line-item:after,[data-is="rc-riot-order"] .line-items .line-item:after{ content: \'\'; display: block; width: 0; height: 0; clear: both; } } rc-riot-order .line-items .line-item .name,[riot-tag="rc-riot-order"] .line-items .line-item .name,[data-is="rc-riot-order"] .line-items .line-item .name{ height: auto; color: #111; font-size: 17px; } @media only screen and (min-width: 36.5625em) { rc-riot-order .line-items .line-item .name,[riot-tag="rc-riot-order"] .line-items .line-item .name,[data-is="rc-riot-order"] .line-items .line-item .name{ padding-right: 75px; } } rc-riot-order .line-items .line-item .name a,[riot-tag="rc-riot-order"] .line-items .line-item .name a,[data-is="rc-riot-order"] .line-items .line-item .name a{ text-decoration: underline; color: #111; } rc-riot-order .line-items .line-item .name a:hover,[riot-tag="rc-riot-order"] .line-items .line-item .name a:hover,[data-is="rc-riot-order"] .line-items .line-item .name a:hover,rc-riot-order .line-items .line-item .name a:active,[riot-tag="rc-riot-order"] .line-items .line-item .name a:active,[data-is="rc-riot-order"] .line-items .line-item .name a:active{ text-decoration: none; } rc-riot-order .line-items .line-item .teaser-img,[riot-tag="rc-riot-order"] .line-items .line-item .teaser-img,[data-is="rc-riot-order"] .line-items .line-item .teaser-img{ width: 100%; background-size: auto 30px; padding: 0; } @media only screen and (min-width: 36.5625em) { rc-riot-order .line-items .line-item .teaser-img,[riot-tag="rc-riot-order"] .line-items .line-item .teaser-img,[data-is="rc-riot-order"] .line-items .line-item .teaser-img{ width: 33.33333%; float: left; padding-left: 15px; padding-right: 15px; position: relative; padding-left: 0; padding-right: 0; } } rc-riot-order .line-items .line-item span.trav-wrap,[riot-tag="rc-riot-order"] .line-items .line-item span.trav-wrap,[data-is="rc-riot-order"] .line-items .line-item span.trav-wrap,rc-riot-order .line-items .line-item div.dates,[riot-tag="rc-riot-order"] .line-items .line-item div.dates,[data-is="rc-riot-order"] .line-items .line-item div.dates{ font-size: 14px; } rc-riot-order .line-items .line-item .actions button,[riot-tag="rc-riot-order"] .line-items .line-item .actions button,[data-is="rc-riot-order"] .line-items .line-item .actions button{ position: absolute; top: 20px; right: 5px; display: block; width: 70px; height: 26px; padding: 0; background-size: auto 15px; padding: 0; overflow: hidden; overflow: hidden; font-size: 11px; text-transform: uppercase; letter-spacing: .075em; border: solid 1px #111; color: #111; background: none; min-height: 0px; background-color: #fff; } rc-riot-order .line-items .line-item .actions button:hover,[riot-tag="rc-riot-order"] .line-items .line-item .actions button:hover,[data-is="rc-riot-order"] .line-items .line-item .actions button:hover,rc-riot-order .line-items .line-item .actions button:active,[riot-tag="rc-riot-order"] .line-items .line-item .actions button:active,[data-is="rc-riot-order"] .line-items .line-item .actions button:active{ background-color: #111; color: #fff; } @media only screen and (min-width: 36.5625em) { rc-riot-order .line-items .line-item .actions button,[riot-tag="rc-riot-order"] .line-items .line-item .actions button,[data-is="rc-riot-order"] .line-items .line-item .actions button{ right: 0px; top: 15px; } } rc-riot-order .line-items .teaser-image,[riot-tag="rc-riot-order"] .line-items .teaser-image,[data-is="rc-riot-order"] .line-items .teaser-image,rc-riot-order .line-items div.dates,[riot-tag="rc-riot-order"] .line-items div.dates,[data-is="rc-riot-order"] .line-items div.dates,rc-riot-order .line-items .name,[riot-tag="rc-riot-order"] .line-items .name,[data-is="rc-riot-order"] .line-items .name,rc-riot-order .line-items div.details,[riot-tag="rc-riot-order"] .line-items div.details,[data-is="rc-riot-order"] .line-items div.details{ color: #111; } @media only screen and (min-width: 36.5625em) { rc-riot-order .line-items .teaser-image,[riot-tag="rc-riot-order"] .line-items .teaser-image,[data-is="rc-riot-order"] .line-items .teaser-image,rc-riot-order .line-items div.dates,[riot-tag="rc-riot-order"] .line-items div.dates,[data-is="rc-riot-order"] .line-items div.dates,rc-riot-order .line-items .name,[riot-tag="rc-riot-order"] .line-items .name,[data-is="rc-riot-order"] .line-items .name,rc-riot-order .line-items div.details,[riot-tag="rc-riot-order"] .line-items div.details,[data-is="rc-riot-order"] .line-items div.details{ width: 66.66667%; float: left; padding-left: 15px; padding-right: 15px; position: relative; float: right; clear: right; } } rc-riot-order .line-items .teaser-image div.price span.price,[riot-tag="rc-riot-order"] .line-items .teaser-image div.price span.price,[data-is="rc-riot-order"] .line-items .teaser-image div.price span.price,rc-riot-order .line-items div.dates div.price span.price,[riot-tag="rc-riot-order"] .line-items div.dates div.price span.price,[data-is="rc-riot-order"] .line-items div.dates div.price span.price,rc-riot-order .line-items .name div.price span.price,[riot-tag="rc-riot-order"] .line-items .name div.price span.price,[data-is="rc-riot-order"] .line-items .name div.price span.price,rc-riot-order .line-items div.details div.price span.price,[riot-tag="rc-riot-order"] .line-items div.details div.price span.price,[data-is="rc-riot-order"] .line-items div.details div.price span.price{ color: #ff1e00; font-size: 18px; font-weight: bold; } rc-riot-order .line-items .teaser-image div.price button,[riot-tag="rc-riot-order"] .line-items .teaser-image div.price button,[data-is="rc-riot-order"] .line-items .teaser-image div.price button,rc-riot-order .line-items div.dates div.price button,[riot-tag="rc-riot-order"] .line-items div.dates div.price button,[data-is="rc-riot-order"] .line-items div.dates div.price button,rc-riot-order .line-items .name div.price button,[riot-tag="rc-riot-order"] .line-items .name div.price button,[data-is="rc-riot-order"] .line-items .name div.price button,rc-riot-order .line-items div.details div.price button,[riot-tag="rc-riot-order"] .line-items div.details div.price button,[data-is="rc-riot-order"] .line-items div.details div.price button{ font-size: 13px; text-transform: none; padding: 6px 8px; height: auto; letter-spacing: .03em; margin-bottom: 6px; margin-left: 4px; background: #ff1e00; text-transform: uppercase; min-height: 0; } rc-riot-order .line-items .teaser-image div.price button:hover,[riot-tag="rc-riot-order"] .line-items .teaser-image div.price button:hover,[data-is="rc-riot-order"] .line-items .teaser-image div.price button:hover,rc-riot-order .line-items .teaser-image div.price button:active,[riot-tag="rc-riot-order"] .line-items .teaser-image div.price button:active,[data-is="rc-riot-order"] .line-items .teaser-image div.price button:active,rc-riot-order .line-items div.dates div.price button:hover,[riot-tag="rc-riot-order"] .line-items div.dates div.price button:hover,[data-is="rc-riot-order"] .line-items div.dates div.price button:hover,rc-riot-order .line-items div.dates div.price button:active,[riot-tag="rc-riot-order"] .line-items div.dates div.price button:active,[data-is="rc-riot-order"] .line-items div.dates div.price button:active,rc-riot-order .line-items .name div.price button:hover,[riot-tag="rc-riot-order"] .line-items .name div.price button:hover,[data-is="rc-riot-order"] .line-items .name div.price button:hover,rc-riot-order .line-items .name div.price button:active,[riot-tag="rc-riot-order"] .line-items .name div.price button:active,[data-is="rc-riot-order"] .line-items .name div.price button:active,rc-riot-order .line-items div.details div.price button:hover,[riot-tag="rc-riot-order"] .line-items div.details div.price button:hover,[data-is="rc-riot-order"] .line-items div.details div.price button:hover,rc-riot-order .line-items div.details div.price button:active,[riot-tag="rc-riot-order"] .line-items div.details div.price button:active,[data-is="rc-riot-order"] .line-items div.details div.price button:active{ background: #111; } rc-riot-order .line-items .teaser-image div.price button.quote,[riot-tag="rc-riot-order"] .line-items .teaser-image div.price button.quote,[data-is="rc-riot-order"] .line-items .teaser-image div.price button.quote,rc-riot-order .line-items div.dates div.price button.quote,[riot-tag="rc-riot-order"] .line-items div.dates div.price button.quote,[data-is="rc-riot-order"] .line-items div.dates div.price button.quote,rc-riot-order .line-items .name div.price button.quote,[riot-tag="rc-riot-order"] .line-items .name div.price button.quote,[data-is="rc-riot-order"] .line-items .name div.price button.quote,rc-riot-order .line-items div.details div.price button.quote,[riot-tag="rc-riot-order"] .line-items div.details div.price button.quote,[data-is="rc-riot-order"] .line-items div.details div.price button.quote{ display: inline; background: none; min-height: 0; padding: 0; height: auto; background: none; color: #ff1e00; text-decoration: underline !important; border-radius: 0; text-transform: none; margin: 0; font-weight: 400; display: block; } rc-riot-order .line-items .teaser-image div.price button.quote:hover,[riot-tag="rc-riot-order"] .line-items .teaser-image div.price button.quote:hover,[data-is="rc-riot-order"] .line-items .teaser-image div.price button.quote:hover,rc-riot-order .line-items .teaser-image div.price button.quote:active,[riot-tag="rc-riot-order"] .line-items .teaser-image div.price button.quote:active,[data-is="rc-riot-order"] .line-items .teaser-image div.price button.quote:active,rc-riot-order .line-items div.dates div.price button.quote:hover,[riot-tag="rc-riot-order"] .line-items div.dates div.price button.quote:hover,[data-is="rc-riot-order"] .line-items div.dates div.price button.quote:hover,rc-riot-order .line-items div.dates div.price button.quote:active,[riot-tag="rc-riot-order"] .line-items div.dates div.price button.quote:active,[data-is="rc-riot-order"] .line-items div.dates div.price button.quote:active,rc-riot-order .line-items .name div.price button.quote:hover,[riot-tag="rc-riot-order"] .line-items .name div.price button.quote:hover,[data-is="rc-riot-order"] .line-items .name div.price button.quote:hover,rc-riot-order .line-items .name div.price button.quote:active,[riot-tag="rc-riot-order"] .line-items .name div.price button.quote:active,[data-is="rc-riot-order"] .line-items .name div.price button.quote:active,rc-riot-order .line-items div.details div.price button.quote:hover,[riot-tag="rc-riot-order"] .line-items div.details div.price button.quote:hover,[data-is="rc-riot-order"] .line-items div.details div.price button.quote:hover,rc-riot-order .line-items div.details div.price button.quote:active,[riot-tag="rc-riot-order"] .line-items div.details div.price button.quote:active,[data-is="rc-riot-order"] .line-items div.details div.price button.quote:active{ background: none; text-decoration: none !important; } rc-riot-order .md-close,[riot-tag="rc-riot-order"] .md-close,[data-is="rc-riot-order"] .md-close{ position: absolute; top: 10px; right: 10px; display: block; width: 30px; height: 30px; background: url("/sites/all/modules/bluetent/riot_solr/images/icon-x-black.svg") center no-repeat; padding: 0; background-size: auto 20px; } rc-riot-order .totals,[riot-tag="rc-riot-order"] .totals,[data-is="rc-riot-order"] .totals{ text-align: center; padding-top: 10px; } rc-riot-order .totals .total-price,[riot-tag="rc-riot-order"] .totals .total-price,[data-is="rc-riot-order"] .totals .total-price{ font-size: 24px; color: #ff1e00; } rc-riot-order .actions.bottom,[riot-tag="rc-riot-order"] .actions.bottom,[data-is="rc-riot-order"] .actions.bottom{ text-align: center; padding-bottom: 10px; } rc-riot-order .actions.bottom button,[riot-tag="rc-riot-order"] .actions.bottom button,[data-is="rc-riot-order"] .actions.bottom button{ background-color: #ff1e00; border-radius: 3px; color: #fff; display: inline-block; text-align: center; border: none; transition-property: background-color, color; transition-timing-function: ease-in-out; transition-duration: .15s; letter-spacing: .03em; font-family: "Helvetica", Helvetica, "Arial", Arial, sans-serif; line-height: 1.3 !important; padding: 10px 12px; font-size: 15px; min-height: 38px; width: auto; font-size: 14px; text-transform: none; padding: 7px 10px; height: auto; letter-spacing: .03em; } rc-riot-order .actions.bottom button:hover,[riot-tag="rc-riot-order"] .actions.bottom button:hover,[data-is="rc-riot-order"] .actions.bottom button:hover,rc-riot-order .actions.bottom button:active,[riot-tag="rc-riot-order"] .actions.bottom button:active,[data-is="rc-riot-order"] .actions.bottom button:active{ background-color: #db1a00; } @media only screen and (min-width: 48em) { rc-riot-order .actions.bottom button,[riot-tag="rc-riot-order"] .actions.bottom button,[data-is="rc-riot-order"] .actions.bottom button{ font-size: 16px; } } .reveal-modal rc-riot-order,.reveal-modal [riot-tag="rc-riot-order"],.reveal-modal [data-is="rc-riot-order"]{ display: block; margin-bottom: 35px; } rc-riot-order .service-label,[riot-tag="rc-riot-order"] .service-label,[data-is="rc-riot-order"] .service-label{ margin-left: .3em; }', 'class="mode-{opts.mode}"', function(opts) {
        this.mixin('RiotSolrConnection');
        this.mixin('RiotSolrItemsContainer');
        this.mixin('RCRiotOrder');
        this.mixin('RCRiotAvailPricing');
        this.mixin('RCRiotUtils');
        this.mixin('RiotTagsChildren');
        if(typeof RCAddonProvider !== 'undefined') {
            this.mixin('RCAddonProvider');
        }
        this.classes = {
            'tag-content': true,
        };
        (function($, tag) {
            var pcFunc = tag.processChildren;
            tag.docs = {};
            tag.activities = null;
            tag.orderdocs = {};
            tag.classes['mode-' + opts.mode] = true;
            tag.on('update', function() {
                tag.order = tag.getOrderData();
            });
            tag.RCRiotOrder.on('OrderUpdated', function(order) {
                tag.update();
            });
            tag.removeClick = function(e) {
                tag.removeOrderLineItem(e.item.ind);
            };
            tag.buyClick = function(e) {
                tag.buyOrderLineItem(e.item.ind);
            };
            tag.searchAccom = function(e) {
                tag.doOrderSearch(opts.search_accom_path);
            };
            tag.loadShortUrl = function() {
                tag.getShortUrl().done(function(url) {
                    tag.orderShortUrl = url;
                    tag.update();
                });
            };
            tag.fetchOrderDocs = function() {
                var od = tag.getOrderData(), p = $.Deferred();
                var pks = [],
                    self = this;
                for(ind in od.lis) {
                    pks.push(od.lis[ind].eid);
                }

                return tag.RiotSolrManager.getDocumentsByKeys(pks);
            };
            tag.triggerClicked = function(e) {
              var tag = 'rc-riot-order',
                options = {class: 'rc-riot-riot-reveal-modal'};
              if (typeof RiotTagsModal.isTagActive == "undefined" || !RiotTagsModal.isTagActive(tag)) {
                RiotTagsModal.mount(tag, $.extend({}, opts, {mode: 'detail'}), 'medium', options);
              }
            };
            tag.RCRiotOrder.on('RequestShowOrder', function() {
                if(tag.opts.mode === 'widget') {
                    tag.triggerClicked();
                }
            });
            tag.processChildren = function() {
                pcFunc.call(this);
                if(tag.hasChildByPlugin('RCRiotActivityPane')) {
                    apchild = tag.getChildByPlugin('RCRiotActivityPane');
                    apchild.mounted = true;
                    tag.activities = apchild.options.cats;
                    tag.form_settings = apchild.options.form_settings;
                    tag.classes['has-activities'] = true;
                }
                if(tag.hasChildByPlugin('RCRiotShareOrder')) {
                    tag.sharechild = tag.getChildByPlugin('RCRiotShareOrder');
                    tag.sharechild.mounted = true;
                }
            };
            tag.quoteClicked = function (e) {
                $(e.target).addClass('pending').prop('disabled', true);
                tag.showDetailedQuote(e.item.price, opts.txt.buy !== '' ? opts.txt.buy : null).done(function (data) {
                    RiotTagsModal.show($(data.content), 'tiny')
                }).always(function () {
                    $(e.target).removeClass('pending').prop('disabled', false)
                })
            };

            if(opts.mode === 'widget') {
                tag.skip_children = true
            } else if(typeof tag.opts.eid !== undefined && tag.opts.eid !== '') {
                tag.RiotSolrManager.observable.on('RiotSolrBoot', function() {
                    tag.fetchOrderDocs().done(function(docs) {
                        tag.docs = {};
                        for(var ind in docs) {
                            tag.docs[docs[ind][tag.opts.eid]] = docs[ind];
                        }
                        tag.update();
                    });
                });
            }

        })(jQuery, this);
});
;/**/
;riot.tag2('rc-riot-avail-pricing','<div class="tag-content"> <div if="{mode==\'summary\'}" class="{\'price-summary\' : true, \'has-package\' : has_package, \'has-coupon\' : has_coupon, \'has-savings\' : has_savings, \'is-alternate\' : is_alternate}"> {pricing_text} <sup if="{opts.txt.annot}"> {opts.txt.annot} </sup> <div class="display-savings" if="{savings_text != \'\'}"> <span>{opts.txt.savings_annot}</span> {savings_text}! </div> <span if="{has_call_to_book}" class="display-name call-to-book"> {parent.parent.opts.txt.call_to_book_text} <a href="tel:{parent.parent.opts.txt.call_to_book_number}"> {parent.parent.opts.txt.call_to_book_number} </a> </span> <a class="trigger" onclick="{triggerClicked}"> {opts.txt.trigger} </a> </div> <div if="{mode==\'detail\'}" id="{\'pricing-detail-\' + eid}" class="{\'pricing-detail\': true, \'full\': true}"> <div each="{ind, og in offer_groups}" class="{\'offer-group\': true, og.offerby: true}"> <h5 if="{og.name !=\'\'}">{og.name}</h5> <div each="{price in og.offers}" class="{\'rc-price\': true, \'has-package\': price.has_package, \'is-alternate\' : price.is_alternate}"> <div if="{price.dn.length}" class="display-name">{price.dn}</div> <div if="{parent.parent.opts.show_quote_detail && price.dd.length}" class="display-detail">{price.dd}</div> <div if="{parent.parent.opts.show_quote_savings && price.has_savings}" class="display-savings"> <span>{parent.parent.opts.txt.savings_annot}</span> {parent.parent.RCRiotUtils.formatSavings(price, precision, parent.parent.opts.display_type)} </div> <div class="price"> <span class="original-price" if="{price.s && parent.parent.opts.show_original_price}"> {parent.parent.RCRiotUtils.formatOriginalPrice(price, precision, parent.parent.opts.display_type)} </span> {parent.parent.RCRiotUtils.formatPrice(price, precision, parent.parent.opts.display_type)} <sup if="{parent.parent.opts.txt.annot}"> {parent.parent.opts.txt.annot} </sup> </div> <span if="{parent.parent.opts.has_call_to_book}" class="display-name call-to-book"> {parent.parent.opts.txt.call_to_book_text} <a href="tel:{parent.parent.opts.txt.call_to_book_number}"> {parent.parent.opts.txt.call_to_book_number} </a> </span> <button if="{!parent.parent.opts.has_call_to_book && parent.parent.opts.show_buy}" data-price="{price}" onclick="{parent.parent.buyClicked}" class="book"> {parent.parent.opts.txt.buy} </button> <button if="{parent.parent.opts.show_add}" data-price="{price}" onclick="{parent.parent.addClicked}" class="add"> {parent.parent.opts.txt.add} </button> <button if="{parent.parent.opts.show_quote_link}" data-price="{price}" onclick="{parent.parent.quoteClicked}" class="quote"> {parent.parent.opts.txt.quote} </button> </div> </div> </div> <div if="{mode==\'alternates\'}" id="{\'pricing-detail-\' + eid}" class="{\'pricing-detail\': true, \'full\': true}"> <div each="{og in primaryOffers()}" class="{\'offer-group\': true, og.offerby: true}"> <h5 if="{og.name !=\'\'}">{og.name}</h5> <div each="{price in og.offers}" class="{\'rc-price\': true, \'has-package\': price.has_package, \'is-alternate\' : price.is_alternate}"> <div if="{price.dn.length}" class="display-name">{price.dn}</div> <div if="{parent.parent.opts.show_quote_detail && price.dd.length}" class="display-detail">{price.dd}</div> <div if="{parent.parent.opts.show_quote_savings && price.has_savings}" class="display-savings"> <span>{parent.parent.opts.txt.savings_annot}</span> {parent.parent.RCRiotUtils.formatSavings(price, precision, parent.parent.opts.display_type)} </div> <div class="price"> <span class="original-price" if="{price.s && parent.parent.opts.show_original_price}"> {parent.parent.RCRiotUtils.formatOriginalPrice(price, precision, parent.parent.opts.display_type)} </span> {parent.parent.RCRiotUtils.formatPrice(price, precision, parent.parent.opts.display_type)} <sup if="{parent.parent.opts.txt.annot}"> {parent.parent.opts.txt.annot} </sup> </div> <span if="{parent.parent.opts.has_call_to_book}" class="display-name call-to-book"> {parent.parent.opts.txt.call_to_book_text} <a href="tel:{parent.parent.opts.txt.call_to_book_number}"> {parent.parent.opts.txt.call_to_book_number} </a> </span> <button if="{!parent.parent.opts.has_call_to_book && parent.parent.opts.show_buy}" data-price="{price}" onclick="{parent.parent.buyClicked}" class="book"> {parent.parent.opts.txt.buy} </button> <button if="{parent.parent.opts.show_add}" data-price="{price}" onclick="{parent.parent.addClicked}" class="add"> {parent.parent.opts.txt.add} </button> <button if="{parent.parent.opts.show_quote_link}" data-price="{price}" onclick="{parent.parent.quoteClicked}" class="quote"> {parent.parent.opts.txt.quote} </button> </div> </div> <div if="{featuredOfferGroups().length < 1}" class="not-available">{opts.txt.not_available} <span if="{search_date}" class="search-date">{search_date}</span> </div> <a class="trigger" onclick="{popModalWith(getAlternatesOpts())}" if="{has_alternates}"> {tokenize(opts.txt.trigger)} </a> <a class="trigger" onclick="{popModalWith(getModalOpts())}" if="{has_modal_options}"> {tokenize(opts.txt.modal_pricing_trigger)} </a> </div> <div if="{mode==\'modal\'}" id="{\'pricing-detail-\' + eid}" class="{\'pricing-detail\': true, \'full\': true}"> <div each="{og in primaryOffers()}" class="{\'offer-group\': true, og.offerby: true}"> <h5 if="{og.name !=\'\'}">{og.name}</h5> <div each="{price in og.offers}" class="{\'rc-price\': true, \'has-package\': price.has_package, \'is-alternate\' : price.is_alternate}"> <div if="{price.dn.length}" class="display-name">{price.dn}</div> <div if="{parent.parent.opts.show_quote_detail && price.dd.length}" class="display-detail">{price.dd}</div> <div if="{parent.parent.opts.show_quote_savings && price.has_savings}" class="display-savings"> <span>{parent.parent.opts.txt.savings_annot}</span> {parent.parent.RCRiotUtils.formatSavings(price, precision, parent.parent.opts.display_type)} </div> <div class="price"> <span class="original-price" if="{price.s && parent.parent.opts.show_original_price}"> {parent.parent.RCRiotUtils.formatOriginalPrice(price, precision, parent.parent.opts.display_type)} </span> {parent.parent.RCRiotUtils.formatPrice(price, precision, parent.parent.opts.display_type)} <sup if="{parent.parent.opts.txt.annot}"> {parent.parent.opts.txt.annot} </sup> </div> <span if="{parent.parent.opts.has_call_to_book}" class="display-name call-to-book"> {parent.parent.opts.txt.call_to_book_text} <a href="tel:{parent.parent.opts.txt.call_to_book_number}"> {parent.parent.opts.txt.call_to_book_number} </a> </span> <button if="{!parent.parent.opts.has_call_to_book && parent.parent.opts.show_buy}" data-price="{price}" onclick="{parent.parent.buyClicked}" class="book"> {parent.parent.opts.txt.buy} </button> <button if="{parent.parent.opts.show_add}" data-price="{price}" onclick="{parent.parent.addClicked}" class="add"> {parent.parent.opts.txt.add} </button> <button if="{parent.parent.opts.show_quote_link}" data-price="{price}" onclick="{parent.parent.quoteClicked}" class="quote"> {parent.parent.opts.txt.quote} </button> </div> </div> <div if="{featuredOfferGroups().length < 1}" class="not-available">{opts.txt.not_available} <span if="{search_date}" class="search-date">{search_date}</span> </div> <a class="trigger" onclick="{popModalWith(getAlternatesOpts())}" if="{has_alternates}"> {tokenize(opts.txt.trigger)} </a> <a class="trigger" onclick="{popModalWith(getModalOpts())}" if="{has_modal_options}"> {tokenize(opts.txt.modal_pricing_trigger)} </a> </div> </div>','@-webkit-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @-moz-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @-o-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } rc-riot-avail-pricing,[riot-tag="rc-riot-avail-pricing"],[data-is="rc-riot-avail-pricing"]{ display: block; } rc-riot-avail-pricing .tag-content .price-summary,[riot-tag="rc-riot-avail-pricing"] .tag-content .price-summary,[data-is="rc-riot-avail-pricing"] .tag-content .price-summary{ font-weight: bold; color: #ff1e00; font-size: 16px; padding-top: 7px; } rc-riot-avail-pricing .tag-content .price-summary a,[riot-tag="rc-riot-avail-pricing"] .tag-content .price-summary a,[data-is="rc-riot-avail-pricing"] .tag-content .price-summary a{ font-size: 14px; color: #ff1e00; letter-spacing: .03em; padding-top: 3px; } rc-riot-avail-pricing .tag-content .price-summary a:hover,[riot-tag="rc-riot-avail-pricing"] .tag-content .price-summary a:hover,[data-is="rc-riot-avail-pricing"] .tag-content .price-summary a:hover,rc-riot-avail-pricing .tag-content .price-summary a:active,[riot-tag="rc-riot-avail-pricing"] .tag-content .price-summary a:active,[data-is="rc-riot-avail-pricing"] .tag-content .price-summary a:active{ text-decoration: underline; cursor: pointer; } rc-riot-avail-pricing .tag-content .price-summary a i,[riot-tag="rc-riot-avail-pricing"] .tag-content .price-summary a i,[data-is="rc-riot-avail-pricing"] .tag-content .price-summary a i{ width: 18px; height: 18px; margin-left: 5px; display: block; float: right; margin-top: 1px; } rc-riot-avail-pricing .tag-content .price-summary a i #Layer_1,[riot-tag="rc-riot-avail-pricing"] .tag-content .price-summary a i #Layer_1,[data-is="rc-riot-avail-pricing"] .tag-content .price-summary a i #Layer_1{ fill: #ff1e00; } @media only screen and (min-width: 30.0625em) { rc-riot-avail-pricing .tag-content .price-summary,[riot-tag="rc-riot-avail-pricing"] .tag-content .price-summary,[data-is="rc-riot-avail-pricing"] .tag-content .price-summary{ font-size: 18px; } rc-riot-avail-pricing .tag-content .price-summary a,[riot-tag="rc-riot-avail-pricing"] .tag-content .price-summary a,[data-is="rc-riot-avail-pricing"] .tag-content .price-summary a{ padding-top: 5px; } rc-riot-avail-pricing .tag-content .price-summary a i,[riot-tag="rc-riot-avail-pricing"] .tag-content .price-summary a i,[data-is="rc-riot-avail-pricing"] .tag-content .price-summary a i{ width: 22px; margin-top: -1px; } } rc-riot-avail-pricing .tag-content .offer-group > h5,[riot-tag="rc-riot-avail-pricing"] .tag-content .offer-group > h5,[data-is="rc-riot-avail-pricing"] .tag-content .offer-group > h5{ color: #111; border-bottom: solid 1px rgba(17, 17, 17, 0.1); padding-bottom: 10px; margin-top: -5px; } rc-riot-avail-pricing .tag-content .offer-group .rc-price,[riot-tag="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price,[data-is="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price{ text-align: center; } rc-riot-avail-pricing .tag-content .offer-group .rc-price button,[riot-tag="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price button,[data-is="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price button{ text-transform: none; height: auto; background: #ff1e00; color: #fff; letter-spacing: .03em; margin-bottom: 5px; background-color: #ff1e00; border-radius: 3px; color: #fff; display: inline-block; text-align: center; border: none; transition-property: background-color, color; transition-timing-function: ease-in-out; transition-duration: .15s; letter-spacing: .03em; font-family: "Helvetica", Helvetica, "Arial", Arial, sans-serif; line-height: 1.3 !important; padding: 7px 10px; font-size: 14px; min-height: 30px; width: auto; } rc-riot-avail-pricing .tag-content .offer-group .rc-price button:hover,[riot-tag="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price button:hover,[data-is="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price button:hover,rc-riot-avail-pricing .tag-content .offer-group .rc-price button:active,[riot-tag="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price button:active,[data-is="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price button:active{ background-color: #db1a00; } rc-riot-avail-pricing .tag-content .offer-group .rc-price button:hover,[riot-tag="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price button:hover,[data-is="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price button:hover,rc-riot-avail-pricing .tag-content .offer-group .rc-price button:active,[riot-tag="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price button:active,[data-is="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price button:active{ background: #111; } rc-riot-avail-pricing .tag-content .offer-group div.price,[riot-tag="rc-riot-avail-pricing"] .tag-content .offer-group div.price,[data-is="rc-riot-avail-pricing"] .tag-content .offer-group div.price{ text-align: center; color: #ff1e00; font-size: 24px; } rc-riot-avail-pricing .tag-content .offer-group div.price .original-price,[riot-tag="rc-riot-avail-pricing"] .tag-content .offer-group div.price .original-price,[data-is="rc-riot-avail-pricing"] .tag-content .offer-group div.price .original-price{ font-size: 0.8em; text-decoration: line-through; } .node-listing.view-mode-full rc-riot-avail-pricing .tag-content .rc-price,.node-listing.view-mode-full [riot-tag="rc-riot-avail-pricing"] .tag-content .rc-price,.node-listing.view-mode-full [data-is="rc-riot-avail-pricing"] .tag-content .rc-price{ text-align: center; } .node-listing.view-mode-full rc-riot-avail-pricing .tag-content button.quote,.node-listing.view-mode-full [riot-tag="rc-riot-avail-pricing"] .tag-content button.quote,.node-listing.view-mode-full [data-is="rc-riot-avail-pricing"] .tag-content button.quote{ display: block; width: 100%; text-align: center; text-decoration: underline; min-height: 0; padding: 0; margin-top: 12px; background: none; box-shadow: none; color: #111; font-weight: 400; } .node-listing.view-mode-full rc-riot-avail-pricing .tag-content button.quote:hover,.node-listing.view-mode-full [riot-tag="rc-riot-avail-pricing"] .tag-content button.quote:hover,.node-listing.view-mode-full [data-is="rc-riot-avail-pricing"] .tag-content button.quote:hover,.node-listing.view-mode-full rc-riot-avail-pricing .tag-content button.quote:active,.node-listing.view-mode-full [riot-tag="rc-riot-avail-pricing"] .tag-content button.quote:active,.node-listing.view-mode-full [data-is="rc-riot-avail-pricing"] .tag-content button.quote:active{ text-decoration: none; } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content .display-name,.reveal-modal [riot-tag="rc-riot-avail-pricing"] .tag-content .tag-content .display-name,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .display-name{ font-size: 18px; color: #111; } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content .display-detail,.reveal-modal [riot-tag="rc-riot-avail-pricing"] .tag-content .tag-content .display-detail,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .display-detail{ color: rgba(17, 17, 17, 0.9); } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content .display-savings,.reveal-modal [riot-tag="rc-riot-avail-pricing"] .tag-content .tag-content .display-savings,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .display-savings{ font-size: 18px; font-weight: 700; padding-top: 7px; } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content div.price,.reveal-modal [riot-tag="rc-riot-avail-pricing"] .tag-content .tag-content div.price,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content div.price{ font-size: 20px; padding-bottom: 5px; } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content .display-savings,.reveal-modal [riot-tag="rc-riot-avail-pricing"] .tag-content .tag-content .display-savings,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .display-savings,.reveal-modal rc-riot-avail-pricing .tag-content .tag-content div.price,.reveal-modal [riot-tag="rc-riot-avail-pricing"] .tag-content .tag-content div.price,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content div.price{ color: #ff1e00; } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content .rc-price > button.book,.reveal-modal [riot-tag="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.book,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.book{ background-color: #ff1e00; border-radius: 3px; color: #fff; display: inline-block; text-align: center; border: none; transition-property: background-color, color; transition-timing-function: ease-in-out; transition-duration: .15s; letter-spacing: .03em; font-family: "Helvetica", Helvetica, "Arial", Arial, sans-serif; line-height: 1.3 !important; padding: 10px 12px; font-size: 15px; min-height: 38px; width: auto; min-height: 0; } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content .rc-price > button.book:hover,.reveal-modal [riot-tag="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.book:hover,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.book:hover,.reveal-modal rc-riot-avail-pricing .tag-content .tag-content .rc-price > button.book:active,.reveal-modal [riot-tag="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.book:active,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.book:active{ background-color: #db1a00; } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content .rc-price > button.add,.reveal-modal [riot-tag="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.add,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.add{ background-color: #ff1e00; border-radius: 3px; color: #fff; display: inline-block; text-align: center; border: none; transition-property: background-color, color; transition-timing-function: ease-in-out; transition-duration: .15s; letter-spacing: .03em; font-family: "Helvetica", Helvetica, "Arial", Arial, sans-serif; line-height: 1.3 !important; padding: 10px 12px; font-size: 15px; min-height: 38px; width: auto; background-color: rgba(255, 255, 255, 0); border: solid 2px #ff1e00; color: #ff1e00; padding: 8px 12px; min-height: 0; } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content .rc-price > button.add:hover,.reveal-modal [riot-tag="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.add:hover,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.add:hover,.reveal-modal rc-riot-avail-pricing .tag-content .tag-content .rc-price > button.add:active,.reveal-modal [riot-tag="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.add:active,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.add:active{ background-color: #db1a00; } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content .rc-price > button.add:hover,.reveal-modal [riot-tag="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.add:hover,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.add:hover,.reveal-modal rc-riot-avail-pricing .tag-content .tag-content .rc-price > button.add:active,.reveal-modal [riot-tag="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.add:active,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.add:active{ background-color: #ff1e00; color: #fff; } rc-riot-avail-pricing .tag-content .call-to-book,[riot-tag="rc-riot-avail-pricing"] .tag-content .call-to-book,[data-is="rc-riot-avail-pricing"] .tag-content .call-to-book{ font-weight: bold; }','class="mode-{mode}"',function(t){this.mixin('RCRiotOrder');this.mixin('RiotNotify');this.mixin('RiotTagsChildren');this.mixin('RCRiotAvailPricing');this.mixin('RCRiotAvailPricingGrouper');this.mixin('RCRiotAvailPricingTokenizer');if(typeof RCAddonProvider!=='undefined'){this.mixin('RCAddonProvider')}(function(a,i){i.precision=parseInt(t.precision,10)||0;i.mode=t.mode||'default';i.eid=t.eid||null;i.pricing=t.pricing||i.getItemPricing(i.eid);i.offerby=t.offerby||'default';i.has_call_to_book=t.has_call_to_book||!1;i.show_buy=(t&&t.show_buy)||t.show_buy||!1;i.show_add=(t&&t.show_add)||t.show_add||!1;i.has_package=!1;i.has_coupon=!1;i.has_savings=!1;i.has_alternates=!1;i.has_modal_options=!1;i.item=t.item||null;i.show_in_modal=i.mode==='modal'||i.mode==='alternates';i.classes={};i.classes['mode-'+t.mode]=!0;i.RCRiotAvailPricing.on('PricingChanged',function(t){i.pricing=t.pricing['eid-'+i.eid];i.update()});i.on('update',function(){var t;i.has_alternates=!1;if(i.opts.not_available_date){t=i.getLastSearch();if(typeof t!='undefined'&&typeof t['rcav']!='undefined'){i.search_date=t['rcav']['begin']}};if(typeof i.pricing!='undefined'){i.has_pricing=!0;i.eid=i.pricing.eid;i.pricing_text=i.formatItemPriceRange(i.eid,0,i.opts.display_type);i.savings_text=i.formatItemSavingsRange(i.eid,0,i.opts.display_type)}
else{i.has_pricing=!1};i.offer_groups=(i.opts.offer_groups)?i.opts.offer_groups:i.processPricing(i.pricing,i);i.buildModalOptions(i.offer_groups);if(i.children&&i.children.length&&i.eid){var a=i.getRcUpliftChild();if(a>=0){i.children[a].options.eid=i.eid}};i.classes['has-package']=i.has_package;i.classes['has-coupon']=i.has_coupon;i.classes['has-savings']=i.has_savings;i.classes['is-alternate']=i.has_alternates});i.getRcUpliftChild=function(){return i.children.findIndex(function(t){if(!t){return!1};return t.plugin==='RCUpliftPayment'})};i.addClicked=function(t){i.addOrderLineItem(t.item.price).done(function(){i.showOrderDetail()})};i.buyClicked=function(t){i.buyNow(t.item.price)};i.quoteClicked=function(r){a(r.target).addClass('pending').prop('disabled',!0);i.showDetailedQuote(r.item.price,t.show_buy&&!t.has_call_to_book?t.txt.buy:null).done(function(i){if(t.has_call_to_book){i.content+='<div class=\'call-to-book\'>'+t.txt.call_to_book_text+'<a href=\'tel:'+t.txt.call_to_book_number+'\'>'+t.txt.call_to_book_number+'</a></div>'};RiotTagsModal.show(a(i.content),'tiny')}).always(function(){a(r.target).removeClass('pending').prop('disabled',!1)})};i.triggerClicked=function(r){if(t.trigger_order&&i.pricing.prices.length==1&&a('rc-riot-order').length>0){i.addOrderLineItem(i.pricing.prices[0]).done(function(){i.showOrderDetail()})}
else{i.popModal(t)}};i.getAlternatesOpts=function(){var r=a.extend({},t),e;if(!i.offer_groups){return r};r.offer_groups={};for(e in i.offer_groups){if(!i.offer_groups[e].featured){r.offer_groups[e]=i.offer_groups[e];r.offer_groups[e]['offers'].map(function(t,i){if(i>0&&typeof t.show_in_modal!='undefined'&&t.show_in_modal){r.offer_groups[e]['offers'].splice(i)}})}};return r};i.primaryOffers=function(){var a,t=i.featuredOfferGroups(),r=[];for(a in t){if(i.mode==='modal'){r=[i.getBestPricedOffer(t,a)]}
else{r=t[a]['offers'].filter(function(t){return t.show_in_modal=='undefined'||!t.show_in_modal});if(!r.length){r=[i.getBestPricedOffer(t,a)]}};t[a]['offers']=r};return t};i.buildModalOptions=function(t){var r,e,o,c={},n=!1;if(!i.opts.txt.modal_pricing_trigger||!i.show_in_modal){return};i.modalOptions={};if(!t){i.has_modal_options=n;return};for(r in t){if(t[r].featured){c=i.getBestPricedOffer(t,r);e=t[r]['offers'].filter(function(t){var a=!t.qp.special_data||!this.qp.special_data||t.qp.special_data.special_nid===this.qp.special_data.special_nid;return!a||t.show_in_addition||t.qp.special_data&&i.mode==='modal'},c);if(e.length){n=!0;o=a.extend({},t[r]);o.offers=e;i.modalOptions[r]=o}}};i.has_modal_options=n};i.getBestPricedOffer=function(t,i){return t[i]['offers'].reduce(function(t,i){if(!t){return i}
else if(typeof i.qp.special_data=='undefined'){return i}
else if(t.show_in_addition&&!i.show_in_addition){return i}
else if(t.show_in_addition&&t.qp.special_data&&t.p>i.p){return i}
else if(!i.show_in_addition&&t.qp.special_data&&t.p>i.p){return i};return t})};i.getModalOpts=function(){var r=a.extend({},t);r.offer_groups=i.modalOptions;return r};i.popModal=function(t){RiotTagsModal.mount('rc-riot-avail-pricing',a.extend({},t,{mode:'detail'}),'small')};i.popModalWith=function(t){return function(a){i.popModal(t)}}})(jQuery,this)});;var LDRCCurrencySymbols={'USD':'$','CAD':'$','EUR':'€'};(function(t){var r={RCRiotUtils:{formatTimestamp:function(t,r){return new Date(t).toLocaleString(window.navigator.language,Object.assign({weekday:'short',day:'numeric',month:'short'},r||{}))},formatSavings:function(t,r,n){var e=parseFloat(t.s);return this.formatHelper(e,t,r,n)},formatOriginalPrice:function(t,r,n){var e=parseFloat(t.p)+parseFloat(t.s);return this.formatHelper(e,t,r,n)},formatPrice:function(t,r,n){var e=parseFloat(t.p);return this.formatHelper(e,t,r,n)},formatHelper:function(t,r,n,o){var e='';switch(parseInt(o)){case 8:t=t/this.nightsBetween(r.bt,r.et);e='/nt';break};return''+this.formatCurrency(t,r.c,n)+e},formatCurrency:function(t,r,n){t=parseFloat(t);if(typeof n==='undefined'){n=0};if(this.toLocaleStringSupportsOptions()){return t.toLocaleString('en',{style:'currency',currencyDisplay:'symbol',currency:r,minimumFractionDigits:n,maximumFractionDigits:n})};t.toFixed(n).replace(/./g,function(t,r,n){return r&&t!=='.'&&((n.length-r)%3===0)?','+t:t});if(typeof LDRCCurrencySymbols[r]!=='undefined'){return LDRCCurrencySymbols[r]+t};return t},toLocaleStringSupportsOptions:function(){return!!(typeof Intl=='object'&&Intl&&typeof Intl.NumberFormat=='function')},parseQueryParams:function(){var e=window.location.search.substring(1),r=e.split('&'),n={};for(var t=0;t<r.length;t++){(function(){var e=r[t].split('=');n[decodeURIComponent(e[0])]=decodeURIComponent(e[1])})()};return n},parseHash:function(){var e=window.location.hash.substring(1),r=e.split('&'),n={};for(var t=0;t<r.length;t++){(function(){var e=r[t].split('=');n[decodeURIComponent(e[0])]=decodeURIComponent(e[1])})()};return n},nightsBetween:function(t,r){var n=Math.round((r-t)/86400/1000);return n},getBuyUrl:function(r){return'/rescms/item/'+r.eid+'/buy?'+t.param(r.qp)}}};riot.mixin('RCRiotUtils',r)})(jQuery);(function(t){var e=null,r=null,i={RCRiotOrder:riot.observable(),init:function(){this.mixin('RiotNotify');if(!this.RCRiotUtils){this.mixin('RCRiotUtils')};this.orderStorage='local';this.initOrderData()},addOrderLineItem:function(e){var o,n=this,i,a,s=0;if(this.orderStorage=='local'){i=this.getOrderData();while(typeof a=='undefined'){if(i.lis.hasOwnProperty('ind-'+s)){s++}
else{a='ind-'+s}};i.lis[a]=e;i.lict++;i.litot+=parseFloat(e.p);this.setOrderData(i);o=t.Deferred();o.resolve(i)}
else{n=this;o=t.Deferred(function(){r=null;n.RCRiotOrder.trigger('UpdateStart');t.getJSON('/rcapi/order/add',e.qp).done(function(t){n.setOrderData(t);o.resolve(t)}).always(function(){n.RCRiotOrder.trigger('UpdateStop')}).fail(function(t){o.reject(t)})})};return o},doOrderCheckout:function(){window.location=this.getOrderCheckoutURL()},getShortUrl:function(e){var s=this,o=this.opts.bitly_access_token,i=t.Deferred(),n=location.protocol+'//'+location.host+'/'+e||this.getOrderSearchURL(),a='https://api-ssl.bitly.com/v3/shorten?access_token='+o+'&longUrl='+encodeURIComponent(e||n+'?rcod='+this.getOrderHash());t.getJSON(a,{}).done(function(t){r=t.data.url;i.resolve(t.data.url)}).fail(function(t){i.reject(t)});return i},getOrderHash:function(){return btoa(JSON.stringify(this.getOrderData()))},doOrderSearch:function(t){window.location=t},removeOrderLineItem:function(e){if(this.orderStorage=='local'){var i=this.getOrderData();i.lict--;i.litot-=i.lis[e].p;delete(i.lis[e]);this.setOrderData(i);return t.Deferred(function(){return i})}
else{var n=this,o=t.Deferred();this.RCRiotOrder.trigger('UpdateStart');t.getJSON('/rcapi/order/remove',{'index':e}).done(function(t){r=null;n.setOrderData(t);o.resolve(t)}).fail(function(t){o.reject(t)}).always(function(){n.RCRiotOrder.trigger('UpdateStop')});return o}},buyOrderLineItem:function(t){var e=this.getOrderData();this.buyNow(e.lis[t])},getOrderCheckoutURL:function(){return'/rescms/order/checkout'},setOrderData:function(t){localStorage.setItem('rcriotorder',JSON.stringify(t));e=t;this.RCRiotOrder.trigger('OrderUpdated',t)},showDetailedQuote:function(e,i){var r=t.Deferred(function(){var o=e.qp;o.buy_text=i;t.getJSON('/rescms/ajax/item/pricing/quote',e.qp).done(function(t){r.resolve(t)}).fail(function(t){r.reject(t)})});return r},showOrderDetail:function(){var t=this;RiotTagsModal.closeAll().done(function(){t.RCRiotOrder.trigger('RequestShowOrder')})},getOrderData:function(){return e},openTrips:function(t,e){var r;if((typeof e.lict=='undefined'&&e.lict==0)||confirm('This Trips Collection will replace any Trips Collection you may have in progress. Would you like to proceed?')){r=JSON.parse(atob(t));this.setOrderData(r);window.location.hash='';setTimeout(this.showOrderDetail,250)}},initOrderData:function(){if(e!=null)return;var r=this,i=this.RCRiotUtils.parseHash(),o=this.getLocalStorageOrderData();if(i.hasOwnProperty('short-url')){t.get('rescms/order/shorturl/'+i['short-url']).done(function(t){if(t){r.openTrips(t,o)}})}
else if(i.hasOwnProperty('rcod')){r.openTrips(i['rcod'],o)};if(e==null){if(o.lict){this.setOrderData(o)}
else if(this.orderStorage=='session'){t.getJSON('/rcapi/order/get').done(function(t){r.setOrderData(t)})}
else{r.setOrderData({lict:0,lis:{},litot:0})}}},getLocalStorageOrderData:function(){var t={};if(ostr=localStorage.getItem('rcriotorder')){t=JSON.parse(ostr)};return t},buyNow:function(t){window.open(this.RCRiotUtils.getBuyUrl(t)).focus()},getOrderSearchURL:function(){return'/mytrip'},hasOrderLineItems:function(){var t=!1,e=this.getOrderData();if(typeof e.lict!=' undefined'&&parseInt(e.lict)>0){t=!0};return t}};riot.mixin('RCRiotOrder',i)})(jQuery);;var RCRiotIsSearching;(function(i){var t,r,e={};var n={RCRiotAvailPricing:riot.observable(),init:function(){var i=this;this.mixin('RCRiotUtils');if(typeof t=='undefined'){i.loadLastSearch();i.loadLastPricing()};RiotTagsDispatch.on('BTLeadsShareItems',function(i,t,n){if(n!=='rc_core_item'){return!1};t.items.forEach(function(i,n){if(e['eid-'+i.item_id]){var r=e['eid-'+i.item_id];if(e['eid-'+i.item_id].hasOwnProperty('prices')&&e['eid-'+i.item_id].prices.length){var a=parseFloat(e['eid-'+i.item_id].prices[0].p).toFixed(2);r.prices[0].p=parseFloat(a);t.items[n].prices=r}}})});RiotTagsDispatch.on('RiotSolrCurrentSearchRemoveAll',function(i,e){e.manager.store.remove('rcav')})},formatAvailPrice:function(i,e,t){return!i?'':i.toLocaleString('en',{minimumFractionDigits:e,maximumFractionDigits:e,style:'currency',currency:t||'USD',currencyDisplay:'symbol',useGrouping:!0,})},setAvailPricing:function(i,t){var n={pricing:i,query:t,};e=i;RiotTagsDispatch.trigger('RCRiotPricingChanged',this,n);this.RCRiotAvailPricing.trigger('PricingChanged',n)},getItemPricing:function(i){return this.getAvailPricing()['eid-'+i]},getAvailPricing:function(){return e},storeLastSearch:function(i){localStorage.setItem('rcriotavailpricingparams',JSON.stringify(i))},loadLastSearch:function(){var i=JSON.parse(localStorage.getItem('rcriotavailpricingparams'));t=i;return i},storeLastPricing:function(i){localStorage.setItem('rcriotavailpricingpricing',JSON.stringify(i))},loadLastPricing:function(){var i=JSON.parse(localStorage.getItem('rcriotavailpricingpricing'));r=i;e=i||{};return i},doSearch:function(e,n,a){t=e;var s=this,c={};a=a||'all';RCRiotIsSearching=!0;document.body.classList.add('rcav-loading-indicator');var o=i.Deferred(function(){s.RCRiotAvailPricing.trigger('SearchStart',e);i.getJSON('/rcapi/item/avail/search',e).done(function(t){i(t).each(function(e,t){var n=null,r=null,c=null;if(this.prices.length>1){switch(a){case'first':this.prices=[this.prices[0]];break;case'low':i(this.prices).each(function(){if(c==null||this.p<c.p){c=this}});this.prices=[c];break;case'low_day':var o=function(i){var e={};var n=[];i.forEach(function(i){if(!e.hasOwnProperty(i.bt)||e[i.bt].p>i.p){e[i.bt]=i}});for(var t in e){if(!e.hasOwnProperty(t)){continue};n.push(e[t])};return n};this.prices=o(this.prices);break}};i(this.prices).each(function(){var e=parseInt(this.p,10),t=parseInt(this.qp.rcav.adult,10)+parseInt(this.qp.rcav.child,10);if(this.qp.senior){t+=parseInt(this.qp.rcav.senior,10)};this.ppp=e/t;if(typeof this.b!='undefined'){this.bt=s.parseDate(this.b);this.et=s.parseDate(this.e);this.nt=((this.et-this.bt)/1000)/86400;this.wk=(this.nt)/7;this.ppn=e/this.nt;this.ppw=e/this.wk;this.pppn=(e/this.nt)/t};if(n==null||this.p<n){n=this.p};if(r==null||this.p>r){r=this.p};this['itemBuyURL']=decodeURIComponent(s.RCRiotUtils.getBuyUrl(this));this['itemURLHash']='#'+i.param({rcav:JSON.stringify(this.qp)})});this.range=[n,r]});r=t;i(t).each(function(i,e){c['eid-'+e.eid]=e});if(n){this.storeLastSearch(e);this.storeLastPricing(c)};s.setAvailPricing(c,e);o.resolve({pricing:c,query:e,})}).always(function(){s.RCRiotAvailPricing.trigger('SearchStop');RCRiotIsSearching=!1;document.body.classList.remove('rcav-loading-indicator')})});return o},getLastSearch:function(){return t},setLastSearch:function(i){t=i},getItemPriceRange:function(e){var r=this.getItemPricing(e),t=null,n=null;if(typeof r!='undefined'){i(r.prices).each(function(){if(t==undefined||t.p>this.p){t=this};if(n==undefined||n.p<this.p){n=this}})};return[t,n]},getItemPriceRangePerNight:function(e){var r=this.getItemPricing(e),t=null,n=null;if(typeof r!='undefined'){i(r.prices).each(function(){if(t==undefined||t.ppn>this.ppn){t=this};if(n==undefined||n.ppn<this.ppn){n=this}})};return[t,n]},getItemPriceRangePerWeek:function(e){var r=this.getItemPricing(e),t=null,n=null;if(typeof r!='undefined'){i(r.prices).each(function(){if(t==undefined||t.ppw>this.ppw){t=this};if(n==undefined||n.ppw<this.ppw){n=this}})};return[t,n]},getItemPriceRangePerPerson:function(e){var r=this.getItemPricing(e),t=null,n=null;if(typeof r!='undefined'){i(r.prices).each(function(){if(t==undefined||t.ppp>this.ppp){t=this};if(n==undefined||n.ppp<this.ppp){n=this}})};return[t,n]},getItemPriceRangePerPersonPerNight:function(e){var r=this.getItemPricing(e),t=null,n=null;if(typeof r!='undefined'){i(r.prices).each(function(){if(t==undefined||t.pppn>this.pppn){t=this};if(n==undefined||n.pppn<this.pppn){n=this}})};return[t,n]},getItemSavingsRange:function(e){var r=this.getItemPricing(e),t=null,n=null;if(typeof r!='undefined'){i(r.prices).each(function(){if(typeof this.s!='undefined'&&(t==undefined||t.s>this.s)){t=this};if(typeof this.s!='undefined'&&(n==undefined||n.s<this.s)){n=this}})};return[t,n]},formatItemPriceRange:function(i,e,t){e=isNaN(e)?0:e;var n=this.getItemPriceRange(i),r='';if(n[0]&&n[0].p>0){r=this.RCRiotUtils.formatPrice(n[0],e,t);if(n[0].p!=n[1].p){r+=' - '+this.RCRiotUtils.formatPrice(n[1],e,t)}};return r},formatItemSavingsRange:function(i,e,t){e=isNaN(e)?0:e;var n=this.getItemSavingsRange(i),r='';if(n[1]!=null&&typeof n[1].s!='undefined'&&n[1].s>0){r=this.RCRiotUtils.formatHelper(parseFloat(n[1].s),n[1],e,t)};return r},getLastSearchQuery:function(){return t},getItemHasPackage:function(i){var t=!1,e=this.getItemPricing(i),n;if(typeof e!='undefined'&&typeof e.prices!='undefined'){for(n in e.prices){if(this.getPriceHasPackage(e.prices[n])){t=!0;break}}};return t},getPriceIsAlternate:function(i){var e=!0;if(typeof i==undefined||typeof i.qp==undefined){return e};e=i.qp.rcav.begin!==t.rcav.begin;return e},getPriceHasPackage:function(i){var e=!1;if(typeof i==undefined||typeof i.qp==undefined){return e};if(typeof i.qp.rcav.IDs!='undefined'&&typeof i.qp.rcav.IDs[2]!='undefined'){e=!0};return e},getPriceHasCoupon:function(i){var e=!1;if(typeof i==undefined||typeof i.qp==undefined){return e};if(typeof i.qp.rcav.coupon!='undefined'&&i.qp.rcav.coupon!=''){e=!0};return e},getPriceHasSavings:function(i){var e=!1;if(typeof i==undefined||typeof i.qp==undefined){return e};if(typeof i.s!='undefined'&&parseFloat(i.s)>0){e=!0};return e},parseDate:function(i){var t=new Date(0,0,0,0,0,0,0),e=i.split('-');if(e.length==3){t.setFullYear(e[0],e[1]-1,e[2])}
else{e=i.split('/');if(e.length==3){t.setFullYear(e[2],e[0]-1,e[1])}};return t.getTime()},};riot.mixin('RCRiotAvailPricing',n);i(document).ready(function(){if(typeof RiotSolrItemSortHandlers!=='undefined'){RiotSolrItemSortHandlers['sortPrice']={primer:function(i,e){var t=n.getItemPricing(i);if(t&&t.hasOwnProperty('range')&&Array.isArray(t.range)&&t.range.length>=2){return e?parseFloat(t.range[1]):parseFloat(t.range[0])};return 0},callback:function(i,e,t){var n=this,r=!t?1:-1;i.sort(function(i,a){return(i=n.primer(i[e],t)),(a=n.primer(a[e],t)),r*((i>a)-(a>i))});return i},}}})})(jQuery);;var RCRiotSpecials={init:function(){(function(i,t,e){t.getApplicableSpecials=function(i,isDetailedQuoteRequest=!1){if(!Drupal||!Drupal.settings||!Drupal.settings.rc_specials||!Drupal.settings.rc_specials.specials){return!1};var f=i.bt,g=i.et,u=Drupal.settings.rc_specials.specials,D=Object.keys(u)[0],t=u[D],R=i.eid.toString();if(!t.units.includes(R)){return!1};if(t.special_type==='2'&&isDetailedQuoteRequest){return!1};var o=Math.floor((f/1000)),p=Math.floor((g/1000));if(o<t.stay_begin||p>t.stay_end){return!1};var n=Math.floor((Date.now()/1000));if(n<t.book_begin||n>t.book_end){return!1};var l=i.qp.rcav.adult||1,c=i.qp.rcav.child||0,a=l+c;if(t.max_guests>0&&a>t.max_guests){return!1};if(t.min_guests>0&&a<t.min_guests){return!1};var e=t.max_nights,s=t.min_nights,r=i.nt;if(e>0&&r>e){return!1};if(s>0&&r<s){return!1};return t}})(jQuery,this,this.opts)},};riot.mixin('RCRiotSpecials',RCRiotSpecials);(function(e){var a=!1,t=!1,n=!1;Drupal.behaviors.rcjs={insuranceCheck:function(t){if(a){return!1};if(typeof Drupal.settings.rcInsuranceStates!='undefined'&&!e.cookie('rcstate')){var i=e('<select><option value="">'+Drupal.settings.rcInsuranceText['sel']+'</option></select>').change(function(){if(e(this).val()!=''){e(this).siblings('button').show()}
else{e(this).siblings('button').hide()}});for(state in Drupal.settings.rcInsuranceStates){e(i).append(e('<option></option>').attr('value',state).append(Drupal.settings.rcInsuranceStates[state]))};e(i).append(e('<option></option>').attr('value','none').append(Drupal.settings.rcInsuranceText['nl']));var n=e('<div class="rc-insurance-state-select"><span class="copy">'+Drupal.settings.rcInsuranceText['prompt']+'</span></div>');e(n).append(i);e(n).append(e('<button style="display:none;">'+Drupal.settings.rcInsuranceText['button']+'</button>').click(function(){e.cookie('rcstate',e(i).val(),{'path':'/'});e(n).dialog('close').dialog('destroy');e(t).trigger('click')}));e(n).dialog({'modal':1,'title':Drupal.settings.rcInsuranceText['title'],'minWidth':280,'close':function(){a=!1}});a=!0;return!1};if(e(t).is('button')){e(t).parents('form').attr('action',e(t).parents('form').attr('action')+'&province='+e.cookie('rcstate'))}
else{e(t).attr('href',e(t).attr('href')+'&province='+e.cookie('rcstate'))};return!0},attach:function(a,s){e('.line-item-desc-toggle',a).once('rcjsLineItemDesc',function(){e(this).click(function(){var t=e(this).siblings('.line-item-desc');if(e(t).is(':visible')){e(t).hide(150);e(this).text(e(this).attr('data-show-copy'))}
else{e(t).show(150);e(this).text(e(this).attr('data-hide-copy'))}})});e('.rcjs-pager',a).once('rcjs-pager-init',function(){e(this).each(function(){e(this).wrapInner('<div class="rcjs-pages"></div>');e('.rcjs-page:gt(0)',this).hide();e('.rcjs-page:eq(0)',this).addClass('active');var t=this,n=function(){var n=e('.rcjs-page.active .rcjs-page-caption',t).filter(':first').html(),a=e('.rcjs-page.active .rcjs-page-caption',t).filter(':last').html();if(n!=a)n=n+' - '+a;e('.rcjs-controls span.title',t).html(n);if(e('.rcjs-page.active',t).prev().length){e('.rcjs-controls .prev',t).removeClass('inactive').get(0).removeAttribute('disabled')}
else{e('.rcjs-controls .prev',t).attr('disabled','disabled').addClass('inactive')};if(e('.rcjs-page.active',t).next().length){e('.rcjs-controls .next',t).removeClass('inactive').get(0).removeAttribute('disabled')}
else{e('.rcjs-controls .next',t).attr('disabled','disabled').addClass('inactive')}},a=function(){e('.rcjs-controls button',t).attr('disabled','disabled')},i=e('<div class="rcjs-controls"><span class="title"></span></div>').append(e('<button class="prev"><< Prev</button>').click(function(){if(e('.rcjs-page.active',t).prev().length){e('.rcjs-controls span.title',t).html('&nbsp;');a();e('.rcjs-page.active',t).fadeOut(300,function(){e(this).prev().fadeIn(300,n).addClass('active')}).removeClass('active')}})).append(e('<button class="next">Next >></button>').click(function(){if(e('.rcjs-page.active',t).next().length){e('.rcjs-controls span.title',t).html('&nbsp;');a();e('.rcjs-page.active',t).fadeOut(300,function(){e(this).next().fadeIn(300,n).addClass('active')}).removeClass('active')}}));e(t).prepend(i);if(e('.rcjs-center',this)){e('.rcjs-center',this).parents('.rcjs-page').each(function(){e(this).siblings().hide().removeClass('active');e(this).show().addClass('active')})};n()})});e('.rc-search-alternate',a).click(function(){if(typeof ga4!=='undefined'){ga4.event({event:'click',location:'rescms_search_alternate',label:e(this).attr('data-alternate-label'),count:Math.round(e(this).attr('data-alternate-count')),eventCategory:'ResCMS Search Alternate',eventAction:'Click',eventLabel:e(this).attr('data-alternate-label'),eventValue:Math.round(e(this).attr('data-alternate-count'))})};if(typeof(ga)!==undefined){var t=this,n={'hitType':'event','eventCategory':'ResCMS Search Alternate','eventAction':'Click','eventLabel':e(this).attr('data-alternate-label'),'eventValue':Math.round(e(this).attr('data-alternate-count')),'hitCallback':function(){window.location=e(t).attr('href')}};ga('send',n);return!1}});e('.rc-core-search-alternates',a).each(function(){if(typeof ga4!=='undefined'){ga4.event({event:'offer',location:'rescms_search_alternate',value:Math.round(e(this).find('a').length),eventCategory:'ResCMS Search Alternate',eventAction:'Offer',eventLabel:'Offer',eventValue:Math.round(e(this).find('a').length),})};if(typeof(ga)!==undefined){var t={'hitType':'event','eventCategory':'ResCMS Search Alternate','eventAction':'Offer','eventLabel':'Offer','eventValue':Math.round(e(this).find('a').length),'nonInteraction':1};ga('send',t)}});e('.rc-item-quote-link, .rc-item-price-buy button, .rc-trigger-state').click(function(){var e=this;return Drupal.behaviors.rcjs.insuranceCheck(e)});var r=function(){e(this).parents('.rc-core-item-images').find('.first').attr('src',e(this).attr('rel'));e(this).parents('.rc-core-item-images').find('.first-caption').html(e(this).attr('title'))};e('.rcjs-image-thumb',a).hover(r);e('.rc-country-select',a).change(function(){var t=e(this).val();if(t!=''){e('.rc-state-select[rel='+e(this).attr('rel')+']',e(this).parents('fieldset').first()).each(function(){var n=this;e('option',this).remove();e(this).append('<option value=\'0\'>Loading...</option>');e.getJSON('/rescms/order/provinces/'+t,function(t){e('option',n).remove();e(n).append('<option value=\'0\'>Select...</option>');for(code in t){e(n).append('<option value=\''+code+'\'>'+t[code]+'</option>')}})})}});if(typeof Drupal.settings.rcInsuranceTIDecline!='undefined'){e('.insurance-ti',a).once('rcInsuranceTI',function(){var a=this,n=e(a);n.find('input').next('label').on('click',function(t){t.stopPropagation();t.preventDefault();e(this).prev('input').trigger('mousedown')});n.find('input').on('mousedown',function(i){var r=e(this);if(e(a).is('.forced-choice')&&r.attr('value')==1){return!0};if(!t&&((!r.is(':checked')&&n.is('.declinable'))||(r.is(':checked')&&n.is('.acceptable'))||(n.is('.forced-choice')&&r.attr('value')==-1))){var s=this;e('<div>'+Drupal.settings.rcInsuranceTIDecline+'</div>').dialog({resizable:!1,width:280,modal:!0,buttons:[{text:Drupal.settings.rcInsuranceTIText.declineBtn,click:function(){t=!0;e(this).dialog('destroy');e(s).trigger('click');if(typeof ga4!=='undefined'){ga4.event({event:'decline',value:'insurance',eventCategory:'Insurance',eventAction:'Decline'})};if(typeof(ga)!==undefined){ga('send',{'hitType':'event','eventCategory':'Insurance','eventAction':'Decline'})}}},{text:Drupal.settings.rcInsuranceTIText.acceptBtn,click:function(){t=!0;e(this).dialog('destroy');if(e(s).hasClass('form-radio')){e(s).parents('.form-radios').find('input[value=1]').trigger('click')};if(typeof ga4!=='undefined'){ga4.event({event:'purchased',value:'insurance',eventCategory:'Insurance',eventAction:'Purchased'})};if(typeof(ga)!==undefined){ga('send',{'hitType':'event','eventCategory':'Insurance','eventAction':'Purchased'})}}}]})}
else{return!0};if(!t){i.stopPropagation();i.preventDefault()};return t})})};if(typeof Drupal.settings.rcInsuranceDPDecline!='undefined'){e('.insurance-dp',a).once('rcInsuranceDP',function(){var a=this,t=e(a);t.find('input').next('label').on('click',function(t){t.stopPropagation();t.preventDefault();e(this).prev('input').trigger('mousedown')});t.find('input').on('mousedown',function(i){var r=e(this);if(e(a).is('.forced-choice')&&r.attr('value')==1){return!0};if(!n&&((!r.is(':checked')&&t.is('.declinable'))||(r.is(':checked')&&t.is('.acceptable'))||(t.is('.forced-choice')&&r.attr('value')==-1))){var s=this;e('<div>'+Drupal.settings.rcInsuranceDPDecline+'</div>').dialog({resizable:!1,width:280,modal:!0,buttons:[{text:Drupal.settings.rcInsuranceDPText.declineBtn,click:function(){n=!0;e(this).dialog('destroy');e(s).trigger('click')}},{text:Drupal.settings.rcInsuranceDPText.acceptBtn,click:function(){n=!0;e(this).dialog('destroy');if(e(s).hasClass('form-radio')){e(s).parents('.form-radios').find('input[value=1]').trigger('click')}}}]})}
else{return!0};if(!n){i.stopPropagation();i.preventDefault()};return n})})};var i=function(){if(e('input[name=\'payment[payment_option]\']:checked').length){var t=e('input[name=\'payment[payment_option]\']:checked').val()}
else{var t=e('input[name=\'payment[payment_option]\']').val()};e('button[data-later-text]').each(function(){if(t=='cc'||t=='ach'){e(this).text(e(this).attr('data-sps-text'));e('.sps-order-submit-copy').show()}
else{e(this).text(e(this).attr('data-later-text'));e('.sps-order-submit-copy').hide()}})};e('input[name=\'payment[payment_option]\']').once('rcjs',function(){e(this).on('change',function(){if(e(this).is(':checked')){i()}})});i()}}})(jQuery);;riot.tag2('rc-riot-share-order','<div if="{hasOrderLineItems}" class="tag-content"> <button onclick="{triggerClicked}">{opts.txt.trigger}</button> </div>','','',function(t){this.mixin('RCRiotOrder');(function(a,e){e.triggerClicked=function(r){a(r.target).addClass('pending').prop('disabled',!0);a.post('/rescms/order/share',{url:t.share_url,hash:e.getOrderHash(),order:JSON.stringify(e.getOrderData())},null,'json').done(function(r){var e=r.form;e='<p class="shorturl">'+(typeof t.bitly_access_token!='undefined'&&t.bitly_access_token.length>1?'':r.url)+'</p>'+e;if(t.txt.sharedesc.length){e='<p>'+t.txt.sharedesc+'</p>'+e};if(t.txt.sharesub.length){e='<h4>'+t.txt.sharesub+'</h4>'+e};if(t.txt.sharehead.length){e='<h3>'+t.txt.sharehead+'</h3>'+e};var s=RiotTagsModal.show(a(e));Drupal.settings.ajax=Drupal.settings.ajax||{};Drupal.settings.ajax['bt-leads-share-submit-rc-core-order-share']=new Drupal.ajax('bt-leads-share-submit-rc-core-order-share',a('.form-submit',s),{url:'/system/ajax',callback:'bt_leads_share_url_form_submit_ajax'});Drupal.attachBehaviors(s);a('p.shorturl',s).append(r.url);if(!window.grecaptcha){if(typeof btLeadsRecaptchaLoader==='function')btLeadsRecaptchaLoader(s,!0)}
else{if(typeof btLeadsRecaptchaCallback==='function')btLeadsRecaptchaCallback(s)}}).always(function(){a(r.target).removeClass('pending').prop('disabled',!1)})}})(jQuery,this)});riot.tag2('riot-solr-flag-counter', '<section> <span> <a onclick="{RiotSolrFlagCounterViewPage}" href="{RiotSolrFlagPath}"><i></i><span class="flag-count">{RiotSolrFlagCount}</span><span class="favorites-label">{opts.txt.counter_label}</span></a> </span> <div class="{show-items: showItems, flag-items: true}"> <div class="flag-items-wrapper"> <subtag each="{item in items}" tag="{parent.children[0].tag}" options="{Object.assign({}, parent.children[0].options, { \'item\': item })}"> </subtag> </div> </div> </section>', '@-webkit-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @-moz-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @-o-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } riot-solr-flag-counter,[data-is="riot-solr-flag-counter"]{ display: block; position: relative; } riot-solr-flag-counter .flag-items,[data-is="riot-solr-flag-counter"] .flag-items{ position: absolute; z-index: 93; right: 0; display: none; padding-top: 10px; min-width: 300px; top: 79px; } @media only screen and (max-width: 64em) { riot-solr-flag-counter .flag-items,[data-is="riot-solr-flag-counter"] .flag-items{ display: none !important; } } riot-solr-flag-counter .flag-items .flag-items-wrapper,[data-is="riot-solr-flag-counter"] .flag-items .flag-items-wrapper{ background: white; box-shadow: 0px 1px 3px rgba(17, 17, 17, 0.35); position: relative; } riot-solr-flag-counter .flag-items.show-items,[data-is="riot-solr-flag-counter"] .flag-items.show-items{ display: block; } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"],[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"]{ display: block; padding: 10px 15px; } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"]:after,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"]:after{ content: \'\'; display: block; width: 0; height: 0; clear: both; } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"] .tag-content:after,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"] .tag-content:after{ content: \'\'; display: block; width: 0; height: 0; clear: both; } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"] .tag-content a.image-wrap,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"] .tag-content a.image-wrap{ display: block; width: 33.33333%; float: left; padding-left: 15px; padding-right: 15px; position: relative; padding: 0; background-color: rgba(17, 17, 17, 0.1); } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"] img,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"] img{ display: block; height: auto; width: 100%; } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"] h4,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"] h4{ width: 66.66667%; float: left; padding-left: 15px; padding-right: 15px; position: relative; padding-right: 0; float: right; margin-top: 2px; font-size: 18px; text-align: left; } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"] p,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"] p{ width: 66.66667%; float: left; padding-left: 15px; padding-right: 15px; position: relative; padding-right: 0; float: right; clear: right; margin: 0; } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"] .more-link,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"] .more-link{ width: 66.66667%; float: left; padding-left: 15px; padding-right: 15px; position: relative; padding-right: 0; float: right; clear: right; } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"] .more-link a,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"] .more-link a{ background-color: #ff1e00; border-radius: 3px; color: #fff; display: block; text-align: center; border: none; transition-property: background-color, color; transition-timing-function: ease-in-out; transition-duration: .15s; letter-spacing: .03em; font-family: "Helvetica", Helvetica, "Arial", Arial, sans-serif; line-height: 1.3 !important; padding: 7px 10px; font-size: 14px; min-height: 30px; width: 100%; } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"] .more-link a:hover,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"] .more-link a:hover,riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"] .more-link a:active,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"] .more-link a:active{ background-color: #db1a00; } riot-solr-flag-counter .flag-items riot-solr-result-item:first-of-type:before,[data-is="riot-solr-flag-counter"] .flag-items riot-solr-result-item:first-of-type:before,riot-solr-flag-counter .flag-items [riot-tag="riot-solr-result-item"]:first-of-type:before,[data-is="riot-solr-flag-counter"] .flag-items [riot-tag="riot-solr-result-item"]:first-of-type:before,riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"]:first-of-type:before,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"]:first-of-type:before{ content: \'\'; display: block; width: 0; height: 0; border-style: solid; border-width: 10px; border-color: rgba(255, 255, 255, 0) rgba(255, 255, 255, 0) rgba(17, 17, 17, 0.1) rgba(255, 255, 255, 0); position: absolute; right: 25px; top: -20px; }', '', function(opts) {
    this.mixin('RiotTagsChildren');
    this.mixin('RiotSolrConnection');
    this.mixin('RiotSolrItemsContainer');
    this.mixin('RiotSolrFlagCounter');
});
;/**/
(function(i){var t={init:function(){this.one('update',function(){if(!this.skip_children){this.processChildren();this.mountChildren()}});this.on('*',this.propagateEvent)},getChildExtraOptions:function(i){return{}},processChildren:function(){this.children=[];if(this.opts&&typeof this.opts.children!='undefined'&&this.opts.children!=null){for(var i in this.opts.children){var t=this.opts.children[i].hasOwnProperty('children')?this.opts.children[i].children:null,n=this.opts.children[i].options;this.children.push({plugin:this.opts.children[i].plugin_id,weight:this.opts.children[i].plugin_weight,options:Object.assign(n,{'children':t},this.getChildExtraOptions(this.opts.children[i])),tag:this.opts.children[i].html_tag})};this.sortChildren()}},hasChildByPlugin:function(i){for(var t in this.children){if(this.children[t].plugin==i){return!0}};return!1},getChildByPlugin:function(i){for(var t in this.children){if(this.children[t].plugin==i){return this.children[t]}};return null},mountChildren:function(){var t=this,n=this.children.length;i(this.children).each(function(){if(!this.mounted){var h=i('<'+this.tag+' />');i(t.root).append(h);riot.mount(h,this.tag,this.options);this.mounted=!0;n--;if(!n){t.trigger('childrenMounted')}};i(t.root).addClass('haschild-'+this.tag)})},sortChildren:function(){this.children.sort(function(i,h){var t=Number(i.weight),n=Number(h.weight);if(t<n){return-1};if(t>n){return 1};return 0})},getChildTags:function(){var t=[];for(var i=0;i<this.root.childNodes.length;i++){if(typeof this.root.childNodes[i]._tag==='object'){t.push(this.root.childNodes[i])}};return t.map(function(i){return i._tag})},propagateEvent:function(){var i=arguments;if(typeof this.getChildTags==='function'){this.getChildTags().map(function(t){t.trigger.apply(t,i)})}}};riot.mixin('RiotTagsChildren',t)})(jQuery);(function(e){Drupal.behaviors.textarea={attach:function(t,a){e('.form-textarea-wrapper.resizable',t).once('textarea',function(){var a=null,t=e(this).addClass('resizable-textarea').find('textarea'),u=e('<div class="grippie"></div>').mousedown(o);u.insertAfter(t);function o(u){a=t.height()-u.pageY;t.css('opacity',0.25);e(document).mousemove(n).mouseup(i);return!1};function n(e){t.height(Math.max(32,a+e.pageY)+'px');return!1};function i(a){e(document).unbind('mousemove',n).unbind('mouseup',i);t.css('opacity',1)}})}}})(jQuery);(function(e){var a,n=!1;if(typeof Drupal.ajax!=='undefined'){a=Drupal.ajax.prototype.beforeSerialize;Drupal.ajax.prototype.beforeSerialize=function(t,c){a.call(this,t,c);e('.bt-leads-fragment',t).val(window.location.hash)}};btLeadsRecaptchaCallback=function(t){e('.bt-leads-recaptcha',t).once('btLeadsRecaptchaCallback',function(){var t=e(this).parents('form'),n=this,r,a=e(this).siblings('button[type="submit"], input[type="submit"]'),i=e(this).attr('data-size'),c=Drupal.settings.ajax?Drupal.settings.ajax[a.attr('id')]:undefined;if(!window.grecaptcha){console.warn('g-recaptcha was not loaded. This means recaptcha won\'t work on the current page.');return};rcid=grecaptcha.render(n,{sitekey:e(n).attr('data-sitekey'),callback:function(n){e(t).addClass('bt-leads-recaptcha-submitted');e('.bt-leads-grecaptcha-response',e(t)).val(n);if(c){a.on('mousedown',r)};if(i==='invisible'){!c?a.click():a.mousedown();if(c){grecaptcha.reset(t.attr('bt-leads-recaptcha-rcid'))}};if(n){console.info('Form submission successful after valid token response.')}
else{console.error('Form submission failed after returning an empty token response.')}}});t.attr('bt-leads-recaptcha-rcid',rcid);if(c){r=e._data(a.get(0),'events')['mousedown'][0].handler;a.unbind('mousedown');a.on('click',function(a){if(!e(t).hasClass('bt-leads-recaptcha-submitted')){a.preventDefault();grecaptcha.execute(t.attr('bt-leads-recaptcha-rcid'))}});e(t).ajaxComplete(function(a,c,r){if(a.currentTarget.id==e(t).attr('id')){if(e('.g-recaptcha-response',n).val()!=''){e(t).removeClass('bt-leads-recaptcha-submitted')}}})}
else{a.on('click',function(a){if(!e(t).hasClass('bt-leads-recaptcha-submitted')){a.preventDefault();grecaptcha.execute(t.attr('bt-leads-recaptcha-rcid'))}})}})};Drupal.behaviors.btLeadsPreventAccidentalSubmit={attach:function(t,a){var c=e('form.bt-leads-share-url-form');if(c.length){c.on('keydown','input',function(e){if(e.keyCode===13){e.preventDefault();e.stopPropagation();return!1}})}}};Drupal.behaviors.btLeadsAddShareHashArgs={attach:function(t,a){var c=e('form.bt-leads-share-url-form');c.find('#edit-social').find('a').each(function(){var a=e(this);if(!a.hasClass('btleads-processed')){var t=a.attr('href'),n=a.attr('data-share-query'),c=encodeURIComponent(a.attr('data-share-url'));if(window.location.hash){c+=encodeURIComponent(window.location.hash)};if(t.indexOf('?')===-1){t+='?'}
else{t+='&'};t+=n+'='+c;a.attr('href',t).addClass('btleads-processed')}})}};Drupal.behaviors.btLeadsOptInRequired={attach:function(t,a){e('.bt-opt-required',t).once('btLeadsOptInRequired',function(){e(this).submit(function(){if(!e('input[name="bt_leads_optin"]:checked',this).length){alert('Please accept the terms to proceed.');return!1}
else{return!0}})})}};function t(){const existingRecaptchaScript=document.querySelector('#bt-leads-recaptcha-async-load');if(existingRecaptchaScript){return};if(!Drupal.settings.bt_leads_recaptcha||!Drupal.settings.bt_leads_recaptcha.should_load){return};const recaptchaScript=document.createElement('script');const recaptchaUrl='https://www.google.com/recaptcha/api.js?onload=btLeadsRecaptchaCallback&render=explicit';recaptchaScript.setAttribute('id','bt-leads-recaptcha-async-load');recaptchaScript.setAttribute('src',recaptchaUrl);recaptchaScript.setAttribute('defer',1);recaptchaScript.setAttribute('async',1);document.head.appendChild(recaptchaScript);const newlyMountedRecaptcha=document.querySelector('#bt-leads-recaptcha-async-load');if(newlyMountedRecaptcha){console.info('Successfully added Google\'s ReCaptcha library.');n=!0}
else{console.error('Something went wrong when mounting Google\'s ReCaptcha library to the page.')}};function c(e){var t=e.getBoundingClientRect();return(t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth))};btLeadsRecaptchaLoader=function(a,shouldLoad=!1){var i=e('.load-async-recaptcha'),r=!1;if(shouldLoad){t()}
else{document.addEventListener('scroll',function(){i.each(function(e,t){r=c(t)});if(r){t()}});window.onload=function(e){i.each(function(e,t){r=c(t)});if(r){t()}};e('.load-async-recaptcha :input',a).on('focus',function(){t()})}};Drupal.behaviors.btLeadsAsyncLoadRecaptcha={attach:function(e,t){btLeadsRecaptchaLoader(e)}}})(jQuery);(function(t){Drupal.antibot={};Drupal.behaviors.antibot={attach:function(n){Drupal.settings.antibot.human=!1;t('body').mousemove(function(){Drupal.antibot.unlockForms()});t('body').bind('touchmove',function(){Drupal.antibot.unlockForms()});t('body').keydown(function(t){if((t.keyCode==9)||(t.keyCode==13)){Drupal.antibot.unlockForms()}})}};Drupal.antibot.unlockForms=function(){if(!Drupal.settings.antibot.human){for(var n in Drupal.settings.antibot.forms){t('form#'+n).attr('action',Drupal.settings.antibot.forms[n].action);if(Drupal.settings.antibot.forms[n].key){t('form#'+n).find('input[name="antibot_key"]').val(Drupal.settings.antibot.forms[n].key.split('').reverse().join('').match(/.{1,2}/g).map((value)=>value.split('').reverse().join('')).join(''))}};Drupal.settings.antibot.human=!0}}})(jQuery);/* Modernizr 2.6.2 (Custom Build) | MIT & BSD
 * Build: http://modernizr.com/download/#-inlinesvg-svg-svgclippaths-touch-shiv-mq-cssclasses-teststyles-prefixes-ie8compat-load
 */
;window.Modernizr=function(a,b,c){function y(a){j.cssText=a}function z(a,b){return y(m.join(a+";")+(b||""))}function A(a,b){return typeof a===b}function B(a,b){return!!~(""+a).indexOf(b)}function C(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:A(f,"function")?f.bind(d||b):f}return!1}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m=" -webkit- -moz- -o- -ms- ".split(" "),n={svg:"http://www.w3.org/2000/svg"},o={},p={},q={},r=[],s=r.slice,t,u=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["&#173;",'<style id="s',h,'">',a,"</style>"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},v=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b).matches;var d;return u("@media "+b+" { #"+h+" { position: absolute; } }",function(b){d=(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle)["position"]=="absolute"}),d},w={}.hasOwnProperty,x;!A(w,"undefined")&&!A(w.call,"undefined")?x=function(a,b){return w.call(a,b)}:x=function(a,b){return b in a&&A(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=s.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(s.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(s.call(arguments)))};return e}),o.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:u(["@media (",m.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},o.svg=function(){return!!b.createElementNS&&!!b.createElementNS(n.svg,"svg").createSVGRect},o.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==n.svg},o.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(l.call(b.createElementNS(n.svg,"clipPath")))};for(var D in o)x(o,D)&&(t=D.toLowerCase(),e[t]=o[D](),r.push((e[t]?"":"no-")+t));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)x(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},y(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e<g;e++)d.createElement(f[e]);return d}function p(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return r.shivMethods?n(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+l().join().replace(/\w+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(r,b.frag)}function q(a){a||(a=b);var c=m(a);return r.shivCSS&&!f&&!c.hasCSS&&(c.hasCSS=!!k(a,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),j||p(a,c),a}var c=a.html5||{},d=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,e=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f,g="_html5shiv",h=0,i={},j;(function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,e._prefixes=m,e.mq=v,e.testStyles=u,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+r.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},Modernizr.addTest("ie8compat",function(){return!window.addEventListener&&document.documentMode&&document.documentMode===7});
;/**/
;var libFuncName=null;if(typeof jQuery==='undefined'&&typeof Zepto==='undefined'&&typeof $==='function'){libFuncName=$}
else if(typeof jQuery==='function'){libFuncName=jQuery}
else if(typeof Zepto==='function'){libFuncName=Zepto}
else{throw new TypeError()}(function(t,n,e,i){'use strict';n.matchMedia=n.matchMedia||(function(t,n){'use strict';var o,i=t.documentElement,s=i.firstElementChild||i.firstChild,r=t.createElement('body'),e=t.createElement('div');e.id='mq-test-1';e.style.cssText='position:absolute;top:-100em';r.style.background='none';r.appendChild(e);return function(t){e.innerHTML='&shy;<style media="'+t+'"> #mq-test-1 { width: 42px; }</style>';i.insertBefore(r,s);o=e.offsetWidth===42;i.removeChild(r);return{matches:o,media:t}}}(e));if(!Array.prototype.filter){Array.prototype.filter=function(t){'use strict';if(this==null){throw new TypeError()};var e=Object(this),s=e.length>>>0;if(typeof t!=='function'){return};var r=[],o=arguments[1];for(var n=0;n<s;n++){if(n in e){var i=e[n];if(t&&t.call(o,i,n,e)){r.push(i)}}};return r}};if(!Function.prototype.bind){Function.prototype.bind=function(t){if(typeof this!=='function'){throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable')};var i=Array.prototype.slice.call(arguments,1),r=this,n=function(){},e=function(){return r.apply(this instanceof n&&t?this:t,i.concat(Array.prototype.slice.call(arguments)))};n.prototype=this.prototype;e.prototype=new n();return e}};if(!Array.prototype.indexOf){Array.prototype.indexOf=function(t){'use strict';if(this==null){throw new TypeError()};var r=Object(this),i=r.length>>>0;if(i===0){return-1};var n=0;if(arguments.length>1){n=Number(arguments[1]);if(n!=n){n=0}
else if(n!=0&&n!=Infinity&&n!=-Infinity){n=(n>0||-1)*Math.floor(Math.abs(n))}};if(n>=i){return-1};var e=n>=0?n:Math.max(i-Math.abs(n),0);for(;e<i;e++){if(e in r&&r[e]===t){return e}};return-1}};t.fn.stop=t.fn.stop||function(){return this};n.Foundation={name:'Foundation',version:'4.3.1',cache:{},init:function(n,e,s,u,l,r){var o,i=[n,s,u,l],f=[],r=r||!1;if(r)this.nc=r;this.rtl=/rtl/i.test(t('html').attr('dir'));this.scope=n||this.scope;if(e&&typeof e==='string'&&!/reflow/i.test(e)){if(/off/i.test(e))return this.off();o=e.split(' ');if(o.length>0){for(var a=o.length-1;a>=0;a--){f.push(this.init_lib(o[a],i))}}}
else{if(/reflow/i.test(e))i[1]='reflow';for(var h in this.libs){f.push(this.init_lib(h,i))}};if(typeof e==='function'){i.unshift(e)};return this.response_obj(f,i)},response_obj:function(t,n){for(var e=0,i=n.length;e<i;e++){if(typeof n[e]==='function'){return n[e]({errors:t.filter(function(t){if(typeof t==='string')return t})})}};return t},init_lib:function(t,n){return this.trap(function(){if(this.libs.hasOwnProperty(t)){this.patch(this.libs[t]);return this.libs[t].init.apply(this.libs[t],n)}
else{return function(){}}}.bind(this),t)},trap:function(t,n){if(!this.nc){try{return t()}catch(e){return this.error({name:n,message:'could not be initialized',more:e.name+' '+e.message})}};return t()},patch:function(t){this.fix_outer(t);t.scope=this.scope;t.rtl=this.rtl},inherit:function(t,n){var i=n.split(' ');for(var e=i.length-1;e>=0;e--){if(this.lib_methods.hasOwnProperty(i[e])){this.libs[t.name][i[e]]=this.lib_methods[i[e]]}}},random_str:function(t){var n='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');if(!t){t=Math.floor(Math.random()*n.length)};var i='';for(var e=0;e<t;e++){i+=n[Math.floor(Math.random()*n.length)]};return i},libs:{},lib_methods:{set_data:function(t,n){var e=[this.name,+new Date(),Foundation.random_str(5)].join('-');Foundation.cache[e]=n;t.attr('data-'+this.name+'-id',e);return n},get_data:function(t){return Foundation.cache[t.attr('data-'+this.name+'-id')]},remove_data:function(n){if(n){delete Foundation.cache[n.attr('data-'+this.name+'-id')];n.attr('data-'+this.name+'-id','')}
else{t('[data-'+this.name+'-id]').each(function(){delete Foundation.cache[t(this).attr('data-'+this.name+'-id')];t(this).attr('data-'+this.name+'-id','')})}},throttle:function(t,n){var e=null;return function(){var i=this,r=arguments;clearTimeout(e);e=setTimeout(function(){t.apply(i,r)},n)}},data_options:function(n){var r={},i,e,o=(n.attr('data-options')||':').split(';'),a=o.length;function f(t){return!isNaN(t-0)&&t!==null&&t!==''&&t!==!1&&t!==!0};function s(n){if(typeof n==='string')return t.trim(n);return n};for(i=a-1;i>=0;i--){e=o[i].split(':');if(/true/i.test(e[1]))e[1]=!0;if(/false/i.test(e[1]))e[1]=!1;if(f(e[1]))e[1]=parseInt(e[1],10);if(e.length===2&&e[0].length>0){r[s(e[0])]=s(e[1])}};return r},delay:function(t,n){return setTimeout(t,n)},scrollTo:function(e,i,r){if(r<0)return;var s=i-t(n).scrollTop(),o=s/r*10;this.scrollToTimerCache=setTimeout(function(){if(!isNaN(parseInt(o,10))){n.scrollTo(0,t(n).scrollTop()+o);this.scrollTo(e,i,r-10)}}.bind(this),10)},scrollLeft:function(t){if(!t.length)return;return('scrollLeft' in t[0])?t[0].scrollLeft:t[0].pageXOffset},empty:function(t){if(t.length&&t.length>0)return!1;if(t.length&&t.length===0)return!0;for(var n in t){if(hasOwnProperty.call(t,n))return!1};return!0}},fix_outer:function(t){t.outerHeight=function(t,n){if(typeof Zepto==='function'){return t.height()};if(typeof n!=='undefined'){return t.outerHeight(n)};return t.outerHeight()};t.outerWidth=function(t,n){if(typeof Zepto==='function'){return t.width()};if(typeof n!=='undefined'){return t.outerWidth(n)};return t.outerWidth()}},error:function(t){return t.name+' '+t.message+'; '+t.more},off:function(){t(this.scope).off('.fndtn');t(n).off('.fndtn');return!0},zj:t};t.fn.foundation=function(){var t=Array.prototype.slice.call(arguments,0);return this.each(function(){Foundation.init.apply(Foundation,[this].concat(t));return this})}}(libFuncName,this,this.document));(function(t,s,i,e){'use strict';Foundation.libs.alerts={name:'alerts',version:'4.2.2',settings:{speed:300,callback:function(){}},init:function(i,s,e){this.scope=i||this.scope;if(typeof s==='object'){t.extend(!0,this.settings,s)};if(typeof s!=='string'){if(!this.settings.init){this.events()};return this.settings.init}
else{return this[s].call(this,e)}},events:function(){var s=this;t(this.scope).on('click.fndtn.alerts','[data-alert] a.close',function(i){i.preventDefault();t(this).closest('[data-alert]').fadeOut(s.speed,function(){t(this).remove();s.settings.callback()})});this.settings.init=!0},off:function(){t(this.scope).off('.fndtn.alerts')},reflow:function(){}}}(Foundation.zj,this,this.document));(function(i,t,e,n){'use strict';Foundation.libs.clearing={name:'clearing',version:'4.3.1',settings:{templates:{viewing:'<a href="#" class="clearing-close">&times;</a><div class="visible-img" style="display: none"><img src="//:0"><p class="clearing-caption"></p><a href="#" class="clearing-main-prev"><span></span></a><a href="#" class="clearing-main-next"><span></span></a></div>'},close_selectors:'.clearing-close',init:!1,locked:!1},init:function(t,e,n){var s=this;Foundation.inherit(this,'set_data get_data remove_data throttle data_options');if(typeof e==='object'){n=i.extend(!0,this.settings,e)};if(typeof e!=='string'){i(this.scope).find('ul[data-clearing]').each(function(){var t=i(this),e=e||{},n=t.find('li'),a=s.get_data(t);if(!a&&n.length>0){e.$parent=t.parent();s.set_data(t,i.extend({},s.settings,e,s.data_options(t)));s.assemble(t.find('li'));if(!s.settings.init){s.events().swipe_events()}}});return this.settings.init}
else{return this[e].call(this,n)}},events:function(){var e=this;i(this.scope).on('click.fndtn.clearing','ul[data-clearing] li',function(t,n,s){var n=n||i(this),s=s||n,a=n.next('li'),l=e.get_data(n.parent()),r=i(t.target);t.preventDefault();if(!l)e.init();if(s.hasClass('visible')&&n[0]===s[0]&&a.length>0&&e.is_open(n)){s=a;r=s.find('img')};e.open(r,n,s);e.update_paddles(s)}).on('click.fndtn.clearing','.clearing-main-next',function(i){this.nav(i,'next')}.bind(this)).on('click.fndtn.clearing','.clearing-main-prev',function(i){this.nav(i,'prev')}.bind(this)).on('click.fndtn.clearing',this.settings.close_selectors,function(i){Foundation.libs.clearing.close(i,this)}).on('keydown.fndtn.clearing',function(i){this.keydown(i)}.bind(this));i(t).on('resize.fndtn.clearing',function(){this.resize()}.bind(this));this.settings.init=!0;return this},swipe_events:function(){var t=this;i(this.scope).on('touchstart.fndtn.clearing','.visible-img',function(t){if(!t.touches){t=t.originalEvent};var e={start_page_x:t.touches[0].pageX,start_page_y:t.touches[0].pageY,start_time:(new Date()).getTime(),delta_x:0,is_scrolling:n};i(this).data('swipe-transition',e);t.stopPropagation()}).on('touchmove.fndtn.clearing','.visible-img',function(e){if(!e.touches){e=e.originalEvent};if(e.touches.length>1||e.scale&&e.scale!==1)return;var n=i(this).data('swipe-transition');if(typeof n==='undefined'){n={}};n.delta_x=e.touches[0].pageX-n.start_page_x;if(typeof n.is_scrolling==='undefined'){n.is_scrolling=!!(n.is_scrolling||Math.abs(n.delta_x)<Math.abs(e.touches[0].pageY-n.start_page_y))};if(!n.is_scrolling&&!n.active){e.preventDefault();var s=(n.delta_x<0)?'next':'prev';n.active=!0;t.nav(e,s)}}).on('touchend.fndtn.clearing','.visible-img',function(t){i(this).data('swipe-transition',{});t.stopPropagation()})},assemble:function(t){var e=t.parent();e.after('<div id="foundationClearingHolder"></div>');var s=i('#foundationClearingHolder'),a=this.get_data(e),r=e.detach(),n={grid:'<div class="carousel">'+this.outerHTML(r[0])+'</div>',viewing:a.templates.viewing},l='<div class="clearing-assembled"><div>'+n.viewing+n.grid+'</div></div>';return s.after(l).remove()},open:function(i,t,e){var a=e.closest('.clearing-assembled'),r=a.find('div').first(),s=r.find('.visible-img'),n=s.find('img').not(i);if(!this.locked()){n.attr('src',this.load(i)).css('visibility','hidden');this.loaded(n,function(){n.css('visibility','visible');a.addClass('clearing-blackout');r.addClass('clearing-container');s.show();this.fix_height(e).caption(s.find('.clearing-caption'),i).center(n).shift(t,e,function(){e.siblings().removeClass('visible');e.addClass('visible')})}.bind(this))}},close:function(t,e){t.preventDefault();var n=(function(i){if(/blackout/.test(i.selector)){return i}
else{return i.closest('.clearing-blackout')}}(i(e))),s,a;if(e===t.target&&n){s=n.find('div').first();a=s.find('.visible-img');this.settings.prev_index=0;n.find('ul[data-clearing]').attr('style','').closest('.clearing-blackout').removeClass('clearing-blackout');s.removeClass('clearing-container');a.hide()};return!1},is_open:function(i){return i.parent().attr('style').length>0},keydown:function(t){var e=i('.clearing-blackout').find('ul[data-clearing]');if(t.which===39)this.go(e,'next');if(t.which===37)this.go(e,'prev');if(t.which===27)i('a.clearing-close').trigger('click')},nav:function(t,e){var n=i('.clearing-blackout').find('ul[data-clearing]');t.preventDefault();this.go(n,e)},resize:function(){var t=i('.clearing-blackout .visible-img').find('img');if(t.length){this.center(t)}},fix_height:function(t){var e=t.parent().children(),n=this;e.each(function(){var t=i(this),e=t.find('img');if(t.height()>n.outerHeight(e)){t.addClass('fix-height')}}).closest('ul').width(e.length*100+'%');return this},update_paddles:function(i){var t=i.closest('.carousel').siblings('.visible-img');if(i.next().length>0){t.find('.clearing-main-next').removeClass('disabled')}
else{t.find('.clearing-main-next').addClass('disabled')};if(i.prev().length>0){t.find('.clearing-main-prev').removeClass('disabled')}
else{t.find('.clearing-main-prev').addClass('disabled')}},center:function(i){if(!this.rtl){i.css({marginLeft:-(this.outerWidth(i)/2),marginTop:-(this.outerHeight(i)/2)})}
else{i.css({marginRight:-(this.outerWidth(i)/2),marginTop:-(this.outerHeight(i)/2)})};return this},load:function(i){if(i[0].nodeName==='A'){var t=i.attr('href')}
else{var t=i.parent().attr('href')};this.preload(i);if(t)return t;return i.attr('src')},preload:function(i){this.img(i.closest('li').next()).img(i.closest('li').prev())},loaded:function(i,t){function e(){t()};function n(){this.one('load',e);if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var i=this.attr('src'),t=i.match(/\?/)?'&':'?';t+='random='+(new Date()).getTime();this.attr('src',i+t)}};if(!i.attr('src')){e();return};if(i[0].complete||i[0].readyState===4){e()}
else{n.call(i)}},img:function(i){if(i.length){var t=new Image(),e=i.find('a');if(e.length){t.src=e.attr('href')}
else{t.src=i.find('img').attr('src')}};return this},caption:function(i,t){var e=t.data('caption');if(e){i.html(e).show()}
else{i.text('').hide()};return this},go:function(i,t){var n=i.find('.visible'),e=n[t]();if(e.length){e.find('img').trigger('click',[n,e])}},shift:function(i,t,e){var n=t.parent(),o=this.settings.prev_index||t.index(),s=this.direction(n,i,t),l=parseInt(n.css('left'),10),a=this.outerWidth(t),r;if(t.index()!==o&&!/skip/.test(s)){if(/left/.test(s)){this.lock();n.animate({left:l+a},300,this.unlock())}
else if(/right/.test(s)){this.lock();n.animate({left:l-a},300,this.unlock())}}
else if(/skip/.test(s)){r=t.index()-this.settings.up_count;this.lock();if(r>0){n.animate({left:-(r*a)},300,this.unlock())}
else{n.animate({left:0},300,this.unlock())}};e()},direction:function(t,e,n){var r=t.find('li'),o=this.outerWidth(r)+(this.outerWidth(r)/4),l=Math.floor(this.outerWidth(i('.clearing-container'))/o)-1,s=r.index(n),a;this.settings.up_count=l;if(this.adjacent(this.settings.prev_index,s)){if((s>l)&&s>this.settings.prev_index){a='right'}
else if((s>l-1)&&s<=this.settings.prev_index){a='left'}
else{a=!1}}
else{a='skip'};this.settings.prev_index=s;return a},adjacent:function(i,t){for(var e=t+1;e>=t-1;e--){if(e===i)return!0};return!1},lock:function(){this.settings.locked=!0},unlock:function(){this.settings.locked=!1},locked:function(){return this.settings.locked},outerHTML:function(i){return i.outerHTML||new XMLSerializer().serializeToString(i)},off:function(){i(this.scope).off('.fndtn.clearing');i(t).off('.fndtn.clearing');this.remove_data();this.settings.init=!1},reflow:function(){this.init()}}}(Foundation.zj,this,this.document));(function(e,t,s,n){'use strict';Foundation.libs.forms={name:'forms',version:'4.3.1',cache:{},settings:{disable_class:'no-custom',last_combo:null},init:function(t,s,i){if(typeof s==='object'){e.extend(!0,this.settings,s)};if(typeof s!=='string'){if(!this.settings.init){this.events()};this.assemble();return this.settings.init}
else{return this[s].call(this,i)}},assemble:function(){e('form.custom input[type="radio"]',e(this.scope)).not('[data-customforms="disabled"]').not('.'+this.settings.disable_class).each(this.append_custom_markup);e('form.custom input[type="checkbox"]',e(this.scope)).not('[data-customforms="disabled"]').not('.'+this.settings.disable_class).each(this.append_custom_markup);e('form.custom select',e(this.scope)).not('[data-customforms="disabled"]').not('.'+this.settings.disable_class).not('[multiple=multiple]').each(this.append_custom_select)},events:function(){var n=this;e(this.scope).on('click.fndtn.forms','form.custom span.custom.checkbox',function(t){t.preventDefault();t.stopPropagation();n.toggle_checkbox(e(this))}).on('click.fndtn.forms','form.custom span.custom.radio',function(t){t.preventDefault();t.stopPropagation();n.toggle_radio(e(this))}).on('change.fndtn.forms','form.custom select',function(t,s){if(e(this).is('[data-customforms="disabled"]'))return;n.refresh_custom_select(e(this),s)}).on('click.fndtn.forms','form.custom label',function(t){if(e(t.target).is('label')){var s=e('#'+n.escape(e(this).attr('for'))).not('[data-customforms="disabled"]'),i,o;if(s.length!==0){if(s.attr('type')==='checkbox'){t.preventDefault();i=e(this).find('span.custom.checkbox');if(i.length===0){i=s.add(this).siblings('span.custom.checkbox').first()};n.toggle_checkbox(i)}
else if(s.attr('type')==='radio'){t.preventDefault();o=e(this).find('span.custom.radio');if(o.length===0){o=s.add(this).siblings('span.custom.radio').first()};n.toggle_radio(o)}}}}).on('mousedown.fndtn.forms','form.custom div.custom.dropdown',function(){return!1}).on('click.fndtn.forms','form.custom div.custom.dropdown a.current, form.custom div.custom.dropdown a.selector',function(t){var o=e(this),s=o.closest('div.custom.dropdown'),a=i(s,'select');if(!s.hasClass('open'))e(n.scope).trigger('click');t.preventDefault();if(!1===a.is(':disabled')){s.toggleClass('open');if(s.hasClass('open')){e(n.scope).on('click.fndtn.forms.customdropdown',function(){s.removeClass('open');e(n.scope).off('.fndtn.forms.customdropdown')})}
else{e(n.scope).on('.fndtn.forms.customdropdown')};return!1}}).on('click.fndtn.forms touchend.fndtn.forms','form.custom div.custom.dropdown li',function(t){var n=e(this),a=n.closest('div.custom.dropdown'),o=i(a,'select'),c=0;t.preventDefault();t.stopPropagation();if(!e(this).hasClass('disabled')){e('div.dropdown').not(a).removeClass('open');var l=n.closest('ul').find('li.selected');l.removeClass('selected');n.addClass('selected');a.removeClass('open').find('a.current').text(n.text());n.closest('ul').find('li').each(function(e){if(n[0]===this){c=e}});o[0].selectedIndex=c;o.data('prevalue',l.html());if(typeof(s.createEvent)!='undefined'){var d=s.createEvent('HTMLEvents');d.initEvent('change',!0,!0);o[0].dispatchEvent(d)}
else{o[0].fireEvent('onchange')}}});e(t).on('keydown',function(t){var l=s.activeElement,d=Foundation.libs.forms,o=e('.custom.dropdown.open');if(o.length>0){t.preventDefault();if(t.which===13){o.find('li.selected').trigger('click')};if(t.which===27){o.removeClass('open')};if(t.which>=65&&t.which<=90){var i=d.go_to(o,t.which),n=o.find('li.selected');if(i){n.removeClass('selected');d.scrollTo(i.addClass('selected'),300)}};if(t.which===38){var n=o.find('li.selected'),a=n.prev(':not(.disabled)');if(a.length>0){a.parent()[0].scrollTop=a.parent().scrollTop()-d.outerHeight(a);n.removeClass('selected');a.addClass('selected')}}
else if(t.which===40){var n=o.find('li.selected'),i=n.next(':not(.disabled)');if(i.length>0){i.parent()[0].scrollTop=i.parent().scrollTop()+d.outerHeight(i);n.removeClass('selected');i.addClass('selected')}}}});this.settings.init=!0},go_to:function(e,t){var i=e.find('li'),n=i.length;if(n>0){for(var s=0;s<n;s++){var o=i.eq(s).text().charAt(0).toLowerCase();if(o===String.fromCharCode(t).toLowerCase())return i.eq(s)}}},scrollTo:function(e,t){if(t<0)return;var s=e.parent(),n=this.outerHeight(e),o=(n*(e.index()))-s.scrollTop(),i=o/t*10;this.scrollToTimerCache=setTimeout(function(){if(!isNaN(parseInt(i,10))){s[0].scrollTop=s.scrollTop()+i;this.scrollTo(e,t-10)}}.bind(this),10)},append_custom_markup:function(t,s){var i=e(s),o=i.attr('type'),n=i.next('span.custom.'+o);if(!i.parent().hasClass('switch')){i.addClass('hidden-field')};if(n.length===0){n=e('<span class="custom '+o+'"></span>').insertAfter(i)};n.toggleClass('checked',i.is(':checked'));n.toggleClass('disabled',i.is(':disabled'))},append_custom_select:function(t,i){var o=Foundation.libs.forms,n=e(i),s=n.next('div.custom.dropdown'),d=s.find('ul'),g=s.find('.current'),u=s.find('.selector'),l=n.find('option'),m=l.filter(':selected'),p=n.attr('class')?n.attr('class').split(' '):[],r=0,c='',a,f=!1;if(s.length===0){var h=n.hasClass('small')?'small':n.hasClass('medium')?'medium':n.hasClass('large')?'large':n.hasClass('expand')?'expand':'';s=e('<div class="'+['custom','dropdown',h].concat(p).filter(function(e,t,s){if(e==='')return!1;return s.indexOf(e)===t}).join(' ')+'"><a href="#" class="selector"></a><ul /></div>');u=s.find('.selector');d=s.find('ul');c=l.map(function(){var t=e(this).attr('class')?e(this).attr('class'):'';return'<li class=\''+t+'\'>'+e(this).html()+'</li>'}).get().join('');d.append(c);f=s.prepend('<a href="#" class="current">'+m.html()+'</a>').find('.current');n.after(s).addClass('hidden-field')}
else{c=l.map(function(){return'<li>'+e(this).html()+'</li>'}).get().join('');d.html('').append(c)};o.assign_id(n,s);s.toggleClass('disabled',n.is(':disabled'));a=d.find('li');o.cache[s.data('id')]=a.length;l.each(function(t){if(this.selected){a.eq(t).addClass('selected');if(f){f.html(e(this).html())}};if(e(this).is(':disabled')){a.eq(t).addClass('disabled')}});if(!s.is('.small, .medium, .large, .expand')){s.addClass('open');var o=Foundation.libs.forms;o.hidden_fix.adjust(d);r=(o.outerWidth(a)>r)?o.outerWidth(a):r;Foundation.libs.forms.hidden_fix.reset();s.removeClass('open')}},assign_id:function(e,t){var s=[+new Date(),Foundation.random_str(5)].join('-');e.attr('data-id',s);t.attr('data-id',s)},refresh_custom_select:function(t,i){var o=this,a=0,s=t.next(),d=t.find('option'),n=s.find('li');if(n.length!==this.cache[s.data('id')]||i){s.find('ul').html('');d.each(function(){var t=e('<li>'+e(this).html()+'</li>');s.find('ul').append(t)});d.each(function(t){if(this.selected){s.find('li').eq(t).addClass('selected');s.find('.current').html(e(this).html())};if(e(this).is(':disabled')){s.find('li').eq(t).addClass('disabled')}});s.removeAttr('style').find('ul').removeAttr('style');s.find('li').each(function(){s.addClass('open');if(o.outerWidth(e(this))>a){a=o.outerWidth(e(this))};s.removeClass('open')});n=s.find('li');this.cache[s.data('id')]=n.length}},toggle_checkbox:function(e){var t=e.prev(),s=t[0];if(!1===t.is(':disabled')){s.checked=((s.checked)?!1:!0);e.toggleClass('checked');t.trigger('change')}},toggle_radio:function(e){var t=e.prev(),s=t.closest('form.custom'),i=t[0];if(!1===t.is(':disabled')){s.find('input[type="radio"][name="'+this.escape(t.attr('name'))+'"]').next().not(e).removeClass('checked');if(!e.hasClass('checked')){e.toggleClass('checked')};i.checked=e.hasClass('checked');t.trigger('change')}},escape:function(e){if(!e)return'';return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,'\\$&')},hidden_fix:{tmp:[],hidden:null,adjust:function(t){var s=this;s.hidden=t.parents();s.hidden=s.hidden.add(t).filter(':hidden');s.hidden.each(function(){var t=e(this);s.tmp.push(t.attr('style'));t.css({'visibility':'hidden','display':'block'})})},reset:function(){var t=this;t.hidden.each(function(s){var i=e(this),o=t.tmp[s];if(o===n)i.removeAttr('style');else i.attr('style',o)});t.tmp=[];t.hidden=null}},off:function(){e(this.scope).off('.fndtn.forms')},reflow:function(){}};var i=function(t,s){var t=t.prev();while(t.length){if(t.is(s))return t;t=t.prev()};return e()}}(Foundation.zj,this,this.document));(function(a,t,e){var r='placeholder' in t.createElement('input'),i='placeholder' in t.createElement('textarea'),d=e.fn,u=e.valHooks,n,l;if(r&&i){l=d.placeholder=function(){return this};l.input=l.textarea=!0}
else{l=d.placeholder=function(){var e=this;e.filter((r?'textarea':':input')+'[placeholder]').not('.placeholder').bind({'focus.placeholder':o,'blur.placeholder':c}).data('placeholder-enabled',!0).trigger('blur.placeholder');return e};l.input=r;l.textarea=i;n={'get':function(t){var a=e(t);return a.data('placeholder-enabled')&&a.hasClass('placeholder')?'':t.value},'set':function(a,l){var r=e(a);if(!r.data('placeholder-enabled')){return a.value=l};if(l==''){a.value=l;if(a!=t.activeElement){c.call(a)}}
else if(r.hasClass('placeholder')){o.call(a,!0,l)||(a.value=l)}
else{a.value=l};return r}};r||(u.input=n);i||(u.textarea=n);e(function(){e(t).delegate('form','submit.placeholder',function(){var t=e('.placeholder',this).each(o);setTimeout(function(){t.each(c)},10)})});e(a).bind('beforeunload.placeholder',function(){e('.placeholder').each(function(){this.value=''})})};function h(t){var a={},l=/^jQuery\d+$/;e.each(t.attributes,function(t,e){if(e.specified&&!l.test(e.name)){a[e.name]=e.value}});return a};function o(l,r){var o=this,a=e(o);if(o.value==a.attr('placeholder')&&a.hasClass('placeholder')){if(a.data('placeholder-password')){a=a.hide().next().show().attr('id',a.removeAttr('id').data('placeholder-id'));if(l===!0){return a[0].value=r};a.focus()}
else{o.value='';a.removeClass('placeholder');o==t.activeElement&&o.select()}}};function c(){var a,l=this,t=e(l),i=t,r=this.id;if(l.value==''){if(l.type=='password'){if(!t.data('placeholder-textinput')){try{a=t.clone().attr({'type':'text'})}catch(n){a=e('<input>').attr(e.extend(h(this),{'type':'text'}))};a.removeAttr('name').data({'placeholder-password':!0,'placeholder-id':r}).bind('focus.placeholder',o);t.data({'placeholder-textinput':a,'placeholder-id':r}).before(a)};t=t.removeAttr('id').hide().prev().attr('id',r).show()};t.addClass('placeholder');t[0].value=t.attr('placeholder')}
else{t.removeClass('placeholder')}}}(this,document,Foundation.zj));(function(e,t,a,l){'use strict';Foundation.libs.placeholder={name:'placeholder',version:'4.2.2',init:function(a,l,r){this.scope=a||this.scope;if(typeof l!=='string'){t.onload=function(){e('input, textarea').placeholder()}}}}}(Foundation.zj,this,this.document));(function(e,t,s,i){'use strict';Foundation.libs.reveal={name:'reveal',version:'4.2.2',locked:!1,settings:{animation:'fadeAndPop',animationSpeed:250,closeOnBackgroundClick:!0,closeOnEsc:!0,dismissModalClass:'close-reveal-modal',bgClass:'reveal-modal-bg',open:function(){},opened:function(){},close:function(){},closed:function(){},bg:e('.reveal-modal-bg'),css:{open:{'opacity':0,'visibility':'visible','display':'block'},close:{'opacity':1,'visibility':'hidden','display':'none'}}},init:function(t,s,i){Foundation.inherit(this,'data_options delay');if(typeof s==='object'){e.extend(!0,this.settings,s)}
else if(typeof i!=='undefined'){e.extend(!0,this.settings,i)};if(typeof s!=='string'){this.events();return this.settings.init}
else{return this[s].call(this,i)}},events:function(){var t=this;e(this.scope).off('.fndtn.reveal').on('click.fndtn.reveal','[data-reveal-id]',function(s){s.preventDefault();if(!t.locked){var i=e(this),n=i.data('reveal-ajax');t.locked=!0;if(typeof n==='undefined'){t.open.call(t,i)}
else{var o=n===!0?i.attr('href'):n;t.open.call(t,i,{url:o})}}}).on('click.fndtn.reveal',this.close_targets(),function(s){s.preventDefault();if(!t.locked){var i=e.extend({},t.settings,t.data_options(e('.reveal-modal.open')));if(e(s.target)[0]===e('.'+i.bgClass)[0]&&!i.closeOnBackgroundClick){return};t.locked=!0;t.close.call(t,e(this).closest('.reveal-modal'))}}).on('open.fndtn.reveal','.reveal-modal',this.settings.open).on('opened.fndtn.reveal','.reveal-modal',this.settings.opened).on('opened.fndtn.reveal','.reveal-modal',this.open_video).on('close.fndtn.reveal','.reveal-modal',this.settings.close).on('closed.fndtn.reveal','.reveal-modal',this.settings.closed).on('closed.fndtn.reveal','.reveal-modal',this.close_video);e('body').bind('keyup.reveal',function(s){var i=e('.reveal-modal.open'),n=e.extend({},t.settings,t.data_options(i));if(s.which===27&&n.closeOnEsc){i.foundation('reveal','close')}});return!0},open:function(t,i){if(t){if(typeof t.selector!=='undefined'){var s=e('#'+t.data('reveal-id'))}
else{var s=e(this.scope);i=t}}
else{var s=e(this.scope)};if(!s.hasClass('open')){var o=e('.reveal-modal.open');if(typeof s.data('css-top')==='undefined'){s.data('css-top',parseInt(s.css('top'),10)).data('offset',this.cache_offset(s))};s.trigger('open');if(o.length<1){this.toggle_bg(s)};if(typeof i==='undefined'||!i.url){this.hide(o,this.settings.css.close);this.show(s,this.settings.css.open)}
else{var n=this,a=typeof i.success!=='undefined'?i.success:null;e.extend(i,{success:function(t,i,l){if(e.isFunction(a)){a(t,i,l)};s.html(t);e(s).foundation('section','reflow');n.hide(o,n.settings.css.close);n.show(s,n.settings.css.open)}});e.ajax(i)}}},close:function(t){var t=t&&t.length?t:e(this.scope),s=e('.reveal-modal.open');if(s.length>0){this.locked=!0;t.trigger('close');this.toggle_bg(t);this.hide(s,this.settings.css.close)}},close_targets:function(){var e='.'+this.settings.dismissModalClass;if(this.settings.closeOnBackgroundClick){return e+', .'+this.settings.bgClass};return e},toggle_bg:function(t){if(e('.reveal-modal-bg').length===0){this.settings.bg=e('<div />',{'class':this.settings.bgClass}).appendTo('body')};if(this.settings.bg.filter(':visible').length>0){this.hide(this.settings.bg)}
else{this.show(this.settings.bg)}},show:function(s,i){if(i){if(/pop/i.test(this.settings.animation)){i.top=e(t).scrollTop()-s.data('offset')+'px';var n={top:e(t).scrollTop()+s.data('css-top')+'px',opacity:1};return this.delay(function(){return s.css(i).animate(n,this.settings.animationSpeed,'linear',function(){this.locked=!1;s.trigger('opened')}.bind(this)).addClass('open')}.bind(this),this.settings.animationSpeed/2)};if(/fade/i.test(this.settings.animation)){var n={opacity:1};return this.delay(function(){return s.css(i).animate(n,this.settings.animationSpeed,'linear',function(){this.locked=!1;s.trigger('opened')}.bind(this)).addClass('open')}.bind(this),this.settings.animationSpeed/2)};return s.css(i).show().css({opacity:1}).addClass('open').trigger('opened')};if(/fade/i.test(this.settings.animation)){return s.fadeIn(this.settings.animationSpeed/2)};return s.show()},hide:function(s,i){if(i){if(/pop/i.test(this.settings.animation)){var n={top:-e(t).scrollTop()-s.data('offset')+'px',opacity:0};return this.delay(function(){return s.animate(n,this.settings.animationSpeed,'linear',function(){this.locked=!1;s.css(i).trigger('closed')}.bind(this)).removeClass('open')}.bind(this),this.settings.animationSpeed/2)};if(/fade/i.test(this.settings.animation)){var n={opacity:0};return this.delay(function(){return s.animate(n,this.settings.animationSpeed,'linear',function(){this.locked=!1;s.css(i).trigger('closed')}.bind(this)).removeClass('open')}.bind(this),this.settings.animationSpeed/2)};return s.hide().css(i).removeClass('open').trigger('closed')};if(/fade/i.test(this.settings.animation)){return s.fadeOut(this.settings.animationSpeed/2)};return s.hide()},close_video:function(t){var i=e(this).find('.flex-video'),s=i.find('iframe');if(s.length>0){s.attr('data-src',s[0].src);s.attr('src','about:blank');i.hide()}},open_video:function(t){var n=e(this).find('.flex-video'),s=n.find('iframe');if(s.length>0){var a=s.attr('data-src');if(typeof a==='string'){s[0].src=s.attr('data-src')}
else{var o=s[0].src;s[0].src=i;s[0].src=o};n.show()}},cache_offset:function(e){var t=e.show().height()+parseInt(e.css('top'),10);e.hide();return t},off:function(){e(this.scope).off('.fndtn.reveal')},reflow:function(){}}}(Foundation.zj,this,this.document));(function(t,e,s){'use strict';Foundation.libs.section={name:'section',version:'4.3.1',settings:{deep_linking:!1,small_breakpoint:768,one_up:!0,section_selector:'[data-section]',region_selector:'section, .section, [data-section-region]',title_selector:'.title, [data-section-title]',resized_data_attr:'data-section-resized',small_style_data_attr:'data-section-small-style',content_selector:'.content, [data-section-content]',nav_selector:'[data-section="vertical-nav"], [data-section="horizontal-nav"]',active_class:'active',callback:function(){}},init:function(e,s,i){var n=this;Foundation.inherit(this,'throttle data_options position_right offset_right');if(typeof s==='object'){t.extend(!0,n.settings,s)};if(typeof s!=='string'){this.events();return!0}
else{return this[s].call(this,i)}},events:function(){var i=this,o=[],g=i.settings.section_selector,c=i.settings.region_selector.split(','),l=i.settings.title_selector.split(',');for(var a=0,d=c.length;a<d;a++){var f=c[a];for(var n=0,h=l.length;n<h;n++){var r=g+'>'+f+'>'+l[n];o.push(r+' a');o.push(r)}};t(i.scope).on('click.fndtn.section',o.join(','),function(e){var s=t(this).closest(i.settings.title_selector);i.close_navs(s);if(s.siblings(i.settings.content_selector).length>0){i.toggle_active.call(s[0],e)}});t(e).on('resize.fndtn.section',i.throttle(function(){i.resize()},30)).on('hashchange.fndtn.section',i.set_active_from_hash);t(s).on('click.fndtn.section',function(e){if(e.isPropagationStopped&&e.isPropagationStopped())return;if(e.target===s)return;i.close_navs(t(e.target).closest(i.settings.title_selector))});t(e).triggerHandler('resize.fndtn.section');t(e).triggerHandler('hashchange.fndtn.section')},close_navs:function(e){var s=Foundation.libs.section,n=t(s.settings.nav_selector).filter(function(){return!t.extend({},s.settings,s.data_options(t(this))).one_up});if(e.length>0){var i=e.parent().parent();if(s.is_horizontal_nav(i)||s.is_vertical_nav(i)){n=n.filter(function(){return this!==i[0]})}};n.children(s.settings.region_selector).removeClass(s.settings.active_class)},toggle_active:function(e){var o=t(this),s=Foundation.libs.section,n=o.parent(),r=o.siblings(s.settings.content_selector),i=n.parent(),a=t.extend({},s.settings,s.data_options(i)),c=i.children(s.settings.region_selector).filter('.'+s.settings.active_class);if(!a.deep_linking&&r.length>0){e.preventDefault()};e.stopPropagation();if(!n.hasClass(s.settings.active_class)){c.removeClass(s.settings.active_class);n.addClass(s.settings.active_class);s.resize(n.find(s.settings.section_selector).not('['+s.settings.resized_data_attr+']'),!0)}
else if(!a.one_up&&(s.small(i)||s.is_vertical_nav(i)||s.is_horizontal_nav(i)||s.is_accordion(i))){n.removeClass(s.settings.active_class)};a.callback(i)},check_resize_timer:null,resize:function(i,n){var e=Foundation.libs.section,a=e.small(t(s)),o=function(t,s){return!e.is_accordion(t)&&!t.is('['+e.settings.resized_data_attr+']')&&(!a||e.is_horizontal_tabs(t))&&s===(t.css('display')==='none'||!t.parent().is(':visible'))};i=i||t(e.settings.section_selector);clearTimeout(e.check_resize_timer);if(!a){i.removeAttr(e.settings.small_style_data_attr)};i.filter(function(){return o(t(this),!1)}).each(function(){var s=t(this),a=s.children(e.settings.region_selector),o=a.children(e.settings.title_selector),l=a.children(e.settings.content_selector),i=0;if(n&&s.children(e.settings.region_selector).filter('.'+e.settings.active_class).length==0){var g=t.extend({},e.settings,e.data_options(s));if(!g.deep_linking&&(g.one_up||!e.is_horizontal_nav(s)&&!e.is_vertical_nav(s)&&!e.is_accordion(s))){a.filter(':visible').first().addClass(e.settings.active_class)}};if(e.is_horizontal_tabs(s)||e.is_auto(s)){var d=0;o.each(function(){var s=t(this);if(s.is(':visible')){s.css(!e.rtl?'left':'right',d);var n=parseInt(s.css('border-'+(e.rtl?'left':'right')+'-width'),10);if(n.toString()==='Nan'){n=0};d+=e.outerWidth(s)-n;i=Math.max(i,e.outerHeight(s))}});o.css('height',i);a.each(function(){var n=t(this),a=n.children(e.settings.content_selector),s=parseInt(a.css('border-top-width'),10);if(s.toString()==='Nan'){s=0};n.css('padding-top',i-s)});s.css('min-height',i)}
else if(e.is_horizontal_nav(s)){var f=!0;o.each(function(){i=Math.max(i,e.outerHeight(t(this)))});a.each(function(){var i=t(this);i.css('margin-left','-'+(f?s:i.children(e.settings.title_selector)).css('border-left-width'));f=!1});a.css('margin-top','-'+s.css('border-top-width'));o.css('height',i);l.css('top',i);s.css('min-height',i)}
else if(e.is_vertical_tabs(s)){var c=0;o.each(function(){var s=t(this);if(s.is(':visible')){s.css('top',c);var i=parseInt(s.css('border-top-width'),10);if(i.toString()==='Nan'){i=0};c+=e.outerHeight(s)-i}});l.css('min-height',c+1)}
else if(e.is_vertical_nav(s)){var r=0,h=!0;o.each(function(){r=Math.max(r,e.outerWidth(t(this)))});a.each(function(){var i=t(this);i.css('margin-top','-'+(h?s:i.children(e.settings.title_selector)).css('border-top-width'));h=!1});o.css('width',r);l.css(!e.rtl?'left':'right',r);s.css('width',r)};s.attr(e.settings.resized_data_attr,!0)});if(t(e.settings.section_selector).filter(function(){return o(t(this),!0)}).length>0)e.check_resize_timer=setTimeout(function(){e.resize(i.filter(function(){return o(t(this),!1)}),!0)},700);if(a){i.attr(e.settings.small_style_data_attr,!0)}},is_vertical_nav:function(t){return/vertical-nav/i.test(t.data('section'))},is_horizontal_nav:function(t){return/horizontal-nav/i.test(t.data('section'))},is_accordion:function(t){return/accordion/i.test(t.data('section'))},is_horizontal_tabs:function(t){return/^tabs$/i.test(t.data('section'))},is_vertical_tabs:function(t){return/vertical-tabs/i.test(t.data('section'))},is_auto:function(t){var e=t.data('section');return e===''||/auto/i.test(e)},set_active_from_hash:function(){var s=Foundation.libs.section,i=e.location.hash.substring(1),n=t(s.settings.section_selector);n.each(function(){var e=t(this),a=t.extend({},s.settings,s.data_options(e)),o=e.children(s.settings.region_selector),r=a.deep_linking&&i.length>0,n=!1;o.each(function(){var e=t(this);if(n){e.removeClass(s.settings.active_class)}
else if(r){var a=e.children(s.settings.content_selector).data('slug');if(a&&new RegExp(a,'i').test(i)){if(!e.hasClass(s.settings.active_class))e.addClass(s.settings.active_class);n=!0}
else{e.removeClass(s.settings.active_class)}}
else if(e.hasClass(s.settings.active_class)){n=!0}});if(!n&&!a.deep_linking&&(a.one_up||!s.is_horizontal_nav(e)&&!s.is_vertical_nav(e)&&!s.is_accordion(e)))o.filter(':visible').first().addClass(s.settings.active_class)})},reflow:function(){var e=Foundation.libs.section;t(e.settings.section_selector).removeAttr(e.settings.resized_data_attr);e.throttle(function(){e.resize()},30)()},small:function(e){var s=t.extend({},this.settings,this.data_options(e));if(this.is_horizontal_tabs(e)){return!1};if(e&&this.is_accordion(e)){return!0};if(t('html').hasClass('lt-ie9')){return!0};if(t('html').hasClass('ie8compat')){return!0};return t(this.scope).width()<s.small_breakpoint},off:function(){t(this.scope).off('.fndtn.section');t(e).off('.fndtn.section');t(s).off('.fndtn.section')}};t.fn.reflow_section=function(t){var s=this,e=Foundation.libs.section;s.removeAttr(e.settings.resized_data_attr);e.throttle(function(){e.resize(s,t)},30)();return this}}(Foundation.zj,window,document));(function(t,i,o,e){'use strict';Foundation.libs.tooltips={name:'tooltips',version:'4.2.2',settings:{selector:'.has-tip',additionalInheritableClasses:[],tooltipClass:'.tooltip',appendTo:'body','disable-for-touch':!1,tipTemplate:function(t,i){return'<span data-selector="'+t+'" class="'+Foundation.libs.tooltips.settings.tooltipClass.substring(1)+'">'+i+'<span class="nub"></span></span>'}},cache:{},init:function(i,o,e){Foundation.inherit(this,'data_options');var s=this;if(typeof o==='object'){t.extend(!0,this.settings,o)}
else if(typeof e!=='undefined'){t.extend(!0,this.settings,e)};if(typeof o!=='string'){if(Modernizr.touch){t(this.scope).on('click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip','[data-tooltip]',function(i){var o=t.extend({},s.settings,s.data_options(t(this)));if(!o['disable-for-touch']){i.preventDefault();t(o.tooltipClass).hide();s.showOrCreateTip(t(this))}}).on('click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip',this.settings.tooltipClass,function(i){i.preventDefault();t(this).fadeOut(150)})}
else{t(this.scope).on('mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip','[data-tooltip]',function(i){var o=t(this);if(/enter|over/i.test(i.type)){s.showOrCreateTip(o)}
else if(i.type==='mouseout'||i.type==='mouseleave'){s.hide(o)}})}}
else{return this[o].call(this,e)}},showOrCreateTip:function(t){var i=this.getTip(t);if(i&&i.length>0){return this.show(t)};return this.create(t)},getTip:function(i){var e=this.selector(i),o=null;if(e){o=t('span[data-selector="'+e+'"]'+this.settings.tooltipClass)};return(typeof o==='object')?o:!1},selector:function(t){var i=t.attr('id'),o=t.attr('data-tooltip')||t.attr('data-selector');if((i&&i.length<1||!i)&&typeof o!='string'){o='tooltip'+Math.random().toString(36).substring(7);t.attr('data-selector',o)};return(i&&i.length>0)?i:o},create:function(i){var o=t(this.settings.tipTemplate(this.selector(i),t('<div></div>').html(i.attr('title')).html())),e=this.inheritable_classes(i);o.addClass(e).appendTo(this.settings.appendTo);if(Modernizr.touch){o.append('<span class="tap-to-close">tap to close </span>')};i.removeAttr('title').attr('title','');this.show(i)},reposition:function(o,e,s){var a,l,r,h,p,n;e.css('visibility','hidden').show();a=o.data('width');l=e.children('.nub');r=this.outerHeight(l);h=this.outerHeight(l);n=function(t,i,o,e,s,n){return t.css({'top':(i)?i:'auto','bottom':(e)?e:'auto','left':(s)?s:'auto','right':(o)?o:'auto','width':(n)?n:'auto'}).end()};n(e,(o.offset().top+this.outerHeight(o)+10),'auto','auto',o.offset().left,a);if(t(i).width()<767){n(e,(o.offset().top+this.outerHeight(o)+10),'auto','auto',12.5,t(this.scope).width());e.addClass('tip-override');n(l,-r,'auto','auto',o.offset().left)}
else{var f=o.offset().left;if(Foundation.rtl){f=o.offset().left+o.offset().width-this.outerWidth(e)};n(e,(o.offset().top+this.outerHeight(o)+10),'auto','auto',f,a);e.removeClass('tip-override');if(s&&s.indexOf('tip-top')>-1){n(e,(o.offset().top-this.outerHeight(e)),'auto','auto',f,a).removeClass('tip-override')}
else if(s&&s.indexOf('tip-left')>-1){n(e,(o.offset().top+(this.outerHeight(o)/2)-r*2.5),'auto','auto',(o.offset().left-this.outerWidth(e)-r),a).removeClass('tip-override')}
else if(s&&s.indexOf('tip-right')>-1){n(e,(o.offset().top+(this.outerHeight(o)/2)-r*2.5),'auto','auto',(o.offset().left+this.outerWidth(o)+r),a).removeClass('tip-override')}};e.css('visibility','visible').hide()},inheritable_classes:function(i){var e=['tip-top','tip-left','tip-bottom','tip-right','noradius'].concat(this.settings.additionalInheritableClasses),o=i.attr('class'),s=o?t.map(o.split(' '),function(i,o){if(t.inArray(i,e)!==-1){return i}}).join(' '):'';return t.trim(s)},show:function(t){var i=this.getTip(t);this.reposition(t,i,t.attr('class'));i.fadeIn(150)},hide:function(t){var i=this.getTip(t);i.fadeOut(150)},reload:function(){var i=t(this);return(i.data('fndtn-tooltips'))?i.foundationTooltips('destroy').foundationTooltips('init'):i.foundationTooltips('init')},off:function(){t(this.scope).off('.fndtn.tooltip');t(this.settings.tooltipClass).each(function(i){t('[data-tooltip]').get(i).attr('title',t(this).text())}).remove()},reflow:function(){}}}(Foundation.zj,this,this.document));(function(t,s,e,i){'use strict';Foundation.libs.topbar={name:'topbar',version:'4.3.1',settings:{index:0,stickyClass:'sticky',custom_back_text:!0,back_text:'Back',is_hover:!0,mobile_show_parent_link:!0,scrolltop:!0,init:!1},init:function(i,a,n){Foundation.inherit(this,'data_options');var e=this;if(typeof a==='object'){t.extend(!0,this.settings,a)}
else if(typeof n!=='undefined'){t.extend(!0,this.settings,n)};if(typeof a!=='string'){t('.top-bar, [data-topbar]').each(function(){t.extend(!0,e.settings,e.data_options(t(this)));e.settings.$w=t(s);e.settings.$topbar=t(this);e.settings.$section=e.settings.$topbar.find('section');e.settings.$titlebar=e.settings.$topbar.children('ul').first();e.settings.$topbar.data('index',0);var i=t('<div class=\'top-bar-js-breakpoint\'/>').insertAfter(e.settings.$topbar);e.settings.breakPoint=i.width();i.remove();e.assemble();if(e.settings.is_hover){e.settings.$topbar.find('.has-dropdown').addClass('not-click')};if(e.settings.$topbar.parent().hasClass('fixed')){t('body').css('padding-top',e.outerHeight(e.settings.$topbar))}});if(!e.settings.init){this.events()};return this.settings.init}
else{return this[a].call(this,n)}},timer:null,events:function(){var e=this,i=this.outerHeight(t('.top-bar, [data-topbar]'));t(this.scope).off('.fndtn.topbar').on('click.fndtn.topbar','.top-bar .toggle-topbar, [data-topbar] .toggle-topbar',function(n){var a=t(this).closest('.top-bar, [data-topbar]'),o=a.find('section, .section'),r=a.children('ul').first();n.preventDefault();if(e.breakpoint()){if(!e.rtl){o.css({left:'0%'});o.find('>.name').css({left:'100%'})}
else{o.css({right:'0%'});o.find('>.name').css({right:'100%'})};o.find('li.moved').removeClass('moved');a.data('index',0);a.toggleClass('expanded').css('height','')};if(!a.hasClass('expanded')){if(a.hasClass('fixed')){a.parent().addClass('fixed');a.removeClass('fixed');t('body').css('padding-top',i)}}
else if(a.parent().hasClass('fixed')){a.parent().removeClass('fixed');a.addClass('fixed');t('body').css('padding-top','0');if(e.settings.scrolltop){s.scrollTo(0,0)}}}).on('click.fndtn.topbar','.top-bar li.has-dropdown',function(s){if(e.breakpoint())return;var i=t(this),a=t(s.target),n=i.closest('[data-topbar], .top-bar'),o=n.data('topbar');if(e.settings.is_hover&&!Modernizr.touch)return;s.stopImmediatePropagation();if(a[0].nodeName==='A'&&a.parent().hasClass('has-dropdown')){s.preventDefault()};if(i.hasClass('hover')){i.removeClass('hover').find('li').removeClass('hover')}
else{i.addClass('hover')}}).on('click.fndtn.topbar','.top-bar .has-dropdown>a, [data-topbar] .has-dropdown>a',function(i){if(e.breakpoint()){i.preventDefault();var a=t(this),s=a.closest('.top-bar, [data-topbar]'),n=s.find('section, .section'),o=s.children('ul').first(),d=a.next('.dropdown').outerHeight(),r=a.closest('li');s.data('index',s.data('index')+1);r.addClass('moved');if(!e.rtl){n.css({left:-(100*s.data('index'))+'%'});n.find('>.name').css({left:100*s.data('index')+'%'})}
else{n.css({right:-(100*s.data('index'))+'%'});n.find('>.name').css({right:100*s.data('index')+'%'})};s.css('height',e.outerHeight(a.siblings('ul'),!0)+e.height(o))}});t(s).on('resize.fndtn.topbar',function(){if(!e.breakpoint()){t('.top-bar, [data-topbar]').css('height','').removeClass('expanded').find('li').removeClass('hover')}}.bind(this));t('body').on('click.fndtn.topbar',function(s){var e=t(s.target).closest('[data-topbar], .top-bar');if(e.length>0){return};t('.top-bar li, [data-topbar] li').removeClass('hover')});t(this.scope).on('click.fndtn','.top-bar .has-dropdown .back, [data-topbar] .has-dropdown .back',function(i){i.preventDefault();var n=t(this),s=n.closest('.top-bar, [data-topbar]'),r=s.children('ul').first(),a=s.find('section, .section'),o=n.closest('li.moved'),d=o.parent();s.data('index',s.data('index')-1);if(!e.rtl){a.css({left:-(100*s.data('index'))+'%'});a.find('>.name').css({left:100*s.data('index')+'%'})}
else{a.css({right:-(100*s.data('index'))+'%'});a.find('>.name').css({right:100*s.data('index')+'%'})};if(s.data('index')===0){s.css('height','')}
else{s.css('height',e.outerHeight(d,!0)+e.height(r))};setTimeout(function(){o.removeClass('moved')},300)})},breakpoint:function(){return t(e).width()<=this.settings.breakPoint||t('html').hasClass('lt-ie9')},assemble:function(){var s=this;this.settings.$section.detach();this.settings.$section.find('.has-dropdown>a').each(function(){var i=t(this),n=i.siblings('.dropdown'),a=i.attr('href');if(s.settings.mobile_show_parent_link&&a&&a.length>1){var e=t('<li class="title back js-generated"><h5><a href="#"></a></h5></li><li><a class="parent-link js-generated" href="'+a+'">'+i.text()+'</a></li>')}
else{var e=t('<li class="title back js-generated"><h5><a href="#"></a></h5></li>')};if(s.settings.custom_back_text==!0){e.find('h5>a').html('&laquo; '+s.settings.back_text)}
else{e.find('h5>a').html('&laquo; '+i.html())};n.prepend(e)});this.settings.$section.appendTo(this.settings.$topbar);this.sticky()},height:function(s){var e=0,i=this;s.find('> li').each(function(){e+=i.outerHeight(t(this),!0)});return e},sticky:function(){var e='.'+this.settings.stickyClass;if(t(e).length>0){var i=t(e).length?t(e).offset().top:0,a=t(s),o=this.outerHeight(t('.top-bar')),n;t(s).resize(function(){clearTimeout(n);n=setTimeout(function(){i=t(e).offset().top},105)});a.scroll(function(){if(a.scrollTop()>(i)){t(e).addClass('fixed');t('body').css('padding-top',o)}
else if(a.scrollTop()<=i){t(e).removeClass('fixed');t('body').css('padding-top','0')}})}},off:function(){t(this.scope).off('.fndtn.topbar');t(s).off('.fndtn.topbar')},reflow:function(){}}}(Foundation.zj,this,this.document));/*!
 * jQuery throttle / debounce - v1.1 - 3/7/2010
 * http://benalman.com/projects/jquery-throttle-debounce-plugin/
 *
 * Copyright (c) 2010 "Cowboy" Ben Alman
 * Dual licensed under the MIT and GPL licenses.
 * http://benalman.com/about/license/
 */

// Script: jQuery throttle / debounce: Sometimes, less is more!
//
// *Version: 1.1, Last updated: 3/7/2010*
//
// Project Home - http://benalman.com/projects/jquery-throttle-debounce-plugin/
// GitHub       - http://github.com/cowboy/jquery-throttle-debounce/
// Source       - http://github.com/cowboy/jquery-throttle-debounce/raw/master/jquery.ba-throttle-debounce.js
// (Minified)   - http://github.com/cowboy/jquery-throttle-debounce/raw/master/jquery.ba-throttle-debounce.min.js (0.7kb)
//
// About: License
//
// Copyright (c) 2010 "Cowboy" Ben Alman,
// Dual licensed under the MIT and GPL licenses.
// http://benalman.com/about/license/
//
// About: Examples
//
// These working examples, complete with fully commented code, illustrate a few
// ways in which this plugin can be used.
//
// Throttle - http://benalman.com/code/projects/jquery-throttle-debounce/examples/throttle/
// Debounce - http://benalman.com/code/projects/jquery-throttle-debounce/examples/debounce/
//
// About: Support and Testing
//
// Information about what version or versions of jQuery this plugin has been
// tested with, what browsers it has been tested in, and where the unit tests
// reside (so you can test it yourself).
//
// jQuery Versions - none, 1.3.2, 1.4.2
// Browsers Tested - Internet Explorer 6-8, Firefox 2-3.6, Safari 3-4, Chrome 4-5, Opera 9.6-10.1.
// Unit Tests      - http://benalman.com/code/projects/jquery-throttle-debounce/unit/
//
// About: Release History
//
// 1.1 - (3/7/2010) Fixed a bug in <jQuery.throttle> where trailing callbacks
//       executed later than they should. Reworked a fair amount of internal
//       logic as well.
// 1.0 - (3/6/2010) Initial release as a stand-alone project. Migrated over
//       from jquery-misc repo v0.4 to jquery-throttle repo v1.0, added the
//       no_trailing throttle parameter and debounce functionality.
//
// Topic: Note for non-jQuery users
//
// jQuery isn't actually required for this plugin, because nothing internal
// uses any jQuery methods or properties. jQuery is just used as a namespace
// under which these methods can exist.
//
// Since jQuery isn't actually required for this plugin, if jQuery doesn't exist
// when this plugin is loaded, the method described below will be created in
// the `Cowboy` namespace. Usage will be exactly the same, but instead of
// $.method() or jQuery.method(), you'll need to use Cowboy.method().

(function(window,undefined){
  '$:nomunge'; // Used by YUI compressor.

  // Since jQuery really isn't required for this plugin, use `jQuery` as the
  // namespace only if it already exists, otherwise use the `Cowboy` namespace,
  // creating it if necessary.
  var $ = window.jQuery || window.Cowboy || ( window.Cowboy = {} ),

  // Internal method reference.
    jq_throttle;

  // Method: jQuery.throttle
  //
  // Throttle execution of a function. Especially useful for rate limiting
  // execution of handlers on events like resize and scroll. If you want to
  // rate-limit execution of a function to a single time, see the
  // <jQuery.debounce> method.
  //
  // In this visualization, | is a throttled-function call and X is the actual
  // callback execution:
  //
  // > Throttled with `no_trailing` specified as false or unspecified:
  // > ||||||||||||||||||||||||| (pause) |||||||||||||||||||||||||
  // > X    X    X    X    X    X        X    X    X    X    X    X
  // >
  // > Throttled with `no_trailing` specified as true:
  // > ||||||||||||||||||||||||| (pause) |||||||||||||||||||||||||
  // > X    X    X    X    X             X    X    X    X    X
  //
  // Usage:
  //
  // > var throttled = jQuery.throttle( delay, [ no_trailing, ] callback );
  // >
  // > jQuery('selector').bind( 'someevent', throttled );
  // > jQuery('selector').unbind( 'someevent', throttled );
  //
  // This also works in jQuery 1.4+:
  //
  // > jQuery('selector').bind( 'someevent', jQuery.throttle( delay, [ no_trailing, ] callback ) );
  // > jQuery('selector').unbind( 'someevent', callback );
  //
  // Arguments:
  //
  //  delay - (Number) A zero-or-greater delay in milliseconds. For event
  //    callbacks, values around 100 or 250 (or even higher) are most useful.
  //  no_trailing - (Boolean) Optional, defaults to false. If no_trailing is
  //    true, callback will only execute every `delay` milliseconds while the
  //    throttled-function is being called. If no_trailing is false or
  //    unspecified, callback will be executed one final time after the last
  //    throttled-function call. (After the throttled-function has not been
  //    called for `delay` milliseconds, the internal counter is reset)
  //  callback - (Function) A function to be executed after delay milliseconds.
  //    The `this` context and all arguments are passed through, as-is, to
  //    `callback` when the throttled-function is executed.
  //
  // Returns:
  //
  //  (Function) A new, throttled, function.

  $.throttle = jq_throttle = function( delay, no_trailing, callback, debounce_mode ) {
    // After wrapper has stopped being called, this timeout ensures that
    // `callback` is executed at the proper times in `throttle` and `end`
    // debounce modes.
    var timeout_id,

    // Keep track of the last time `callback` was executed.
      last_exec = 0;

    // `no_trailing` defaults to falsy.
    if ( typeof no_trailing !== 'boolean' ) {
      debounce_mode = callback;
      callback = no_trailing;
      no_trailing = undefined;
    }

    // The `wrapper` function encapsulates all of the throttling / debouncing
    // functionality and when executed will limit the rate at which `callback`
    // is executed.
    function wrapper() {
      var that = this,
        elapsed = +new Date() - last_exec,
        args = arguments;

      // Execute `callback` and update the `last_exec` timestamp.
      function exec() {
        last_exec = +new Date();
        callback.apply( that, args );
      };

      // If `debounce_mode` is true (at_begin) this is used to clear the flag
      // to allow future `callback` executions.
      function clear() {
        timeout_id = undefined;
      };

      if ( debounce_mode && !timeout_id ) {
        // Since `wrapper` is being called for the first time and
        // `debounce_mode` is true (at_begin), execute `callback`.
        exec();
      }

      // Clear any existing timeout.
      timeout_id && clearTimeout( timeout_id );

      if ( debounce_mode === undefined && elapsed > delay ) {
        // In throttle mode, if `delay` time has been exceeded, execute
        // `callback`.
        exec();

      } else if ( no_trailing !== true ) {
        // In trailing throttle mode, since `delay` time has not been
        // exceeded, schedule `callback` to execute `delay` ms after most
        // recent execution.
        //
        // If `debounce_mode` is true (at_begin), schedule `clear` to execute
        // after `delay` ms.
        //
        // If `debounce_mode` is false (at end), schedule `callback` to
        // execute after `delay` ms.
        timeout_id = setTimeout( debounce_mode ? clear : exec, debounce_mode === undefined ? delay - elapsed : delay );
      }
    };

    // Set the guid of `wrapper` function to the same of original callback, so
    // it can be removed in jQuery 1.4+ .unbind or .die by using the original
    // callback as a reference.
    if ( $.guid ) {
      wrapper.guid = callback.guid = callback.guid || $.guid++;
    }

    // Return the wrapper function.
    return wrapper;
  };

  // Method: jQuery.debounce
  //
  // Debounce execution of a function. Debouncing, unlike throttling,
  // guarantees that a function is only executed a single time, either at the
  // very beginning of a series of calls, or at the very end. If you want to
  // simply rate-limit execution of a function, see the <jQuery.throttle>
  // method.
  //
  // In this visualization, | is a debounced-function call and X is the actual
  // callback execution:
  //
  // > Debounced with `at_begin` specified as false or unspecified:
  // > ||||||||||||||||||||||||| (pause) |||||||||||||||||||||||||
  // >                          X                                 X
  // >
  // > Debounced with `at_begin` specified as true:
  // > ||||||||||||||||||||||||| (pause) |||||||||||||||||||||||||
  // > X                                 X
  //
  // Usage:
  //
  // > var debounced = jQuery.debounce( delay, [ at_begin, ] callback );
  // >
  // > jQuery('selector').bind( 'someevent', debounced );
  // > jQuery('selector').unbind( 'someevent', debounced );
  //
  // This also works in jQuery 1.4+:
  //
  // > jQuery('selector').bind( 'someevent', jQuery.debounce( delay, [ at_begin, ] callback ) );
  // > jQuery('selector').unbind( 'someevent', callback );
  //
  // Arguments:
  //
  //  delay - (Number) A zero-or-greater delay in milliseconds. For event
  //    callbacks, values around 100 or 250 (or even higher) are most useful.
  //  at_begin - (Boolean) Optional, defaults to false. If at_begin is false or
  //    unspecified, callback will only be executed `delay` milliseconds after
  //    the last debounced-function call. If at_begin is true, callback will be
  //    executed only at the first debounced-function call. (After the
  //    throttled-function has not been called for `delay` milliseconds, the
  //    internal counter is reset)
  //  callback - (Function) A function to be executed after delay milliseconds.
  //    The `this` context and all arguments are passed through, as-is, to
  //    `callback` when the debounced-function is executed.
  //
  // Returns:
  //
  //  (Function) A new, debounced, function.

  $.debounce = function( delay, at_begin, callback ) {
    return callback === undefined
      ? jq_throttle( delay, at_begin, false )
      : jq_throttle( delay, callback, at_begin !== false );
  };

})(this);
;/**/
!function(t){t.fn.equalHeights=function(){var a=0,e=t(this);return e.each(function(){var e=t(this).innerHeight();e>a&&(a=e)}),e.height(a)},t('[data-equal]').each(function(){var a=t(this),e=a.data('equal');a.find(e).equalHeights()})}(jQuery);(function(e,t){e(document).foundation();window.log=function(){log.history=log.history||[];log.history.push(arguments);if(this.console){console.log(Array.prototype.slice.call(arguments))}};var n='onorientationchange' in window,a=n?'orientationchange':'resize';e(window).load(function(){e('.js .royalSlider').css({'visibility':'visible','opacity':1})});e(window).load(function(){var n=0,t=e('.section-container');if(t.length){e(window).on(a,e.throttle(250,function(){if(e(window).width()>n){t.each(function(){var a=t.find('p.title'),n=a.length;if(n){a.each(function(){var t=parseFloat(100/n).toFixed(2),a=e(this),i=t*a.parents('section').index();a.css({'width':t+'%','left':i+'%'})})}})}})).trigger(a)}});e(window).scroll(function(){if(e(document).scrollTop()===0){e('.l-header').removeClass('tiny')}
else{e('.l-header').addClass('tiny')}});t.behaviors.vrweb_foundation_equal_heights={attach:function(t,n){var o=['.view-events.view-display-id-page'],i=e(o.join(','),t);if(i.length){e(window).on(a,e.throttle(250,function(){i.find('article').each(function(){e(this).find('> div.columns').removeAttr('height width').equalHeights()})})).trigger(a)}}};t.behaviors.vrweb_foundation_move_sharelink={attach:function(t,a){var n=['.view .bt-leads-share-url-form-wrapper'],i=e(n.join(','),t);$pagehead=e('#page-title',t);i.appendTo($pagehead)}};t.behaviors.vrweb_foundation_beds_baths={attach:function(t,a){$bedsbaths=e('.group-beds-baths-wrapper',t);$bedsbaths.appendTo('#page-title')}};t.behaviors.vrweb_foundation_toggle_search={attach:function(t,a){$searchToggle=e('.off-canvas-trigger a');$container=e('#document');$searchToggle.toggle(function(){$container.removeClass('hide-search').addClass('show-search')},function(){$container.removeClass('show-search').addClass('hide-search')})}};t.behaviors.vrweb_foundation_toggle_menu={attach:function(t,a){$menuToggle=e('.toggle-topbar');var i=['#document, nav.top-bar'],n=e(i.join(','),t);$menuToggle.toggle(function(){n.addClass('expanded')},function(){n.removeClass('expanded')})}};t.behaviors.favorites_update={attach:function(t,a){$favoritesLink=e('.favorites-cart .block-vrweb-favorites-my-favorites-link',t);$favoritesContent=e('.favorites-cart .view-favorites .view-filters');$favoritesLabel=e('.favorites-cart .block-vrweb-favorites-my-favorites-link .service-label',t);$favoritesLink.appendTo($favoritesContent);$favoritesLabel.text('Refresh')}};t.behaviors.foundationCollapseHack={attach:function(a,n){if(typeof t.settings.gmap!='undefined'&&e('.view-display-id-block_location_by_nid').length){e(window).load(function(){var a=e('.view-display-id-block_location_by_nid');if(a.parents('.section-container').length>0){a.parents('section').find('p.title').children('a').click(function(){var e=t.gmap.getMap('gmap-auto1map-gmap0'),a=e.vars.latitude,n=e.vars.longitude,i=e.vars.zoom;setTimeout(function(){google.maps.event.trigger(e.map,'resize');e.map.setCenter(new google.maps.LatLng(a,n),i)},0)})}})}}};t.behaviors.ttdevents_move_map={attach:function(a,n){e(window).load(function(){$ttdeventMap=e('.blog-ttd-events-details-page .view-location-by-nid',a);$ttdeventFeatured=e('.blog-ttd-events-details-page #featured-wrapper',a);if($ttdeventMap.length>0){$ttdeventMap.appendTo('#featured-wrapper');$ttdeventFeatured.addClass('has-loc');var n=t.gmap.getMap('gmap-auto1map-gmap0'),i=n.vars.latitude,o=n.vars.longitude,r=n.vars.zoom;setTimeout(function(){google.maps.event.trigger(n.map,'resize');n.map.setCenter(new google.maps.LatLng(i,o),r)},0)}})}};t.behaviors.move_map_search={attach:function(t,n){e(window).load(function(){var n=e('.map-results-page .sidebar-first',t),i=e('.map-results-page .l-main .view',t),o=e('.map-results-page .l-main',t);if(i.length){e(window).on(a,e.throttle(250,function(){if(n.parents(i)&&e(window).width()<768){n.prependTo(o)};if(n.parents(o)&&e(window).width()>767){n.appendTo(i)}})).trigger(a)}})}};t.behaviors.reveal_messages={attach:function(t,a){e('#status-messages.reveal-modal',t).foundation('reveal','open')}};t.behaviors.inquiry_selects={attach:function(t,a){var n=e('select#edit-field-inquiry-properties-und',t);if(n.length){n.removeAttr('width').select2({width:'resolve'})};var i=n.closest('form');n.on('change',function(){var t=e(this).val();if(t.length){var a=t.split('::');if(a[1]){location.href=a[1]}
else{location.href=t}}})}};t.behaviors.modernizr_tests={attach:function(t,a){if(Modernizr.mq('only screen and (max-width: 767px)')){e(document).foundation('section',{callback:function(){var t,a=e('.group-vr-full-property-info section.active'),n=event;if(n.srcElement.offsetParent.className!=='title'){t=a.offset().top;e('html, body').animate({scrollTop:t},50)}}})}}};t.behaviors.foundationCollapseHack={attach:function(t,a){var n=e('p[data-section-title]',t);if(!n.length){return};n.each(function(){var t=this;e('a',this).on('click',function(){e(t).siblings('.content').find('riot-solr-result-map').each(function(){var e;if(this._tag){e=this._tag;setTimeout(function(){e.fitBounds()},0)}})})})}};t.behaviors.slider_resize_opened={attach:function(t,a){var n=e('.reveal-royalslider');if(!n.length){return};n.each(function(){var n='#'+e(this).data('reveal-id'),t=e(n),a=t.find('.royalSlider');if(!t.length||!a.length){return};t.on('opened',function(){var e=a.data('royalSlider');e.updateSliderSize(!0)})})}};t.behaviors.lazy_load_slider_thumbs={attach:function(t,a){var n,i=e('.royalSlider',t);if(!i.length){return};if('IntersectionObserver' in window){n=new IntersectionObserver(function(e,t){e.forEach(function(e){if(e.isIntersecting){o(e.target)}})})};function o(e){e.src=e.dataset.src;e.classList.add('vro-lazy-loaded');n.unobserve(e)};e(window).bind('load',function(){i.data('royalSlider').slides[0].holder.on('rsAfterContentSet',function(){e('.rsNav').find('.rsTmb').each(function(){if(n){n.observe(this)}
else{o(image)}})})})}};t.behaviors.lazy_load_backgrounds={attach:function(t,a){var n,i=Date.now(),s=3000;check_frequency=500;$elements=e('.lazy-bg',t);function o(t){if(t.length){if('IntersectionObserver' in window){n=new IntersectionObserver(function(e,t){e.forEach(function(e){if(e.isIntersecting){r(e.target)}})});t.each(function(){if(n){n.observe(this)}
else{r(this)}})}}
else{setTimeout(function(){if(i&&(Date.now()-i)>s){return};t=e('.lazy-bg');o(t)},check_frequency)}};function r(e){if(e.getAttribute('data-style')){e.setAttribute('style',e.getAttribute('data-style'))};e.classList.remove('lazy-bg');e.classList.add('lazy-bg-processed');n.unobserve(e)};o($elements)}}})(jQuery,Drupal);