// JavaScript Document

function getContentText(divId) {
	var databaseId;
	var str_pos = divId.indexOf('outrider_');
	if(str_pos==-1) {
	    str_pos = divId.indexOf('outriderstaff_');
	    if(str_pos==-1) return;
	    //use this databaseId as the id for searching the player record (derived from 'playerX' where 'X' represents the id
	    databaseId = divId.substr((str_pos+14));
	    return outriderStaffImages[databaseId];
	}
	//use this databaseId as the id for searching the player record (derived from 'playerX' where 'X' represents the id
	databaseId = divId.substr((str_pos+9));
	return outriderImages[databaseId];
}	

function showOutrider(){
	var item_value = this.menu.activeItem.value;
	document.getElementById("outrider_id").value = item_value;
	
	document.getElementById("outrider_form").submit();
}

YAHOO.util.Event.onAvailable("outrider_select",setupSplit, {button:"select_outrider", selectbox:"outrider_select",onclick:showOutrider}, true);

