function hideshow(show_ref,hide_ref) {
	//alert('hi')
	state00 = 'none'; 
	state01 = 'block';
	show(show_ref)
	hide(hide_ref);
	
}

function show(show_ref)
{
	state01 = 'block';
	if (document.all) { 
		//IS IE 4 or 5 (or 6 beta) 
		eval( "document.all." + show_ref + ".style.display = state01");
	} 
	if (document.layers) { 
		//IS NETSCAPE 4 or below 
		document.layers[show_ref].display = state01; 
	} 
	if (document.getElementById &&!document.all) { 
		hza = document.getElementById(show_ref); 
		hza.style.display = state01; 
	}
}

function hide(hide_ref)
{
	state00 = 'none'; 
	if (document.all) { 
		//IS IE 4 or 5 (or 6 beta) 
		eval( "document.all." + hide_ref + ".style.display = state00"); 
	} 
	if (document.layers) { 
		//IS NETSCAPE 4 or below 
		document.layers[hide_ref].display = state00; 
	} 
	if (document.getElementById &&!document.all) { 
		hza = document.getElementById(hide_ref); 
		hza.style.display = state00;
	} 	
}

function showRiderInfo(show_ref)
{
	//alert('hi ' + show_ref);
	state01 = 'block';
	// NEED IE AND FIREFOX VARIANT CODE
	//
	riderPhoto.style.opacity=0.4;
	riderPhoto.filters.alpha.opacity=40;
	//riderPhoto.filters.alpha.opacity=40;

	//hide('riderInfo');
	//hide('raceResults');
	//hide('careerHighlights');	
	//show(show_ref);
}

function replaceRiderImage(url)
{
	//alert(url)
	document.riderPhoto.src=url;
	killOverlay();
}

function killOverlay()
{
	hide('riderInfo');
	hide('raceResults');
	hide('careerHighlights');
}

function showHistory(show_ref)
{
	hide('historyMainContent');
	hide('historyMyth1');
	hide('historyMyth2');
	hide('historyMyth3');
	hide('historyMyth4');
	hide('historyMyth5');
	hide('historyMyth6');
	show(show_ref);
}



