/******************************************************

As of 8 August 2002, it has been deemed that the internet
MENU system is difficult to manage.

Macintosh is reporting problems on IE & Netscape with the
transparent background image.

Using &nbsp; to allow mouse HREF click events on blank space
will also affect width and height of table and items...

The current menu system is not dynamic and the use of layers
and tables will be streamlined to use one set of code...

Netscape Looping system will also be disabled because
it is taking too long and teking too much memory resources.

Changes will be made to the following files...

changestyle_bg.js
menurevised.js
index.html
internetmain.css
internetmainmod.css
proto_ambient.html
browseinf.js

On Windows, the icon will be changed to a hand with the code
this.style.cursor="hand"

On Netscape, it will call the mouseup event capture for layer
and allow HREF.


Mariano S. Tanenglian, Jr.

*******************************************************/

var glbrefptr;
var glblnkptr;
var glbarray;


function mouseHandler(action, refptr, lnkptr){
	//switches	0: mouseOver; 1: mouseOut
	glbrefptr = refptr;
	glblnkptr = lnkptr;

	switch(action){
		case 0:
			mouseOverHandler();
			break;
		case 1:
			mouseOutHandler()
			break;
	}//end swtich statement
}//end function


function mouseOverHandler(){

	if(detectIE()){
		if(glbrefptr.style.cursor){
			glbrefptr.style.cursor = "hand";
		}//end condition
		glbrefptr.onclick = sendAway;
	} else {
		if(!soy_nav6up){
			glbrefptr.captureEvents(Event.MOUSEUP);
			glbrefptr.onmouseup = sendAway;
		} else {
			//alert("Netscape 6 Detected");
			glbrefptr.addEventListener("click", sendAway, false);

		}//
	}//end conditon
}//end function


function sendEway(){
	alert("Click Event Called...");
}//
function mouseOutHandler(){
}//end function

function sendAway(){
	if((glblnkptr != '')||(glblnkptr != '#')){
		window.location.href = glblnkptr;
	} else {
		return false;
	}//end condition
}//end condition