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(e){function h(){}for(var g="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,timeStamp,profile,profileEnd,time,timeEnd,trace,warn".split(","),f;f=g.pop();){e[f]=e[f]||h}})((function(){try{console.log();return window.console}catch(a){return window.console={}}})());(function(c){var a=c.scrollTo=function(d,f,g){c(window).scrollTo(d,f,g)};a.defaults={axis:"xy",duration:parseFloat(c.fn.jquery)>=1.3?0:1};a.window=function(d){return c(window)._scrollable()};c.fn._scrollable=function(){return this.map(function(){var d=this,f=!d.nodeName||c.inArray(d.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!f){return d}var g=(d.contentWindow||d).document||d.ownerDocument||d;return c.browser.safari||g.compatMode=="BackCompat"?g.body:g.documentElement})};c.fn.scrollTo=function(f,e,d){if(typeof e=="object"){d=e;e=0}if(typeof d=="function"){d={onAfter:d}}if(f=="max"){f=9000000000}d=c.extend({},a.defaults,d);e=e||d.speed||d.duration;d.queue=d.queue&&d.axis.length>1;if(d.queue){e/=2}d.offset=b(d.offset);d.over=b(d.over);return this._scrollable().each(function(){var n=this,l=c(n),m=f,j,k={},h=l.is("html,body");switch(typeof m){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(m)){m=b(m);break}m=c(m,this);case"object":if(m.is||m.style){j=(m=c(m)).offset()}}c.each(d.axis.split(""),function(q,r){var t=r=="x"?"Left":"Top",s=t.toLowerCase(),v="scroll"+t,p=n[v],g=a.max(n,r);if(j){k[v]=j[s]+(h?0:p-l.offset()[s]);if(d.margin){k[v]-=parseInt(m.css("margin"+t))||0;k[v]-=parseInt(m.css("border"+t+"Width"))||0}k[v]+=d.offset[s]||0;if(d.over[s]){k[v]+=m[r=="x"?"width":"height"]()*d.over[s]}}else{var u=m[s];k[v]=u.slice&&u.slice(-1)=="%"?parseFloat(u)/100*g:u}if(/^\d+$/.test(k[v])){k[v]=k[v]<=0?0:Math.min(k[v],g)}if(!q&&d.queue){if(p!=k[v]){i(d.onAfterFirst)}delete k[v]}});i(d.onAfter);function i(g){l.animate(k,e,d.easing,g&&function(){g.call(this,f,d)})}}).end()};a.max=function(g,j){var n=j=="x"?"Width":"Height",k="scroll"+n;if(!c(g).is("html,body")){return g[k]-c(g)[n.toLowerCase()]()}var o="client"+n,f=g.ownerDocument.documentElement,d=g.ownerDocument.body;return Math.max(f[k],d[k])-Math.min(f[o],d[o])};function b(d){return typeof d=="object"?d:{top:d,left:d}}})(jQuery);(function(d){var a=location.href.replace(/#.*/,"");var c=d.localScroll=function(e){d("body").localScroll(e)};c.defaults={duration:1000,axis:"y",event:"click",stop:true,target:window,reset:true};c.hash=function(f){if(location.hash){f=d.extend({},c.defaults,f);f.hash=false;if(f.reset){var g=f.duration;delete f.duration;d(f.target).scrollTo(0,f);f.duration=g}b(0,location,f)}};d.fn.localScroll=function(e){e=d.extend({},c.defaults,e);return e.lazy?this.bind(e.event,function(g){var h=d([g.target,g.target.parentNode]).filter(f)[0];if(h){b(g,h,e)}}):this.find("a,area").filter(f).bind(e.event,function(g){b(g,this,e)}).end().end();function f(){return !!this.href&&!!this.hash&&this.href.replace(this.hash,"")==a&&(!e.filter||d(this).is(e.filter))}};function b(i,p,g){var q=p.hash.slice(1),o=document.getElementById(q)||document.getElementsByName(q)[0];if(!o){return}if(i){i.preventDefault()}var n=d(g.target);if(g.lock&&n.is(":animated")||g.onBefore&&g.onBefore.call(g,i,o,n)===false){return}if(g.stop){n.stop(true)}if(g.hash){var m=o.id==q?"id":"name",l=d("<a> </a>").attr(m,q).css({position:"absolute",top:d(window).scrollTop(),left:d(window).scrollLeft()});o[m]="";d("body").prepend(l);location=p.hash;l.remove();o[m]=q}n.scrollTo(o,g).trigger("notify.serialScroll",[o])}})(jQuery);(function(a){a.belowthefold=function(c,d){var b=a(window).height()+a(window).scrollTop();return b<=a(c).offset().top-d.threshold};a.abovethetop=function(b,c){var d=a(window).scrollTop();return d>=a(b).offset().top+a(b).height()-c.threshold
};a.rightofscreen=function(c,d){var b=a(window).width()+a(window).scrollLeft();return b<=a(c).offset().left-d.threshold};a.leftofscreen=function(b,c){var d=a(window).scrollLeft();return d>=a(b).offset().left+a(b).width()-c.threshold};a.inviewport=function(b,c){return !a.rightofscreen(b,c)&&!a.leftofscreen(b,c)&&!a.belowthefold(b,c)&&!a.abovethetop(b,c)};a.extend(a.expr[":"],{"below-the-fold":function(c,d,b){return a.belowthefold(c,{threshold:0})},"above-the-top":function(c,d,b){return a.abovethetop(c,{threshold:0})},"left-of-screen":function(c,d,b){return a.leftofscreen(c,{threshold:0})},"right-of-screen":function(c,d,b){return a.rightofscreen(c,{threshold:0})},"in-viewport":function(c,d,b){return a.inviewport(c,{threshold:0})}})})(jQuery);var fnames=new Array();var ftypes=new Array();fnames[0]="EMAIL";ftypes[0]="email";fnames[1]="FIRST";ftypes[1]="text";fnames[2]="LAST";ftypes[2]="text";try{var jqueryLoaded=jQuery;jqueryLoaded=true}catch(err){var jqueryLoaded=false}var head=document.getElementsByTagName("head")[0];if(!jqueryLoaded){var script=document.createElement("script");script.type="text/javascript";script.src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js";head.appendChild(script);if(script.readyState&&script.onload!==null){script.onreadystatechange=function(){if(this.readyState=="complete"){mce_preload_check()}}}}var script=document.createElement("script");script.type="text/javascript";script.src="http://downloads.mailchimp.com/js/jquery.form-n-validate.js";head.appendChild(script);var err_style="";try{err_style=mc_custom_error_style}catch(e){err_style="margin: 1em 0 0 0; padding: 1em 0.5em 0.5em 0.5em; background: ERROR_BGCOLOR none repeat scroll 0% 0%; font-weight: bold; float: left; z-index: 1; width: 80%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: ERROR_COLOR;"}var head=document.getElementsByTagName("head")[0];var style=document.createElement("style");style.type="text/css";if(style.styleSheet){style.styleSheet.cssText=".mce_inline_error {"+err_style+"}"}else{style.appendChild(document.createTextNode(".mce_inline_error {"+err_style+"}"))}head.appendChild(style);setTimeout("mce_preload_check();",250);var mce_preload_checks=0;function mce_preload_check(){if(mce_preload_checks>40){return}mce_preload_checks++;try{var c=jQuery}catch(b){setTimeout("mce_preload_check();",250);return}try{var a=jQuery("#fake-form").validate({})}catch(b){setTimeout("mce_preload_check();",250);return}mce_init_form()}function mce_init_form(){jQuery(document).ready(function(b){var a={errorClass:"mce_inline_error",errorElement:"div",onkeyup:function(){},onfocusout:function(){},onblur:function(){}};var c=b("#mc-embedded-subscribe-form").validate(a);b("#mc-embedded-subscribe-form").unbind("submit");a={url:"http://thrillernyc.us2.list-manage.com/subscribe/post-json?u=6f7d65c2e30f674fa432b0917&id=7929814cf5&c=?",type:"GET",dataType:"json",contentType:"application/json; charset=utf-8",beforeSubmit:function(){b("#mce_tmp_error_msg").remove();b(".datefield","#mc_embed_signup").each(function(){var f="filled";var d=new Array();var g=0;b(":text",this).each(function(){d[g]=this;g++});b(":hidden",this).each(function(){if(d.length==2){d[2]={value:1970}}if(d[0].value=="MM"&&d[1].value=="DD"&&d[2].value=="YYYY"){this.value=""}else{if(d[0].value==""&&d[1].value==""&&d[2].value==""){this.value=""}else{this.value=d[0].value+"/"+d[1].value+"/"+d[2].value}}})});return c.form()},success:mce_success_cb};b("#mc-embedded-subscribe-form").ajaxForm(a)})}function mce_success_cb(j){$("#mce-success-response").hide();$("#mce-error-response").hide();if(j.result=="success"){$("#mce-"+j.result+"-response").slideDown(400,function(){$(this).delay(5000).slideUp(300)});$("#mce-"+j.result+"-response").html("<p>"+j.msg+"<p>");$("#mc-embedded-subscribe-form").each(function(){this.reset()})}else{var b=-1;var h;try{var g=j.msg.split(" - ",2);if(g[1]==undefined){h=j.msg}else{i=parseInt(g[0]);if(i.toString()==g[0]){b=g[0];h=g[1]}else{b=-1;h=j.msg}}}catch(d){b=-1;h=j.msg}try{if(b==-1){$("#mce-"+j.result+"-response").slideDown(400,function(){$(this).delay(5000).slideUp(300)});$("#mce-"+j.result+"-response").html("<p>"+h+"<p>")}else{err_id="mce_tmp_error_msg";html='<div id="'+err_id+'" style="'+err_style+'"> '+h+"</div>";var a="#mc_embed_signup";var c=$(a);if(ftypes[b]=="address"){a="#mce-"+fnames[b]+"-addr1";c=$(a).parent().parent().get(0)}else{if(ftypes[b]=="date"){a="#mce-"+fnames[b]+"-month";c=$(a).parent().parent().get(0)}else{a="#mce-"+fnames[b];c=$().parent(a).get(0)}}if(c){$(c).append(html);$(a).focus()}else{$("#mce-"+j.result+"-response").slideDown(400,function(){$(this).delay(5000).slideUp(300)});$("#mce-"+j.result+"-response").html("<p>"+h+"<p>")
}}}catch(d){$("#mce-"+j.result+"-response").slideDown(400,function(){$(this).delay(5000).slideUp(300)});$("#mce-"+j.result+"-response").html("<p>"+h+"<p>")}}}jQuery(function(a){a.localScroll.defaults.axis="xy";a.localScroll.hash({queue:true,duration:1500});a.localScroll({queue:true,duration:1000,hash:true,onBefore:function(d,c,b){},onAfter:function(b,c){}})});$(function(){$window=$(window);$nav=$("#main-nav");$class="floating_nav";$link=$(".scroll-top");$link.click(function(a){a.preventDefault();$("html, body").animate({scrollTop:0},"slow");if("pushState" in history){history.pushState("",document.title,window.location.pathname)}});$window.scroll(function(){if($window.scrollTop()<=450){$nav.css("display","").removeClass($class)}else{$nav.addClass($class).fadeIn(500)}})});$(function(){mobileTouch()});function mobileTouch(){$("#main .title").click(function(){$cntr=$(this).nextAll(".reveal");if($(this).nextAll(".reveal").css("display")=="block"){$(this).nextAll(".reveal").css("display","none")}else{$(this).nextAll(".reveal").css("display","block")}})};
