
$(function(){
	$('a.item').colorbox()
	resizeFooter();
});

$(window).resize(function() {	
	resizeFooter();
});

function resizeFooter() {
	var wh = $(window).height();
	var fh = $('#footer').height();
	var fy = $('#footer').position();
	var hc = $('#header').height() + $('#content').height() + 40;
	var dif = wh-fh-fy.top;	
	if(wh-(hc+fh)>0) $('#footer').css('margin-top',dif+'px');	
}

