// Browser Detection
var detect = navigator.userAgent.toLowerCase();
var OS,browser="",total,thestring,isIE=false,isNav=false,isNS4=false,isNS6plus=false,isOpera=false,isKon=false,isWebTv=false,isiCab=false;isOmniWeb=false;
var version = 0;
var calendarExists="no";
var LFPageWidth = "100%";

var strPath = "";

if ((secondSlash = (path = window.location.pathname).indexOf('/',1)) != -1)
{ 
	strPath = path.substring(0,secondSlash);
}

var hostpath = window.location.protocol+"//"+window.location.host+strPath;

if (checkIt('konqueror'))
	{
 	isKon=true;
 	browser="Konqueror";
	}
else if (checkIt('omniweb'))
	{
	isOmniWeb=true;
 	browser = "OmniWeb"
	}
else if (checkIt('opera'))
	{
 	isOpera=true;
	browser="Opera";
	}
else if (checkIt('webtv'))
	{
 	isWebTv=true;
	browser="WebTV";
	}
else if (checkIt('icab'))
	{
 	isiCab=true;
	browser="ICab";
	}
else if (checkIt('msie'))
	{
 	isIE=true;
	browser="Internet Explorer";
	}
else if (!checkIt('compatible'))
	{
	version = detect.charAt(8);
	isNav=true;
	browser="Mozilla Compatible";
	}
else 
	{
	browser = "An unknown browser";
	}

isDOM = (document.getElementById) ? true : false;

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;
}
 
	 

// USED FOR POINTER CHANGE
function changetohand(which)
	{
	if (!document.getElementById)
		{
		if (document.all)
			which.style.cursor = 'hand';
		else
			which.style.cursor = 'pointer';
		}
	else
		{
		which.style.cursor = 'pointer';
		}
	}
	function changetodefault(which)
	{
	which.style.cursor = 'default';
	}
	
	
function hideSubs(the_sub)
{
	var subs_array = new Array(the_sub);
	document.getElementById(the_sub).style.display = "none";
	return;
}
  




