<!--
// ***********************
var detect = navigator.userAgent.toLowerCase();
var OS,browser,version,total,thestring;

if (checkIt('konqueror'))
{
	browser = "Konqueror";
	OS = "Linux";
}
else if (checkIt('opera')) browser = "Opera"
else if (checkIt('webtv')) browser = "WebTV";
else if (checkIt('icab')) browser = "iCab"
else if (checkIt('msie')) browser = "Internet Explorer"
else if (!checkIt('compatible'))
{
	browser = "Netscape Navigator"
	version = detect.charAt(8);
}
else browser = "An unknown browser"; if (!version) version = detect.charAt(place + thestring.length); if (!OS)
{
	if (checkIt('linux')) OS = "Linux";
	else if (checkIt('x11')) OS = "Unix";
	else if (checkIt('mac')) OS = "Mac"
	else if (checkIt('win')) OS = "Windows"
	else OS = "an unknown operating system";
}

function checkIt(string)
{
place = detect.indexOf(string) + 1;
thestring = string;
return place;
}
// ******************************





var browserIsCompatible = true; // browser presumed innocend until proven guilty

// Netscape Version 4.08 and up, excluding 6(aka 5)
if ((browser == "Netscape Navigator") && (version >= 5 ))
{
	browserIsCompatible = true;
}

// All Internet Explorers (except if we have a Mac IE less than ver. 5)
if ((browser == "Internet Explorer") && (version < 5 ) && (OS == "Mac"))
{
	browserIsCompatible = true;	
}

//document.write("Detection results: Browser: " + browser + " ver. " + version + ", os: " + OS  + " ");
//document.write(" ** Browser is Compatible? " + browserIsCompatible);

if (!browserIsCompatible)
{
	if(OS == 'Mac')
	{
		window.location="home.html";
	}
	
	if (browser == "Netscape Navigator")
	{
		window.location="home.html";
	}
}

function getStyleObject(objectId) {
    // cross-browser function to get an object's style object given its id
    if(document.getElementById && document.getElementById(objectId)) {
// W3C DOM
return document.getElementById(objectId).style;
    } else if (document.all && document.all(objectId)) {
// MSIE 4 DOM
return document.all(objectId).style;
    } else if (document.layers && document.layers[objectId]) {
// NN 4 DOM.. note: this won't find nested layers
return document.layers[objectId];
    } else {
return false;
    }
} // getStyleObject

function changeObjectVisibility(objectId, newVisibility) {
    // get a reference to the cross-browser style object and make sure the object exists
    var styleObject = getStyleObject(objectId);
    if(styleObject) {
styleObject.visibility = newVisibility;
return true;
    } else {
// we couldn't find the object, so we can't change its visibility
return false;
    }
} // changeObjectVisibility

function moveObject(objectId, newXCoordinate, newYCoordinate) {
    // get a reference to the cross-browser style object and make sure the object exists
    var styleObject = getStyleObject(objectId);
    if(styleObject) {
styleObject.left = newXCoordinate;
styleObject.top = newYCoordinate;
return true;
    } else {
// we couldn't find the object, so we can't very well move it
return false;
    }
} // moveObject


var numMenus = 5;


function showMenu(menuNumber, eventObj) {
    //    alert(eventObj);
    hideAllMenus();
    var menuId = 'menu' + menuNumber;
    if(changeObjectVisibility(menuId, 'visible')) {
var menuTitle = getStyleObject('menuTitle' + menuNumber);

eventObj.cancelBubble = true;
return true;
    } else {
return false;
    }
}

function openSubWin(strURL, pixW, pixH)
        {
                strLocation = strURL;
                strWHandle = "sdcSubWin";
                strProps = "resizable=yes,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=yes,width=" + pixW + ",height=" + pixH + ",top=200,left=200";
                window.open(strLocation, strWHandle, strProps);
        }

function hideAllMenus() {
    for(counter = 1; counter <= numMenus; counter++) {
changeObjectVisibility('menu' + counter, 'hidden');
var menuTitle = getStyleObject('menuTitle' + counter);
menuTitle.backgroundColor = '#000000';
    }
}

document.onclick = hideAllMenus;
// -->
