/**
 * Aids in browsing the long list of artists on the artists page
 * added Feb.2.2008
 */
function browse(letter) {

	var list = Array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'num');

	var count = 0;

	if(letter=='all'){

		// make the link active
		//document.getElementById('nav_all').className = 'tile active small';

		// VIEW ALL ARTISTS
		while(count<=list.length) {
			
			// if the letter is displayed
			if(document.getElementById(list[count])) {			
				// make each letter block visible
				document.getElementById(list[count]).style.display = 'block';
				// clear off the active state from the links
				//document.getElementById('nav_'+list[count]).className = 'tile small';
			}
			
			// continue to the next letter
			count++;
			
		} // endwhile



	} else {

		// VIEW ONLY ONE LETTER
		while(count<=list.length){
			
			// if the letter is displayed
			if(document.getElementById(list[count])) {

				// if the current letter is not the selected letter
				if(list[count]!==letter){
					// hide all letter blocks and deactivate all links
					document.getElementById(list[count]).style.display = 'none';
					//document.getElementById('nav_all').className = 'tile small';
					//document.getElementById('nav_'+list[count]).className = 'tile small';
				
				// if the current letter is the letter selected
				} else {
					// make the letter block visible and the link active
					document.getElementById(list[count]).style.display = 'block';
					//document.getElementById('nav_'+list[count]).className = 'tile active small';
				} // endif

			} //endif
			
			// continue to the next letter
			count++;

		} // endwhile


	} // endif
	


} // endfunction