// Returns the closest parent tag with tagName containing
		// the src tag. If no such tag is found - null is returned.
		function checkParent( src, tagName ) {
			while ( src != null ) {
				if (src.tagName == tagName) 
					return src;
				src = src.parentElement;
			}
			return null;
		}
	
		
		// Returns the first tag with tagName contained by
		// the src tag. If no such tag is found - null is returned.
		function checkContent( src, tagName ) {
			var pos = src.sourceIndex ;
			while ( src.contains( document.all[++pos] ) )
				if ( document.all[pos].tagName == tagName )
					return document.all[pos] ;
			return null ;
		}
	
	      
		// Handle onClick event in the outline box
		function outlineAction() {     
			var src = event.srcElement ;
			var item = checkParent( src, "LI" ) ;
	
			if ( parent != null ) {
				var content = checkContent( item, "UL" ) ;
	
				if ( content != null )
					if ( content.style.display == "" )
						content.style.display = "block" ;
					else
						content.style.display = "" ;
			}
			event.cancelBubble = true;
		}