").attr({id:u,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return n("
").addClass("ui-tooltip-content").appendTo(r),r.appendTo(this.document[0].body),this.tooltips[u]=i,r},_find:function(t){var i=t.data("ui-tooltip-id");return i?n("#"+i):n()},_removeTooltip:function(n){n.remove();delete this.tooltips[n.attr("id")]},_destroy:function(){var t=this;n.each(this.tooltips,function(i,r){var u=n.Event("blur");u.target=u.currentTarget=r[0];t.close(u,!0);n("#"+i).remove();r.data("ui-tooltip-title")&&(r.attr("title",r.data("ui-tooltip-title")),r.removeData("ui-tooltip-title"))})}})})(jQuery),function(n){n.fn.extend({customSelect:function(t){if(typeof document.body.style.maxHeight=="undefined")return this;var t=n.extend({customClass:"customSelect",mapClass:!0,mapStyle:!0},t),u=t.customClass,r=function(t,r){var u=t.find(":selected"),f=r.children(":first"),e=u.html()||" ";f.html(e);u.attr("disabled")?r.addClass(i("DisabledOption")):r.removeClass(i("DisabledOption"));setTimeout(function(){r.removeClass(i("Open"));n(document).off("mouseup."+i("Open"))},60)},i=function(n){return u+n};return this.each(function(){var e=n(this),o=n("
").addClass(i("Inner")),f=n("
"),s=e.position();e.after(f.append(o));f.addClass(u);t.mapClass&&f.addClass(e.attr("class"));t.mapStyle&&f.attr("style",e.attr("style"));e.addClass("hasCustomSelect").on("update",function(){var n,t;r(e,f);n=parseInt(e.outerWidth(),10)-(parseInt(f.outerWidth(),10)-parseInt(f.width(),10));f.css({display:"inline-block"});t=f.outerHeight();e.attr("disabled")?f.addClass(i("Disabled")):f.removeClass(i("Disabled"));o.css({width:n,display:"inline-block"});e.css({"-webkit-appearance":"menulist-button",width:f.outerWidth(),position:"absolute",opacity:0,height:t,fontSize:f.css("font-size"),left:s.left,top:s.top})}).on("change",function(){f.addClass(i("Changed"));r(e,f)}).on("keyup",function(n){f.hasClass(i("Open"))?(n.which==13||n.which==27||n.which==9)&&r(e,f):(e.blur(),e.focus())}).on("mousedown",function(){f.removeClass(i("Changed"))}).on("mouseup",function(t){if(!f.hasClass(i("Open")))if(n("."+i("Open")).not(f).length>0&&typeof InstallTrigger!="undefined")e.focus();else{f.addClass(i("Open"));t.stopPropagation();n(document).one("mouseup."+i("Open"),function(t){t.target!=e.get(0)&&n.inArray(t.target,e.find("*").get())<0?e.blur():r(e,f)})}}).focus(function(){f.removeClass(i("Changed")).addClass(i("Focus"))}).blur(function(){f.removeClass(i("Focus")+" "+i("Open"))}).hover(function(){f.addClass(i("Hover"))},function(){f.removeClass(i("Hover"))}).trigger("update")})}})}(jQuery),function(n){function i(n){return typeof n=="object"?n:{top:n,left:n}}var t=n.scrollTo=function(t,i,r){n(window).scrollTo(t,i,r)};t.defaults={axis:"xy",duration:parseFloat(n.fn.jquery)>=1.3?0:1,limit:!0};t.window=function(){return n(window)._scrollable()};n.fn._scrollable=function(){return this.map(function(){var t=this,r=!t.nodeName||n.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1,i;return r?(i=(t.contentWindow||t).document||t.ownerDocument||t,/webkit/i.test(navigator.userAgent)||i.compatMode=="BackCompat"?i.body:i.documentElement):t})};n.fn.scrollTo=function(r,u,f){return typeof u=="object"&&(f=u,u=0),typeof f=="function"&&(f={onAfter:f}),r=="max"&&(r=9e9),f=n.extend({},t.defaults,f),u=u||f.duration,f.queue=f.queue&&f.axis.length>1,f.queue&&(u/=2),f.offset=i(f.offset),f.over=i(f.over),this._scrollable().each(function(){function l(n){h.animate(o,u,f.easing,n&&function(){n.call(this,e,f)})}if(r!=null){var s=this,h=n(s),e=r,c,o={},a=h.is("html,body");switch(typeof e){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(e)){e=i(e);break}if(e=n(e,this),!e.length)return;case"object":(e.is||e.style)&&(c=(e=n(e)).offset())}n.each(f.axis.split(""),function(n,i){var y=i=="x"?"Left":"Top",u=y.toLowerCase(),r="scroll"+y,p=s[r],w=t.max(s,i),v;c?(o[r]=c[u]+(a?0:p-h.offset()[u]),f.margin&&(o[r]-=parseInt(e.css("margin"+y))||0,o[r]-=parseInt(e.css("border"+y+"Width"))||0),o[r]+=f.offset[u]||0,f.over[u]&&(o[r]+=e[i=="x"?"width":"height"]()*f.over[u])):(v=e[u],o[r]=v.slice&&v.slice(-1)=="%"?parseFloat(v)/100*w:v);f.limit&&/^\d+$/.test(o[r])&&(o[r]=o[r]<=0?0:Math.min(o[r],w));!n&&f.queue&&(p!=o[r]&&l(f.onAfterFirst),delete o[r])});l(f.onAfter)}}).end()};t.max=function(t,i){var r=i=="x"?"Width":"Height",u="scroll"+r;if(!n(t).is("html,body"))return t[u]-n(t)[r.toLowerCase()]();var f="client"+r,e=t.ownerDocument.documentElement,o=t.ownerDocument.body;return Math.max(e[u],o[u])-Math.min(e[f],o[f])}}(jQuery),function(n){function h(){function e(n){var o=n<1e12?f?performance.now()+performance.timing.navigationStart:t():n||t();o-r>=1e3&&(u._updateTargets(),r=o);i(e)}var t,f,i,r;this.regional=[];this.regional[""]={labels:["Years","Months","Weeks","Days","Hours","Minutes","Seconds"],labels1:["Year","Month","Week","Day","Hour","Minute","Second"],compactLabels:["y","m","w","d"],whichLabels:null,digits:["0","1","2","3","4","5","6","7","8","9"],timeSeparator:":",isRTL:!1};this._defaults={until:null,since:null,timezone:null,serverSync:null,format:"dHMS",layout:"",compact:!1,significant:0,description:"",expiryUrl:"",expiryText:"",alwaysExpire:!1,onExpiry:null,onTick:null,tickInterval:1};n.extend(this._defaults,this.regional[""]);this._serverSyncs=[];t=typeof Date.now=="function"?Date.now:function(){return(new Date).getTime()};f=window.performance&&typeof window.performance.now=="function";i=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||null;r=0;!i||n.noRequestAnimationFrame?(n.noRequestAnimationFrame=null,setInterval(function(){u._updateTargets()},980)):(r=window.animationStartTime||window.webkitAnimationStartTime||window.mozAnimationStartTime||window.oAnimationStartTime||window.msAnimationStartTime||t(),i(e))}function l(t,i){return t=="option"&&(i.length==0||i.length==1&&typeof i[0]=="string")?!0:n.inArray(t,c)>-1}var t=0,r=1,o=2,s=3,f=4,e=5,i=6,c,u;n.extend(h.prototype,{markerClassName:"hasCountdown",propertyName:"countdown",_rtlClass:"countdown_rtl",_sectionClass:"countdown_section",_amountClass:"countdown_amount",_rowClass:"countdown_row",_holdingClass:"countdown_holding",_showClass:"countdown_show",_descrClass:"countdown_descr",_timerTargets:[],setDefaults:function(t){this._resetExtraLabels(this._defaults,t);n.extend(this._defaults,t||{})},UTCDate:function(n,t,i,r,u,f,e,o){typeof t=="object"&&t.constructor==Date&&(o=t.getMilliseconds(),e=t.getSeconds(),f=t.getMinutes(),u=t.getHours(),r=t.getDate(),i=t.getMonth(),t=t.getFullYear());var s=new Date;return s.setUTCFullYear(t),s.setUTCDate(1),s.setUTCMonth(i||0),s.setUTCDate(r||1),s.setUTCHours(u||0),s.setUTCMinutes((f||0)-(Math.abs(n)<30?n*60:n)),s.setUTCSeconds(e||0),s.setUTCMilliseconds(o||0),s},periodsToSeconds:function(n){return n[0]*31557600+n[1]*2629800+n[2]*604800+n[3]*86400+n[4]*3600+n[5]*60+n[6]},_attachPlugin:function(t,i){if(t=n(t),!t.hasClass(this.markerClassName)){var r={options:n.extend({},this._defaults),_periods:[0,0,0,0,0,0,0]};t.addClass(this.markerClassName).data(this.propertyName,r);this._optionPlugin(t,i)}},_addTarget:function(n){this._hasTarget(n)||this._timerTargets.push(n)},_hasTarget:function(t){return n.inArray(t,this._timerTargets)>-1},_removeTarget:function(t){this._timerTargets=n.map(this._timerTargets,function(n){return n==t?null:n})},_updateTargets:function(){for(var n=this._timerTargets.length-1;n>=0;n--)this._updateCountdown(this._timerTargets[n])},_optionPlugin:function(t,i,r){var u,f,o,e;if(t=n(t),u=t.data(this.propertyName),!i||typeof i=="string"&&r==null)return f=i,i=(u||{}).options,i&&f?i[f]:i;t.hasClass(this.markerClassName)&&(i=i||{},typeof i=="string"&&(f=i,i={},i[f]=r),i.layout&&(i.layout=i.layout.replace(/</g,"<").replace(/>/g,">")),this._resetExtraLabels(u.options,i),o=u.options.timezone!=i.timezone,n.extend(u.options,i),this._adjustSettings(t,u,i.until!=null||i.since!=null||o),e=new Date,(u._since&&u._since
e)&&this._addTarget(t[0]),this._updateCountdown(t,u))},_updateCountdown:function(t,i){var r=n(t),u,f,e;(i=i||r.data(this.propertyName),i)&&(r.html(this._generateHTML(i)).toggleClass(this._rtlClass,i.options.isRTL),n.isFunction(i.options.onTick)&&(u=i._hold!="lap"?i._periods:this._calculatePeriods(i,i._show,i.options.significant,new Date),(i.options.tickInterval==1||this.periodsToSeconds(u)%i.options.tickInterval==0)&&i.options.onTick.apply(t,[u])),f=i._hold!="pause"&&(i._since?i._now.getTime()=i._until.getTime()),f&&!i._expiring?(i._expiring=!0,(this._hasTarget(t)||i.options.alwaysExpire)&&(this._removeTarget(t),n.isFunction(i.options.onExpiry)&&i.options.onExpiry.apply(t,[]),i.options.expiryText&&(e=i.options.layout,i.options.layout=i.options.expiryText,this._updateCountdown(t,i),i.options.layout=e),i.options.expiryUrl&&(window.location=i.options.expiryUrl)),i._expiring=!1):i._hold=="pause"&&this._removeTarget(t),r.data(this.propertyName,i))},_resetExtraLabels:function(n,t){var r=!1;for(var i in t)if(i!="whichLabels"&&i.match(/[Ll]abels/)){r=!0;break}if(r)for(i in n)i.match(/[Ll]abels[02-9]|compactLabels1/)&&(n[i]=null)},_adjustSettings:function(t,i,r){for(var h,f,e,u=0,s=null,o=0;o0,l[c]=h._show[c]=="?"&&!b?null:h._show[c],k+=l[c]?1:0,p-=h._periods[c]>0?1:0;for(v=[!1,!1,!1,!1,!1,!1,!1],c=i;c>=t;c--)h._show[c]&&(h._periods[c]?v[c]=!0:(v[c]=p>0,p--));var d=h.options.compact?h.options.compactLabels:h.options.labels,g=h.options.whichLabels||this._normalLabels,y=function(n){var t=h.options["compactLabels"+g(h._periods[n])];return l[n]?w._translateDigits(h,h._periods[n])+(t?t[n]:d[n])+" ":""},a=function(n){var t=h.options["labels"+g(h._periods[n])];return!h.options.significant&&l[n]||h.options.significant&&v[n]?''+w._translateDigits(h,h._periods[n])+"<\/span>
"+(t?t[n]:d[n])+"<\/span>":""};return h.options.layout?this._buildLayout(h,l,h.options.layout,h.options.compact,h.options.significant,v):(h.options.compact?''+y(t)+y(r)+y(o)+y(s)+(l[f]?this._minDigits(h,h._periods[f],2):"")+(l[e]?(l[f]?h.options.timeSeparator:"")+this._minDigits(h,h._periods[e],2):"")+(l[i]?(l[f]||l[e]?h.options.timeSeparator:"")+this._minDigits(h,h._periods[i],2):""):''+a(t)+a(r)+a(o)+a(s)+a(f)+a(e)+a(i))+"<\/span>"+(h.options.description?''+h.options.description+"<\/span>":"")},_buildLayout:function(u,h,c,l,a,v){for(var k,d,g=u.options[l?"compactLabels":"labels"],nt=u.options.whichLabels||this._normalLabels,p=function(n){return(u.options[(l?"compactLabels":"labels")+nt(u._periods[n])]||g)[n]},y=function(n,t){return u.options.digits[Math.floor(n/t)%10]},tt={desc:u.options.description,sep:u.options.timeSeparator,yl:p(t),yn:this._minDigits(u,u._periods[t],1),ynn:this._minDigits(u,u._periods[t],2),ynnn:this._minDigits(u,u._periods[t],3),y1:y(u._periods[t],1),y10:y(u._periods[t],10),y100:y(u._periods[t],100),y1000:y(u._periods[t],1e3),ol:p(r),on:this._minDigits(u,u._periods[r],1),onn:this._minDigits(u,u._periods[r],2),onnn:this._minDigits(u,u._periods[r],3),o1:y(u._periods[r],1),o10:y(u._periods[r],10),o100:y(u._periods[r],100),o1000:y(u._periods[r],1e3),wl:p(o),wn:this._minDigits(u,u._periods[o],1),wnn:this._minDigits(u,u._periods[o],2),wnnn:this._minDigits(u,u._periods[o],3),w1:y(u._periods[o],1),w10:y(u._periods[o],10),w100:y(u._periods[o],100),w1000:y(u._periods[o],1e3),dl:p(s),dn:this._minDigits(u,u._periods[s],1),dnn:this._minDigits(u,u._periods[s],2),dnnn:this._minDigits(u,u._periods[s],3),d1:y(u._periods[s],1),d10:y(u._periods[s],10),d100:y(u._periods[s],100),d1000:y(u._periods[s],1e3),hl:p(f),hn:this._minDigits(u,u._periods[f],1),hnn:this._minDigits(u,u._periods[f],2),hnnn:this._minDigits(u,u._periods[f],3),h1:y(u._periods[f],1),h10:y(u._periods[f],10),h100:y(u._periods[f],100),h1000:y(u._periods[f],1e3),ml:p(e),mn:this._minDigits(u,u._periods[e],1),mnn:this._minDigits(u,u._periods[e],2),mnnn:this._minDigits(u,u._periods[e],3),m1:y(u._periods[e],1),m10:y(u._periods[e],10),m100:y(u._periods[e],100),m1000:y(u._periods[e],1e3),sl:p(i),sn:this._minDigits(u,u._periods[i],1),snn:this._minDigits(u,u._periods[i],2),snnn:this._minDigits(u,u._periods[i],3),s1:y(u._periods[i],1),s10:y(u._periods[i],10),s100:y(u._periods[i],100),s1000:y(u._periods[i],1e3)},w=c,b=t;b<=i;b++)k="yowdhms".charAt(b),d=new RegExp("\\{"+k+"<\\}([\\s\\S]*)\\{"+k+">\\}","g"),w=w.replace(d,!a&&h[b]||a&&v[b]?"$1":"");return n.each(tt,function(n,t){var i=new RegExp("\\{"+n+"\\}","g");w=w.replace(i,t)}),w},_minDigits:function(n,t,i){return(t=""+t,t.length>=i)?this._translateDigits(n,t):(t="0000000000"+t,this._translateDigits(n,t.substr(t.length-i)))},_translateDigits:function(n,t){return(""+t).replace(/[0-9]/g,function(t){return n.options.digits[t]})},_determineShow:function(n){var u=n.options.format,h=[];return h[t]=u.match("y")?"?":u.match("Y")?"!":null,h[r]=u.match("o")?"?":u.match("O")?"!":null,h[o]=u.match("w")?"?":u.match("W")?"!":null,h[s]=u.match("d")?"?":u.match("D")?"!":null,h[f]=u.match("h")?"?":u.match("H")?"!":null,h[e]=u.match("m")?"?":u.match("M")?"!":null,h[i]=u.match("s")?"?":u.match("S")?"!":null,h},_calculatePeriods:function(n,h,c,l){var v,a,ut,b,p,w,y;if(n._now=l,n._now.setMilliseconds(0),v=new Date(n._now.getTime()),n._since?l.getTime()n._until.getTime()&&(n._now=l=v)),a=[0,0,0,0,0,0,0],h[t]||h[r]){var k=u._getDaysInMonth(l.getFullYear(),l.getMonth()),nt=u._getDaysInMonth(v.getFullYear(),v.getMonth()),tt=v.getDate()==l.getDate()||v.getDate()>=Math.min(k,nt)&&l.getDate()>=Math.min(k,nt),it=function(n){return(n.getHours()*60+n.getMinutes())*60+n.getSeconds()},rt=Math.max(0,(v.getFullYear()-l.getFullYear())*12+v.getMonth()-l.getMonth()+(v.getDate()b&&l.setDate(b);l.setFullYear(l.getFullYear()+a[t]);l.setMonth(l.getMonth()+a[r]);ut&&l.setDate(b)}if(p=Math.floor((v.getTime()-l.getTime())/1e3),w=function(n,t){a[n]=h[n]?Math.floor(p/t):0;p-=a[n]*t},w(o,604800),w(s,86400),w(f,3600),w(e,60),w(i,1),p>0&&!n._since){var ft=[1,12,4.3482,7,24,60,60],d=i,g=1;for(y=i;y>=t;y--)h[y]&&(a[d]>=g&&(a[d]=0,p=1),p>0&&(a[y]++,p=0,d=y,g=1)),g*=ft[y]}if(c)for(y=t;y<=i;y++)c&&a[y]?c--:c||(a[y]=0);return a}});c=["getTimes"];n.fn.countdown=function(n){var t=Array.prototype.slice.call(arguments,1);return l(n,t)?u["_"+n+"Plugin"].apply(u,[this[0]].concat(t)):this.each(function(){if(typeof n=="string"){if(!u["_"+n+"Plugin"])throw"Unknown command: "+n;u["_"+n+"Plugin"].apply(u,[this].concat(t))}else u._attachPlugin(this,n||{})})};u=n.countdown=new h}(jQuery),function(n){function i(n,t){var r=n.data("ddslick"),e=n.find(".dd-selected"),h=e.siblings(".dd-selected-value"),l=n.find(".dd-options"),a=e.siblings(".dd-pointer"),o=n.find(".dd-option").eq(t),c=o.closest("li"),f=r.settings,i=r.settings.data[t];n.find(".dd-option").removeClass("dd-option-selected");o.addClass("dd-option-selected");r.selectedIndex=t;r.selectedItem=c;r.selectedData=i;f.showSelectedHTML?e.html((i.imageSrc?'
':"")+(i.text?'