function ShowHideTab(obj, bg)
{
	/* tab images */
	var imagePath = "/images"; // path to your images
	var imageName = ""; // name of image
	var imageType = "jpg"; // type of image
	
	if (bg == "")
	{
		
		$("*[id^='tab-']").css("background-image", "url(" + imagePath + imageName + "-off." + imageType + ")");
		$("*[id^='content-']").css("display", "none");
		$("#" + obj.id).css("background-image", "url(" + imagePath + imageName + "-on." + imageType + ")");
		$("*[id='content-" + obj.id.substring(4) + "']").css("display", "block");
	}
	else
	{
		$("img[id^='tab-']").attr("src", function() { return this.src.replace(/-on/, "-off") });
		$("*[id^='content-']").css("display", "none");
		$("#" + obj.id).attr("src", function() { return this.src.replace(/-off/, "-on") });
		$("*[id='content-" + obj.id.substring(4) + "']").css("display", "block");
	}
}

