


function createButton( buttonClass, buttonText, buttonURL ) {
	document.write( "<div class='" + buttonClass + "' onMouseOver='buttonMouseOver(this);' onMouseOut='buttonMouseOut(this);' onMouseDown='buttonMouseDown(this, \"" + buttonURL + "\");' onMouseUp='buttonMouseUp(this);'>" + buttonText + "</div>" );
}

function createButtonInactive( buttonClass, buttonText ) {
	document.write( "<div class='" + buttonClass + " selected'>" + buttonText + "</div>" );
}



function buttonMouseOver( buttonReference ) {
	buttonReference.className = buttonReference.className + " mouseOver";
}

function buttonMouseOut( buttonReference ) {
	buttonReference.className = buttonReference.className.replace( " mouseOver", "" );
}

function buttonMouseDown( buttonReference, url ) {
	buttonReference.className = buttonReference.className.replace( " mouseOver", "" );
	buttonReference.className = buttonReference.className + " mouseDown";
	window.location = url;
}

function buttonMouseUp( buttonReference ) {
	buttonReference.className = buttonReference.className.replace( " mouseDown", "" );
}