// dyna.js v1.1 by David Kearns
// copyright 2000 by Doceus
//
// These routines should provide a framework for
// commonly used DHTML functions, in a way that should
// divorce the browser from the code, so that the 
// developer need not worry about what platform the
// user is using.
//

// For purposes of the Intranet, we will attempt to guess
// what browser is being used.
//
// There are obvious problems with this scheme, as browsers
// are constantly changing, but I feel that in this case
// this should be sufficient
//
var NN = (document.layers) ? 1 : 0;
var IE = (document.all) ? 1 : 0;
var D2 = (document.getElementById ) ? 1 : 0;

if (navigator.appVersion.indexOf('Mac') != -1){
	MAC = 1;
}
else{
	MAC = 0;
}


// Setup global variable for use in PopUpMenus
var PUM;

// Capture events for cursor tracking. Setup global variables
var cursorX = 0;
var cursorY = 0;
var hasfocus = -1;
document.onmousemove = mouseTrack;
if (NN){
	document.captureEvents(Event.MOUSEMOVE);
}

// Debug info. Uncomment if you wish to use it.
// window.defaultStatus = 'NN:'+NN+' IE:'+IE+' D2:'+D2;

// Return a pointer to the object specified by the ID "reference".
// In netscape 4 this must be a layer.
// The Object reference returned by this is suitable for passing
// to any function below that has an obj attribute.
//
// In order to assure this, you can use CF_DHTMLContainer
function dyObject(reference){
	if (D2){
		return document.getElementById(reference);
	}
	else if (IE){
		return document.all[reference];
	}
	else if (NN){
		return document.layers[reference];
	}
	else{
		err('IE 4+ or Navigator 4+ is required');
	}
}

////////////////////////////////////////////////////////////////////////////////////////////

// Provide a method for error reporting, in the odd case that a user
// is not using one of the approved browsers
// NN 4.x, IE 4.x or higher, NN 6.x
function err(msg){
	exit;
}

// Cursor move triggers event to set global variables
function mouseTrack(e) {
	if (NN){
		cursorX=e.pageX;
		cursorY=e.pageY;
	}
	else if (D2 && IE){
		cursorX=event.x+document.body.scrollLeft; 
		cursorY=event.y+document.body.scrollTop;
	}
	else if (IE){
		cursorX=event.x; 
		cursorY=event.y;
	}
	else if (D2){
		cursorX=e.clientX + parseInt(window.scrollX);
		cursorY=e.clientY + parseInt(window.scrollY);
	}
	// debug info
	// window.status = cursorX + ' ' + cursorY;
}

// Return the y coordinate of the object
function dyTop(obj){
	if (D2){
		return(parseInt(obj.style.top));
	}
	else if (IE){
		return(parseInt(obj.style.pixelTop));
	}
	else if (NN){
		return(obj.top);
	}
	else{
		err('IE 4+ or Navigator 4+ is required');
	}
}

// Return the x coordinate of the object
function dyLeft(obj){
	if (D2){
		return (parseInt(obj.style.left));
	}
	else if (IE){
		return(parseInt(obj.style.pixelLeft));
	}
	else if (NN){
		return(obj.left);
	}
	else{
		err('IE 4+ or Navigator 4+ is required');
	}
}

// Return the height of the object in pixels
function dyHeight(obj){
	if (IE){
		return(parseInt(obj.clientHeight));
	}
	else if (D2){
		return (parseInt(obj.offsetHeight));
		//return (parseInt(obj.style.height));
	}
	else if (NN){
		return obj.clip.height;
	}
	else{
		err('IE 4+ or Navigator 4+ is required');
	}
}

// Return the width of the object in pixels
function dyWidth(obj){
	if (IE){
		return(parseInt(obj.clientWidth));
	}
	else if (D2){
		return(parseInt(obj.style.width));
	}
	else if (NN){
		return(obj.clip.width);
	}
	else{
		err('IE 4+ or Navigator 4+ is required');
	}
}

