
// determine if browser is capable of image swaps

//

var supported = 0;

if ( ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3)) ||
	 ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) > 3)) )
	 supported = 1;



// update the browser's bottom status bar with specified text
function dispStatus(text)
{
	if (supported) {
		window.status = text;
	}
}



// preload Nav images
var numNav = 9;
var NavImages = new Array(numNav * 9);

function addNav(index, width, height, stat, strImage)
{
	if (supported)
	{
		var on = stat * numNav;
		NavImages[index + on] = new Image(width, height);
		NavImages[index + on].src = strImage;
	}
}


addNav(1,172,57,0, pre_dir + 'images/pnav_esb_off.gif');
addNav(2,172,57,0, pre_dir + 'images/pnav_req_off.gif');
addNav(3,172,57,0, pre_dir + 'images/pnav_register_off.gif');
addNav(4,172,57,0, pre_dir + 'images/pnav_install_off.gif');
addNav(5,145,17,0, pre_dir + 'images/2nd_register_off.gif');
addNav(6,145,17,0, pre_dir + 'images/2nd_windows_off.gif');
addNav(7,145,17,0, pre_dir + 'images/2nd_unix_off.gif');
addNav(8,145,17,0, pre_dir + 'images/2nd_windows_off.gif');
addNav(9,145,17,0, pre_dir + 'images/2nd_unix_off.gif');



addNav(1,172,57,1, pre_dir + 'images/pnav_esb_on.gif');
addNav(2,172,57,1, pre_dir + 'images/pnav_req_on.gif');
addNav(3,172,57,1, pre_dir + 'images/pnav_register_on.gif');
addNav(4,172,57,1, pre_dir + 'images/pnav_install_on.gif');
addNav(5,145,17,1, pre_dir + 'images/2nd_register_on.gif');
addNav(6,145,17,1, pre_dir + 'images/2nd_windows_on.gif');
addNav(7,145,17,1, pre_dir + 'images/2nd_unix_on.gif');
addNav(8,145,17,1, pre_dir + 'images/2nd_windows_on.gif');
addNav(9,145,17,1, pre_dir + 'images/2nd_unix_on.gif');


// each rollover Nav has: name=NavX; where X indicates its index

function nav_rollover (index, action, section)
{
	if (active_num == index && action == 0)
	{
		action = 2;
	}
	if (supported) {
		if (section == current_section)
		{
			//document.images["nav" + index].src = NavImages[index].src;
		} else {
			document.images["nav" + index].src = NavImages[index + (numNav * action)].src;
		}
	}
}
	

function navUpdate(index)
{
	if (supported) {
		document.images["nav" + active_num].src = NavImages[active_num + (numNav * 0)].src;
	}
	active_num = index;
	if (supported) {
		document.images["nav" + index].src = NavImages[index + (numNav * 2)].src;
	}
	
}

state = 0;
function dateview() 
{
	switch (state) 
	{
		// off
		case 0:  nav_rollover(9,1, 'DATE VIEW'); 
		   popUp('elMenu8',event);
		   dispStatus('DATE VIEW');
		   break;
		
		// on
		case 1: nav_rollover(9,0, 'DATE VIEW'); 
		   popDownClick('elMenu8',event);
		   dispStatus('DATE VIEW');
		   break;
	}
	if (state==0)
	{
		state++;
	} else {
		state=0;
	}
}	

var windowIsOpen = "false";
// open new window
function openWindow(url, w, h) {
  popupWin = window.open(url, 'window', 'resizable=yes,scrollbars=yes,menubar=no,location=no,directories=no,status=no,menubar=no,width=' + w + ',height=' + h);
  windowIsOpen = "true";
}


//</DATASRC>
// -->
// -->

