
function toggleLayer(whichLayer, layerStatus)
{
if (document.getElementById)
{
// this is the way the standards work
var style2 = document.getElementById(whichLayer).style;


style2.display = layerStatus;

}
else if (document.all)
{
// this is the way old msie versions work
var style2 = document.all[whichLayer].style;
style2.display = layerStatus;
}
else if (document.layers)
{
// this is the way nn4 works
var style2 = document.layers[whichLayer].style;
style2.display = layerStatus;
}
}

function toggleClass(whichLayer, whichClass)
{
if (document.getElementById)
{
// this is the way the standards work
var style2 = document.getElementById(whichLayer);
style2.className = whichClass;

}
else if (document.all)
{
// this is the way old msie versions work
var style2 = document.all[whichLayer];
style2.className = whichClass;
}
else if (document.layers)
{
// this is the way nn4 works
var style2 = document.layers[whichLayer];
style2.className = whichClass;
}
}


function showHideLayer(whichLayer)
{
if (document.getElementById)
{
// this is the way the standards work
var style2 = document.getElementById(whichLayer).style;

if (style2.display == 'block') style2.display = 'none';
else  style2.display = 'block';

}
else if (document.all)
{
// this is the way old msie versions work
var style2 = document.all[whichLayer].style;
if (style2.display == 'block') style2.display = 'none';
else  style2.display = 'block';
}
else if (document.layers)
{
// this is the way nn4 works
var style2 = document.layers[whichLayer].style;
if (style2.display == 'block') style2.display = 'none';
else  style2.display = 'block';
}
}

 function toggle(image,list){ 
 	
 	var listElementStyle=document.getElementById(list).style; 
 	
 	if (listElementStyle.display=="none"){ 
 		
 		listElementStyle.display="block"; 
 		document.getElementById(image).src="images/up.gif"; 
 		//document.getElementById(image).alt="Close list"; 
 	
 	} else { 
 		
 		listElementStyle.display="none"; 
 		document.getElementById(image).src="images/down.gif"; 
 		//document.getElementById(image).alt="Open list"; 
 	} 
 
 }
