/*! * accounting.js v0.4.2 * Copyright 2014 Open Exchange Rates * * Freely distributable under the MIT license. * Portions of accounting.js are inspired or borrowed from underscore.js * * Full details and documentation: * http://openexchangerates.github.io/accounting.js/ */ (function(n,t){function o(n){return!!(n===""||n&&n.charCodeAt&&n.substr)}function u(n){return a?a(n):v.call(n)==="[object Array]"}function s(n){return n&&v.call(n)==="[object Object]"}function h(n,t){var i;n=n||{};t=t||{};for(i in t)t.hasOwnProperty(i)&&n[i]==null&&(n[i]=t[i]);return n}function r(n,t,i){var u=[],r,f;if(!n)return u;if(l&&n.map===l)return n.map(t,i);for(r=0,f=n.length;r3?v.length%3:0;return b+(w?v.substr(0,w)+a.thousand:"")+v.substr(w).replace(/(\d{3})(?=\d)/g,"$1"+a.thousand)+(y?a.decimal+p(Math.abs(n),y).split(".")[1]:"")},w=i.formatMoney=function(n,t,o,l,a,v){if(u(n))return r(n,function(n){return w(n,t,o,l,a,v)});n=e(n);var p=h(s(t)?t:{symbol:t,precision:o,thousand:l,decimal:a,format:v},i.settings.currency),b=y(p.format),k=n>0?b.pos:n<0?b.neg:b.zero;return k.replace("%s",p.symbol).replace("%v",c(Math.abs(n),f(p.precision),p.thousand,p.decimal))};i.formatColumn=function(n,t,l,a,v,p){if(!n)return[];var w=h(s(t)?t:{symbol:t,precision:l,thousand:a,decimal:v,format:p},i.settings.currency),b=y(w.format),d=b.pos.indexOf("%s")0?b.pos:n<0?b.neg:b.zero,t=r.replace("%s",w.symbol).replace("%v",c(Math.abs(n),f(w.precision),w.thousand,w.decimal));return t.length>k&&(k=t.length),t});return r(g,function(n){return o(n)&&n.length0?r.text(accounting.formatMoney(t)):r.text(accounting.formatMoney(0));n+=t}});n>0?($("#total-amount span").text(accounting.formatMoney(n)),$(".no-ticket-warning").addClass("hidden")):$("#total-amount span").text(accounting.formatMoney(0))}function HighlightValidationInput(){typeof Page_ClientValidate!="undefined"&&(ValidatorUpdateDisplay=CustomValidatorUpdateDisplay)}function CustomValidatorUpdateDisplay(n){n.isvalid?($(n).fadeOut("slow"),$(n).parent().removeClass("has-error")):($(n).fadeIn("slow"),$(n).parent().addClass("has-error"))}window.onload=function(){$(".event-image-wrapper").imagefill();$(".event-item-grid a").imagefill();Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler)};$(document).ready(function(){$(".Registration-info").length&&($(".Registration-info a.riUp").attr("title","Increase").attr("aria-label","Spin Up").attr("href","javascript:void(1)"),$(".Registration-info a.riDown").attr("title","Decrease").attr("aria-label","Spin Down"));updateTicketAmounts();$(".regonline-ts-ticketouter .qty-select").on("change",updateTicketAmounts)}); function News_CalculateCharLimit(){var r;if($(".news-introduction textarea").length>0&&$(".news-introduction .char_limit").length>0){var i=$(".news-introduction textarea"),t=$(i).val().length,n=0;$(".news-introduction .char_limit").attr("data-charlimit")!==undefined&&(n=$(".news-introduction .char_limit").attr("data-charlimit"));t>0?$(".news-introduction .char_limit").html("

Character Length:<\/strong> "+t+"<\/span>"+(n!==0?" of "+n+"<\/span>":"")):$(".news-introduction .char_limit").html("");n!==undefined&&(n>0&&t>=n?$(".news-introduction .char_limit").addClass("text-danger"):$(".news-introduction .char_limit").removeClass("text-danger"),n>0&&t>n&&(r=$(i).val().substr(0,n),$(i).val(r)))}}$(document).ready(function(){$(".news-introduction .char_limit").length>0&&$(".news-introduction .char_limit").attr("data-charlimit")!==undefined&&$(".news-introduction label").html("Introduction: (Max Character Length: "+$(".news-introduction .char_limit").attr("data-charlimit")+")<\/span>")});$(".news-introduction textarea").keyup(function(){News_CalculateCharLimit()}); $(document).ready(function(){$(".meeting-types ul li").length>0&&$(".meeting-types ul li").matchHeight()}); function PN_CalculateCharLimit(){var r;if($(".notices-introduction textarea").length>0&&$(".notices-introduction .char_limit").length>0){var i=$(".notices-introduction textarea"),t=$(i).val().length,n=0;$(".notices-introduction .char_limit").attr("data-charlimit")!==undefined&&(n=$(".notices-introduction .char_limit").attr("data-charlimit"));t>0?$(".notices-introduction .char_limit").html("

Character Length:<\/strong> "+t+"<\/span>"+(n!==0?" of "+n+"<\/span>":"")):$(".notices-introduction .char_limit").html("");n!==undefined&&(n>0&&t>=n?$(".notices-introduction .char_limit").addClass("text-danger"):$(".notices-introduction .char_limit").removeClass("text-danger"),n>0&&t>n&&(r=$(i).val().substr(0,n),$(i).val(r)))}}$(document).ready(function(){$(".notices-introduction .char_limit").length>0&&$(".notices-introduction .char_limit").attr("data-charlimit")!==undefined&&$(".notices-introduction label").html("Introduction: (Max Character Length: "+$(".notices-introduction .char_limit").attr("data-charlimit")+")<\/span>")});$(".notices-introduction textarea").keyup(function(){PN_CalculateCharLimit()});