var agt = navigator.userAgent.toLowerCase();
var versInt = parseInt(navigator.appVersion);
var is_ie	= ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
var is_ie3    = (is_ie && (versInt < 4));
var is_ie4    = (is_ie && (versInt == 4) && (agt.indexOf("msie 4")!=-1) );
var is_aol   = (agt.indexOf("aol") != -1);
var is_aol3  = (is_aol && is_ie3);
var is_aol4  = (is_aol && is_ie4);
var is_aol5  = (agt.indexOf("aol 5") != -1);
var is_aol6  = (agt.indexOf("aol 6") != -1);
var is_comp   = (agt.indexOf("compuserve") != -1);
var is_comp2000   = (agt.indexOf("cs") != -1);	 
var is_compie = (is_comp && is_ie);

function McKLords_goTo( url ) {	
	window.top.mainFrame.main2Frame.location.href = url;
}

function McKLords_goTo2( url ) {	
	window.top.mainFrame.location.href = url;
}

function McKLords_goTo3( url ) {	
	window.top.mainFrame.mainindFrame.location.href = url;
}

function McKLords_goTo4( url ) {	
	window.top.mainFrame.mainretFrame.location.href = url;
}

//needed
function McKLords_navBar( tableCellRef, hoverFlag, navStyle ) {
	if ( hoverFlag ) {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#C7D7E2';
				break;
			default:
//				tableCellRef.style.backgroundColor = '000000';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '999999';
				}
		}
	} else {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#eeeeee';
				break;
			default:
//				tableCellRef.style.backgroundColor = 'cccccc';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#ff0000';
				}
		}
	}
}


function McKLords_navBarClick( tableCellRef, navStyle, url) {
	McKLords_navBar( tableCellRef, 0, navStyle );
	McKLords_goTo( url );
}

function McKLords_navBarClick2( tableCellRef, navStyle, url) {
	McKLords_navBar( tableCellRef, 0, navStyle );
	McKLords_goTo2( url );
}

function McKLords_navBarClick3( tableCellRef, navStyle, url) {
	McKLords_navBar( tableCellRef, 0, navStyle );
	McKLords_goTo3( url );
}

function McKLords_navBarClick4( tableCellRef, navStyle, url) {
	McKLords_navBar( tableCellRef, 0, navStyle );
	McKLords_goTo4( url );
}
