jQuery.event.add(window, "load", resizeFrame);
jQuery.event.add(window, "resize", resizeFrame);
function resizeFrame() 
{
	var h = $(window).height();
	var w = $(window).width();
	var frameHeight = $(window).height()-270;
	var frameHeightDivided = 2;
	var frameContent = frameHeight/frameHeightDivided;
	$("#main-column").width($(window).width());
	$("#main-column").css({
		'height':(($(window).height())-270)+'px'
		});	
	$("#nothing").css({
		'height':(($(window).height())-270)+'px'
		});
	$("#nothing").css({
		'margin-top':-frameContent
		});
				
	if($('#galleria').length > 0 ){
		$("#galleria").width($(window).width());
		$("#galleria").css({
			'height':(($(window).height())-270)+'px'
			});	
		
	}				
				
				
	if(frameHeight <530) {
		$('#main-column .content').css({
			'top':(0)+'px'
		});
		$('#main-column .content').css({
			'margin-top':(50)+'px'
		});
	}
}
