function wrapWebPartsJQuery(){
	// Find all divs (div.ms-WPBody) with an ID beginning with "WebPart". All web parts have unique IDs assigned to them, and they begin with "WebPart". Then traverse up the HTML document 4 levels and add the class "wp".
	$("div[id^=WebPart]").parent().parent().parent().parent().addClass("wp");

	// For web parts with the Title and Border chrome, add the class "wpTitleBorder" to the element with class "wp".
	$(".ms-WPBorder").parents(".wp").addClass("wpTitleBorder");

	// For web parts with the Border Only chrome, add the class "wpBorderOnly" to the element with the class "wp".
	$(".ms-WPBorderBorderOnly").parents(".wp").addClass("wpBorderOnly");

	// Find all table cells that have an ID beginning with "MSOZoneCell" and add the class "wpContainer".
	$("td[id^=MSOZoneCell]").addClass("wpContainer");

	// For web parts with the chrome type Title and Border or Border Only, add containers that can be used for rounded corners and other treatments
	$(".wpTitleBorder").before('<div class="wpCornersTop"><div></div></div>').after('<div class="wpCornersBtm"><div></div></div>');
	$(".wpBorderOnly").before('<div class="wpCornersTop"><div></div></div>').after('<div class="wpCornersBtm"><div></div></div>');
}

function hideNavIfEmpty()
{
	var n = $('#zz1_CurrentNav').length;
    if (n < 1) {
		$('.currentNav').hide();} 
}

function hideQuickLaunchIfEmpty()
{
	var n = $('.ms-quicklaunchouter').length;
	if (n < 1) {
	 $('#leftMain').hide();}
}
/*
function AddRoundedNav()
{    
	$("#zz1_CurrentNav").corner("10px");        
	$("table.ms-recyclebin:last td").corner("bottom 7px");
}

function RemoveRoundedNav()
{    
	$("div.ms-quicklaunchouter>div:not(.ms-quickLaunch)").remove();    
	$("div.ms-quickLaunch h3.ms-standardheader span div.ms-quicklaunchheader>div").remove();    
	$("table.ms-recyclebin:last td>div").remove();
}
*/
