////////////////////////////////////////////////////////////////////////////////////
/*
By Wick Gankanda (wickcentral.com)  Last modified 11-28-2001
Since this is free please don't try to sell
this solution to a company claiming it is yours.
Free to use - don't abuse.

USAGE Example:
		<a id="some text here" 
		href="any url" 
		onMouseover="displaytext(this, 'put text you want on the status bar'); return true;" 
		onMouseout="clearsb(); return true;">
		</a>
		
		OR
		
		if you title defined for the URL, use it here...
		<a id="some text here" 
		title="put text you want on the status bar"
		href="any url" 
		onMouseover="displaytext(this, title); return true;" 
		onMouseout="moutext(this, onmouseoutext); return true;">
		</a>
		
		<!-- text on status bar when called by onMouseOut -->
		<script language="javascript" type="text/javascript">
		var onmouseoutext = "Linux Operating System presented by wickcentral.com";
		</script>
		
	define the following variables in the HTML ref doc		
	<script language="javascript" type="text/javascript">
		var onmouseoutext		= "Linux Operating System presented by wickcentral.com";
		var mousoverlkcolor		= "#ff0000";	// mouse over link color
		var mousoverfontsize	= "150%";		// mouse over link color
		var lbgcolor			= "#FFFFFF";
		var lkbgcolor			= "#ffffff";	// mouse out link back ground color
	</script>

*/
////////////////////////////////////////////////////////////////////////////////////

// Public function to be used on pages.
// doc calls this with input parameters
// called by onmouseover 
function displaytext(obj, text) {

	window.status				= text;				// write text to status bar
	
	prevcolor					= obj.style.color;	// store existing color property of style 
													// of object obj in variable prevcolor
	prevfont					= obj.style.fontFamily;
	prevfontsize				= obj.style.fontSize;
	prevbgcolor					= obj.style.backgroundColor
	
	obj.style.color				= mousoverlkcolor;	// change color of link to this
	obj.style.fontSize			= mousoverfontsize;	// change the size of letters
	obj.style.backgroundColor	= lbgcolor;			// background
	obj.style.fontFamily		= "Times New Roman";// type of font
	
}

// ONLY Clears status bar
// called by moutext
function clearsb() {
	window.status = '';	// clears the status bar
}

// called by onMouseOut
// puts text on status bar and restores the link color

var wait	=	5;					// seconds to delay before clearing status bar

function moutext(obj, onmouseouText) {

	// restore backgroundColor, fontFamilyhere and fontSize here
	obj.style.color 			= prevcolor;	// get color from prevcolor and pass it to object obj
	obj.style.backgroundColor	= prevbgcolor;
	obj.style.fontFamily		= prevfont;
	obj.style.fontSize			= prevfontsize;
	
	window.status = onmouseouText;	// text on the status bar with mouse out

	setTimeout("clearsb()", wait * 1000);				// clear status bar after delay
														// wait X thousand milliseconds

}

// call function to initially change color
function changeto(obj, highlightcolor){

	prevbgcolor = obj.style.backgroundColor;	// store existing color property of style 
												// of object obj in variable prevbgcolor
	obj.style.backgroundColor=highlightcolor;
		
} // function changeto

// call function to change color again, determined by prevbgcolor
function changeback(obj){

obj.style.backgroundColor = prevbgcolor;
		
} // function changeback
