
window.log=function(){log.history=log.history||[];log.history.push(arguments);if(this.console){arguments.callee=arguments.callee.caller;var a=[].slice.call(arguments);typeof console.log==="object"?log.apply.call(console.log,console,a):console.log.apply(console,a)}};
(function(a){function d(){}for(var c="assert,clear,count,debug,dir,dirxml,error,exception,firebug,group,groupCollapsed,groupEnd,info,log,memoryProfile,memoryProfileEnd,profile,profileEnd,table,time,timeEnd,timeStamp,trace,warn".split(","),e;e=c.pop();)a[e]=a[e]||d})(function(){try{return console.log(),window.console}catch(a){return window.console={}}}());
(function(a){var d;a(document).ready(function(){a.support.transition=function(){var b=(document.body||document.documentElement).style;return b.transition!==void 0||b.WebkitTransition!==void 0||b.MozTransition!==void 0||b.MsTransition!==void 0||b.OTransition!==void 0}();a.support.transition&&(d="TransitionEnd",a.browser.webkit?d="webkitTransitionEnd":a.browser.mozilla?d="transitionend":a.browser.opera&&(d="oTransitionEnd"))});var c=function(b,c){this.$element=a(b);this.options=c;this.enabled=!0;this.fixTitle()};
c.prototype={show:function(){var b,c,d,j,f,g;if(this.getTitle()&&this.enabled){f=this.tip();this.setContent();this.options.animate&&f.addClass("fade");f.remove().css({top:0,left:0,display:"block"}).prependTo(document.body);b=a.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight});c=f[0].offsetWidth;d=f[0].offsetHeight;j=e.maybeCall(this.options.placement,this.$element[0]);switch(j){case "below":g={top:b.top+b.height+this.options.offset,left:b.left+
b.width/2-c/2};break;case "above":g={top:b.top-d-this.options.offset,left:b.left+b.width/2-c/2};break;case "left":g={top:b.top+b.height/2-d/2,left:b.left-c-this.options.offset};break;case "right":g={top:b.top+b.height/2-d/2,left:b.left+b.width+this.options.offset}}f.css(g).addClass(j).addClass("in")}},setContent:function(){var b=this.tip();b.find(".twipsy-inner")[this.options.html?"html":"text"](this.getTitle());b[0].className="twipsy"},hide:function(){function b(){c.remove()}var c=this.tip();c.removeClass("in");
a.support.transition&&this.$tip.hasClass("fade")?c.bind(d,b):b()},fixTitle:function(){var b=this.$element;if(b.attr("title")||typeof b.attr("data-original-title")!="string")b.attr("data-original-title",b.attr("title")||"").removeAttr("title")},getTitle:function(){var b,c=this.$element,a=this.options;this.fixTitle();typeof a.title=="string"?b=c.attr(a.title=="title"?"data-original-title":a.title):typeof a.title=="function"&&(b=a.title.call(c[0]));return(b=(""+b).replace(/(^\s*|\s*$)/,""))||a.fallback},
tip:function(){if(!this.$tip)this.$tip=a('<div class="twipsy" />').html('<div class="twipsy-arrow"></div><div class="twipsy-inner"></div>');return this.$tip},validate:function(){if(!this.$element[0].parentNode)this.hide(),this.options=this.$element=null},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}};var e={maybeCall:function(b,a){return typeof b=="function"?b.call(a):b}};a.fn.twipsy=function(b){a.fn.twipsy.initWith.call(this,
b,c,"twipsy");return this};a.fn.twipsy.initWith=function(b,c,d){function e(i){var f=a.data(i,d);f||(f=new c(i,a.fn.twipsy.elementOptions(i,b)),a.data(i,d,f));return f}function f(){var a=e(this);a.hoverState="in";b.delayIn==0?a.show():(a.fixTitle(),setTimeout(function(){a.hoverState=="in"&&a.show()},b.delayIn))}function g(){var a=e(this);a.hoverState="out";b.delayOut==0?a.hide():setTimeout(function(){a.hoverState=="out"&&a.hide()},b.delayOut)}var h,k,l;if(b===!0)return this.data(d);else if(typeof b==
"string"){if(h=this.data(d))h[b]();return this}b=a.extend({},a.fn[d].defaults,b);b.live||this.each(function(){e(this)});b.trigger!="manual"&&(h=b.live?"live":"bind",k=b.trigger=="hover"?"mouseenter":"focus",l=b.trigger=="hover"?"mouseleave":"blur",this[h](k,f)[h](l,g));return this};a.fn.twipsy.Twipsy=c;a.fn.twipsy.defaults={animate:!0,delayIn:0,delayOut:0,fallback:"",placement:"above",html:!1,live:!1,offset:0,title:"title",trigger:"hover"};a.fn.twipsy.elementOptions=function(b,c){return a.metadata?
a.extend({},c,a(b).metadata()):c}})(window.jQuery||window.ender);
(function(a){var d=function(c,d){this.$element=a(c);this.options=d;this.enabled=!0;this.fixTitle()};d.prototype=a.extend({},a.fn.twipsy.Twipsy.prototype,{setContent:function(){var a=this.tip();a.find(".title")[this.options.html?"html":"text"](this.getTitle());a.find(".content p")[this.options.html?"html":"text"](this.getContent());a[0].className="popover"},getContent:function(){var a=this.$element,d=this.options;if(typeof this.options.content=="string")var b=a.attr(d.content);else typeof this.options.content==
"function"&&(b=this.options.content.call(this.$element[0]));return b},tip:function(){if(!this.$tip)this.$tip=a('<div class="popover" />').html('<div class="arrow"></div><div class="inner"><h3 class="title"></h3><div class="content"><p></p></div></div>');return this.$tip}});a.fn.popover=function(c){typeof c=="object"&&(c=a.extend({},a.fn.popover.defaults,c));a.fn.twipsy.initWith.call(this,c,d,"popover");return this};a.fn.popover.defaults=a.extend({},a.fn.twipsy.defaults,{content:"data-content",placement:"right"})})(window.jQuery||
window.ender);
jQuery.cookie=function(a,d,c){if(typeof d!="undefined"){c=c||{};if(d===null)d="",c.expires=-1;var e="";if(c.expires&&(typeof c.expires=="number"||c.expires.toUTCString))typeof c.expires=="number"?(e=new Date,e.setTime(e.getTime()+c.expires*864E5)):e=c.expires,e="; expires="+e.toUTCString();var b=c.path?"; path="+c.path:"",m=c.domain?"; domain="+c.domain:"",c=c.secure?"; secure":"";document.cookie=[a,"=",encodeURIComponent(d),e,b,m,c].join("")}else{d=null;if(document.cookie&&document.cookie!=""){c=
document.cookie.split(";");for(e=0;e<c.length;e++)if(b=jQuery.trim(c[e]),b.substring(0,a.length+1)==a+"="){d=decodeURIComponent(b.substring(a.length+1));break}}return d}};
var COOKIE_NAME="location";$(document).ready(function(){init()});function init(){$(".splitter .submit input").click(function(a){setLocation($("input:radio[name=state]:checked").val());a.preventDefault()});$.cookie(COOKIE_NAME)!=null&&loadPageWithLocation($.cookie(COOKIE_NAME))}function setLocation(a){$.cookie(COOKIE_NAME,a,{path:"/",expires:10});loadPageWithLocation(a)}
function loadPageWithLocation(a){var b="";window.location.hostname.match(/staging/)!=null&&(b=".staging");window.location="http://"+a+b+".boringlygood.com"}(function(a){function b(){c.content="width=device-width,minimum-scale="+d[0]+",maximum-scale="+d[1];a.removeEventListener(e,b,!0)}var e="gesturestart",d=[1,1],c="querySelectorAll"in a?a.querySelectorAll("meta[name=viewport]"):[];if((c=c[c.length-1])&&"addEventListener"in a)b(),d=[0.25,1.6],a.addEventListener(e,b,!0)})(document);

