// expand and contract optional addon item div that contains
// download details

// 4/7/09
// changed code when migrating JS file from /resources/js to /jscripts
// used jQuery to replace getElementById
function tree(x)
{
	var divsh = document.getElementById("hs" + x).style;
        //$('div#hs'+x).style;
	var ec_img = document.getElementById("ecimg" + x);
        //$('img#ecimg'+x);

	if (divsh.display == "none")
	{
		divsh.display = "";
		ec_img.src = "http://www.xilinx.com/images/collapse.gif";		
	} 
	else
	{
		divsh.display = "none";
		ec_img.src = "http://www.xilinx.com/images/expand.gif";		
	}
}

