/*	Funtion to show/hide a div layer
	and change a label associated with that layer
	
	HEAD
	<script src="js/showhide.js" language="javascript"></script>
	
	TOGGLE BUTTON
	<a href="#" onclick="showhide('wrapperid','showhidetoggle','hide options','show options'); return(false);">
	<div id="showhidetoggle">show options</div></a>
	
	LAYER
	<div style="display:none;" id="thumboptions">
	(Contents goes here)
	</div>
*/
function showhide(wrapperid,switchid,captionON,captionOFF){
	if (document.getElementById){ 
		obj = document.getElementById(wrapperid); 
		if (obj.style.display == "none"){ 
			obj.style.display = "";
			document.getElementById(switchid).innerHTML = captionON;
		} else { 
			obj.style.display = "none"; 
			document.getElementById(switchid).innerHTML = captionOFF;
		} 
	} 
} 