//*******************************************************************/
// 																	*/
// Filename: floatingdiv.js											*/
// Author: Ricky McAlister											*/
// Created: 10/07/2006												*/
// Updated: 11/07/2006												*/
// 																	*/
// Description: Used to create a floating div object at the mouse  	*/
//              pointer co-ordinates or 							*/
//				pre-defined x, y co-ordinates						*/
// 																	*/
// Use: Initially setup as a JavaScript src and called from within 	*/
//      the HTML code - onMouseOver, onMouseOut, onClick, etc.		*/
//		e.g. onMouseOver="showHide('hiddenDiv')"					*/
//																	*/
// Notes:	The div object may contain text or images and can have 	*/
//			any other style elements defined. The div must have  	*/
//			it's display element set to 'none' within the div tag  	*/
//			(NOT set within the style - see example.html)			*/											 	*/
//																	*/
// Amendments:	1) Created second function 							*/
//				showHidePos(obj, xpos, ypos), to show the div at a	*/
//				specified x, y position								*/
//																	*/
/********************************************************************/

// function to create a floating div object at the mouse pointer
function show(obj)
{
	var el = document.getElementById(obj);
	
	if ( el.style.display == "none" ) 
	{
		// show the element at the mouse pointer
		el.style.display = '';
		
	}else {
		// make the element disappear
		el.style.display = 'none';
	}// end if else !=
}// end functon showHide()