// Moves the object to the specified X Y coordinates
function dyMoveTo(obj,x,y){
	if (D2){
		obj.style.left = x;
		obj.style.top = y;
	}
	else if (IE){
		obj.style.pixelLeft = x;
		obj.style.pixelTop = y;
	}
	else if (NN){
		obj.moveTo(x,y);
	}
	else{
		err('IE 4+ or Navigator 4+ is required');
	}
}

// Moves the object by x,y pixels. Use negative numbers for up or right
function dyMoveBy(obj,x,y){
	if (D2){
		obj.style.left += x;
		obj.style.top += y;
	}
	else if (IE){
		obj.style.pixelLeft += x;
		obj.style.pixelTop += y;
	}
	else if (NN){
		obj.moveBy(x,y);
	}
	else{
		err('IE 4+ or Navigator 4+ is required');
	}
}

// Make the object visible.
function dyShow(obj){
	if (D2){
		obj.style.display = 'block';
		obj.style.visibility = 'visible';
	}
	else if (IE){
		obj.style.visibility = 'visible';
	}
	else if (NN){
		obj.visibility = 'visible';
	}
	else{
		err('IE 4+ or Navigator 4+ is required');
	}
}

// Hide the object
function dyHide(obj){
	navspace = dyHide.arguments[1];
	
	if (!NN && !parseInt(killed)) {
		for (i = 0;i<7;i++){
			if(D2){
				temp = eval('document.getElementById(\'navspace' + i + '\').style.backgroundColor = \'#FFFFFF\'');
				temp2 = eval('document.getElementById(\'navspace' + (parseInt(i)+1) + '\').style.backgroundColor = \'#FFFFFF\'');
			}
			else if(IE){
				temp = eval('document.all.navspace' + i + '.style.backgroundColor = \'#FFFFFF\'');
				temp2 = eval('document.all.navspace' + (parseInt(i)+1) + '.style.backgroundColor = \'#FFFFFF\'');
			}
		}
	}
	if(D2 && !IE){
		obj.style.display = 'none';
	}
	else if(IE && !parseInt(killed)){
		obj.style.visibility = 'hidden';
	}
	else if(NN && !parseInt(killed)){
		obj.visibility = 'hidden';
	}
	else if(NN || IE){
		killed = 0;
	}
	
	
	if (dyHide.arguments.length > 2 && !killed){
		if(section != dyHide.arguments[2]){
			//out(dyHide.arguments[2]);
		}
	}
	
}

// Resize the height and width of the object to h,w. The upper right hand corner
// of the object will remain static.
function dyResizeTo(obj,h,w){
	if (D2){
		obj.style.height=h;
		obj.style.width=w;
	}
	else if (IE){
		obj.style.height=h;
		obj.style.width=w;
	}
	else if (NN){
		obj.clip.height = h;
		obj.clip.width = w;
	}
	else{
		err('IE 4+ or Navigator 4+ is required');
	}
}

//Change the background color of the object. This might not always work, depending on other factors.
function dyColor(obj,color){
	if (D2){
		obj.style.backgroundColor = 'transparent';
		obj.bgColor = null;
	}
	else if (IE){
		obj.style.backgroundColor = 'transparent';
	}
	else if (NN){
		obj.bgColor = null;
	}
	else{
		err('IE 4+ or Navigator 4+ is required');
	}
}

//This should return the width of the browser page. 
function dyFieldWidth(){
	if (IE){
		return(document.body.clientWidth);
	}
	else if (D2){
		return(window.innerWidth);
	}
	else if (NN){
		return(window.innerWidth);
	}
	else{
		err('IE 4+ or Navigator 4+ is required');
	}
}

//This should return the height of the browser page. 
function dyFieldHeight(){
	if (IE){
		return(document.body.clientHeight);
	}
	else if (D2){
		return(window.innerHeight);
	}
	else if (NN){
		return(window.innerHeight);
	}
	else{
		err('IE 4+ or Navigator 4+ is required');
	}
}

