function hide_description(description_id)
{
	var element;
	if (document.getElementById && ((element = document.getElementById(description_id+"-description")) != null))
	{
		element.style.display = "none";
		if((element = document.getElementById(description_id+"-hide")) != null)
		{
			element.style.display = "none";
		}
		if((element = document.getElementById(description_id+"-show")) != null)
		{
			element.style.display = "inline";
		}
	}
}

function show_description(description_id)
{
	var element;
	if (document.getElementById && ((element = document.getElementById(description_id+"-description")) != null))
	{
		element.style.display = "block";
		if((element = document.getElementById(description_id+"-show")) != null)
		{
			element.style.display = "none";
		}
		if((element = document.getElementById(description_id+"-hide")) != null)
		{
			element.style.display = "inline";
		}
	}
}

function toggle_description(description_id)
{
	var element;
	if (document.getElementById && ((element = document.getElementById(description_id+"-description")) != null))
	{
		if (element.style.display == "block")
		{
			hide_description(description_id);
		}
		else
		{
			show_description(description_id);
		}
	}
}

function show_all_descriptions(detail_count)
{
	for (i=0;i < detail_count; i++)
	{
		show_description(i);
	}
}

function hide_all_descriptions(detail_count)
{
	for (i=0;i < detail_count; i++)
	{
		hide_description(i);
	}
}
