$(document).ready(function(){
	//get window size
	var width = $("body").css("width");
	var height = $("#page-wrapper").css("height");
	//console.log("Width:" + width + " Height:" + height);
	height=height.replace("px" , "");
	height=Number(height)-180;
	//Set page BG to outer height
	$("#page-bg").css("height",height);
	//set header_bg and menu bg to outer width
	$("#header_bg, #menu_bg, #menu_shadow").css("width",width);
//console.log("Width:" + width + " Height:" + height);
	//reset with and heights on window size change.

	$(window).resize(function(){
		var width = $("body").css("width");
		var height = $("#page-wrapper").css("height");
		height=height.replace("px" , "");
		height=Number(height)-180;
		//Set page BG to outer height
		$("#page-bg").css("height",height);
		//set header_bg and menu bg to outer width
		$("#header_bg, #menu_bg, #menu_shadow").css("width",width);
		//console.log("Width:" + width + " Height:" + height);
		//$("#edit-search-block-form-1").val("Width:" + width + " Height:" + height);
	});
});
