(function(){window.Modernizr=(function(l,s,g){function j(C,B){return typeof C===B}function m(C,B){return !!~(""+C).indexOf(B)}function i(C,B){return q(prefixes.join(C+";")+(B||""))}function q(B){n.cssText=B}var d="2.0.6",k={},p=true,z=s.documentElement,e=s.head||s.getElementsByTagName("head")[0],A="modernizr",x=s.createElement(A),n=x.style,u=Object.prototype.toString,h={},c={},t={},b,w=[],v=function(G,I,B,D){var E,C,F,H=s.createElement("div");if(parseInt(B,10)){while(B--){F=s.createElement("div");F.id=D?D[B]:A+(B+1);H.appendChild(F)}}E=["&shy;","<style>",G,"</style>"].join("");H.id=A;H.innerHTML+=E;z.appendChild(H);C=I(H,G);H.parentNode.removeChild(H);return !!C};var y=(function(E,D){var C=E.join(""),B=D.length;v(C,function(I,K){var H=s.styleSheets[s.styleSheets.length-1],G=H.cssRules&&H.cssRules[0]?H.cssRules[0].cssText:H.cssText||"",F=I.childNodes,J={};while(B--){J[F[B].id]=F[B]}k.fontface=/src/i.test(G)&&G.indexOf(K.split(" ")[0])===0},B,D)})(['@font-face {font-family:"font";src:url("https://")}'],["fontface"]);h.fontface=function(){return k.fontface};h.localstorage=function(){try{return !!localStorage.getItem}catch(B){return false}};var r=({}).hasOwnProperty,o;if(!j(r,g)&&!j(r.call,g)){o=function(B,C){return r.call(B,C)}}else{o=function(B,C){return((C in B)&&j(B.constructor.prototype[C],g))}}for(var f in h){if(o(h,f)){b=f.toLowerCase();k[b]=h[f]();w.push((k[b]?"":"no-")+b)}}k._version=d;k.testStyles=v;z.className=z.className.replace(/\bno-js\b/,"")+(p?" js "+w.join(" "):"");return k})(this,this.document);(function(b){if(String.prototype.trim===b){String.prototype.trim=function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")}}if(Array.prototype.reduce===b){Array.prototype.reduce=function(d){if(this===void 0||this===null){throw new TypeError()}var g=Object(this),c=g.length>>>0,f=0,e;if(typeof d!="function"){throw new TypeError()}if(c==0&&arguments.length==1){throw new TypeError()}if(arguments.length>=2){e=arguments[1]}else{do{if(f in g){e=g[f++];break}if(++f>=c){throw new TypeError()}}while(true)}while(f<c){if(f in g){e=d.call(b,e,g[f],f,g)}f++}return e}}})();var a=(function(){var j,o,I,b,C=[],l=C.slice,f=window.document,B={},D={},m=f.defaultView.getComputedStyle,L={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},q=/^\s*<(\w+)[^>]*>/,x=[1,9,11],r=["prepend","after","before","append"],y=["append","prepend"],p=f.createElement("table"),E=f.createElement("tr"),h={tr:f.createElement("tbody"),tbody:p,thead:p,tfoot:p,td:E,th:E,"*":f.createElement("div")};function w(M){return({}).toString.call(M)=="[object Function]"}function s(M){return M instanceof Object}function A(M){return M instanceof Array}function u(M){return typeof M.length=="number"}function K(M){return M.filter(function(N){return N!==j&&N!==null})}function v(M){return M.length>0?[].concat.apply([],M):M}function J(M){return M.replace(/-+(.)?/g,function(N,O){return O?O.toUpperCase():""})}function k(M){return M.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function F(M){return M.filter(function(O,N,P){return P.indexOf(O)==N})}function G(M){return M in D?D[M]:(D[M]=new RegExp("(^|\\s)"+M+"(\\s|$)"))}function g(M,N){return(typeof N=="number"&&!L[k(M)])?N+"px":N}function H(O){var M,N;if(!B[O]){M=f.createElement(O);f.body.appendChild(M);N=m(M,"").getPropertyValue("display");M.parentNode.removeChild(M);N=="none"&&(N="block");B[O]=N}return B[O]}function e(O,N){if(N===j){q.test(O)&&RegExp.$1}if(!(N in h)){N="*"}var M=h[N];M.innerHTML=""+O;return l.call(M.childNodes)}function c(N,M){N=N||C;N.__proto__=c.prototype;N.selector=M||"";return N}function z(M,N){if(!M){return c()}if(N!==j){return z(N).find(M)}else{if(w(M)){return z(f).ready(M)}else{if(M instanceof c){return M}else{var O;if(A(M)){O=K(M)}else{if(x.indexOf(M.nodeType)>=0||M===window){O=[M],M=null}else{if(q.test(M)){O=e(M,RegExp.$1),M=null}else{if(M.nodeType&&M.nodeType==3){O=[M]}else{O=I(f,M)}}}}return c(O,M)}}}}z.extend=function(M){l.call(arguments,1).forEach(function(N){for(o in N){M[o]=N[o]}});return M};z.qsa=I=function(N,M){return l.call(N.querySelectorAll(M))};function t(N,M){return M===j?z(N):z(N).filter(M)}function n(O,N,M,P){return w(N)?N.call(O,M,P):N}z.isFunction=w;z.isObject=s;z.isArray=A;z.map=function(Q,R){var P,M=[],O,N;if(u(Q)){for(O=0;O<Q.length;O++){P=R(Q[O],O);if(P!=null){M.push(P)}}}else{for(N in Q){P=R(Q[N],N);if(P!=null){M.push(P)}}}return v(M)};z.each=function(O,P){var N,M;if(u(O)){for(N=0;N<O.length;N++){if(P(N,O[N])===false){return O}}}else{for(M in O){if(P(M,O[M])===false){return O}}}return O};z.fn={forEach:C.forEach,reduce:C.reduce,push:C.push,indexOf:C.indexOf,concat:C.concat,map:function(M){return z.map(this,function(O,N){return M.call(O,N,O)})},slice:function(){return z(l.apply(this,arguments))},ready:function(M){if(f.readyState=="complete"||f.readyState=="loaded"){M()}f.addEventListener("DOMContentLoaded",M,false);return this},get:function(M){return M===j?this:this[M]},size:function(){return this.length},remove:function(){return this.each(function(){if(this.parentNode!=null){this.parentNode.removeChild(this)}})},each:function(M){this.forEach(function(O,N){M.call(O,N,O)});return this},filter:function(M){return z([].filter.call(this,function(N){return I(N.parentNode,M).indexOf(N)>=0}))},end:function(){return this.prevObject||z()},add:function(M,N){return z(F(this.concat(z(M,N))))},is:function(M){return this.length>0&&z(this[0]).filter(M).length>0},not:function(M){var N=[];if(w(M)&&M.call!==j){this.each(function(P){if(!M.call(this,P)){N.push(this)}})}else{var O=typeof M=="string"?this.filter(M):(u(M)&&w(M.item))?l.call(M):z(M);this.forEach(function(P){if(O.indexOf(P)<0){N.push(P)}})}return z(N)},eq:function(M){return M===-1?this.slice(M):this.slice(M,+M+1)},first:function(){return z(this[0])},last:function(){return z(this[this.length-1])},find:function(N){var M;if(this.length==1){M=I(this[0],N)}else{M=this.map(function(){return I(this,N)})}return z(M)},closest:function(M,O){var P=this[0],N=I(O!==j?O:f,M);if(N.length===0){P=null}while(P&&P!==f&&N.indexOf(P)<0){P=P.parentNode}return z(P!==f&&P)},parents:function(M){var O=[],N=this;while(N.length>0){N=z.map(N,function(P){if((P=P.parentNode)&&P!==f&&O.indexOf(P)<0){O.push(P);return P}})}return t(O,M)},parent:function(M){return t(F(this.pluck("parentNode")),M)},children:function(M){return t(this.map(function(){return l.call(this.children)}),M)},siblings:function(M){return t(this.map(function(N,O){return l.call(O.parentNode.children).filter(function(P){return P!==O})}),M)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(M){return this.map(function(){return this[M]})},show:function(){return this.each(function(){this.style.display=="none"&&(this.style.display=null);if(m(this,"").getPropertyValue("display")=="none"){this.style.display=H(this.nodeName)}})},replaceWith:function(M){return this.each(function(){var O=this.parentNode,N=this.nextSibling;z(this).remove();N?z(N).before(M):z(O).append(M)})},wrap:function(M){return this.each(function(){z(this).wrapAll(z(M)[0].cloneNode(false))})},wrapAll:function(M){if(this[0]){z(this[0]).before(M=z(M));M.append(this)}return this},unwrap:function(){this.parent().each(function(){z(this).replaceWith(z(this).children())});return this},hide:function(){return this.css("display","none")},toggle:function(M){return(M===j?this.css("display")=="none":M)?this.show():this.hide()},prev:function(){return z(this.pluck("previousElementSibling"))},next:function(){return z(this.pluck("nextElementSibling"))},html:function(M){return M===j?(this.length>0?this[0].innerHTML:null):this.each(function(N){var O=this.innerHTML;z(this).empty().append(n(this,M,N,O))})},text:function(M){return M===j?(this.length>0?this[0].textContent:null):this.each(function(){this.textContent=M})},attr:function(M,N){return(typeof M=="string"&&N===j)?(this.length>0&&this[0].nodeName=="INPUT"&&this[0].type=="text"&&M=="value")?(this.val()):(this.length>0?this[0].getAttribute(M)||(M in this[0]?this[0][M]:j):j):this.each(function(O){if(s(M)){for(o in M){this.setAttribute(o,M[o])}}else{this.setAttribute(M,n(this,N,O,this.getAttribute(M)))}})},removeAttr:function(M){return this.each(function(){this.removeAttribute(M)})},data:function(M,N){return this.attr("data-"+M,N)},val:function(M){return(M===j)?(this.length>0?this[0].value:null):this.each(function(){this.value=M})},offset:function(){if(this.length==0){return null}var M=this[0].getBoundingClientRect();return{left:M.left+f.body.scrollLeft,top:M.top+f.body.scrollTop,width:M.width,height:M.height}},css:function(O,N){if(N===j&&typeof O=="string"){return this[0].style[J(O)]||m(this[0],"").getPropertyValue(O)}var M="";for(o in O){M+=k(o)+":"+g(o,O[o])+";"}if(typeof O=="string"){M=k(O)+":"+g(O,N)}return this.each(function(){this.style.cssText+=";"+M})},index:function(M){return M?this.indexOf(z(M)[0]):this.parent().children().indexOf(this[0])},hasClass:function(M){if(this.length<1){return false}else{return G(M).test(this[0].className)}},addClass:function(M){return this.each(function(N){b=[];var P=this.className,O=n(this,M,N,P);O.split(/\s+/g).forEach(function(Q){if(!z(this).hasClass(Q)){b.push(Q)}},this);b.length&&(this.className+=(P?" ":"")+b.join(" "))})},removeClass:function(M){return this.each(function(N){if(M===j){return this.className=""}b=this.className;n(this,M,N,b).split(/\s+/g).forEach(function(O){b=b.replace(G(O)," ")});this.className=b.trim()})},toggleClass:function(N,M){return this.each(function(O){var Q=this.className,P=n(this,N,O,Q);((M!==j&&!M)||z(this).hasClass(P))?z(this).removeClass(P):z(this).addClass(P)})}};"filter,add,not,eq,first,last,find,closest,parents,parent,children,siblings".split(",").forEach(function(N){var M=z.fn[N];z.fn[N]=function(){var O=M.apply(this,arguments);O.prevObject=this;return O}});["width","height"].forEach(function(M){z.fn[M]=function(N){var O;if(N===j){return(O=this.offset())&&O[M]}else{return this.css(M,N)}}});function i(M,P,O){var N=(!M||M==3)?P:P.parentNode;N.insertBefore(O,!M?N.firstChild:M==1?P.nextSibling:M==2?P:null)}function d(N,M){M(N);for(o in N.childNodes){d(N.childNodes[o],M)}}r.forEach(function(N,M){z.fn[N]=function(Q){var O=typeof(Q)=="object"?Q:e(Q);if(!("length" in O)){O=[O]}if(O.length<1){return this}var P=this.length,R=P>1,S=M<2;return this.each(function(T,W){for(var U=0;U<O.length;U++){var V=O[S?O.length-U-1:U];d(V,function(X){if(X.nodeName!=null&&X.nodeName.toUpperCase()==="SCRIPT"){window["eval"].call(window,X.innerHTML)}});if(R&&T<P-1){V=V.cloneNode(true)}i(M,W,V)}})}});y.forEach(function(M){z.fn[M+"To"]=function(N){if(typeof(N)!="object"){N=z(N)}N[M](this);return this}});c.prototype=z.fn;return z})();"$" in window||(window.$=a);(function(h){var n=h.qsa,c={},m=1;function l(p){return p._zid||(p._zid=m++)}function d(q,s,r,p){s=f(s);if(s.ns){var t=k(s.ns)}return(c[l(q)]||[]).filter(function(u){return u&&(!s.e||u.e==s.e)&&(!s.ns||t.test(u.ns))&&(!r||u.fn==r)&&(!p||u.sel==p)})}function f(p){var q=(""+p).split(".");return{e:q[0],ns:q.slice(1).sort().join(" ")}}function k(p){return new RegExp("(?:^| )"+p.replace(" "," .* ?")+"(?: |$)")}function o(r,q,t,p,s){var v=l(r),u=(c[v]||(c[v]=[]));q.split(/\s/).forEach(function(x){var z=s||t;var y=function(B){var A=z.apply(r,[B].concat(B.data));if(A===false){B.preventDefault()}return A};var w=h.extend(f(x),{fn:t,proxy:y,sel:p,del:s,i:u.length});u.push(w);r.addEventListener(w.e,y,false)})}function g(r,q,s,p){var t=l(r);(q||"").split(/\s/).forEach(function(u){d(r,u,s,p).forEach(function(v){delete c[t][v.i];r.removeEventListener(v.e,v.proxy,false)})})}h.event={add:o,remove:g};h.fn.bind=function(p,q){return this.each(function(){o(this,p,q)})};h.fn.unbind=function(p,q){return this.each(function(){g(this,p,q)})};h.fn.one=function(p,q){return this.each(function(){var r=this;o(this,p,function s(t){q.call(r,t);g(r,p,arguments.callee)})})};var e=function(){return true},b=function(){return false},j={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};function i(q){var p=h.extend({originalEvent:q},q);h.each(j,function(s,r){p[s]=function(){this[r]=e;return q[s].apply(q,arguments)};p[r]=b});return p}h.fn.delegate=function(p,q,r){return this.each(function(t,s){o(s,q,r,p,function(x,v){var w=x.target,u=n(s,p);while(w&&u.indexOf(w)<0){w=w.parentNode}if(w&&!(w===s)&&!(w===document)){r.call(w,h.extend(i(x),{currentTarget:w,liveFired:s}),v)}})})};h.fn.undelegate=function(p,q,r){return this.each(function(){g(this,q,r,p)})};h.fn.live=function(p,q){h(document.body).delegate(this.selector,p,q);return this};h.fn.die=function(p,q){h(document.body).undelegate(this.selector,p,q);return this};h.fn.trigger=function(p,q){if(typeof p=="string"){p=h.Event(p)}p.data=q;return this.each(function(){this.dispatchEvent(p)})};h.fn.triggerHandler=function(q,r){var s,p;this.each(function(u,t){s=i(typeof q=="string"?h.Event(q):q);s.data=r;s.target=t;h.each(d(t,q.type||q),function(v,w){p=w.proxy(s);if(s.isImmediatePropagationStopped()){return false}})});return p};("focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout change select keydown keypress keyup error").split(" ").forEach(function(p){h.fn[p]=function(q){return this.bind(p,q)}});["focus","blur"].forEach(function(p){h.fn[p]=function(r){if(r){this.bind(p,r)}else{if(this.length){try{this.get(0)[p]()}catch(q){}}}return this}});h.Event=function(q,p){var r=document.createEvent("Events");if(p){h.extend(r,p)}r.initEvent(q,!(p&&p.bubbles===false),true);return r}})(a);(function(d){function c(i){var i=i,k={},f=i.match(/(Android)\s+([\d.]+)/),e=i.match(/(iPad).*OS\s([\d_]+)/),l=!e&&i.match(/(iPhone\sOS)\s([\d_]+)/),h=i.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),j=h&&i.match(/TouchPad/),g=i.match(/(BlackBerry).*Version\/([\d.]+)/);if(f){k.android=true,k.version=f[2]}if(l){k.ios=true,k.version=l[2].replace(/_/g,"."),k.iphone=true}if(e){k.ios=true,k.version=e[2].replace(/_/g,"."),k.ipad=true}if(h){k.webos=true,k.version=h[2]}if(j){k.touchpad=true}if(g){k.blackberry=true,k.version=g[2]}return k}d.os=c(navigator.userAgent);d.__detect=c;var b=navigator.userAgent.match(/WebKit\/([\d.]+)/);d.browser=b?{webkit:true,version:b[1]}:{webkit:false}})(a);(function(b,d){var c=["scale","scaleX","scaleY","translate","translateX","translateY","translate3d","skew","skewX","skewY","rotate","rotateX","rotateY","rotateZ","rotate3d","matrix"];b.fn.anim=function(j,g,f,l){var i=[],m={},k,h=this,e;for(k in j){if(c.indexOf(k)>=0){i.push(k+"("+j[k]+")")}else{m[k]=j[k]}}e=function(){h.css({"-webkit-transition":"none"});l&&l()};if(g>0){this.one("webkitTransitionEnd",e)}else{setTimeout(e,0)}if(i.length>0){m["-webkit-transform"]=i.join(" ")}m["-webkit-transition"]="all "+(g!==d?g:0.5)+"s "+(f||"");setTimeout(function(){h.css(m)},0);return this}})(a);(function(e){var f=0,b=e.isObject,c;function d(){}e.ajaxJSONP=function(h){var i="jsonp"+ ++f,g=document.createElement("script");window[i]=function(j){h.success(j);delete window[i]};g.src=h.url.replace(/=\?/,"="+i);e("head").append(g)};e.ajaxSettings={type:"GET",beforeSend:d,success:d,error:d,complete:d,accepts:{script:"text/javascript, application/javascript",json:"application/json",xml:"application/xml, text/xml",html:"text/html",text:"text/plain"}};e.ajax=function(g){g=g||{};var h=e.extend({},g);for(c in e.ajaxSettings){if(!h[c]){h[c]=e.ajaxSettings[c]}}if(/=\?/.test(h.url)){return e.ajaxJSONP(h)}if(!h.url){h.url=window.location.toString()}if(h.data&&!h.contentType){h.contentType="application/x-www-form-urlencoded"}if(b(h.data)){h.data=e.param(h.data)}if(h.type.match(/get/i)&&h.data){var k=h.data;if(h.url.match(/\?.*=/)){k="&"+k}else{if(k[0]!="?"){k="?"+k}}h.url+=k}var i=h.accepts[h.dataType],j=new XMLHttpRequest();h.headers=e.extend({"X-Requested-With":"XMLHttpRequest"},h.headers||{});if(i){h.headers.Accept=i}j.onreadystatechange=function(){if(j.readyState==4){var l,m=false;if((j.status>=200&&j.status<300)||j.status==0){if(i=="application/json"&&!(j.responseText=="")){try{l=JSON.parse(j.responseText)}catch(n){m=n}}else{l=j.responseText}if(m){h.error(j,"parsererror",m)}else{h.success(l,"success",j)}}else{m=true;h.error(j,"error")}h.complete(j,m?"error":"success")}};j.open(h.type,h.url,true);if(h.beforeSend(j,h)===false){j.abort();return false}if(h.contentType){h.headers["Content-Type"]=h.contentType}for(name in h.headers){j.setRequestHeader(name,h.headers[name])}j.send(h.data);return j};e.get=function(g,h){e.ajax({url:g,success:h})};e.post=function(h,i,j,g){if(e.isFunction(i)){g=g||j,j=i,i=null}e.ajax({type:"POST",url:h,data:i,success:j,dataType:g})};e.getJSON=function(g,h){e.ajax({url:g,success:h,dataType:"json"})};e.fn.load=function(i,k){if(!this.length){return this}var h=this,j=i.split(/\s/),g;if(j.length>1){i=j[0],g=j[1]}e.get(i,function(l){h.html(g?e(document.createElement("div")).html(l).find(g).html():l);k&&k()});return this};e.param=function(k,i){var g=[],j=function(l,m){g.push(encodeURIComponent(i?i+"["+l+"]":l)+"="+encodeURIComponent(m))},h=e.isArray(k);for(c in k){if(b(k[c])){g.push(e.param(k[c],(i?i+"["+c+"]":c)))}else{j(h?"":c,k[c])}}return g.join("&").replace("%20","+")}})(a);(function(b){b.fn.serializeArray=function(){var c=[],d;b(Array.prototype.slice.call(this.get(0).elements)).each(function(){d=b(this);if((d.attr("type")!=="radio"||d.is(":checked"))&&!(d.attr("type")==="checkbox"&&!d.is(":checked"))){c.push({name:d.attr("name"),value:d.val()})}});return c};b.fn.serialize=function(){var c=[];this.serializeArray().forEach(function(d){c.push(encodeURIComponent(d.name)+"="+encodeURIComponent(d.value))});return c.join("&")};b.fn.submit=function(d){if(d){this.bind("submit",d)}else{if(this.length){var c=b.Event("submit");this.eq(0).trigger(c);if(!c.defaultPrevented){this.get(0).submit()}}}return this}})(a);(function(g){var h={},d;function b(i){return"tagName" in i?i:i.parentNode}function c(j,i,l,k){var n=Math.abs(j-i),m=Math.abs(l-k);if(n>=m){return(j-i>0?"Left":"Right")}else{return(l-k>0?"Up":"Down")}}var f=750;function e(){if(h.last&&(Date.now()-h.last>=f)){g(h.target).trigger("longTap");h={}}}g(document).ready(function(){g(document.body).bind("touchstart",function(j){var i=Date.now(),k=i-(h.last||i);h.target=b(j.touches[0].target);d&&clearTimeout(d);h.x1=j.touches[0].pageX;h.y1=j.touches[0].pageY;if(k>0&&k<=250){h.isDoubleTap=true}h.last=i;setTimeout(e,f)}).bind("touchmove",function(i){h.x2=i.touches[0].pageX;h.y2=i.touches[0].pageY}).bind("touchend",function(i){if(h.isDoubleTap){g(h.target).trigger("doubleTap");h={}}else{if(h.x2>0||h.y2>0){(Math.abs(h.x1-h.x2)>30||Math.abs(h.y1-h.y2)>30)&&g(h.target).trigger("swipe")&&g(h.target).trigger("swipe"+(c(h.x1,h.x2,h.y1,h.y2)));h.x1=h.x2=h.y1=h.y2=h.last=0}else{if("last" in h){d=setTimeout(function(){d=null;g(h.target).trigger("tap");h={}},250)}}}}).bind("touchcancel",function(){h={}})});["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap","longTap"].forEach(function(i){g.fn[i]=function(j){return this.bind(i,j)}})})(a);(function(){$(document).ready(function(){$("#id_0-line").bind("change",function(c){var b;b=$(c.currentTarget).val();return $.getJSON("../../station/"+b+"/",function(e){var d;d=$("#id_0-station").html("");return $(e).each(function(f,h){var g;g=$('<option value="'+h.pk+'">'+h.fields.name+"</option>");return d.append(g)})})});$(".tab > a").live("click",function(d){var b,c,e;e=$(d.currentTarget);c=e.parents(".tab");if(c.hasClass("tab-reply")){d.preventDefault();$("#reply").toggleClass("hidden");$(".tab-drop").each(function(f,g){return $(g).addClass("hidden")});return}b=e.siblings(".tab-drop");if(b.length){d.preventDefault();$(".tab-drop").each(function(f,g){if(!g.isSameNode(b[0])){return $(g).addClass("hidden")}});b.toggleClass("hidden");return $("input:first-child",b).each(function(g,f){return f.focus()})}})})}).call(this)}).call(this);
