<!-- hide from non-JavaScript Browsers

// ArtistNavSrc v2.0 beta
// write the navigation system to the html page

var artist=new Array("Cahill","David Morales","DJ Tonka","Eric Kupper","Grant Nelson","Groove That Soul","Interphace","Love To Infinity","Maurice Joshua","Moto Blanco","Soul Seekerz","StoneBridge","T&F vs. Moltosugo","Wideboys");

var i = 0;
//alert(artist.length);

// ##### MARK-UP #####
document.write("<select id=\"artist\" onchange=\"changeartist();\">");
document.write("<option value=\"\" selected=\"selected\">Choose an artist:</option>");

while ( i < artist.length ) {
	var value = artist[i].replace(/ /g,"").toLowerCase();
	//alert(artist[i] + "\n" + value);
	//var out = artist[i];

	//<option class=\"ind\" value=\"davidmorales\">David Morales</option>
	document.write("<option class=\"ind\" value=\"" + value + "\">" + artist[i] + "</option>");

	i++;
}
document.write("</select>\n");

document.write("<a href=\"javascript:goartist('prev');\" accesskey=\"b\" title=\"[B] Previous artist.\">&laquo;</a> ");
document.write("<a href=\"javascript:goartist('next');\" accesskey=\"n\" title=\"[N] Next artist.\" >&raquo;</a> ");

// ##### FUNCTION #####
function changeartist() {
	if ( document.getElementById('artist').value ) {
		var line = document.getElementById('artist').value;
		window.open(line + ".php","_self");
	}
}

function goartist(direction) {
	var td = document.title.replace("DWI Extreme Series - Featured Artists - ","");
	var select = document.getElementById("artist");
	//alert("j: " + j + "\nj.text: " + select.options[j].text + "\nprev value: " + select.options[j - 1].value + "\nnext value: " + select.options[j + 1].value);
	for ( j = 1; j <= artist.length; j++) {
		if ( select.options[j].text == td ) {
			if ( j < select.length && direction == "next" ) {
				select.selectedIndex = j + 1;
				setTimeout("changeartist()",100);
			}
			else if ( j > 1 && direction == "prev" ) {
				select.selectedIndex = j - 1;
				setTimeout("changeartist()",100);
			}
		}
	}
}

var td = document.title.replace("DWI Extreme Series - Featured Artists - ","");
var menu= document.getElementById("artist");
for ( h = 0; h < menu.length; h++) {
	if ( menu.options[h].text == td ) {
		menu.selectedIndex = h;
		//menu.style.borderWidth = "0";
	}
}

// - stop hiding -->

