// ***** INITIALIZE PAGE FOR CURRENT CLIENT BROWSER ****
//NETSCAPE 4.x
if (is_nav4) {
	document.write('<link rel="stylesheet" type="text/css" href="_css/netscape4x.css" />');
}
//NETSCAPE 6.2.3
if (is_nav6) {
	document.write('<link rel="stylesheet" type="text/css" href="_css/netscape623.css" />');
}
//NETSCAPE 6.2.3 (Mac)
if (is_mac && is_nav6) {
	document.write('<link rel="stylesheet" type="text/css" href="_css/netscape623-mac.css" />');
}
//SAFARI 1.x
if (is_safari) {
	document.write('<link rel="stylesheet" type="text/css" href="_css/safari1x.css" />');
}
//MSIE 5.x (not 5.5)
if (is_ie5 && !is_ie5_5) {
	document.write('<link rel="stylesheet" type="text/css" href="_css/msie5x.css" />');
}
//MSIE 5.5
if (is_ie5_5) {
	document.write('<link rel="stylesheet" type="text/css" href="_css/msie55.css" />');
}
//OPERA 7.x
if (is_opera7up) {
	document.write('<link rel="stylesheet" type="text/css" href="_css/opera7x.css" />');
}

// ***** /INITIALIZE PAGE FOR CURRENT CLIENT BROWSER ****

// ***** FOCUS SEARCH FIELD ONLOAD ****
function focusSearchField() {
	if (document.getElementById('freetext')) {
		document.getElementById('freetext').focus();
	}
}
// ***** /FOCUS SEARCH FIELD ONLOAD ****

// ---------------------------------------------
// --- Name:    Easy DHTML Treeview           --
// --- Author:  D.D. de Kerf                  --
// --- Version: 0.1           Date: 6-6-2001  --
// ---------------------------------------------
function Toggle(node)
{
//document.write("Node: " + node);
	// Unfold the branch if it isn't visible
	if (node.nextSibling.style.display == 'none')
	{
		// Change the image (if there is an image)
		if (node.children.length > 0)
		{
			if (node.children.item(0).tagName == "IMG")
			{
				node.children.item(0).src = "_img/minus15.gif";
			}
		}

		node.nextSibling.style.display = '';
	}
	// Collapse the branch if it IS visible
	else
	{
		// Change the image (if there is an image)
		if (node.children.length > 0)
		{
			if (node.children.item(0).tagName == "IMG")
			{
				node.children.item(0).src = "_img/plus15.gif";
			}
		}

		node.nextSibling.style.display = 'none';
	}

}


function Togg(itemID) {
	
	eElmID = document.getElementById("div"+itemID)
	eElmIMG = document.getElementById("img"+itemID)
	
	if (eElmID.style.display == 'none') {
		eElmID.style.display = 'block';
		eElmIMG.src = "_img/minus15.gif";
	}
	else {
		eElmID.style.display = 'none';
		eElmIMG.src = "_img/plus15.gif";
	}
}

function SetTopMenuActive(itemID) {

}


/* 	--------------------------------------------------------------------
	changeBg 2009-03-13
	function for navigationBg, last item background issue, file include_navigation.asp
*/

function changeBg(foo){
		
	if (foo == 'over')
		document.getElementById('navigationUl').style.backgroundImage='url(../_img/08_navHoverBgOverflow.gif)';
	else
		document.getElementById('navigationUl').style.backgroundImage='none'
	
	document.getElementById('navigationUl').style.backgroundPosition='right';
	document.getElementById('navigationUl').style.backgroundRepeat='no-repeat';
}


/* 	--------------------------------------------------------------------
	goTo 2009-03-13
	function for selectmenu in the file include_header.asp
*/
function goTo(foo){
	var url = foo;
	if(url != "false"){
		window.open(url, '_blank');
	}
}
