//********************************************************
//*
//*   BibleJavaScript102.js
//*
//*   Java Script for the Bible Search Engine  version 102
//*
//*   (c) Drew Haninger  8/1/98
//*
//*********************************************************



//**********************************************************
//*
//*   Global Variables
//*
//**********************************************************
var lastItem;
var WordDefinitionText = "";
var BrowserTypeIsMsie = 1;


//**********************************************************
//*
//*  function: ShowText 
//*
//**********************************************************
function ShowText (WordNumber) 
{

   SetDefinitionText(WordNumber);

   document.messages.WordDefinitionWindow01.value = WordDefinitionText;
   UpdateMouseOver();

}

 
//**********************************************************
//*
//*  function: UpdateMouseOver 
//*
//**********************************************************
function  UpdateMouseOver()
{

   window.status = WordDefinitionText;
     // parent.stat(WordDefinitionText);

   HandleMouseMove("over");

}


//**********************************************************
//*
//*  function: InitDefWindow 
//*
//**********************************************************
function  InitDefWindow(WordNumber) 
{

   SetDefinitionText(WordNumber);
   document.messages.WordDefinitionWindow01.value = WordDefinitionText;

}


//**********************************************************
//*
//*  function: HandleMouseMove 
//*
//**********************************************************
function  HandleMouseMove(which)
{

    if( ! BrowserTypeIsMsie )
	       return;

	var e = window.event.srcElement;

	//while (e != null && e.tagName != "B" ) 
	//{
	//   e = e.parentElement;
	//}
	if (e.style.backgroundColor != "red")
	{
		if (lastItem != null && lastItem.style.backgroundColor != "red")
			lastItem.style.backgroundColor = "";
		if (which == "over")
			e.style.backgroundColor = "yellow";
		else
 			e.style.backgroundColor = "yellow";
		lastItem = e;
	}    
}


//
// end of the file
//