// JavaScript Document

function first()
	{
		
	}
	function change(id){
		//document.write(id)
		document.getElementById(id).style.color = "#ffffff";
		document.getElementById(id).style.backgroundColor = "#37AED9";
	}
	function change_back(id){
		document.getElementById(id).style.backgroundColor = "#F4F4F4";
		document.getElementById(id).style.color = "#000000";
	}
	
	function toggleLayer(whichLayer)
	{
		if (document.getElementById)
		{
		// this is the way the standards work
		var style2 = document.getElementById(whichLayer).style;
		style2.display = style2.display? "":"block";
		}
	}
		
	var selected_id = null; 
	var dom = document.getElementById; 
	function swapIt(id, newclass) { 
	if (dom) { 
	if(selected_id != id) { 
	el = document.getElementById(id); 
	el.className = newclass; 
	el.style.cursor = "hand"; 
	el.style.cursor = "pointer"; 
	} 
	} 
	} 
	function down (id,oldclass,newclass){ 
	if (dom) { 
	if(selected_id != null) { 
	document.getElementById(selected_id).className = oldclass; 
	} 
	el.className = newclass; 
	selected_id = id; 
	first();
	} 
	} 
