/* 

TextHighlighter v1.0

Text Highlighter for marking up text sections referred from an 
external document via an URL, e.g. http://...../mysite.html#mytextsection

(C) 2003, Jack (tR) http://www.jtr.de/scripting/javascript

This script is published under GPL Version 2+ (see http://www.fsf.org)

*/
	
	function inner_link_highlight_selected()
	{
		var start_pos = this.location.href.search("\#"); 

		if ( start_pos != -1 )
		{
			end_pos = this.location.href.length;
			inner_link = this.location.href.substr( start_pos+1, end_pos );
			document.body.style.color = '#AAAAAA';
			document.getElementById( inner_link ).style.backgroundColor = '#EEEEFF';
			document.getElementById( inner_link ).style.color = '#000000';
		}
	}	
	
	inner_link_highlight_selected ();