// Generated by CoffeeScript 1.3.3 (function(){var e;(function(e){var t,n;return(t=window.debug)==null&&(t={log:function(){}}),n={init:function(t){var r;return r=e.extend({selector:".content",tolerance:0},t),this.each(function(){var t;return t=e(this),t.data(r),e(window).on("scroll",null,t,n.handleScroll)})},align:function(e){},handleScroll:function(e){var t;return t=e.data,n.findActiveElement(e)},findActiveElement:function(t){var n,r,i,s;return r=t.data,s=r.data(),n=r.find(s.selector).filter(":visible"),i=null,n.each(function(t,n){var r;r=e(n).viewportOffset().top;if(r>-s.tolerance)return i=n,!1}),i!==s.activeElement&&r.trigger("activify.newActiveElement",[i]),s.activeElement=i,clearTimeout(s.scrollTimeout),s.scrollTimeout=setTimeout(function(){return e("html, body").animate({scrollTop:e(i).offset().top},"slow")},1e3),r.data(s)}},e.fn.viewportOffset=function(){var t,n,r;return n=this.offset(),r=n.top-e(window).scrollTop(),t=n.left-e(window).scrollLeft(),{top:r,left:t}},e.fn.visibleKarma=function(){var t,n,r,i,s,o;return t={document:{viewport:{top:null,left:null},element:{top:null,left:null}},viewport:{width:null,height:null,area:null,element:{top:null,left:null},visible:{top:null,right:null,bottom:null,left:null,area:null,ratio:null}},element:{width:null,height:null}},n=e(window).height()*e(window).width(),t.document.viewport.top=e(window).scrollTop(),t.document.viewport.left=e(window).scrollLeft(),t.viewport.width=e(window).width(),t.viewport.height=e(window).height(),t.viewport.area=t.viewport.width*t.viewport.height,t.document.element=this.offset(),t.viewport.element.top=t.document.element.top-t.document.viewport.top,t.viewport.element.left=t.document.element.left-t.document.viewport.left,t.element.width=this.width(),t.element.height=this.height(),r=t.viewport.element.left>0?t.viewport.element.left:0,s=t.viewport.element.top>0?t.viewport.element.top:0,i=t.document.element.left+t.element.width-Math.abs(t.viewport.element.top),0>i&&(i=0),t.viewport.widtho&&(o=0),t.viewport.heighto.get(0).scrollWidth)return;return o.animate({scrollLeft:t})},s=function(){var e,t;return e=o.scrollLeft()/o.width(),t=o.width()*--e,0>t&&(t=0),o.animate({scrollLeft:t})},o.css("overflow","hidden"),u=o.height(),f=o.width(),a=r.arrow.width/2,t=e('
').css("width",r.arrow.width).css("height",u).css("cursor","pointer").css("margin-left",-a).click(s),n=e('
').css("width",r.arrow.width).css("height",u).css("margin-left",f+a).css("cursor","pointer").css("margin-top",-u).click(i),o.css("margin-left",a).before(t).after(n);if(!0===r.marginTop)return o.css("margin-top",-u)})}},e.fn.arrowscrollers=function(n){return t[n]!=null?t[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"==typeof n||n!=null?t.init.apply(this,arguments):e.error("Method "+n+" does not exist on arrowscrollers.")}}(jQuery),function(e){var t,n;return 0==((t=window.debug)!=null)&&(t={log:function(){}}),n={init:function(t){var n,r=this;return n=e.extend({selectors:{background:".background",container:".container",content:".content",header:".header"}},t),e(window).on("resize scroll",function(){return clearTimeout(r.data("resizeTimeout")),r.data({resizeTimeout:setTimeout(function(){return r.fillify("resize",n)},200)})}),this.fillify("resize",n)},resize:function(t){return this.each(function(r,i){var s,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w,E;d=e(i),w=n.getWindowHeight(),E=n.getWindowWidth(),g=d.data("windowWidth"),m=d.data("windowHeight");if(w===m&&E===g)return!0;d.data({windowWidth:E,windowHeight:w}),s=d.find(""+t.selectors.background+" img"),0s.width())return s.width(b).height(b/o)}})},getWindowHeight:function(){return window.innerHeight?window.innerHeight:e(window).height()},getWindowWidth:function(){return e(window).width()},getContainerWidth:function(e,t){return e.find(""+t.selectors.container).width()},getContentElement:function(e,t){return e.find(""+t.selectors.container+" "+t.selectors.content)},getContentHeight:function(e,t){var r,i,s,o;return r=e.find(""+t.selectors.container).height(),o=e.find(""+t.selectors.container+" "+t.selectors.header).height(),i=n.getContentElement(e,t),s=i.outerHeight()-i.height(),r-o-s}},e.fn.fillify=function(t){return n[t]?n[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"==typeof t||t==null?n.init.apply(this,arguments):e.error("Method "+t+" does not exist.")}}(jQuery),function(e){var t,n;return(t=window.debug)==null&&(t={log:function(){}}),n={init:function(t){var r;return r=e.extend({openLayersURL:"http://openlayers.org/api/OpenLayers.js",projection:"EPSG:4326",container:this,elementId:"map",location:null,zoom:0,namespace:"mapify",layerSwitcher:!0,cache:!0,title:"Map"},t),e.ajax(r.openLayersURL,{cache:r.cache,context:this,dataType:"script",complete:function(e,t){},error:function(e,t,n){},success:function(e,t,i){return n.create.apply(this,[r])}}),this},create:function(t){return this.each(function(n,r){var i,s,o,u,a,f,l,c;return i=e(r),s=t.elementId,o=t.location,c=t.zoom,f=t.projection,l=t.title,e('
').appendTo(i),u=new OpenLayers.Map(s,{maxResolution:"auto"}),a=new OpenLayers.Layer.OSM(l),u.addLayer(a),o!=null&&o.latitude!=null&&o.longitude!=null&&u.setCenter((new OpenLayers.LonLat(o.longitude,o.latitude)).transform(new OpenLayers.Projection(f),u.getProjectionObject())),0===c?u.zoomToMaxExtent():u.zoomTo(c),!0===t.layerSwitcher&&u.addControl(new OpenLayers.Control.LayerSwitcher),i.data({map:u,options:t}),e(r).trigger(""+t.namespace+".create")})},geoRSS:function(t){var n,r,i,s,o,u;return r=e.extend({thumbnail:{tag:"thumbnail",attribute:"url"},className:null,radius:{"default":15,select:25},url:null,title:"GeoRSS",id:"id",externalGraphic:{url:null,width:null,height:null,select:{width:null,height:null}}},t),r.url==null&&e.error("url has not been set."),((i=r.thumbnail)!=null?i.tag:void 0)==null&&e.error("thumbnail tag has not been set."),((s=r.thumbnail)!=null?s.attribute:void 0)==null&&e.error("thumbnail attribute has not been set."),r.id==null&&e.error("id attribute has not been set."),r.title==null&&e.error("title has not been set."),((o=r.radius)!=null?o["default"]:void 0)==null&&e.error("radius default has not been set."),((u=r.radius)!=null?u.select:void 0)==null&&e.error("radius select has not been set."),n=[],this.each(function(n,i){var s,o,u,a;return o=e(i).data("map"),o==null&&e.error("this element is not mapified."),a=new OpenLayers.Style({externalGraphic:r.externalGraphic.url,graphicWidth:r.externalGraphic.width,graphicHeight:r.externalGraphic.height,graphicXOffset:-r.externalGraphic.width/2,graphicYOffset:-r.externalGraphic.height/2}),u=new OpenLayers.Style({graphicWidth:r.externalGraphic.select.width,graphicHeight:r.externalGraphic.select.height,graphicXOffset:-r.externalGraphic.select.width/2,graphicYOffset:-r.externalGraphic.select.height/2}),s=new OpenLayers.Layer.GML(r.title,r.url,{format:OpenLayers.Format.GeoRSS,formatOptions:{createFeatureFromItem:function(e){var t,n,i;return t=OpenLayers.Format.GeoRSS.prototype.createFeatureFromItem.apply(this,arguments),t.attributes.link=escape(this.getElementsByTagNameNS(e,"*","link")[0].getAttribute("href")),t.attributes.id=this.getElementsByTagNameNS(e,"*",r.id)[0].textContent,t.attributes.thumbnail=this.getElementsByTagNameNS(e,"*",r.thumbnail.tag)[0].getAttribute(r.thumbnail.attribute),t.attributes.summary=0').width(n.getWidth()),f=e('
').appendTo(g).click(function(){return"BUFFERING"===n.getState()||"PLAYING"===n.getState()?n.pause(!0):n.play(!0)}),m=e('
').appendTo(g),l=e('
').appendTo(m).click(function(e){var t,r,i,s;return r=l.width(),s=e.pageX-l.offset().left,t=n.getDuration(),i=s*(t/r),n.seek(i)}),e('
').appendTo(g),w=e('
').appendTo(g).click(function(){return n.setMute()}),!0===n.getMute()&&w.addClass("mute"),E=e('
').appendTo(g),E.find("#volume-slider").slider({min:0,max:100,range:"min",value:n.getVolume(),slide:function(e,t){return n.setVolume(t.value)}}),e('
').appendTo(g),a=e('
').appendTo(g).click(function(){return s.trigger("playertools.willresize","normal"),n.resize(r.screens.normal.width,r.screens.normal.height),a.addClass("selected"),u.removeClass("selected"),o.removeClass("selected"),s.trigger("playertools.resize","normal")}),e(document.documentElement).keyup(function(e){if(27===e.keyCode)return a.trigger("click")}),u=e('
').appendTo(g).click(function(){return s.trigger("playertools.willresize","large"),n.resize(r.screens.larger.width,r.screens.larger.height),u.addClass("selected"),a.removeClass("selected"),o.removeClass("selected"),s.trigger("playertools.resize","large")}),o=e('
').appendTo(g).click(function(){var t,r;return s.trigger("playertools.willresize","full"),r=e(window).width(),t=e(window).height()-g.height()-s.position().top,n.resize(r,t),o.addClass("selected"),u.removeClass("selected"),a.removeClass("selected"),s.trigger("playertools.resize","full")}),c=e('
').appendTo(g),c.mouseenter(function(e){var t,n;return n=c.width(),c.find("li").show(),t=c.width()-n,c.css("margin-left",-t)}).mouseleave(function(e){return c.find("li").not(".selected").hide(),c.css("margin-left",0)}).find(".item").click(function(t){var i,s,o,u,a;return o=e(t.target),o.addClass("selected").siblings().removeClass("selected"),c.trigger("mouseleave"),a=r.urls,s=o.data("quality"),u=a[s],i=n.getPosition(),n.load({file:u,start:i})}).not(".selected").hide(),e('
').appendTo(g),h=e('').appendTo(g).click(function(){return playertools.share()}),d=function(){return f.removeClass("play").addClass("pause")},v=function(){return f.removeClass("pause").addClass("play")},b=function(e){if(S.updateProgressTimeout!=null)return;return S.updateProgressTimeout=setTimeout(function(){var t;return t=m.children(".progress-container").width(),m.find(".progress").width(e.position*(t/e.duration)),S.updateProgressTimeout=null,s.data({position:e.position})},500)},y=function(e){return!0===e.mute?w.addClass("mute"):w.removeClass("mute")},p=function(){var t,r,i;return i=r=n.getWidth(),g.width(r),g.children().not(".slider.time").each(function(t,n){return i-=e(n).outerWidth(!0)}),m.width(i),t=parseInt(l.css("margin-left"),10)+parseInt(l.css("margin-right")),l.width(m.width()-t),b({position:n.getPosition(),duration:n.getDuration()})},s.after(g),p(),n.onPlay(function(){return d()}).onPause(function(){return v()}).onBuffer(function(){return d()}).onIdle(function(){return v()}).onResize(function(){return p()}).onTime(function(){return b.apply(null,arguments)}).onMute(function(){return y.apply(null,arguments)}),e(window).unload(function(){return s.playertools("log")})})},log:function(){return this.each(function(t,n){var r,i,s;return r=e(n),i=r.data("position"),s=r.data("settings"),typeof Webtrends!="undefined"&&Webtrends!==null?Webtrends.multiTrack({args:{"DCS.dcssip":s.webtrends.host,"DCS.dcsuri":s.webtrends.path,"WT.clip_n":s.webtrends.title,"WT.dl":"7","WT.clip_ev":""+i+"SEC"}}):void 0})},close:function(){return this.playertools("log")}},e.fn.playertools=function(t){return n[t]!=null?n[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"==typeof t||t==null?n.init.apply(this,arguments):e.error("Method "+t+" does not exist on playertools")}}(jQuery),function(e){var t;return e.fn.contentWidth=function(){return Math.max.apply(Math,this.children().map(function(){return e(this).width()}).get())},e.fn.maxScrollLeft=function(){return this.get(0).scrollWidth-this.width()},t={init:function(t){return this.each(function(t,n){var r,i,s,o,u,a,f,l,c,h,p;return f="scroller",a="scrollbar",r=e(n),!1===(typeof Modernizr!="undefined"&&Modernizr!==null?Modernizr.touch:void 0)&&r.css("overflow","hidden"),r.children(""+a).remove(),n.scrollWidth<=r.width()?!0:(i=e('
').appendTo(r),s=e('
').appendTo(i),r.addClass("scroll-container"),i.css("left",r.scrollLeft()),i.css("width",r.width()),l=r.offset().left,h=s.offset().top,c=l+r.width()-s.width(),p=h,o=[l,h,c,p],u=function(e,t,n){var r,i,s;return s=t.width()-n.width(),i=e/s,r=t.maxScrollLeft(),i*r},s.draggable({axis:"x",containment:o,start:function(t,n){var r;return r=e(t.target),r.data("dragging",!0)},stop:function(t,n){var r;return r=e(t.target),r.data("dragging",!1)},drag:function(t,n){var o,a;return s=e(t.target),i=s.parent(),r=i.parent(),a=n.offset.left-r.offset().left,o=u(a,r,s),"hidden"===r.css("overflow")&&i.css("left",o),r.scrollLeft(o)}}),r.mousewheel(function(t,n,o,u){var l,c;return l=e(t.target),r=l.hasClass("scroll-container")?l:l.parents(".scroll-container"),i=r.children("."+a),s=i.children("."+f),c=r.scrollLeft()+o*10,0>c&&(c=0),r.maxScrollLeft()
',e(i).appendTo(r),o=r.find(".scrollbar.vertical .scroller"),o.draggable({axis:"y",containment:"parent",drag:function(e,t){return r.scrollTop((r.get(0).scrollHeight-r.height())*(t.position.top/(r.get(0).scrollHeight-o.height())))},start:function(){return r.data({dragging:!0})},stop:function(){return r.data({dragging:!1})}}),r.scroll(function(e){if(r.data("dragging"))return;return r.scrollify("alignScroller")}),r.resize(function(){return r.scrollify("resize").children().resize(function(){return r.scrollify("resize")})})})},alignScroller:function(){return this.each(function(t,n){var r,i;return r=e(n),i=r.find(".scrollbar.vertical .scroller"),i.css("top",(r.get(0).scrollHeight-i.height())*(r.scrollTop()/(r.get(0).scrollHeight-r.height())))})},resize:function(){return this.each(function(t,n){var r;return r=e(n),r.children(".scrollbar").css("height",r.get(0).scrollHeight),r.scrollify("alignScroller")})}},e.fn.scrollify=function(t){return n[t]!=null?n[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"==typeof t||t==null?n.init.apply(this,arguments):e.error("Method "+t+" does not exist on scrollbars")}}),function(e){return window.slidingMenu=function(t,n,r){var i,s;return r==null&&(r=null),(i=window.debug)==null&&(i={log:function(){}}),s={containerSelector:t,menuSelector:n,center:function(){var t,n=this;return t=this.getWidth(),e(this.menuSelector).each(function(n,r){var i,s,o;return i=e(r).width(),o=Math.floor((t-i)/2),s=t%2,e(r).animate({"margin-left":o+s,"margin-right":o})}),this.slideTo()},slideTo:function(t){t==null&&(t=this.currentIndex);if(0>t&&t>this.menuCount()-1)return;return e(this.containerSelector).css("margin-left",-this.getWidth()*t),this.currentIndex=t},slideNext:function(){if(this.menuCount()-1<=this.currentIndex)return;return this.slideTo(++this.currentIndex)},slidePrevious:function(){if(0>=this.currentIndex)return;return this.slideTo(--this.currentIndex)},currentIndex:0,menuCount:function(){return e(this.menuSelector).length},getWidth:function(){var t;return t=e(window).width(),null!==r&&t