
			var NS4DOM = (document.layers) ? true : false;
			var IEDOM = (document.all) ? true : false;
			var W3CDOM = (document.getElementById) ? true : false;

			function getObject(id)
			{
				if (NS4DOM) ref = "document." + id;
				else if (IEDOM) ref = id;
				else if (W3CDOM) ref = "document.getElementById('" + id + "')";
				var object = eval(ref);
				return object;
			}

			function DoRedirect(t)
			{
				window.location = "" + t;
			}

			function SetStyle(id, _style)
			{
				if (id != "" && _style != "")
				{
					object = getObject(id);

	 				if (object != null)
					{
						object.className = _style;
					}
				}
			}

			function trim(sString)
			{
				while (sString.substring(0,1) == ' ')
				{
					sString = sString.substring(1, sString.length);
//				alert( "-" + sString + "-" );
				}

				while (sString.substring(sString.length-1, sString.length) == ' ')
				{
					sString = sString.substring(0,sString.length-1);
//				alert( "-" + sString + "-" );
				}

//				alert( "-" + sString + "-" );

				return sString;
			}
			
			
      function imgSwaper( id, img )
      {
      	getObject(id).src = img;
      }


		function DoHighlight( id, _style )
		{
			if (id != "" && _style != "")
			{
				object = getObject(id);

 				if (object != null)
				{
					if (object.className != "selected" && object.className != "tleft_ro_selected" && object.className != "tright_ro_selected")
						object.className = _style;
				}
			}
		}

		function DoUnhighlight( id, _style )
		{
			if (id != "" && _style != "")
			{
				object = getObject(id);

 				if (object != null)
				{
					if (object.className != "selected" && object.className != "tleft_ro_selected" && object.className != "tright_ro_selected")
						object.className = _style;
				}
			}
		}

//    var menuImage = new Array();
//		var menuImageSrc = new Array('<?php echo( $baseUri ); ?>images/menu_top_mid.png', '<?php echo( $baseUri ); ?>images/menu_top_mid.png', '<?php echo( $baseUri ); ?>images/menu_top_left.gif', '<?php echo( $baseUri ); ?>images/menu_top_right.gif', '<?php echo( $baseUri ); ?>images/menu_top_left_ro.gif', '<?php echo( $baseUri ); ?>images/menu_top_right_ro.gif', '<?php echo( $baseUri ); ?>images/menu_top_mid_ro.png', '<?php echo( $baseUri ); ?>images/menu_top_mid.png', '<?php echo( $baseUri ); ?>images/menu_top_mid_ro.png');

		function InitMenuUpdate()
		{
			for ( index = 0; index < menuImageSrc.length; index++)
			{
				menuImage[index] = new Image();
          menuImage[index].src = "" + menuImageSrc[index];
			}

			return true;
		}


			function PageCleanUp()
			{
				if( doCleanup == true ) 
				{
					var x = document.getElementsByTagName("h1");
	
					for (i = 0; i < x.length; i++)
					{
						if( x[i].className == "iHeading" )
						{
							x[i].style.display="none";
						}
					}
	
					x = document.getElementsByTagName("h2");
	
					for (i = 0; i < x.length; i++)
					{
						if( x[i].className == "iHeading" )
						{
							x[i].style.display="none";
						}
					}
	
					x = document.getElementsByTagName("span");
	
					for (i = 0; i < x.length; i++)
					{
						if( x[i].className == "iHeading" )
						{
							x[i].style.display="none";
						}
					}
	
					x = document.getElementsByTagName("img");
	
					for (i = 0; i < x.length; i++)
					{
						if( x[i].className == "iImage" )
						{
							x[i].style.display="inline";
						}
					}
				}


			}