
function toggleLayer(whichLayer,forceVis) {
	var elem, vis, img, hr ;
	if( document.getElementById ) { 
		// this is the way the standards work
		elem = document.getElementById( whichLayer ) ;
		img = document.getElementById( whichLayer+'_img' ) ;
		hr = document.getElementById( whichLayer+'_hr' ) ;
	} else if( document.all ) { 
		// this is the way old msie versions work
		elem = document.all[whichLayer] ;
		img = document.all[whichLayer+'_img'] ;
		hr = document.all[whichLayer+'_hr'] ;
	} else if( document.layers ) { 
		// this is the way nn4 works
		elem = document.layers[whichLayer];
		img = document.layers[whichLayer+'_img'] ;
		hr = document.layers[whichLayer+'_hr'] ;
	}
	vis = elem.style ;
	
	if (vis.display==''||vis.display=='block'||forceVis==false) {
		vis.display = 'none' ;
	} else {
		vis.display = 'block';
	}
}

function flipVis(thisTarget,thisVis) {
	var elem, vis ;
	if( document.getElementById ) { 
		elem = document.getElementById( thisTarget ) ; // standard way
	} else if( document.all ) { 
		elem = document.all[thisTarget] ; // old msie
	} else if( document.layers ) { 
		elem = document.layers[thisTarget]; // nn4
	}
	vis = elem.style ;
	
	if (vis.display==''||vis.display=='block'||thisVis==false) {
		vis.display = 'none' ;
	} else {
		vis.display = 'block';
	}
}

