
function borderlightCat(borderID){

	// new array with all div ID's
	var allDivs = new Array('prod_cha', 'prod_np');
	// loop through the array assigning the non-highlight style to all divs
	for(var x = 0; x< allDivs.length; x++){
	    document.getElementById(allDivs[x]).style.borderColor='#fcfbe3';
		document.getElementById(allDivs[x]).style.backgroundColor='#fcfbe3';
	}	
	// assign the highlight style to the requested div
	document.getElementById(borderID).style.borderColor='#f7971d';
	document.getElementById(borderID).style.backgroundColor='#fff7cb';	
}

function cleanDivsCat(){

	var borders = new Array('prod_cha', 'prod_np');
	for(var x = 0; x< borders.length; x++){
	    document.getElementById(borders[x]).style.borderColor='#fcfbe3';
		document.getElementById(borders[x]).style.backgroundColor='#fcfbe3';
	}
	
	var links = new Array('link_cha', 'link_np')
	for(var x = 0; x< links.length; x++){
		document.getElementById(links[x]).style.color='#869C40';
	}
}

function linklightCat(linkID){

	// new array with all div ID's
	var allLinks = new Array('link_cha', 'link_np')
	// loop through the array assigning the non-highlight style to all divs
	for(var x = 0; x< allLinks.length; x++){
		document.getElementById(allLinks[x]).style.color='#869C40';
	}
		// assign the highlight style to the requested div
	document.getElementById(linkID).style.color='#e00';	
}


function borderlight(borderID){

	// new array with all div ID's
	var allDivs = new Array('prod_ha', 'prod_mn', 'prod_pb', 'prod_jn', 'prod_zf', 'prod_zr', 'prod_ob', 'prod_mb');
	// loop through the array assigning the non-highlight style to all divs
	for(var x = 0; x< allDivs.length; x++){
	    document.getElementById(allDivs[x]).style.borderColor='#fcfbe3';
		document.getElementById(allDivs[x]).style.backgroundColor='#fcfbe3';
	}	
	// assign the highlight style to the requested div
	document.getElementById(borderID).style.borderColor='#f7971d';
	document.getElementById(borderID).style.backgroundColor='#fff7cb';
	document.getElementById(borderID).style.zIndex='999';	
}

function cleanDivs(){

	var borders = new Array('prod_ha', 'prod_mn', 'prod_pb', 'prod_jn', 'prod_zf', 'prod_zr', 'prod_ob', 'prod_mb');
	for(var x = 0; x< borders.length; x++){
	    document.getElementById(borders[x]).style.borderColor='#fcfbe3';
		document.getElementById(borders[x]).style.backgroundColor='#fcfbe3';
	}
	
	var links = new Array('link_ha', 'link_mn', 'link_pb', 'link_jn', 'link_zf', 'link_zr', 'link_ob', 'link_mb')
	for(var x = 0; x< links.length; x++){
		document.getElementById(links[x]).style.color='#869C40';
	}
}

function linklight(linkID){

	// new array with all div ID's
	var allLinks = new Array('link_ha', 'link_mn', 'link_pb', 'link_jn', 'link_zf', 'link_zr', 'link_ob', 'link_mb')
	// loop through the array assigning the non-highlight style to all divs
	for(var x = 0; x< allLinks.length; x++){
		document.getElementById(allLinks[x]).style.color='#869C40';
	}
		// assign the highlight style to the requested div
	document.getElementById(linkID).style.color='#c84d1a';	
}
