$("document").ready(function(){	
	// Viart, when not licensed, renders a html center tab at the end of the document.
	// Nuke it.
	$("center:last").css("display", "none");
		
	// Viart also puts an &nbsp; after the center tag right before the closing body tag.
	// This causes a newline to appear at the bottom of the screen.  Kill that too.
	var newText = $("body").html();
	if((newText.substring(newText.length - 6)) == "&nbsp;")
	{
		newText = newText.substring(0, newText.length - 6);
		$("body").html(newText);
	}
});

function productToggleView()
{
	var tab1 = document.getElementById("tab-description");
	var tab2 = document.getElementById("tab-tastingnotes");
	var tabButton = document.getElementById("tab-button"); 
	
	if((!tab1) || (!tab2) || (!tabButton))
		return;
		
	if(tab1.style.display == "none")
	{
		tab2.style.display = "none";	
		tab1.style.display = "block";
		tabButton.innerHTML = "View Tasting Notes";
	}
	else
	{
		tab1.style.display = "none";	
		tab2.style.display = "block";
		tabButton.innerHTML = "Product Overview";
	}	
}