function toggleVis(toggleVisObj, toggleVisPic, toggleVisOnPic, toggleVisOffPic)
	{


	if (toggleVisOnPic == "" && toggleVisOnPic != "no"){toggleVisOnPic="images/layout/expand_empty.gif"}
	if (toggleVisOffPic == "" && toggleVisOffPic != "no"){toggleVisOffPic="images/layout/collapse_empty.gif"}




var IsClosed = false
IsClosed = toggleVisObj.style.getAttribute("display") == "none";


//alert(toggleVisPic.src);

if(IsClosed == false)	
	{
	toggleVisObj.style.setAttribute("display", "none");
	if (toggleVis != ""){toggleVisPic.src = toggleVisOnPic;}
	}
	else
	{
	toggleVisObj.style.setAttribute("display","inline");
	if (toggleVis != ""){toggleVisPic.src = toggleVisOffPic;}
	}
}


function toggleVisnopic(toggleVisObj)
	{


var IsClosed = false
tvObj = eval(toggleVisObj)
IsClosed = toggleVisObj.style.getAttribute("display") == "none";


//alert(toggleVisPic.src);

if(IsClosed == false)	
	{
	tVc(toggleVisObj)
	}
	else
	{
	tVo(toggleVisObj)
	}
}



function tVc(x)
	{
	if (document.getElementById) {document.getElementById(x).style.visibility="hidden";}
	if (document.all) {document.all[x].style.display="none";}
	if (document.layers) {document.layers[x].visibility="hidden";}
	}


function tVo(x)
	{
	if (document.getElementById) {document.getElementById(x).style.visibility="visible";}
	if (document.all) {document.all[x].style.display="inline";}
	if (document.layers) {document.layers[x].visibility="visible";}
	}

