<!--
// JavaScript Document

var currentSubMenu = null;
var oldsubmenu="";
var detect = navigator.userAgent.toLowerCase(),browser;
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"}
else browser = "An unknown browser";

var t=null;
var currentsub22=null;

function hideMenu2(){
	currentsub22=currentSubMenu;
	t=setTimeout('hideMenu22()',1000);
}
function hideMenu22() {
	if (currentsub22 != null)
	{
		currentsub22.style.display = 'none';
	}
}

function clearTimeOut()
{
	if (t!=null)
		clearTimeout(t);
}

function showMenu(intID, objTD) {
	currentsub22=null;
	clearTimeout(t);
	var objMenu = document.getElementById('dropmenu_' + intID)
	if (currentSubMenu != objMenu && currentSubMenu != null)
	{
		currentSubMenu.style.display = 'none';
	}
	currentSubMenu = objMenu;
	tmpLeft = 0;
	for(var i = objTD; i!=null; i=i.offsetParent){
		tmpLeft+=i.offsetLeft;
	}
	objMenu.style.left = tmpLeft + 'px';
	if (browser == "Internet Explorer") {
		objMenu.style.top = '81px';
	}
	objMenu.style.display = 'block';
}


/*
function hideMenu() {
	if (currentSubMenu != null)
	{
		currentSubMenu.style.display = 'none';
	}
}
*/

function SetBgColor(intID,rgbColor){
	hideothers();
	var objMenu = document.getElementById('table_' + intID);
	if (objMenu!=null)
	{
		if (objMenu.style.backgroundColor!=rgbColor)
		{
			objMenu.style.backgroundColor=rgbColor;
			//alert(rgbColor);
		}
	}
}

function hideothers(){
/*	var objmenu="";
	for (i = 0; i <= 200; i++)
	{
	objMenu = document.getElementById('table_' + i)
	if (objMenu!=null)
		{
			objMenu.style.backgroundColor='#6C7B99';
		}
	}
*/
}

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

function setLinkIE(object,who)
{
	/*Fix for IE whoe doesnt like links without href and mozilla that doesn't like href links because it looses the showing of the menu.*/
	if (who=='1'){
		object.style.textDecoration='underline';
		object.style.color='#BE6561';	
	}else{
		object.style.textDecoration='none';
		object.style.color='#FFFFFF';	
	}
}
function setLinkIEa(object,who)
{
	/*Fix for IE whoe doesnt like links without href and mozilla that doesn't like href links because it looses the showing of the menu.*/
	if (who=='1'){
		object.style.textDecoration='underline';
		object.style.color='#F3E679';	
	}else{
		object.style.textDecoration='none';
		object.style.color='#FFFFFF';	
	}
}
function printPage() {
  if (window.print)
    window.print()
  else
    alert("Sorry, your browser doesn't support this feature.");
}
// -->