function loadScripts()
{
	setmyclass();
	openMenus();
	clearSearchForm();
}

function clearSearchForm()
	{
		$(document).ready(function(){
			$(".inputfield").focus(function() {
			if ( $(this).val() != "")
			$(this).val('');
			});
		});
	}

function openMenus()
{
// set this variable to the classname:
	var myclass = "current";
	var pnode;
	var cnode;
	var target = location.href;
	var sn = document.getElementById("localNav");
	if (sn != null)
	{
	var ul = sn.getElementsByTagName("UL");
	for (i=0;ul.length;i++)
	{
		if (ul[i] != null)
		{
			if (ul[i].className == "localNav")
			   ul[i].style.display = "block";
			else
				ul[i].style.display = "none";
		} else
			break;
	}
	var hrefs = document.getElementsByTagName("a");
	for (i=0; hrefs.length; i++)
	{
		if(hrefs[i] != null)
		{
			var testme = hrefs[i].href;
			if(testme==target)
			{
				if (hrefs[i].parentNode.tagName == "LI")
				{
					pnode = hrefs[i].parentNode;
					pnode.className = myclass;
					cnodes = pnode.childNodes
					for (j=0; cnodes.length; j++)
					{
						if (cnodes[j] != null)
						{
								if (cnodes[j].tagName == "UL")
									cnodes[j].style.display = 'block';
						}
						else
							break;
					}
				}
				
				if (pnode != null)
				{
					while ((pnode == null) || (pnode.className != "localNav"))
					{
						if (pnode != null)
						{
							if (pnode.tagName == "UL")
									pnode.style.display = 'block';
								
								pnode = pnode.parentNode;
						}
						else
							break;
					}
				}
			}  
			//alert(me);
		} 
		else 
		{
			break;
		}
	}
	}
}