<!-- Hide from old browsers
var nscp = (navigator.appName == "Netscape")
var ismc = (navigator.appVersion.indexOf("Mac") != -1)
var currentmenuitem = "";


var browser=false;
if((navigator.appName=="Netscape")&&(parseInt(navigator.appVersion)>=3)||(parseInt(navigator.appVersion)>=4)) browser=true;

IE4 = (document.all) ? 1 : 0;       					// initialize browser..
NS4 = (document.layers) ? 1 : 0;    					// identification and...

function rollover(the_image_name,new_state,in_div){
    if (browser) {
	if (in_div) {
		if (NS4) {
	  		var the_image = eval("window.document."+in_div+".document."+the_image_name);
		}
		else if (IE4) {
	  		var the_image = eval("window.document."+the_image_name);
		}
	}
	else {
	  var the_image = eval("window.document."+the_image_name);
	}
	var the_new_image = "images/" + the_image_name + "_" + new_state + ".gif";
	the_image.src = the_new_image;
    }
}

// preload images
function preLoad() {
        this.length = preLoad.arguments.length;
        for (var i = 0; i < this.length; i++) {
                this[i] = new Image();
                this[i].src = preLoad.arguments[i];
                }
}

function showdivblock(menu_item){
	menuname = menu_item+'block';
	if (browser){
		IE4 = (document.all) ? 1 : 0;       					// initialize browser..
		NS4 = (document.layers) ? 1 : 0;    					// identification and...
		ver4 = (IE4 || NS4) ? 1 : 0;        					// DHTML variables

		hidealldivblocks();
	    if (IE4) {                      					// check for MSIE4
    	    whichEl = eval("document.all."+menuname+".style")         	// and assign MSIE alias
   		}
    	else {                                              		// or...
   	 		whichEl = eval("document."+menuname)   				// assign Netscape alias
    	};
    	whichEl.visibility = "visible"					// make visible
	currentmenuitem = menu_item;
	//alert('current menu item ='+currentmenuitem);
	}
}

function hidedivblock(menuname){
	if (browser){
	IE4 = (document.all) ? 1 : 0;       					// initialize browser..
	NS4 = (document.layers) ? 1 : 0;    					// identification and...
	ver4 = (IE4 || NS4) ? 1 : 0;        					// DHTML variables

        if (IE4) {                      					// check for MSIE4
		whichEl = eval("document.all."+menuname+".style")         	// and assign MSIE alias
    	}
	else {                                              		// or...
    		whichEl = eval("document."+menuname)   				// assign Netscape alias
	};
	whichEl.visibility = "hidden"					// make hidden
	}
	if ( currentmenuitem != ""){
		rollover(currentmenuitem,'0');
	}
}

function checkMouse(evt)
{	x1 = (nscp) ? evt.pageX : event.clientX
	y1 = (nscp) ? evt.pageY : event.clientY
	//alert("x="+x1+" y="+y1);
	if ( x1 < 160 || x1 > 515 ) hidealldivblocks();
	if ( y1 < 130 || y1 > 470 ) hidealldivblocks();

	if ( currentmenuitem == 'abouttsg') if ( y1 > 235 ) hidealldivblocks();
	if ( currentmenuitem == 'allabout'){
		if ( y1 < 170 ) hidealldivblocks();
		if ( x1 < 340 && y1 > 300 ) hidealldivblocks();
	}
	if ( currentmenuitem == 'resources') if ( y1 > 290 || y1 < 220) hidealldivblocks();
	if ( currentmenuitem == 'tsgevents'){
		if ( y1 > 400 || y1 < 255) hidealldivblocks();
		if ( x1 < 340 && y1 > 300) hidealldivblocks();
	}
}


function hidealldivblocks() {
		hidedivblock('abouttsgblock');
		hidedivblock('allaboutblock');
		hidedivblock('resourcesblock');
		hidedivblock('tsgeventsblock');
}

function overhandler(menuname){
	showdivblock(menuname);
	rollover(menuname,'1');
}

//-->
