//here you place the ids1 of every element you want.
var links=new Array('link_boilertypes');

function swapstyles(id) {
clearboldlinks();
makebold(id);
}

function clearboldlinks(){
	//loop through the array and hide each element by id
	for (var i=0;i<links.length;i++){
		clearbold(links[i]);
	}		  
}

function clearbold(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.fontWeight  = 'normal';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.fontWeight  = 'normal';
		}
		else { // IE 4
			document.all.id.style.fontWeight  = 'normal';
		}
	}
}



function makebold(id) {
if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.fontWeight  = 'bold';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.fontWeight  = 'bold';
		}
		else { // IE 4
			document.all.id.style.fontWeight  = 'bold';
		}
	}
	
}



//here you place the ids1 of every element you want.
var ids1=new Array('boilertypes');


function switchid(id){
	hideallids1();
	showdiv(id);
}

function hideallids1(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids1.length;i++){
		hidediv(ids1[i]);
	}		  
}

function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv(id) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}






