var agt		= navigator.userAgent.toLowerCase();
var versInt	= parseInt(navigator.appVersion);
var is_aol	= (agt.indexOf("aol") != -1);


function goTo( url ) {
	window.location.href = url;
}


function roofbarClick( tableCellRef, url ) {
	roofbar( tableCellRef, 0 );
	goTo( url );
}

function navbar( tableCellRef, hoverFlag, navStyle ) {
	if ( hoverFlag ) {
		switch ( navStyle ) {
			case 1:
			// mouseover color
				tableCellRef.style.backgroundColor = 'D3BEAA';
				break;
			default:
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#464646';
				}
		}
	} else {
		switch ( navStyle ) {
			case 1:
			// color after mouseout (original color)
				tableCellRef.style.backgroundColor = 'E0D6C4';
				break;
			default:
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#464646';
				}
		}
	}
}

function navbarClick( tableCellRef, navStyle, url ) {
	navbar( tableCellRef, 0, navStyle );
	goTo( url );
}



// end

