function redim(){
	var superImgHeight = $(window).height();
	var superImgWidth = $(window).width();
	$('#container').height(superImgHeight);
	$('#container').width(superImgWidth);
	if(IE6){
		$('BODY').width(superImgWidth);
	}
	
	if(superImgHeight > 625){
		var calMarginTop = Math.floor(((superImgHeight-281)-285)/2)+281;
		$('#container').children('.navNews').css('top',calMarginTop+'px');
		$('#container').children('.navBlack').css('top',(calMarginTop+254)+'px');
		var posBackground = calMarginTop-326;
		$("#container").css('background-position', "0px "+posBackground+"px");
		var posBottom = superImgHeight-(calMarginTop+285);
	} else {
		var calMarginTop = 312;
		$('#container').children('.navNews').css('top',calMarginTop+'px');
		$('#container').children('.navBlack').css('top',(calMarginTop+254)+'px');
		$("#container").css('background-position', "0px -15px");
		var posBottom = superImgHeight-(calMarginTop+285);
	}
	var topBottom = (calMarginTop+285)+(0.05*posBottom);
	$('#bottom').css('top',topBottom+'px');
	var widthATan = Math.atan(Math.PI*(5)/180);
	widthATan = Math.floor((widthATan*(topBottom))+170);
	$('#bottom').width(superImgWidth-widthATan);
	$('#bottom').css('padding-left',widthATan+'px');
	$('#bottom').children('.bottomContainer').width(superImgWidth-widthATan);
}
$('#keywords').focus(function(){
	$(this).val('');						  
});
$('#keywords').blur(function(){
	$(this).val('search on WNB');	
});

window.onresize = function() { redim(); };
window.onload = function (){ window.onresize(); };

