/*! * Modernizr v2.0.6 * http://www.modernizr.com * * Copyright (c) 2009-2011 Faruk Ates, Paul Irish, Alex Sexton * Dual-licensed under the BSD or MIT licenses: www.modernizr.com/license/ */ window.Modernizr=function(n,t,i){function l(n){s.cssText=n}function lt(n,t){return l(h.join(n+";")+(t||""))}function a(n,t){return typeof n===t}function b(n,t){return!!~(""+n).indexOf(t)}function k(n,t){for(var r in n)if(s[n[r]]!==i)return t=="pfx"?n[r]:!0;return!1}function o(n,t){var i=n.charAt(0).toUpperCase()+n.substr(1),r=(n+" "+c.join(i+" ")+i).split(" ");return k(r,t)}function ht(){u.input=function(n){for(var t=0,i=n.length;t",n,""].join(""),f.id=v,f.innerHTML+=s,e.appendChild(f),h=i(f,n),f.parentNode.removeChild(f),!!h},at=function(t){if(n.matchMedia)return matchMedia(t).matches;var i;return it("@media "+t+" { #"+v+" { position: absolute; } }",function(t){i=(n.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position=="absolute"}),i},y=function(){function n(n,u){u=u||t.createElement(r[n]||"div"),n="on"+n;var f=n in u;return f||(u.setAttribute||(u=t.createElement("div")),u.setAttribute&&u.removeAttribute&&(u.setAttribute(n,""),f=a(u[n],"function"),a(u[n],i)||(u[n]=i),u.removeAttribute(n))),u=null,f}var r={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return n}(),tt={}.hasOwnProperty,w,ct,d;w=a(tt,i)||a(tt.call,i)?function(n,t){return t in n&&a(n.constructor.prototype[t],i)}:function(n,t){return tt.call(n,t)},ct=function(i,r){var e=i.join(""),f=r.length;it(e,function(i,r){var o=t.styleSheets[t.styleSheets.length-1],s=o.cssRules&&o.cssRules[0]?o.cssRules[0].cssText:o.cssText||"",h=i.childNodes,e={};while(f--)e[h[f].id]=h[f];u.touch="ontouchstart"in n||e.touch.offsetTop===9,u.csstransforms3d=e.csstransforms3d.offsetLeft===9,u.generatedcontent=e.generatedcontent.offsetHeight>=1,u.fontface=/src/i.test(s)&&s.indexOf(r.split(" ")[0])===0},f,r)}(['@font-face {font-family:"font";src:url("https://")}',["@media (",h.join("touch-enabled),("),v,")","{#touch{top:9px;position:absolute}}"].join(""),["@media (",h.join("transform-3d),("),v,")","{#csstransforms3d{left:9px;position:absolute}}"].join(""),['#generatedcontent:after{content:"',nt,'";visibility:hidden}'].join("")],["fontface","touch","csstransforms3d","generatedcontent"]),r.flexbox=function(){function u(n,t,i,r){t+=":",n.style.cssText=(t+h.join(i+";"+t)).slice(0,-t.length)+(r||"")}function f(n,t,i,r){n.style.cssText=h.join(t+":"+i+";")+(r||"")}var n=t.createElement("div"),i=t.createElement("div"),r;return u(n,"display","box","width:42px;padding:0;"),f(i,"box-flex","1","width:10px;"),n.appendChild(i),e.appendChild(n),r=i.offsetWidth===42,n.removeChild(i),e.removeChild(n),r},r.canvas=function(){var n=t.createElement("canvas");return!!(n.getContext&&n.getContext("2d"))},r.canvastext=function(){return!!(u.canvas&&a(t.createElement("canvas").getContext("2d").fillText,"function"))},r.webgl=function(){return!!n.WebGLRenderingContext},r.touch=function(){return u.touch},r.geolocation=function(){return!!navigator.geolocation},r.postmessage=function(){return!!n.postMessage},r.websqldatabase=function(){return!!n.openDatabase},r.indexedDB=function(){for(var t=-1,i=c.length;++t7)},r.history=function(){return!!(n.history&&history.pushState)},r.draganddrop=function(){return y("dragstart")&&y("drop")},r.websockets=function(){for(var t=-1,i=c.length;++tn?1:this=n.getTime()&&i<=t.getTime()},Date.prototype.addMilliseconds=function(n){return this.setMilliseconds(this.getMilliseconds()+n),this},Date.prototype.addSeconds=function(n){return this.addMilliseconds(n*1e3)},Date.prototype.addMinutes=function(n){return this.addMilliseconds(n*6e4)},Date.prototype.addHours=function(n){return this.addMilliseconds(n*36e5)},Date.prototype.addDays=function(n){return this.addMilliseconds(n*864e5)},Date.prototype.addWeeks=function(n){return this.addMilliseconds(n*6048e5)},Date.prototype.addMonths=function(n){var t=this.getDate();return this.setDate(1),this.setMonth(this.getMonth()+n),this.setDate(Math.min(t,this.getDaysInMonth())),this},Date.prototype.addYears=function(n){return this.addMonths(n*12)},Date.prototype.add=function(n){if(typeof n=="number")return this._orient=n,this;var t=n;return(t.millisecond||t.milliseconds)&&this.addMilliseconds(t.millisecond||t.milliseconds),(t.second||t.seconds)&&this.addSeconds(t.second||t.seconds),(t.minute||t.minutes)&&this.addMinutes(t.minute||t.minutes),(t.hour||t.hours)&&this.addHours(t.hour||t.hours),(t.month||t.months)&&this.addMonths(t.month||t.months),(t.year||t.years)&&this.addYears(t.year||t.years),(t.day||t.days)&&this.addDays(t.day||t.days),this},Date._validate=function(n,t,i,r){if(typeof n!="number")throw new TypeError(n+" is not a Number.");else if(ni)throw new RangeError(n+" is not a valid value for "+r+".");return!0},Date.validateMillisecond=function(n){return Date._validate(n,0,999,"milliseconds")},Date.validateSecond=function(n){return Date._validate(n,0,59,"seconds")},Date.validateMinute=function(n){return Date._validate(n,0,59,"minutes")},Date.validateHour=function(n){return Date._validate(n,0,23,"hours")},Date.validateDay=function(n,t,i){return Date._validate(n,1,Date.getDaysInMonth(t,i),"days")},Date.validateMonth=function(n){return Date._validate(n,0,11,"months")},Date.validateYear=function(n){return Date._validate(n,1,9999,"seconds")},Date.prototype.set=function(n){var t=n;return t.millisecond||t.millisecond===0||(t.millisecond=-1),t.second||t.second===0||(t.second=-1),t.minute||t.minute===0||(t.minute=-1),t.hour||t.hour===0||(t.hour=-1),t.day||t.day===0||(t.day=-1),t.month||t.month===0||(t.month=-1),t.year||t.year===0||(t.year=-1),t.millisecond!=-1&&Date.validateMillisecond(t.millisecond)&&this.addMilliseconds(t.millisecond-this.getMilliseconds()),t.second!=-1&&Date.validateSecond(t.second)&&this.addSeconds(t.second-this.getSeconds()),t.minute!=-1&&Date.validateMinute(t.minute)&&this.addMinutes(t.minute-this.getMinutes()),t.hour!=-1&&Date.validateHour(t.hour)&&this.addHours(t.hour-this.getHours()),t.month!==-1&&Date.validateMonth(t.month)&&this.addMonths(t.month-this.getMonth()),t.year!=-1&&Date.validateYear(t.year)&&this.addYears(t.year-this.getFullYear()),t.day!=-1&&Date.validateDay(t.day,this.getFullYear(),this.getMonth())&&this.addDays(t.day-this.getDate()),t.timezone&&this.setTimezone(t.timezone),t.timezoneOffset&&this.setTimezoneOffset(t.timezoneOffset),this},Date.prototype.clearTime=function(){return this.setHours(0),this.setMinutes(0),this.setSeconds(0),this.setMilliseconds(0),this},Date.prototype.isLeapYear=function(){var n=this.getFullYear();return n%4==0&&n0!=0||n@0==0},Date.prototype.isWeekday=function(){return!(this.is().sat()||this.is().sun())},Date.prototype.getDaysInMonth=function(){return Date.getDaysInMonth(this.getFullYear(),this.getMonth())},Date.prototype.moveToFirstDayOfMonth=function(){return this.set({day:1})},Date.prototype.moveToLastDayOfMonth=function(){return this.set({day:this.getDaysInMonth()})},Date.prototype.moveToDayOfWeek=function(n,t){var i=(n-this.getDay()+7*(t||1))%7;return this.addDays(i===0?i+=7*(t||1):i)},Date.prototype.moveToMonth=function(n,t){var i=(n-this.getMonth()+12*(t||1));return this.addMonths(i===0?i+=12*(t||1):i)},Date.prototype.getDayOfYear=function(){return Math.floor((this-new Date(this.getFullYear(),0,1))/864e5)},Date.prototype.getWeekOfYear=function(n){var i=this.getFullYear(),o=this.getMonth(),s=this.getDate(),e=n||Date.CultureInfo.firstDayOfWeek,r=8-new Date(i,0,1).getDay(),f,t,u;return r==8&&(r=1),f=(Date.UTC(i,o,s,0,0,0)-Date.UTC(i,0,1,0,0,0))/864e5+1,t=Math.floor((f-r+7)/7),t===e&&(i--,u=8-new Date(i,0,1).getDay(),t=u==2||u==8?53:52),t},Date.prototype.isDST=function(){return console.log("isDST"),this.toString().match(/(E|C|M|P)(S|D)T/)[2]=="D"},Date.prototype.getTimezone=function(){return Date.getTimezoneAbbreviation(this.getUTCOffset,this.isDST())},Date.prototype.setTimezoneOffset=function(n){var i=this.getTimezoneOffset(),t=Number(n)*-6/10;return this.addMinutes(t-i),this},Date.prototype.setTimezone=function(n){return this.setTimezoneOffset(Date.getTimezoneOffset(n))},Date.prototype.getUTCOffset=function(){var t=this.getTimezoneOffset()*-10/6,n;return t<0?(n=(t-1e4).toString(),n[0]+n.substr(2)):(n=(t+1e4).toString(),"+"+n.substr(1))},Date.prototype.getDayName=function(n){return n?Date.CultureInfo.abbreviatedDayNames[this.getDay()]:Date.CultureInfo.dayNames[this.getDay()]},Date.prototype.getMonthName=function(n){return n?Date.CultureInfo.abbreviatedMonthNames[this.getMonth()]:Date.CultureInfo.monthNames[this.getMonth()]},Date.prototype._toString=Date.prototype.toString,Date.prototype.toString=function(n){var t=this,i=function(n){return n.toString().length==1?"0"+n:n};return n?n.replace(/dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?/g,function(n){switch(n){case"hh":return i(t.getHours()<13?t.getHours():t.getHours()-12);case"h":return t.getHours()<13?t.getHours():t.getHours()-12;case"HH":return i(t.getHours());case"H":return t.getHours();case"mm":return i(t.getMinutes());case"m":return t.getMinutes();case"ss":return i(t.getSeconds());case"s":return t.getSeconds();case"yyyy":return t.getFullYear();case"yy":return t.getFullYear().toString().substring(2,4);case"dddd":return t.getDayName();case"ddd":return t.getDayName(!0);case"dd":return i(t.getDate());case"d":return t.getDate().toString();case"MMMM":return t.getMonthName();case"MMM":return t.getMonthName(!0);case"MM":return i(t.getMonth()+1);case"M":return t.getMonth()+1;case"t":return t.getHours()<12?Date.CultureInfo.amDesignator.substring(0,1):Date.CultureInfo.pmDesignator.substring(0,1);case"tt":return t.getHours()<12?Date.CultureInfo.amDesignator:Date.CultureInfo.pmDesignator;case"zzz":case"zz":case"z":return""}}):this._toString()},Date.now=function(){return new Date},Date.today=function(){return Date.now().clearTime()},Date.prototype._orient=1,Date.prototype.next=function(){return this._orient=1,this},Date.prototype.last=Date.prototype.prev=Date.prototype.previous=function(){return this._orient=-1,this},Date.prototype._is=!1,Date.prototype.is=function(){return this._is=!0,this},Number.prototype._dateElement="day",Number.prototype.fromNow=function(){var n={};return n[this._dateElement]=this,Date.now().add(n)},Number.prototype.ago=function(){var n={};return n[this._dateElement]=this*-1,Date.now().add(n)},function(){for(var i=Date.prototype,l=Number.prototype,f="sunday monday tuesday wednesday thursday friday saturday".split(/\s/),e="january february march april may june july august september october november december".split(/\s/),o="Millisecond Second Minute Hour Day Week Month Year".split(/\s/),t,a=function(n){return function(){return this._is?(this._is=!1,this.getDay()==n):this.moveToDayOfWeek(n,this._orient)}},c,r,s,h,u,n=0;n0&&!o)try{c=r.call(this,s[1])}catch(w){o=!0}else o=!0;o||c[1].length!==0||(o=!0);if(!o){for(y=[],l=0;l0&&(h[0]=h[0].concat(v[0]),h[1]=v[1])}h[1].length1?t=Array.prototype.slice.call(arguments):arguments[0]instanceof Array&&(t=arguments[0]);if(t)for(i=0,r=t.shift();i2?t:t+(t+2e3Date.getDaysInMonth(this.year,this.month))throw new RangeError(this.day+" is not a valid value for days.");return i=new Date(this.year,this.month,this.day,this.hour,this.minute,this.second),this.timezone?i.set({timezone:this.timezone}):this.timezoneOffset&&i.set({timezoneOffset:this.timezoneOffset}),i},finish:function(n){var f,i,t,r;n=n instanceof Array?o(n):[n];if(n.length===0)return null;for(f=0;fr[t])return!0}return!0},n.hasFlash.playerVersion=function(){try{try{var n=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");try{n.AllowScriptAccess="always"}catch(t){return"6,0,0"}}catch(t){}return new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(t){try{if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)return(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(t){}}return"0,0,0"},n.htmlOptions={height:240,flashvars:{},pluginspage:"http://www.adobe.com/go/getflashplayer",src:"#",type:"application/x-shockwave-flash",width:320},n.pluginOptions={expressInstall:!1,update:!0,version:"6.0.65"},n.replace=function(t){this.innerHTML='
'+this.innerHTML+"
",jQuery(this).addClass("flash-replaced").prepend(n.transform(t))},n.update=function(){var t=String(location).split("?"),i;t.splice(1,0,"?hasFlash=true&"),t=t.join(""),i='

This content requires the Flash Player version 9.0.115 or later. Download Flash Player.

',this.innerHTML=''+this.innerHTML+"",jQuery(this).addClass("flash-update").prepend(i)},n.transform=function(n){return n.toString=i,n.flashvars&&(n.flashvars.toString=t),""},window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){},__flash_savedUnloadHandler=function(){}})}(),jQuery.extend({Enumerable:function(){var y="Single:sequence contains more than one element.",e=!0,r=null,i=!1,n=function(n){this.GetEnumerator=n},c,o;n.Choice=function(){var t=arguments[0]instanceof Array?arguments[0]:arguments;return new n(function(){return new u(f.Blank,function(){return this.Yield(t[Math.floor(Math.random()*t.length)])},f.Blank)})},n.Cycle=function(){var t=arguments[0]instanceof Array?arguments[0]:arguments;return new n(function(){var n=0;return new u(f.Blank,function(){return n=i})},n.Repeat=function(t,i){return i!=r?n.Repeat(t).Take(i):new n(function(){return new u(f.Blank,function(){return this.Yield(t)},f.Blank)})},n.RepeatWithFinalize=function(i,f){return i=t.CreateLambda(i),f=t.CreateLambda(f),new n(function(){var n;return new u(function(){n=i()},function(){return this.Yield(n)},function(){n!=r&&(f(n),n=r)})})},n.Generate=function(i,e){return e!=r?n.Generate(i).Take(e):(i=t.CreateLambda(i),new n(function(){return new u(f.Blank,function(){return this.Yield(i())},f.Blank)}))},n.ToInfinity=function(t,i){return t==r&&(t=0),i==r&&(i=1),new n(function(){var n;return new u(function(){n=t-i},function(){return this.Yield(n+=i)},f.Blank)})},n.ToNegativeInfinity=function(t,i){return t==r&&(t=0),i==r&&(i=1),new n(function(){var n;return new u(function(){n=t+i},function(){return this.Yield(n-=i)},f.Blank)})},n.Unfold=function(r,o){return o=t.CreateLambda(o),new n(function(){var t=e,n;return new u(f.Blank,function(){return t?(t=i,n=r,this.Yield(n)):(n=o(n),this.Yield(n))},f.Blank)})},n.prototype={CascadeBreadthFirst:function(r,f){var o=this;return r=t.CreateLambda(r),f=t.CreateLambda(f),new n(function(){var s,c=0,h=[];return new u(function(){s=o.GetEnumerator()},function(){while(e){if(s.MoveNext())return h.push(s.Current()),this.Yield(f(s.Current(),c));var u=n.From(h).SelectMany(function(n){return r(n)});if(u.Any())c++,h=[],t.Dispose(s),s=u.GetEnumerator();else return i}},function(){t.Dispose(s)})})},CascadeDepthFirst:function(r,f){var o=this;return r=t.CreateLambda(r),f=t.CreateLambda(f),new n(function(){var h=[],s;return new u(function(){s=o.GetEnumerator()},function(){while(e){if(s.MoveNext()){var u=f(s.Current(),h.length);return h.push(s),s=n.From(r(s.Current())).GetEnumerator(),this.Yield(u)}if(h.length<=0)return i;t.Dispose(s),s=h.pop()}},function(){try{t.Dispose(s)}finally{n.From(h).ForEach(function(n){n.Dispose()})}})})},Flatten:function(){var o=this;return new n(function(){var h,s=r;return new u(function(){h=o.GetEnumerator()},function(){while(e){if(s!=r){if(s.MoveNext())return this.Yield(s.Current());s=r}if(h.MoveNext())if(h.Current()instanceof Array){t.Dispose(s),s=n.From(h.Current()).SelectMany(f.Identity).Flatten().GetEnumerator();continue}else return this.Yield(h.Current());return i}},function(){try{t.Dispose(h)}finally{t.Dispose(s)}})})},Pairwise:function(r){var f=this;return r=t.CreateLambda(r),new n(function(){var n;return new u(function(){n=f.GetEnumerator(),n.MoveNext()},function(){var t=n.Current();return n.MoveNext()?this.Yield(r(t,n.Current())):i},function(){t.Dispose(n)})})},Scan:function(f,o,s){var h,c;return s!=r?this.Scan(f,o).Select(s):(o==r?(o=t.CreateLambda(f),h=i):(o=t.CreateLambda(o),h=e),c=this,new n(function(){var n,r,s=e;return new u(function(){n=c.GetEnumerator()},function(){if(s){s=i;if(h)return this.Yield(r=f);if(n.MoveNext())return this.Yield(r=n.Current())}return n.MoveNext()?this.Yield(r=o(r,n.Current())):i},function(){t.Dispose(n)})}))},Select:function(r){var f=this;return r=t.CreateLambda(r),new n(function(){var n,e=0;return new u(function(){n=f.GetEnumerator()},function(){return n.MoveNext()?this.Yield(r(n.Current(),e++)):i},function(){t.Dispose(n)})})},SelectMany:function(f,e){var o=this;return f=t.CreateLambda(f),e==r&&(e=function(n,t){return t}),e=t.CreateLambda(e),new n(function(){var h,s=undefined,c=0;return new u(function(){h=o.GetEnumerator()},function(){if(s===undefined)if(!h.MoveNext())return i;do{if(s==r){var u=f(h.Current(),c++);s=n.From(u).GetEnumerator()}if(s.MoveNext())return this.Yield(e(h.Current(),s.Current()));t.Dispose(s),s=r}while(h.MoveNext());return i},function(){try{t.Dispose(h)}finally{t.Dispose(s)}})})},Where:function(r){r=t.CreateLambda(r);var f=this;return new n(function(){var n,e=0;return new u(function(){n=f.GetEnumerator()},function(){while(n.MoveNext())if(r(n.Current(),e++))return this.Yield(n.Current());return i},function(){t.Dispose(n)})})},OfType:function(n){var t;switch(n){case Number:t=s.Number;break;case String:t=s.String;break;case Boolean:t=s.Boolean;break;case Function:t=s.Function;break;default:t=r}return t===r?this.Where(function(t){return t instanceof n}):this.Where(function(n){return typeof n===t})},Zip:function(r,f){f=t.CreateLambda(f);var e=this;return new n(function(){var s,o,h=0;return new u(function(){s=e.GetEnumerator(),o=n.From(r).GetEnumerator()},function(){return s.MoveNext()&&o.MoveNext()?this.Yield(f(s.Current(),o.Current(),h++)):i},function(){try{t.Dispose(s)}finally{t.Dispose(o)}})})},Join:function(o,s,h,c,l){s=t.CreateLambda(s),h=t.CreateLambda(h),c=t.CreateLambda(c),l=t.CreateLambda(l);var a=this;return new n(function(){var v,w,y=r,p=0;return new u(function(){v=a.GetEnumerator(),w=n.From(o).ToLookup(h,f.Identity,l)},function(){var n,t;while(e){if(y!=r){n=y[p++];if(n!==undefined)return this.Yield(c(v.Current(),n));n=r,p=0}if(v.MoveNext())t=s(v.Current()),y=w.Get(t).ToArray();else return i}},function(){t.Dispose(v)})})},GroupJoin:function(e,o,s,h,c){o=t.CreateLambda(o),s=t.CreateLambda(s),h=t.CreateLambda(h),c=t.CreateLambda(c);var l=this;return new n(function(){var a=l.GetEnumerator(),v=r;return new u(function(){a=l.GetEnumerator(),v=n.From(e).ToLookup(s,f.Identity,c)},function(){if(a.MoveNext()){var n=v.Get(o(a.Current()));return this.Yield(h(a.Current(),n))}return i},function(){t.Dispose(a)})})},All:function(n){n=t.CreateLambda(n);var r=e;return this.ForEach(function(t){if(!n(t))return r=i,i}),r},Any:function(n){n=t.CreateLambda(n);var r=this.GetEnumerator();try{if(arguments.length==0)return r.MoveNext();while(r.MoveNext())if(n(r.Current()))return e;return i}finally{t.Dispose(r)}},Concat:function(f){var e=this;return new n(function(){var s,o;return new u(function(){s=e.GetEnumerator()},function(){if(o==r){if(s.MoveNext())return this.Yield(s.Current());o=n.From(f).GetEnumerator()}return o.MoveNext()?this.Yield(o.Current()):i},function(){try{t.Dispose(s)}finally{t.Dispose(o)}})})},Insert:function(r,f){var o=this;return new n(function(){var h,s,l=0,c=i;return new u(function(){h=o.GetEnumerator(),s=n.From(f).GetEnumerator()},function(){return l==r&&s.MoveNext()?(c=e,this.Yield(s.Current())):h.MoveNext()?(l++,this.Yield(h.Current())):!c&&s.MoveNext()?this.Yield(s.Current()):i},function(){try{t.Dispose(h)}finally{t.Dispose(s)}})})},Alternate:function(t){return t=n.Return(t),this.SelectMany(function(i){return n.Return(i).Concat(t)}).TakeExceptLast()},Contains:function(n,r){r=t.CreateLambda(r);var u=this.GetEnumerator();try{while(u.MoveNext())if(r(u.Current())===n)return e;return i}finally{t.Dispose(u)}},DefaultIfEmpty:function(r){var f=this;return new n(function(){var n,o=e;return new u(function(){n=f.GetEnumerator()},function(){return n.MoveNext()?(o=i,this.Yield(n.Current())):o?(o=i,this.Yield(r)):i},function(){t.Dispose(n)})})},Distinct:function(t){return this.Except(n.Empty(),t)},Except:function(r,f){f=t.CreateLambda(f);var e=this;return new n(function(){var s,o;return new u(function(){s=e.GetEnumerator(),o=new a(f),n.From(r).ForEach(function(n){o.Add(n)})},function(){while(s.MoveNext()){var n=s.Current();if(!o.Contains(n))return o.Add(n),this.Yield(n)}return i},function(){t.Dispose(s)})})},Intersect:function(r,f){f=t.CreateLambda(f);var e=this;return new n(function(){var o,h,s;return new u(function(){o=e.GetEnumerator(),h=new a(f),n.From(r).ForEach(function(n){h.Add(n)}),s=new a(f)},function(){while(o.MoveNext()){var n=o.Current();if(!s.Contains(n)&&h.Contains(n))return s.Add(n),this.Yield(n)}return i},function(){t.Dispose(o)})})},SequenceEqual:function(r,u){var o,f;u=t.CreateLambda(u),o=this.GetEnumerator();try{f=n.From(r).GetEnumerator();try{while(o.MoveNext())if(!f.MoveNext()||u(o.Current())!==u(f.Current()))return i;return f.MoveNext()?i:e}finally{t.Dispose(f)}}finally{t.Dispose(o)}},Union:function(r,f){f=t.CreateLambda(f);var e=this;return new n(function(){var h,s,o;return new u(function(){h=e.GetEnumerator(),o=new a(f)},function(){var t;if(s===undefined){while(h.MoveNext()){t=h.Current();if(!o.Contains(t))return o.Add(t),this.Yield(t)}s=n.From(r).GetEnumerator()}while(s.MoveNext()){t=s.Current();if(!o.Contains(t))return o.Add(t),this.Yield(t)}return i},function(){try{t.Dispose(h)}finally{t.Dispose(s)}})})},OrderBy:function(n){return new h(this,n,i)},OrderByDescending:function(n){return new h(this,n,e)},Reverse:function(){var t=this;return new n(function(){var r,n;return new u(function(){r=t.ToArray(),n=r.length},function(){return n>0?this.Yield(r[--n]):i},f.Blank)})},Shuffle:function(){var t=this;return new n(function(){var n;return new u(function(){n=t.ToArray()},function(){if(n.length>0){var t=Math.floor(Math.random()*n.length);return this.Yield(n.splice(t,1)[0])}return i},f.Blank)})},GroupBy:function(f,e,o,s){var h=this;return f=t.CreateLambda(f),e=t.CreateLambda(e),o!=r&&(o=t.CreateLambda(o)),s=t.CreateLambda(s),new n(function(){var n;return new u(function(){n=h.ToLookup(f,e,s).ToEnumerable().GetEnumerator()},function(){while(n.MoveNext())return o==r?this.Yield(n.Current()):this.Yield(o(n.Current().Key(),n.Current()));return i},function(){t.Dispose(n)})})},PartitionBy:function(f,o,s,h){var l=this,c;return f=t.CreateLambda(f),o=t.CreateLambda(o),h=t.CreateLambda(h),s==r?(c=i,s=function(n,t){return new v(n,t)}):(c=e,s=t.CreateLambda(s)),new n(function(){var r,v,y,a=[];return new u(function(){r=l.GetEnumerator(),r.MoveNext()&&(v=f(r.Current()),y=h(v),a.push(o(r.Current())))},function(){var u,t;while((u=r.MoveNext())==e)if(y===h(f(r.Current())))a.push(o(r.Current()));else break;return a.length>0?(t=c?s(v,n.From(a)):s(v,a),u?(v=f(r.Current()),y=h(v),a=[o(r.Current())]):a=[],this.Yield(t)):i},function(){t.Dispose(r)})})},BufferWithCount:function(r){var f=this;return new n(function(){var n;return new u(function(){n=f.GetEnumerator()},function(){var t=[],u=0;while(n.MoveNext()){t.push(n.Current());if(++u>=r)return this.Yield(t)}return t.length>0?this.Yield(t):i},function(){t.Dispose(n)})})},Aggregate:function(n,t,i){return this.Scan(n,t,i).Last()},Average:function(n){n=t.CreateLambda(n);var r=0,i=0;return this.ForEach(function(t){r+=n(t),++i}),r/i},Count:function(n){n=n==r?f.True:t.CreateLambda(n);var i=0;return this.ForEach(function(t,r){n(t,r)&&++i}),i},Max:function(n){return n==r&&(n=f.Identity),this.Select(n).Aggregate(function(n,t){return n>t?n:t})},Min:function(n){return n==r&&(n=f.Identity),this.Select(n).Aggregate(function(n,t){return nn(i)?t:i})},MinBy:function(n){return n=t.CreateLambda(n),this.Aggregate(function(t,i){return n(t)")})},Force:function(){var n=this.GetEnumerator();try{while(n.MoveNext());}finally{t.Dispose(n)}},Let:function(r){r=t.CreateLambda(r);var f=this;return new n(function(){var e;return new u(function(){e=n.From(r(f)).GetEnumerator()},function(){return e.MoveNext()?this.Yield(e.Current()):i},function(){t.Dispose(e)})})},Share:function(){var e=this,t;return new n(function(){return new u(function(){t==r&&(t=e.GetEnumerator())},function(){return t.MoveNext()?this.Yield(t.Current()):i},f.Blank)})},MemoizeAll:function(){var o=this,e,t;return new n(function(){var n=-1;return new u(function(){t==r&&(t=o.GetEnumerator(),e=[])},function(){return n++,e.length<=n?t.MoveNext()?this.Yield(e[n]=t.Current()):i:this.Yield(e[n])},f.Blank)})},Catch:function(r){r=t.CreateLambda(r);var f=this;return new n(function(){var n;return new u(function(){n=f.GetEnumerator()},function(){try{return n.MoveNext()?this.Yield(n.Current()):i}catch(t){return r(t),i}},function(){t.Dispose(n)})})},Finally:function(r){r=t.CreateLambda(r);var f=this;return new n(function(){var n;return new u(function(){n=f.GetEnumerator()},function(){return n.MoveNext()?this.Yield(n.Current()):i},function(){try{t.Dispose(n)}finally{r()}})})},Trace:function(n,i){return n==r&&(n="Trace"),i=t.CreateLambda(i),this.Do(function(t){console.log(n,":",i(t))})}};var f={Identity:function(n){return n},True:function(){return e},Blank:function(){}},s={Boolean:typeof e,Number:"number",String:"string",Object:"object",Undefined:typeof undefined,Function:typeof function(){}},t={CreateLambda:function(n){if(n==r)return f.Identity;if(typeof n==s.String){if(n=="")return f.Identity;if(n.indexOf("=>")==-1)return new Function("$,$$,$$$,$$$$","return "+n);var t=n.match(/^[(\s]*([^()]*?)[)\s]*=>(.*)/);return new Function(t[1],"return "+t[2])}return n},IsIEnumerable:function(n){if(typeof Enumerator!=s.Undefined)try{return new Enumerator(n),e}catch(t){}return i},Compare:function(n,t){return n===t?0:n>t?1:-1},Dispose:function(n){n!=r&&n.Dispose()}},l={Before:0,Running:1,After:2},u=function(n,t,r){var f=new p,u=l.Before;this.Current=f.Current,this.MoveNext=function(){try{switch(u){case l.Before:u=l.Running,n();case l.Running:return t.apply(f)?e:(this.Dispose(),i);case l.After:return i}}catch(r){this.Dispose();throw r;}},this.Dispose=function(){if(u!=l.Running)return;try{r()}finally{u=l.After}}},p=function(){var n=r;this.Current=function(){return n},this.Yield=function(t){return n=t,e}},h=function(n,i,r,u){var f=this;f.source=n,f.keySelector=t.CreateLambda(i),f.descending=r,f.parent=u};h.prototype=new n,h.prototype.CreateOrderedEnumerable=function(n,t){return new h(this.source,n,t,this)},h.prototype.ThenBy=function(n){return this.CreateOrderedEnumerable(n,i)},h.prototype.ThenByDescending=function(n){return this.CreateOrderedEnumerable(n,e)},h.prototype.GetEnumerator=function(){var o=this,t,n,e=0;return new u(function(){t=[],n=[],o.source.ForEach(function(i,r){t.push(i),n.push(r)});var i=c.Create(o,r);i.GenerateKeys(t),n.sort(function(n,t){return i.Compare(n,t)})},function(){return e0:n.prototype.Any.apply(this,arguments)},o.prototype.Count=function(t){return t==r?this.source.length:n.prototype.Count.apply(this,arguments)},o.prototype.ElementAt=function(t){return 0<=t&&t0?this.source[0]:n.prototype.First.apply(this,arguments)},o.prototype.FirstOrDefault=function(t,i){return i!=r?n.prototype.FirstOrDefault.apply(this,arguments):this.source.length>0?this.source[0]:t},o.prototype.Last=function(t){var i=this;return t==r&&i.source.length>0?i.source[i.source.length-1]:n.prototype.Last.apply(i,arguments)},o.prototype.LastOrDefault=function(t,i){var u=this;return i!=r?n.prototype.LastOrDefault.apply(u,arguments):u.source.length>0?u.source[u.source.length-1]:t},o.prototype.Skip=function(t){var r=this.source;return new n(function(){var n;return new u(function(){n=t<0?0:t},function(){return n0?this.Yield(t[--n]):i},f.Blank)})},o.prototype.SequenceEqual=function(t,u){return(t instanceof o||t instanceof Array)&&u==r&&n.From(t).Count()!=this.Count()?i:n.prototype.SequenceEqual.apply(this,arguments)},o.prototype.ToString=function(t,i){return i!=r||!(this.source instanceof Array)?n.prototype.ToString.apply(this,arguments):(t==r&&(t=""),this.source.join(t))},o.prototype.GetEnumerator=function(){var t=this.source,n=0;return new u(f.Blank,function(){return n").parent().html()}),t}}(jQuery),function(n){n(function(){n(".ajaxpaging .g_navigator a").live("click",function(){var t=n(this).closest(".ajaxpaging");return t.animate({opacity:.7},"500"),n.get(this.href,function(n){Tacky.trackVirtualPageView(this.href),t.html(n),t.stop().animate({opacity:1},"500")}),!1})})}(jQuery),function(n){function u(n,t){return n.nodeType==3?o(n,t):e(n,t)}function e(t,i){var t=n(t),f=t.clone().empty(),r;return t.contents().each(function(){var n=i-f.text().length;if(n==0)return;r=u(this,n),r&&f.append(r)}),f}function o(t,u){var f=i(t.data);return r&&(f=f.replace(/^ /,"")),r=!!f.match(/ $/),f=f.slice(0,u),f=n("
").text(f).html()}function i(n){return n.replace(/\s+/g," ")}function t(i){var f=n(i),r=f.children(":last"),u;if(!r)return i;return u=r.css("display"),!u||u=="inline"?f:t(r)}function f(t){var r=n(t),i=r.children(":last");return i&&i.is("p")?i:t}var r=!0;n.fn.truncate=function(r){var e=n.extend({},n.fn.truncate.defaults,r);n(this).each(function(){var s=n.trim(i(n(this).text())).length;if(s<=e.max_length)return;var h=e.max_length-e.more.length-3,r=u(this,h),o=n(this).hide();r.insertAfter(o),t(r).append("..."),f(o).append(' ('+e.less+")"),r.find("a:last").click(function(){return r.hide(),o.show(),!1}),o.find("a:last").click(function(){return r.show(),o.hide(),!1})})},n.fn.truncate.defaults={max_length:150,more:"",less:""}}(jQuery),function(n){n.cutAndClean=function(t,i,r){var e=n("
").html(t).text(),u=e.split(" "),f="",r=r||"...",i=i;if(i!==undefined){u.join(" ").length>i&&(f=r);while(u.join(" ").length>i)u.pop()}return u.join(" ")+f}}(jQuery),function(n){function f(i,r,f,e){var o={data:e||(r?r.data:{}),_wrap:r?r._wrap:null,tmpl:null,parent:r||null,nodes:[],calls:tt,nest:it,wrap:k,html:d,update:g};return i&&n.extend(o,i,{nodes:[],parent:r}),f&&(o.tmpl=f,o._ctnt=o._ctnt||o.tmpl(n,o),o.key=++u,(l.length?h:t)[u]=o),o}function o(t,i,u){var f,e=u?n.map(u,function(n){return typeof n=="string"?t.key?n.replace(/(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g,"$1 "+r+'="'+t.key+'" $2'):n:o(n,t,n._ctnt)}):t;return i?e:(e=e.join(""),e.replace(/^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/,function(t,i,r,u){f=n(r).get(),v(f),i&&(f=c(i).concat(f)),u&&(f=f.concat(c(u)))}),f?f:c(e))}function c(t){var i=document.createElement("div");return i.innerHTML=t,n.makeArray(i.childNodes)}function b(t){return new Function("jQuery","$item","var $=jQuery,call,_=[],$data=$item.data;with($data){_.push('"+n.trim(t).replace(/([\\'])/g,"\\$1").replace(/[\r\t\n]/g," ").replace(/\$\{([^\}]*)\}/g,"{{= $1}}").replace(/\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|\}(?!\}))*?)\))?\s*\}\}/g,function(t,i,r,u,f,o,s){var l=n.tmpl.tag[r],a,h,c;if(!l)throw"Template command not found: "+r;return a=l._default||[],o&&!/\w$/.test(f)&&(f+=o,o=""),f?(f=e(f),s=s?","+e(s)+")":o?")":"",h=o?f.indexOf(".")>-1?f+e(o):"("+f+").call($item"+s:f,c=o?h:"(typeof("+f+")==='function'?("+f+").call($item):("+f+"))"):c=h=a.$1||"null",u=e(u),"');"+l[i?"close":"open"].split("$notnull_1").join(f?"typeof("+f+")!=='undefined' && ("+f+")!=null":"true").split("$1a").join(c).split("$1").join(h).split("$2").join(u?u.replace(/\s*([^\(]+)\s*(\((.*?)\))?/g,function(n,t,i,r){return r=r?","+r+")":i?")":"",r?"("+t+").call($item"+r:n}):a.$2||"")+"_.push('"})+"');}return _;")}function a(t,i){t._wrap=o(t,!0,n.isArray(i)?i:[w.test(i)?i:n(i).html()]).join("")}function e(n){return n?n.replace(/\\'/g,"'").replace(/\\\\/g,"\\"):null}function nt(n){var t=document.createElement("div");return t.appendChild(n.cloneNode(!0)),t.innerHTML}function v(e){function a(e){function a(n){n=n+y,o=p[n]=p[n]||f(o,t[o.parent.key+y]||o.parent)}var v,s=e,c,o,l;if(l=e.getAttribute(r)){while(s.parentNode&&(s=s.parentNode).nodeType===1&&!(v=s.getAttribute(r)));v!==l&&(s=s.parentNode?s.nodeType===11?0:s.getAttribute(r)||0:0,(o=t[l])||(o=h[l],o=f(o,t[s]||h[s]),o.key=++u,t[u]=o),i&&a(l)),e.removeAttribute(r)}else i&&(o=n.data(e,"tmplItem"))&&(a(o.key),t[o.key]=o,s=n.data(e.parentNode,"tmplItem"),s=s?s.key:0);if(o){c=o;while(c&&c.key!=s)c.nodes.push(e),c=c.parent;delete o._ctnt,delete o._wrap,n.data(e,"tmplItem",o)}}for(var y="_"+i,c,l,p={},o,s=0,v=e.length;s=0;o--)a(l[o]);a(c)}}function tt(n,t,i,r){if(!n)return l.pop();l.push({_:n,tmpl:t,item:this,data:i,options:r})}function it(t,i,r){return n.tmpl(n.template(t),i,r,this)}function k(t,i){var r=t.options||{};return r.wrapped=i,n.tmpl(n.template(t.tmpl),t.data,r,t.item)}function d(t,i){var r=this._wrap;return n.map(n(n.isArray(r)?r.join(""):r).filter(t||"*"),function(n){return i?n.innerText||n.textContent:n.outerHTML||nt(n)})}function g(){var t=this.nodes;n.tmpl(null,null,null,this).insertBefore(t[0]),n(t).remove()}var y=n.fn.domManip,r="_tmplitem",w=/^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /,t={},h={},s,p={key:0,data:{}},u=0,i=0,l=[];n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(r,u){n.fn[r]=function(f){var o=[],h=n(f),l,e,a,v,c=this.length===1&&this[0].parentNode;s=t||{};if(c&&c.nodeType===11&&c.childNodes.length===1&&h.length===1)h[u](this[0]),o=this;else{for(e=0,a=h.length;e0?this.clone(!0):this).get(),n(h[e])[u](l),o=o.concat(l);i=0,o=this.pushStack(o,r,h.selector)}return v=s,s=null,n.tmpl.complete(v),o}}),n.fn.extend({tmpl:function(t,i,r){return n.tmpl(this[0],t,i,r)},tmplItem:function(){return n.tmplItem(this[0])},template:function(t){return n.template(t,this[0])},domManip:function(r,u,f){if(r[0]&&n.isArray(r[0])){var h=n.makeArray(arguments),c=r[0],l=c.length,e=0,o;while(e").join(">").split('"').join(""").split("'").join("'")}}),n.extend(n.tmpl,{tag:{tmpl:{_default:{$2:"null"},open:"if($notnull_1){_=_.concat($item.nest($1,$2));}"},wrap:{_default:{$2:"null"},open:"$item.calls(_,$1,$2);_=[];",close:"call=$item.calls();_=call._.concat($item.wrap(call,_));"},each:{_default:{$2:"$index, $value"},open:"if($notnull_1){$.each($1a,function($2){with(this){",close:"}});}"},"if":{open:"if(($notnull_1) && $1a){",close:"}"},"else":{_default:{$1:"true"},open:"}else if(($notnull_1) && $1a){"},html:{open:"if($notnull_1){_.push($1a);}"},"=":{_default:{$1:"$data"},open:"if($notnull_1){_.push($.encode($1a));}"},"!":{open:""}},complete:function(){t={}},afterManip:function(t,r,u){var f=r.nodeType===11?n.makeArray(r.childNodes):r.nodeType===1?[r]:[];u.call(t,r),v(f),i++}})}(jQuery),$.Class("Spots",{},{init:function(n,t){this.path=n+t+"/skateboard/spot/"},GetAllSpots:function(n){$.getJSON(this.path,function(t){n(t)})},GetSpot:function(n,t){$.getJSON(this.path+n,function(n){t(n)})},SearchSpots:function(n,t,i){$.getJSON(this.path+"search/"+t,{term:n},function(n){i(n)})}}),$.Class("TackyAPI",{},{init:function(n){this.defaultoptions={basepath:"/api/",format:"json"},this.options=$.extend({},this.defaultoptions,n),this.Spots=new Spots(this.options.basepath,this.options.format)}},{})