// NEW! roll-over menu effects for stuff.

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

function mysci_Tabs( tableCellRef, hoverFlag, navStyle ) {
	if ( hoverFlag ) {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundImage = 'url("images/new/pctabs1a.gif")';
				tableCellRef.style.backgroundColor = '#E5E5E5';
				tableCellRef.style.borderTopColor = '#FFFFFF';
				tableCellRef.style.borderRightColor = '#E5E5E5';
				tableCellRef.style.borderBottomColor = '#FFFFFF';
				tableCellRef.style.borderLeftColor = '#E5E5E5';
				tableCellRef.style.cursor = 'pointer';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#999999';
					}
				break;
			case 2:
				tableCellRef.style.backgroundImage = 'url("images/new/pctabs3a.gif")';
				tableCellRef.style.backgroundColor = '#EFEFEF';
				tableCellRef.style.borderTopColor = '#FFFFFF';
				tableCellRef.style.borderRightColor = '#EFEFEF';
				tableCellRef.style.borderBottomColor = '#FFFFFF';
				tableCellRef.style.borderLeftColor = '#EFEFEF';
				tableCellRef.style.cursor = 'pointer';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#999999';
					}
				break;
			default:
				tableCellRef.style.backgroundImage = 'url("images/new/pctabs1a.gif")';
				tableCellRef.style.backgroundColor = '#EFEFEF';
				tableCellRef.style.borderTopColor = '#FFFFFF';
				tableCellRef.style.borderRightColor = '#EFEFEF';
				tableCellRef.style.borderBottomColor = '#FFFFFF';
				tableCellRef.style.borderLeftColor = '#EFEFEF';
				tableCellRef.style.cursor = 'pointer';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#999999';
					}
		}
	} else {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundImage = 'none';
				tableCellRef.style.backgroundColor = '#E5E5E5';
				tableCellRef.style.borderTopColor = '#E5E5E5';
				tableCellRef.style.borderRightColor = '#E5E5E5';
				tableCellRef.style.borderBottomColor = '#E5E5E5';
				tableCellRef.style.borderLeftColor = '#E5E5E5';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#333333';
					}
				break;
			case 2:
				tableCellRef.style.backgroundImage = 'none';
				tableCellRef.style.backgroundColor = '#E5E5E5';
				tableCellRef.style.borderTopColor = '#E5E5E5';
				tableCellRef.style.borderRightColor = '#E5E5E5';
				tableCellRef.style.borderBottomColor = '#E5E5E5';
				tableCellRef.style.borderLeftColor = '#E5E5E5';
				tableCellRef.style.cursor = 'pointer';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#333333';
					}
				break;
			default:
				tableCellRef.style.backgroundImage = 'none';
				tableCellRef.style.backgroundColor = '#EFEFEF';
				tableCellRef.style.borderTopColor = '#FFFFFF';
				tableCellRef.style.borderRightColor = '#EFEFEF';
				tableCellRef.style.borderBottomColor = '#EFEFEF';
				tableCellRef.style.borderLeftColor = '#EFEFEF';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#333333';
					}
		}
	}
}

function mysci_TabsClick( tableCellRef, tabStyle, url ) {
	mysci_Tabs( tableCellRef, 0, tabStyle );
	mysci_goTo( url );
}