function resizeWindow() {
	
	var resizeMethod = 'window';
	
	if ($(window).width() < 1024 || $(window).height() < 768) {
		resizeMethod = 'full';
	}
	
	$('#container').css("left",(resizeMethod == 'window') ? ($(window).width()/2) - (1024 / 2) : 0);
	$('#container').css("top", (resizeMethod == 'window') ? ($(window).height()/2) - (768 / 2) : 0);
	$('#container').css("width", (resizeMethod == 'window') ? 1024 : $(window).width());
	$('#container').css("height", (resizeMethod == 'window') ? 768 : $(window).height() - 30);

}

$(window).resize(resizeWindow);
$(document).ready(resizeWindow);

