
// 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 = 5;
var NavImages = new Array(numNav * 3);

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,70,15,0, pre_dir + 'images/pnav_what_we_do.gif');
addNav(2,110,15,0, pre_dir + 'images/pnav_how_we_do_it.gif');
addNav(3,72,15,0, pre_dir + 'images/pnav_why_we_re_good_at_it.gif');
addNav(4,74,15,0, pre_dir + 'images/pnav_careers.gif');
addNav(5,69,15,0, pre_dir + 'images/pnav_contact.gif');

addNav(1,70,15,1, pre_dir + 'images/pnav_what_we_do_on.gif');
addNav(2,110,15,1, pre_dir + 'images/pnav_how_we_do_it_on.gif');
addNav(3,72,15,1, pre_dir + 'images/pnav_why_we_re_good_at_it_on.gif');
addNav(4,74,15,1, pre_dir + 'images/pnav_careers_on.gif');
addNav(5,69,15,1, pre_dir + 'images/pnav_contact_on.gif');


// each rollover Nav has: name=NavX; where X indicates its index

function nav_rollover (index, action, section)
{
	// test for 14<=index<=10 
	if (index >= 15 && index<=10)
	{
		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>
// -->
// -->