////////////////////////////////////////////////////////////////////////////////////////////
// Dynamic Rewriting functions.
// Previously thought to not work on NN6/Mozilla. I was wrong.

//Dynamically rewrite the object.
function dyRewrite(obj,text){
	if (IE || D2){
		obj.innerHTML = text;
	}
	else if (NN){
		obj.document.close();
		obj.document.writeln(text);
		obj.document.close();
	}
	else{
		err('IE 4+ or Navigator 4+ is required');
	}
}

function inactAct(imgName,section){
	if (!preloaded){
		preloadImages();
	}
	if(section != imgName && document[imgName].src == eval(imgName + '_act.src')){
		document[imgName].src = eval(imgName + '_inact.src');
	}
}

function dyMenuPopUp(navspace,color,coordinates,base,section,navheight){
	inactAct('products_and_services',section);
	inactAct('divisions',section);
	inactAct('investor_relations',section);
	inactAct('news_and_events',section);
	inactAct('careers',section);
	inactAct('about_l3',section);
	if (PUM >= 0){
		dyClearDelayPUM();
	}
	killed = 1;
	var params = 6;
	// determine x,y coordinates. Use cursor position if not passed in.
	if (coordinates.indexOf(',') == -1){
		var x = cursorX;
		var y = cursorY;
	}
	else{
		var coordArray = coordinates.split(',');
		var x = parseInt(coordArray[0]);
		var y = parseInt(coordArray[1]);
	}
	
	// Get object reference to PUM
	var pum = dyObject('PopUpMenu');
	
	// Microsoft's createPopup will require us to name our window.
	
	var saveWinName = '_top';
	if (window.createPopup){
		if (window.name == ''){
			window.name = 'FusionUV';
		}
		saveWinName = window.name;
	}
	
	
	// create HTML for new menu
	var menu = '';
	if (NN){
		if (parseInt(navheight) > 17){
			y -= 20;
		}
		else{
			y -= 18;
		}
		x += 5;
		menu = '<ilayer name="PopUpMenuTableInsertIlayer">';
	}
	
	if (section == 'current') {
		outtext = 'killed=0;dyHide(dyObject(\'PopUpMenu\'),' + navspace + ',\'current\');killed=1;';
	}
	else{
		outtext = 'killed=0;dyHide(dyObject(\'PopUpMenu\'),' + navspace + ',' + section + ');killed=1;'
	}
		
	menu = menu + '<div id="outerpopup" name="outerpopup" class="innerscroll"><TABLE CELLSPACING="0" CELLPADDING="0" BORDER=0 WIDTH="154" height="1" id="PopUpMenuTableInsert"><TR><TD><TABLE CELLSPACING="0" CELLPADDING="0" BORDER=0 WIDTH="154">';
	
	
	if (x > 539){
		x -= 154;
		x += parseInt(color) + 2;
		navheight = parseInt(navheight) - 1;
		endwidth = parseInt(color)-10;
		startwidth = 140 - parseInt(endwidth);
		mouseimage = startwidth;
		innerwidth = startwidth + endwidth + 10;
		
		if(NN){
			startwidth += 1
			endwidth -= 1;
			menu = menu + '<tr>';
			menu = menu + '<td colspan=2><A HREF="" onMouseOver="' + outtext + '" onclick="return false;"><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=1></A></td>';
			menu = menu + '<td bgcolor="#6699CC"><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=1></td>';
			menu = menu + '<td COLSPAN=2><A HREF="" ONCLICK="window.location=\'' + base + section + '\';return false;"><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=1></A></td>';
			menu = menu + '<td bgcolor="#6699CC"><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=1></td>';
			menu = menu + '<td colspan=1><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=1></td>';
			menu = menu + '</tr>';
			menu = menu + '<tr>';
			menu = menu + '<td colspan=2><A HREF="" onmouseover="' + outtext + '" onclick="' + outtext + 'return false;"><img SRC="' + base + 'images/spacer.gif" border=0 width=' + mouseimage + ' height=' + navheight + '></A></td>';
			menu = menu + '<td bgcolor="#6699CC"><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=1></td>';
			menu = menu + '<td COLSPAN=2><A HREF="" ONCLICK="window.location=\'' + base + section + '\';return false;"><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=' + navheight + '></A></td>';
			menu = menu + '<td colspan=2 bgcolor="#6699CC"><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=1></td>';
			menu = menu + '</tr>';
		}
		menu = menu + '<tr>';
		menu = menu + '<td colspan=3 bgcolor="#6699CC"><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=1></td>';
		menu = menu + '<td colspan=2><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=1></td>';
		menu = menu + '<td colspan=2 bgcolor="#6699CC"><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=1></td>';
		menu = menu + '</tr>';		
	}
	else{
		startwidth = parseInt(color);
		endwidth = 140 - parseInt(startwidth);
		mouseimage = endwidth + 10;
		innerwidth = startwidth + endwidth + 10;
		if (NN) {
			startwidth -= 1;
			endwidth += 1;
			menu = menu + '<tr>';
			menu = menu + '<td bgcolor="#6699CC"><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=' + navheight + '></td>';
			menu = menu + '<td><A HREF="" ONCLICK="window.location=\'' + base + section + '\';return false;"><img SRC="' + base + 'images/spacer.gif" border=0 width=' + startwidth + ' height=' + navheight + '></A></td>';
			menu = menu + '<td bgcolor="#6699CC"><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=1></td>';
			menu = menu + '<td colspan=4><A HREF="" onmouseover="' + outtext + '" onclick="' + outtext + 'return false;"><img SRC="' + base + 'images/spacer.gif" border=0 width=' + mouseimage + ' height=' + navheight + '></A></td>';
			menu = menu + '</tr>';
		}
		menu = menu + '<tr>';
		menu = menu + '<td bgcolor="#6699CC"><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=1></td>';
		menu = menu + '<td><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=1></td>';
		menu = menu + '<td colspan=4 bgcolor="#6699CC"><img SRC="' + base + 'images/spacer.gif" border=0 width=' + mouseimage + ' height=1></td>';
		menu = menu + '<td><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=1></td>';
		menu = menu + '</tr>';
	}
	menu = menu + '<tr>';
	menu = menu + '<td bgcolor="#6699CC"><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=1></td>';
	menu = menu + '<td bgcolor="#ffffff" colspan=4><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=6></td>';
	menu = menu + '<td colspan=2 bgcolor="#6699CC"><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=1></td>';
	menu = menu + '</tr>';
	menu = menu + '<tr>';
	menu = menu + '<td bgcolor="#6699CC"><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=15></td>';
	menu = menu + '<td bgcolor="#ffffff" colspan=4>';
	
	menu = menu + '<div id="innerpopup" name="innerpopup" class="innerscroll" style="width:' + (innerwidth - 15) + ';overflow-y:hidden"><table cellspacing="0" cellpadding="0" border=0 width="' + (innerwidth - 15) + '">';
	
	
	var menuId;
	var popupitem;
	for (var i=params; i<dyMenuPopUp.arguments.length; i=i+2){
		menuId = String.fromCharCode(Math.random()*26+'a'.charCodeAt(0),Math.random()*26+'a'.charCodeAt(0),Math.random()*26+'a'.charCodeAt(0),Math.random()*26+'a'.charCodeAt(0),Math.random()*26+'a'.charCodeAt(0),Math.random()*26+'a'.charCodeAt(0),Math.random()*26+'a'.charCodeAt(0),Math.random()*26+'a'.charCodeAt(0),Math.random()*26+'a'.charCodeAt(0));
		if(dyMenuPopUp.arguments[i].indexOf('*') != -1){
			if (IE && !MAC){
				var popupitemarray = dyMenuPopUp.arguments[i].split('*');
				if (popupitemarray[0] == 'ps'){
					popupitem = popupitemarray[1];
				}
				else if (popupitemarray[0] == 'div'){
					popupitem = popupitemarray[1];
				}
				menu = menu + '<tr>';
				menu = menu + '<td bgcolor="#ffffff" valign="top"><img SRC="' + base + 'images/spacer.gif" name="dropdown' + i + '" border=0 width=25 height=14></td>';
				menu = menu + '<td bgcolor="#ffffff" valign="top" CLASS = "subnav" onmouseover="dyClearDelayPUM;" onclick="parent.open(\'' + popupitem + '\',\''+saveWinName+'\');CLOSEMENU;return false;"><A HREF="' + popupitem + '" CLASS="subnav" ID="link_'+menuId+'"><SPAN CLASS="subnav">' + dyMenuPopUp.arguments[i+1] + '</SPAN></A></TD>';
				menu = menu + '</tr>';
				menu = menu + '<tr>';
				menu = menu + '<td bgcolor="#ffffff" colspan=2><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=10></td>';
				menu = menu + '</tr>';
			}
		}
		else{
			popupitem = dyMenuPopUp.arguments[i];
			menu = menu + '<tr>';
			menu = menu + '<td bgcolor="#ffffff" valign="top"><img SRC="' + base + 'images/sm_circle.gif" name="dropdown' + i + '" border=0 width=25 height=14></td>';
			menu = menu + '<td bgcolor="#ffffff" valign="top" CLASS = "subnav" onmouseover="dyClearDelayPUM;over(\'dropdown' + i + '\');" onmouseout="out(\'dropdown' + i + '\')" onclick="parent.open(\'' + popupitem + '\',\''+saveWinName+'\');CLOSEMENU;return false;"><A HREF="' + popupitem + '" CLASS="subnav" ID="link_'+menuId+'"><SPAN CLASS="subnav">' + dyMenuPopUp.arguments[i+1] + '</SPAN></A></TD>';
			menu = menu + '</tr>';
			menu = menu + '<tr>';
			menu = menu + '<td bgcolor="#ffffff" colspan=2><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=10></td>';
			menu = menu + '</tr>';
		}
	}
	menu = menu + '</table></div>';
	
	menu = menu + '</td>';
	menu = menu + '<td colspan=2 bgcolor="#6699CC"><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=1></td>';
	menu = menu + '</tr>';
	menu = menu + '<tr>';
	menu = menu + '<td colspan=1 bgcolor="#6699CC"><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=1></td>';
	menu = menu + '<td colspan=4 bgcolor="#ffffff"><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=1></td>';
	menu = menu + '<td colspan=2 bgcolor="#6699CC"><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=1></td>';
	menu = menu + '</tr>';
	menu = menu + '<tr>';
	menu = menu + '<td width=1 bgcolor="#6699CC"><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=2></td>';
	menu = menu + '<td width=' + startwidth + ' bgcolor="#6699CC"><img SRC="' + base + 'images/spacer.gif" border=0 width=' + startwidth + ' height=2></td>';
	menu = menu + '<td width=1 bgcolor="#6699CC"><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=2></td>';
	menu = menu + '<td width=' + endwidth + ' bgcolor="#6699CC"><img SRC="' + base + 'images/spacer.gif" border=0 width=' + endwidth + ' height=2></td>';
	menu = menu + '<td width=10 bgcolor="#6699CC"><img SRC="' + base + 'images/spacer.gif" border=0 width=10 height=2></td>';
	menu = menu + '<td width=1 bgcolor="#6699CC"><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=2></td>';
	menu = menu + '<td width=1 bgcolor="#6699CC"><img SRC="' + base + 'images/spacer.gif" border=0 width=1 height=2></td>';
	menu = menu + '</tr>';
	menu = menu + '</TABLE><TD></TR></TABLE></div>';

	if (NN){
		menu = menu + '</ilayer>';
	}
	usepopup = 0;
	// rewrite menu and display
	//color = '#ffffff';
	var regExToFixMenuClose = /CLOSEMENU/g;
	if (section == 'current') {
		replacetext = 'dyHide(dyObject(\'PopUpMenu\'),' + navspace + ');';
	}
	else{
		replacetext = 'dyHide(dyObject(\'PopUpMenu\'),' + navspace + ',\'' + section + '\');'
	}
	menu = menu.replace(regExToFixMenuClose,replacetext);
		
	//Style the links
	
	regEx = /CLASS="subnav"/gi;
	if(NN){
		menu = menu.replace(regEx,'style="color:black;text-decoration:none;font-weight:normal;font-size:10px;text-decoration:none;font-family:Tahoma, Verdana, Helvetica, Arial, Sans-serif;"');
	}
	else{
		menu = menu.replace(regEx,'style="text-decoration:none;color:black;font-family:Tahoma, Verdana, Helvetica, Arial, Sans-serif;font-weight:normal;font-size:10px;text-decoration:none;" onmouseover="this.style.color=\'#32659A\'; this.style.textDecoration = \'none\'; this.style.fontFamily=\'Tahoma, Verdana, Helvetica, Arial, Sans-serif\'; this.style.fontWeight=\'normal\'; this.style.fontSize=\'10px\';" onmouseout="this.style.color=\'#000000\'; this.style.textDecoration=\'none\'; this.style.fontFamily=\'Tahoma, Verdana, Helvetica, Arial, Sans-serif\'; this.style.fontWeight=\'normal\'; this.style.fontSize=\'10px\';"');
	
	}
	
	
	//This code makes sure the lines are connected properly with the menu half lines, not necessary in Netscape since it is not possible
	if (!NN) {
		for (i = 0;i<7;i++){
			if(D2){
				if(i == parseInt(navspace) || i == parseInt(navspace) + 1){
					temp = eval('document.getElementById(\'navspace' + i + '\').style.backgroundColor = \'#6699CC\'');
					temp2 = eval('document.getElementById(\'navspace' + (parseInt(i)+1) + '\').style.backgroundColor = \'#6699CC\'');
				}
				else{
					temp = eval('document.getElementById(\'navspace' + i + '\').style.backgroundColor = \'#FFFFFF\'');
					temp2 = eval('document.getElementById(\'navspace' + (parseInt(i)+1) + '\').style.backgroundColor = \'#FFFFFF\'');
				}
			
			}
			else if(IE){
				if(i == parseInt(navspace) || i == parseInt(navspace) + 1){
					
					temp = eval('document.body.all.navspace' + i + '.style.backgroundColor = \'#6699CC\'');
					temp2 = eval('document.body.all.navspace' + (parseInt(i)+1) + '.style.backgroundColor = \'#6699CC\'');
				}
				else{
					temp = eval('document.body.all.navspace' + i + '.style.backgroundColor = \'#FFFFFF\'');
					temp2 = eval('document.body.all.navspace' + (parseInt(i)+1) + '.style.backgroundColor = \'#FFFFFF\'');
				}
			}
		}
	}
	
	// shrink to small size
	dyResizeTo(pum,1,1);
	// write new menu
	dyColor(pum,'#ffffff');
	dyRewrite(pum,menu);
	// color appropriatly
	// move to the x,y provided (or the cursor)
	if (D2) {
		x = parseInt(x) + 7;
	}
	else{
		x = parseInt(x) + 2;
	}

	// Show the menu
	
	//dyShow(pum);
	// find out size of table that was created
	if (NN){	
		pumTable = pum.document.PopUpMenuTableInsertIlayer;
	}
	else{
		pumTable = dyObject('PopUpMenuTableInsert');
	}
	dyMoveTo(pum,x,y);
	//kludge for n6/mozilla
	
	dyShow(pum);
	
	if (IE){
		
		ptw = dyWidth(pumTable);
		pth = dyHeight(pumTable);
		if(MAC){
			//pth=0;
			y -=pth;
			dyMoveTo(pum,x,y);
		}
		else{
			pth = dyHeight(pumTable);
		}
		pxo = window.pageXOffset;
		pyo = window.pageYOffset;
	}
	else if (D2){
		ptw = 154;
		pth = dyHeight(pumTable);
		pxo = 0;
		pyo = 0;
	}
	else{
		if(MAC){
			pth = dyHeight(pumTable)-5;
		}
		else{
			pth = dyHeight(pumTable)-15;
		}
		ptw = dyWidth(pumTable);
		pxo = window.pageXOffset;
		pyo = window.pageYOffset;
	}
	// resize pum to exact size of table
	// this doesn't work in N6/Mozilla1, but the table background will cover up this fact.
	dyHide(pum);
	//alert(pth);
	var newpop = dyObject('innerpopup');
	if (pth > 220 && D2){
		dyResizeTo(pum,210,ptw);
		newpop.style.width = 139;
		newpop.style.height = 205;
		if (IE){
			newpop.style.overflowY = 'scroll';
		}
		else{
			newpop.style.overflowY = 'auto';
		}
	}		
	else {
		if(IE){
			newpop.style.height = pth - 9;
			newpop.style.width = 150;
			newpop.style.overflowY = 'hidden';
		}
		dyResizeTo(pum,pth,ptw);	
	}
	dyShow(pum);
	
	if (D2 && !IE){
		pum.firstChild.addEventListener('mouseover',dyClearDelayPUM,false);
		pum.firstChild.addEventListener('mouseout',eval('dyDelayFadePUM' + navspace),false);
	}
	else{
		pum.onmouseover = dyClearDelayPUM;
		temp = eval('pum.onmouseout = dyDelayFadePUM' + navspace + ';');
	}
}

