// resizer v2.1

function tallScreen() {
	try {
		$('#ctOuter').css('marginTop','-272px');
		$('#ctOuter').css('top','50%');
	} catch(err) { }
}

function shortScreen() {
	try {
		$('#ctOuter').css('marginTop','0');
		$('#ctOuter').css('top','0');
	} catch(err) { }
	
}

function autoSize() {
	var ih = $(window).height() - 20;
	$('#ctCentral').height(ih);
	if($(window).height() < 680) {
		$('#bgTopRight').css({'margin-top': '-100px'});
	} else {
		$('#bgTopRight').css({'margin-top': '0'});		
	}
	if($(window).width() < 1000) {
		$('#bgTopRight').css({'width': '449px'});
	} else {
		$('#bgTopRight').css({'width': '539px'});	
	}
	if($(window).height() < 525) {
		shortScreen();
	} else {
		tallScreen();
	}
}

$(document).ready(function() { autoSize(); });
$(window).resize(function () { autoSize(); });