$(document).ready(function(){
	var pathname = window.location.pathname;
	if (pathname !== '/') {
		$("#wms-banner object").css("display", "none");
		$(".nonflash-banner").css("display", "block");
	}
	else {
		$("#nonflash-wrap").css("display", "none");
	}
	$("#navigationBottom .horizontalNavigationBar .content-navigation").css("padding-left", ((($("#pageBody").width())-($("#navigationBottom .horizontalNavigationBar .content-navigation").width()))/2) +"px");
	$(document).pngFix();
});

$(window).load(function () {
	var sidebarheight = $("#sidebar1").outerHeight(true);
	var contentheight = $("#contentWrapper").outerHeight(true);
	if (contentheight > sidebarheight) {
		$("#sidebar1").css("height", ($("#contentWrapper").outerHeight(true) -30) + "px");
	}
	else {
		$("#contentWrapper").css("height", ($("#sidebar1").outerHeight(true) -37) + "px");
	}

});