// This is used by dyMenuPopUp
function dyDelayFadePUM1(){
	killed = 0;
	PUM=window.setTimeout('dyHide(dyObject(\'PopUpMenu\'),1,\'products_and_services\');',500);
}
function dyDelayFadePUM2(){
	killed = 0;
	PUM=window.setTimeout('dyHide(dyObject(\'PopUpMenu\'),2,\'divisions\');',500);
}
function dyDelayFadePUM3(){
	killed = 0;
	PUM=window.setTimeout('dyHide(dyObject(\'PopUpMenu\'),3,\'investor_relations\');',500);
}
function dyDelayFadePUM4(){
	killed = 0;
	PUM=window.setTimeout('dyHide(dyObject(\'PopUpMenu\'),4,\'news_and_events\');',500);
}
function dyDelayFadePUM5(){
	killed = 0;
	PUM=window.setTimeout('dyHide(dyObject(\'PopUpMenu\'),5,\'careers\');',500);
}
function dyDelayFadePUM0(){
	killed = 0;
	PUM=window.setTimeout('dyHide(dyObject(\'PopUpMenu\'),0,\'about_l3\');',500);
}
// This is used by dyMenuPopUp
function dyClearDelayPUM(){
	clearTimeout(PUM);
}

// This is used by dyMenuPopUp
function dyAddRow(tableObj,objHREF,objLabel){
	var ItableRow = document.createElement('TR');
	var ItableCell = document.createElement('TD');
	var Iline = document.createTextNode(objLabel);
	var Ianchor = document.createElement('A');
	Ianchor.setAttribute('href',objHREF);
	Ianchor.setAttribute('className','menu');
	Ianchor.className = 'menu';
	Ianchor.appendChild(Iline);
	ItableCell.appendChild(Ianchor);
	ItableRow.appendChild(ItableCell);
	tableObj.appendChild(ItableRow);
}

function GiveFocus(){
	hasfocus = -1;
	
}

function TakeFocus(){
	if (window.createPopup)
		hasfocus = 0;
}
