
function sfHover () {
	var sfEls = document.getElementById("nav").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}

}

if (window.attachEvent) window.attachEvent("onload", sfHover);

function changeBG(newElement,newImage){
	var theImage = newImage;
	var theElement = document.getElementById(newElement);
	theElement.style.backgroundImage="url(" + theImage + ")";
}
	











		function hide( oID ) {
			if( oTmp = document.getElementById( oID ) ) {
				oTmp.style.display = 'none';
			}
		}
		
		function hideAll( ) {
			DIVs = document.getElementsByTagName( 'div' );
			for(var i=0; i<DIVs.length; i++ ) {
					if( DIVs[i].className == 'smenu' ) {
					hide( DIVs[i].id );
				}
			}
		}
		

		function show( oID ) {
			if( oTmp = document.getElementById( oID ) ) {
				oTmp.style.display = 'block';
			}
		}
		
		function changeSMenu( oID ) {
			hideAll();
			if( oID == 'default' ) {
				show( 'smenu10' );/* This determines which second level list is displayed in the side navigation menu*/
			} else { 
				show( oID );
			}
		}
		window.onload = function() {
			hideAll();
			show( 'smenu10' ); /* This determines which second level list is displayed in the side navigation menu*/
		}
	
