var CL=CL||{};CL.vars={"isFirefox":/firefox/i.test(navigator.userAgent),"isAndroid":/android/i.test(navigator.userAgent),"isIE11":!(window.ActiveXObject)&&"ActiveXObject"in window,"isIE10":$("html").hasClass("ie10"),"isIE9":$("html").hasClass("ie9"),"isIE8":$("html").hasClass("ie8"),"environment":$("body").data("environment")} CL.utilities={"scrollTop":function(){var natural=$(window).scrollTop(),max=$(document).height()-$(window).height(),min=0;return(naturalmin?natural:min):max);},"scrollTo":function(destination,animationDuration){var animationDuration=animationDuration||250;$("html, body").animate({"scrollTop":destination},animationDuration);},"isMobile":function(){return $(document).width()<686;},"isTouch":function(){return $("html").hasClass("touch");},"getRelativePath":function(str){return"/"+str.replace(/^(?:\/\/|[^\/]+)*\//,"");},upcase:function(str){return str.charAt(0).toUpperCase()+str.substring(1);},lockBody:function(){$("body").addClass("overflow-hidden");},unlockBody:function(){$("body").removeClass("overflow-hidden");},lockWrapper:function(){$("#wrapper").addClass("overflow-hidden");},unlockWrapper:function(){$("#wrapper").removeClass("overflow-hidden");},track:function(type,params){if(window._gat){if(type=="pageView"){var trackerID=(CL.vars.environment==="PRODUCTION")?"UA-20596367-6":"UA-38413710-2",pageTracker=_gat._createTracker(trackerID);pageTracker._trackPageview(params);}else if(type==="event"){_gaq.push(['_trackEvent',params[0],params[1],params[2],params[3]]);}}}} CL.View=Backbone.View.extend({tearDown:function(){$(window,document).off(".view-"+this.cid);$("body").off(".view-"+this.cid);this.undelegateEvents();this.$el.removeData().off();this.remove();}});CL.Views={};CL.Models={};CL.Collections={};CL.Models.ViewState=Backbone.Model.extend();$(function(){CL.browser=new CL.Views.Browser({"el":$("html")});$("body").on("click","a[data-track-event-params]",function(ev){var $link=$(this),linkData=$(this).data("track-event-params"),href=$link.attr("href");CL.utilities.track("event",linkData);if(href&&href!="#"&&!CL.router){ev.preventDefault();setTimeout(function(){document.location.href=href;},100);}});FastClick.attach(document.body);setTimeout(function(){$(window).trigger("resize");},50);});