
// usage: log('inside coolFunc', this, arguments);
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
window.log = function(){
  log.history = log.history || [];   // store logs to an array for reference
  log.history.push(arguments);
  if(this.console) {
    arguments.callee = arguments.callee.caller;
    var newarr = [].slice.call(arguments);
    (typeof console.log === 'object' ? log.apply.call(console.log, console, newarr) : console.log.apply(console, newarr));
  }
};

// make it safe to use console.log always
(function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,timeStamp,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();){b[a]=b[a]||c}})((function(){try
{console.log();return window.console;}catch(err){return window.console={};}})());

// targeting for trent walton's 'jquery.fittext.js'

	$("#first h2.this_is").fitText(0.75);
	$("#first h2.adventure").fitText(0.53);
	$("#first h2.of").fitText(0.75);
	$("#first h2.epic").fitText(0.175);
	$("#first h2.proportions").fitText(0.48);
	$("#first h2.with").fitText(1.05);
	$("#first h2.immersive").fitText(0.5);
	$("#first h2.captivating").fitText(0.38);
	$("#first h2.web_exp").fitText(0.6);
	$("#first h2.featuring").fitText(0.9);	
	$("#third h2.delectable").fitText(0.70);
	$("#sixth h2.a_mind_for, #sixth h2.simple").fitText(1.4);	
	$("#sixth h2.unique").fitText(1.2);	
	$("#seventh h2").fitText(1.75);	
	$("#seventh h2.more_stuff").fitText(1.2);
	$("#seventh h2.help_you").fitText(1.2);
	$("#seventh h2.drop_line").fitText(2.45);	

	// initiate ariel flesler's localScroll jQuery plugin
	// Scrolling function by Ariel Flesler http://flesler.webs.com/jQuery.LocalScroll/				
		var target = $().get(0);
					
		var $last = $([]);
	
		$('.scroll, #nav-main a').localScroll({
			axis:'y',
			offset:-85,
			queue:true,
			duration:1000,
			hash:true,
			lazy:true,
			onBefore:function( e, anchor, $target ){
				$last.removeClass('scrolling');
				$last = $(this).addClass('scrolling');
			},
			onAfter:function( anchor ){
				$last.removeClass('scrolling');
			}
		});


	$("a.fancybox, .folio_wrap a").fancybox({
		'hideOnContentClick': true,
		'titleShow' : false
	});
// place any jQuery/helper plugins in here, instead of separate, slower script files.


