$(document).ready(function(){
	adjustHeader();
});

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

function adjustHeader() {
	topWidth = $(".top_content").width();
	leftWidth = 85 - ((1148 - topWidth) / 2);
	
	if ( topWidth < 1148) {
		if (leftWidth > 0) {
			$(".top_lt").show().width(leftWidth).css("background-position", "right top");
		} else {
			$(".top_lt").hide();
		}
	} else {
		$(".top_lt").show().removeAttr("style");	
	}
}
