        function switchdiv(ndivs, divon)
// Sets display to none for a list of divs - divs must be named d1, d2, d3 etc (no gaps!)
// Finally fades in the div identified by 'divon'
		{  var i=1;
			for (i=1;i<=ndivs;i++)
			{ 
			var whichLayer="d" + i ;
			var elem, vis;  
				if( document.getElementById ) // this is the way the standards work    
					elem = document.getElementById( whichLayer );  
				else if( document.all ) // this is the way old msie versions work      
					elem = document.all[whichLayer];  
				else if( document.layers ) // this is the way nn4 works    
					elem = document.layers[whichLayer];  
			vis = elem.style;  
			if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
// Uncomment the below line to use this as a toggle (on/off - off/on)
//				vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none'; 
				vis.display = (vis.display==''||vis.display=='block')?'none':'block';
			}
		Effect.Appear(divon);
		}

