// This method provies show-hide functionality for DIVs
// Pass div id to the method and it will show/hide it
// Use "display: none" css on the div to initially hide it
function toggleLayer(whichLayer){
	var elem, vis;
	if( document.getElementById ) // standards compliant browsers
		elem = document.getElementById(whichLayer);
	else if(document.all) // old IE browsers (6 and below)
		elem = document.all[whichLayer];
	else if(document.layers) // old Netscape/Mozilla browsers
		elem = document.layers[whichLayer];
	vis = elem.style;  
	
	// if the style.display value is blank we try to figure it out here  
	if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)    
		vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';  
	vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}
