$(document).ready(function() {
	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));
		}
	};

	$('.rounded').each(function () {
		$(this).hover(function () {
			$(this).stop().animate({backgroundColor: '#222222'}, {duration: 300});
		}, function () {
			$(this).stop().animate({backgroundColor: '#323232'}, {duration: 300});
		});
	});

	$("a.fancygallery").fancybox({
		index: 1,
		padding: 1,
		overlayColor: '#000000',
		titlePosition: 'inside',
		margin: 100,
		centerOnScroll: 'true'/*,
		onComplete:	function() {
			$("#fancybox-wrap").hover(function() {
				$("#fancybox-title").show();
			}, function() {
				$("#fancybox-title").hide();
			});
		}*/
	});

	var cols = $(this).find('.span-8');

	var currentTallest = 0;
	cols.each(function() {
		if ($(this).height() > currentTallest) {
			currentTallest = $(this).height();
		}
	});
	cols.css({'min-height': currentTallest});
	
	$('.banner .image').jshowoff({speed:4000, links: false, controls: false});
});
