//	This team's JavaScript - Copyright (C) 2008-2011 Charles A Upsdell, All Rights Reserved; www.upsdell.com


// getElement - get element associated with an ID, or null if not found
function getElement ( id )
{
var element = null;
if ( (arguments.length == 0) || (id == "") )
	return( null );
if ( document.getElementById )
	element = document.getElementById( id );
else if ( document.all )
	element = document.all[id];
return( element );
}


// Scroll to a position, defaulting to top of page; return false if done
function myScrollTo ( left, top )
{
left = left || 0;
top = top || 0;
var value = true;
if ( typeof(window.scrollTo) !== typeof(noSuchFunction) )
  {
 	window.scrollTo( left, top );
	value = false;
  }
return( value );
}


//	OnLoad Function
function myOnLoad( )
{
startList( "dropdown", "dropdown2" );
}


function startList ( id_list )
{
if ( typeof(isIE5or6) !== typeof(noSuchData) )
  {
	for ( var i = 0; i < arguments.length; ++i )
	  {
		var id = arguments[i];
		navRoot = document.getElementById(id);
		if ( navRoot == null )
			continue;
		for ( var j = 0; j < navRoot.childNodes.length; ++j )
		  {
			node = navRoot.childNodes[j];
			if (node.nodeName=="LI")
			  {
				node.onmouseover=function() { this.className+=" over"; }
				node.onmouseout=function() { this.className=this.className.replace(" over", ""); }
			  }
		  }
	  }
  }
}



