
var currentTextId = 'home';

function rollText( myObj, newTextId ) {

	if( currentTextId != null && mainPage ) {
		document.getElementById( currentTextId ).style.display = 'none';	
	}	

	if( mainPage ) {
		document.getElementById( newTextId ).style.display = 'inline';	
		currentTextId = newTextId ;
	}

	myObj.src = myObj.src.substring( 0, myObj.src.lastIndexOf( '.' ) ) + '_over.gif';
}


function clearText( myObj ) {
	if( currentTextId != null && mainPage  ) {
		document.getElementById( currentTextId ).style.display = 'none';	
	}

	if( mainPage ) {
		document.getElementById( currentTextId ).style.display = 'none';	
		currentTextId = 'home';
		document.getElementById( currentTextId ).style.display = 'inline';	
	}

	myObj.src = myObj.src.substring( 0, myObj.src.lastIndexOf( '_over' ) ) + '.gif';
}
