//JavaScript Library file  - By Jamal Saleh


//Determine browser

//Global variables.

var IsIE, IsNN
var ref = ""
var styleObj = ""

if( parseInt( navigator.appVersion ) >= 4 )
     {	
	if( navigator.appName == "Microsoft Internet Explorer" )
		{
			IsIE = true;
			ref = "all.";
			styleObj = ".style";
		}
	else
		IsNN = true;

      }


//Transitions.

function transitionHead()
{
	
	if( document.all )		
          {
		 idHead.style.visibility = "hidden"
		idTransDiv.filters.item(0).apply()
		idTransDiv.filters.item(0).transition = 23
		idHead.style.visibility = "visible"
		idTransDiv.filters(0).play(1.000)
        }
}



//this function construct object.
function ConstructObject( x )
{
	var theObj;
	
	if( typeof(x) == "string" )
	{
		//construct an object for the reference.
		theObj = eval( "document." + ref + x + styleObj )
	}
	else
		theObj = x;


	return theObj;
}				


//this function hilites the on-moused button.

function Hilite( theCell,  theLink )
{
	if( IsIE )
	{
		//theLink is a reference whereas theCell is an object.
		
		//construct an object for the reference.
		theLink = eval( "document." + ref + theLink + styleObj )
		
		theLink.color = 'black';
		theCell.style.backgroundColor = '#FFFFC1';
	}

}

function UnHilite( theCell, theLink )
{

	//theLink is a reference whereas theCell is an object.
		
		//construct an object for the reference.
		theLink = eval( "document." + ref + theLink + styleObj )
		
		theLink.color = 'white';
		theCell.style.backgroundColor = '#008080';
	
}

