//////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////
	function change_color_top(x,y,z) {
		/////////////////////////////////////////////////////
		no_x = "n" + x;
		img_x = "i" + x;
		/////////////////////////////////////////////////////
		if(y == 0){
			thecolor = '#FFFFFF';


			document.getElementById(no_x).style.fontWeight = "lighter"; 
			
			img_url = "";
		} else {
			thecolor = '#FFF3F3';


			document.getElementById(no_x).style.fontWeight = "bold";
			/////////////////////////////////////////////////////
			i = 6;
				
			if(z.substr(0,1) == 1) {
				i = 5;
			} else if(z.substr(0,1) == "Z"){
				i = 2;
			}

			img_url = "<img src='http://www.cdjournal.com/image/jacket/40/" + z.substr(0, i) + "/" + z + ".gif'>";
		}

		/////////////////////////////////////////////////////
		document.getElementById(img_x).innerHTML = img_url; 
		/////////////////////////////////////////////////////	
		document.getElementById(no_x).style.backgroundColor = thecolor;
	}
//////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////
	function change_color(x,y,z) {

		/////////////////////////////////////////////////////
		if(y == 0){
			thecolor = '#FFFFFF';


//			document.getElementById(x).style.fontWeight = "lighter"; 

		} else {
			thecolor = '#FFF3F3';


//			document.getElementById(x).style.fontWeight = "bold";

		}

		/////////////////////////////////////////////////////	
		document.getElementById(x).style.backgroundColor = thecolor;
	}
//////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////
	function change_mag_color(x,y,z) {

		/////////////////////////////////////////////////////
		if(y == 0){
			thecolor = '#FFFFFF';

//			document.getElementById(x).style.fontSize = "12px"; 

		} else {
			thecolor = '#FFF3F3';

//			document.getElementById(x).style.fontSize = "14px"; 

		}

		/////////////////////////////////////////////////////	
		document.getElementById(x).style.backgroundColor = thecolor;
	}