
<!--

/* AUTO-add bookmark to browser */
function addBookmark(siteAddress,siteName)	{
	if(window.sidebar) {
		window.sidebar.addPanel(siteName, siteAddress,"");
	}	else if(document.all)	{
			window.external.AddFavorite(siteAddress,siteName);
	}	else if(window.opera && window.print)	{
			return true;
	}
	return false;
}

/** show the passed object if it exists **/
function showObj(obj) {
	if(document.getElementById(obj)) {
		document.getElementById(obj).style.display='';
		return true;
	}
	return false;
}

/** hide the passed object if it exists **/
function hideObj(obj) {
	if(document.getElementById(obj)) {
		document.getElementById(obj).style.display='none';
		return true;
	}
	return false;
}

function showmenu(elmnt) {
	document.getElementById(elmnt).style.visibility="visible";
	/*document.getElementById(elmnt).style.display='';*/
}

function hidemenu(elmnt) {
	document.getElementById(elmnt).style.visibility="hidden";
	/*document.getElementById(elmnt).style.display='none';*/
}

/**************   show menu item for specified time  ***************************/
function showMenuItem(id) {
	if(document.getElementById(id)) {
		// make it visible first
		showObj(id);
		
		// count to 3 and hide the object
		setTimeout("hideObj('" + id + "')", 1500);

		return true;
	}
	return false;
}

function ajaxFunction() {
	var xmlHttp;
	try { xmlHttp=new XMLHttpRequest(); }  // Firefox, Opera 8.0+, Safari
	catch (e) {
		try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } // Internet Explorer
		catch (e) {
			try { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); }
			catch (e) {
				alert("Either your browser does not support AJAX or you have javascript disabled.");
				return false;
			}
		}
	}
	return xmlHttp;
}


-->