
var showhidearray=new Array();

function showhide(details)
{
	
	
	
	if (showhidearray[details]=="small")
	{
		showhidearray[details]="expanded";
		var expandedid="expanded_" + details;		
		var smallid="small_" + details;
		document.getElementById(smallid).style.display="none";		
		document.getElementById(expandedid).style.display="block";
		buttontext="Hide";	
	}
	else
	{
		showhidearray[details]="small";
		var expandedid="expanded_" + details;		
		var smallid="small_" + details;
		document.getElementById(expandedid).style.display="none";		
		document.getElementById(smallid).style.display="block";	
		buttontext="Show all";	
	}

	id="button_"+details;
	if(document.layers)
	{ //if ns4 
		document.layers[id].document.open();
		document.layers[id].document.write(buttontext);
		document.layers[id].document.close();
	}	
	else if (document.getElementById) 
	{ // IE 5+ / NS6
		document.getElementById(id).innerHTML = buttontext;
	}
	else if(document.all)
	{//if ie4
		document.all[id].innerText=buttontext;
	}
		
}