// JavaScript Document
var temp = "";
function roll(id, action){
	if (document.getElementById) { // DOM3 = IE5, NS6  !!!Make active button, make previous button inactive.
					obj = document.getElementById(id);
				}else if (document.layers) { // Netscape 4 
					obj = document.id;
				}else { // IE 4 
					obj = document.all.id;
	} 
	if (document.getElementById) { // DOM3 = IE5, NS6  !!!Make active button, make previous button inactive.
					obj2 = document.getElementById('a'+id);
				}else if (document.layers) { // Netscape 4 
					id = "a"+id;
					obj2 = document.id;
				}else { // IE 4 
					id = "a"+id;
					obj2 = document.all.id;
	}
	if (action == "over"){
		obj.style.cursor = "pointer";
		obj2.style.color = "ccc";
	}else if (action == "out_active"){
		obj.style.backgroundColor = "2857aa";
		obj.style.cursor = "auto";
		obj2.style.color = "3e7ddf";
	}else if(action == "over_active"){
		obj2.style.color = "FF33CC";
	}else {
		obj.style.backgroundColor = "2857aa";
		obj2.style.color = "FFF";
	}
}
function rollinner(id, action){
	if (document.getElementById) { // DOM3 = IE5, NS6  !!!Make active button, make previous button inactive.
					obj = document.getElementById(id);
				}else if (document.layers) { // Netscape 4 
					obj = document.id;
				}else { // IE 4 
					obj = document.all.id;
	}
	if (document.getElementById) { // DOM3 = IE5, NS6  !!!Make active button, make previous button inactive.
					obj2 = document.getElementById('a'+id);
				}else if (document.layers) { // Netscape 4 
					id = "a"+id;
					obj2 = document.id;
				}else { // IE 4 
					id = "a"+id;
					obj2 = document.all.id;
	}
	if (action == "over"){
		obj.style.cursor = "pointer";
		obj2.style.color = "FF33CC";
	}else if (action == "out_active"){
		obj.style.cursor = "auto";
		
	}else if(action == "over_active"){
		obj.style.cursor = "default";
		obj.style.borderBottom = "1px solid #ccc";
		obj.style.top = "-1px";
		obj2.style.color = "FF33CC";
	}else if (action == "out_activec"){
		obj.style.cursor = "auto";
		obj.style.borderBottom = "0px solid #ccc";
		obj.style.top = "-1px";
		obj2.style.color = "3e7ddf";
	}else if(action == "over_activec"){
		obj.style.cursor = "pointer";
		obj2.style.color = "FF33CC";
		obj.style.borderBottom = "1px solid #ccc";
		obj.style.top = "-1px";
	}else {
		obj2.style.color = "3e7ddf";
//		document.getElementById('a'+id).style.color = temp;
	}
}
function gotourl(url){
	location.href = url;
}
function rollnav(id, page, act){
	if (document.getElementById) { // DOM3 = IE5, NS6  !!!Make active button, make previous button inactive.
					obj = document.getElementById(id);
				}else if (document.layers) { // Netscape 4 
					obj = document.id;
				}else { // IE 4 
					obj = document.all.id;
	}
	if (act == "over" && page == "home"){
		obj.src = "/elements/"+id+"_grey.gif";
	}else  if (page == "home"){
		obj.src = "/elements/"+id+"_white.gif";
	}else if (act == "over"){	
		obj.src = "/elements/"+id+"_grey.gif";
	}else {
		obj.src = "/elements/"+id+".gif";
	}
}
