// 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){
		console.log( Array.prototype.slice.call(arguments) );
	}
};

$(function(){
	/*
	$('#menu-about').hover(function(){
		$('#page-about').show().stop().animate({
			width: 500,
			height: 400
		});
	}, function(){
		$('#page-about').stop().animate({
			width: 0,
			height: 0
		}, function(){
			$(this).hide();
		});
	});
	*/

	// Supersize!
	$.fn.supersized.options = {
		startwidth: 1600,
		startheight: 1200,
		minsize: .5,
		slideshow: 0
	};
	$('#supersize').supersized();


	$('#menu td:not(.nav-next,.nav-prev) a').click(function(e){
		e.stopPropagation();
	})

	$('#menu td:not(.nav-next,.nav-prev)')
		.click(function(e){
			window.location.href = $(this).find('a').attr('href');
		});
	$('#menu td')
		.hover(function(){
			$(this).addClass('hover');
		}, function(){
			$(this).removeClass('hover');
		});

});

Cufon.replace('#menu a, h1');
