<!--

document.UM = new Object();
document.UM.menu = new Object();
document.UM.menu.dropdown = new Array();

function UM_initialize_toolbar() {
	var i;
	if (document.all) {
	for(i = 0; i < document.all('container').all.length; i++) {
		if ((document.all('container').all[i].className == 'menuHeader') || (document.all('container').all[i].className == 'menuLinks')) {
			document.UM.menu.dropdown[document.UM.menu.dropdown.length] = document.all('container').all[i];
	    }
	}
	} 
	else if (document.getElementsByTagName && document.getElementById) {
	var contained = document.getElementById('container').getElementsByTagName('div');
	for(i = 0; i < contained.length; i++) {
		if ((contained[i].getAttribute('class') == 'menuHeader') || (contained[i].getAttribute('class') == 'menuLinks')) {
		document.UM.menu.dropdown[document.UM.menu.dropdown.length] = contained[i];
	    }
	}
    }
}

function UM_toggle(item) {
	
	if (browser == 'Safari') {
		UM_toggle_safari(item);
	} else {
		if(document.UM.menu.dropdown.length) {
			if (document.UM.menu.dropdown[item].style.display == 'none') {
				document.UM.menu.dropdown[item].style.display = '';
			} 
			else {
				document.UM.menu.dropdown[item].style.display = 'none';
			}
		}
	}
}

// This is the current working code for safari

function UM_toggle_safari(id) {
  if (document.all){
    if(toggleme.style.display == 'none'){
      document.all[id].style.display = '';
    } else {
      document.all[id].style.display = 'none';
    }
  } else if (document.getElementById){
    if(document.getElementById(id).style.display == 'none'){
      document.getElementById(id).style.display = 'block';
    } else {
      document.getElementById(id).style.display = 'none';
    }
  }
}

// Browser Detection Area

var detect = navigator.userAgent.toLowerCase();
var OS,browser,version,total,thestring;

if (checkIt('konqueror'))
{
	browser = "Konqueror";
	OS = "Linux";
}
else if (checkIt('safari')) browser = "Safari"
else if (checkIt('omniweb')) browser = "OmniWeb"
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 browser_detect_report() {
	
	document.write('Browser Detection:<br>');

	document.write(OS+'<br>'+browser+'<br>'+version+'<br>'+total+'<br>'+thestring);
	
	if (version < 5 && browser == 'Netscape Navigator') document.write('<br>You\'re using an obsolete Browser, please destroy it.');

}

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}

// -->