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

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

function browser_cursor(){
	var bName = navigator.appName;
	var bVer = parseInt(navigator.appVersion);
 
	if (bName == "Microsoft Internet Explorer" && bVer < 6) 
		return "hand"; 
	else 
		return "pointer";
}

function mysci_Tabs( tableCellRef, hoverFlag, navStyle ) {
	if ( hoverFlag ) {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundImage = 'url("/catalog/myabImages/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 = browser_cursor();
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#333333';
					}
				break;
			case 2:
				tableCellRef.style.backgroundImage = 'url("/catalog/myabImages/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 = browser_cursor();
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#333333';
					}
				break;
			default:
				tableCellRef.style.backgroundImage = 'url("/catalog/myabImages/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 = browser_cursor();
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#333333';
					}
		}
	} 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 = '#999999';
					}
				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 = browser_cursor();
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#999999';
					}
				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 = '#999999';
					}
		}
	}
}

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