<!--
// ---------------------------------------------------------------------------
// $RCSfile: global.js,v $
// $Revision: 1.5 $
// $Name: navigation_version_2 $
// $Date: 2002/09/25 23:57:58 $
// $Author: raymondb $
// ---------------------------------------------------------------------------

var trackerPos = 0; //stores current tracker position
var lnd = trackerPos; //stores landing position of tracker
var rollStatus = ''; //used to track current swapImg state of global nav
var curTar = ''; //used to track current state of subnav popup menus
var curNav = 0; //used to track current swapImg state of subnav menus
var subNav = new Array() //holds left nav menu items
var rightLinks = new Array() //holds right hand links
var hc = '#00235b';
var iPid = 0;



//subnav constructor
function subnavItem(id,parNav,title,bc,hc,path) {
	this.id = id;
	this.parNav = parNav;
	if (parNav == 0) {
		var preLoad = new Image(203,18);
		preLoad = project_root+'/images/buttons/but_'+section+'_'+this.id+'_on.gif';
	}
	this.title = title;
	this.bc = bc;
	this.hc = hc;
	this.path = path;
	return this;
}

function subnavItem2(id,parNav,title,bc,hc,path,imgon,imgoff, alton, altoff, xPadding) {
	this.id = id;
	this.xPadding = xPadding;
	this.parNav = parNav;
	if (parNav == 0) {
		var preLoad = new Image(203,18);
		preLoad = project_root+ imgoff;
	}
	this.title = title;
	this.bc = bc;
	this.hc = hc;
	this.path = path;
	this.imgon = imgon;
	this.imgoff = imgoff;
	this.alton = alton;
	this.altoff = altoff;
	return this;
}


//right hand link constructor
function rightLink(headerImg,description,linkText,path,active,jscr) {
	this.headerImg = headerImg;
	this.description = description;
	this.linkText = linkText;
	this.path = path;
	this.active = active;
	this.jscr = jscr;
	return this;
}

//flash FS_Command handler
function flashintro_DoFSCommand(command, args)
{
	resetFlash()
	makeVis('intro',0);
}

//clears flash intro to reveal homepage
function resetFlash() {
	makeVis('bodyLay',1);
	makeVis('logoLay',1);
	makeVis('menu_rule_grad',1);
	makeVis('menu_nav',1);
	makeVis('submenu_nav',1);
	makeVis('rightLinksLay',1);
	makeVis('trackerLay',1);
	makeVis('powderBlueLeftLay',1);
	makeVis('powderBlueRightLay',1);
	makeVis('lightBlueTopLay',1);
	makeVis('search_roll',1);
	makeVis('contact_roll',1);
	makeVis('aust_roll',1);
	makeVis('country_roll',1);
}

function openCalendarPopUp() {
	window.open(project_root+'/calendar/index.asp', 'calendarPopUpFrame', 'width=315,height=450,screenx=200,screeny=200');
}

// for videos
function mediaPop (name, cid, width, height, showChrome, canResize, canScroll) {
			var chromeVals = "toolbar=no,directories=no,status=yes,menubar=no"
			var resizeVal = "resizable="+canResize
			var scrollVal = "scrollbars="+canScroll
			if (showChrome == true) {
				chromeVals = "toolbar=yes,directories=yes,status=yes,menubar=yes"
			}
			var options = "width="+width+",height="+height+","+chromeVals+","+resizeVal+","+scrollVal
 			window.open(project_root+'/interactive/redirect.asp?cid='+cid, name, options);
}

// pull down menu function
function pullDown(tar) {
	if (tar != rollStatus) {
		if (b == 'ie') {
			if (document.all['assistant']) {
				makeVis('assistant',1);
			}
		} else if (b == 'w3c') {

		} else {
			if (document.layers['assistant']) {
				makeVis('assistant',1);
			}
		}
		//return;
		if (rollStatus != '') {
			swapImg(rollStatus,'submenu_nav',0);

			makeVis(rollStatus+'_form',0);
			roll(rollStatus,-1);
			rollStatus = tar;
			roll(tar,1);
		} else {
			if (tar == 'contact') {
				presetPulldowns();
			}
			rollStatus = tar;
			roll(tar,1);
		}
		// If a search panel is in the right hand side we want to hide it
		// when the pulldown menus come down
		if ((tar == 'search' ||  tar == 'contact' || tar == 'aust' || tar == 'country')) {
			if (b == 'ie') {
				if (document.all['rightDiv']) {
					makeVis('rightDiv',0);
				}
			} else if (b == 'w3c') {

			}else {
				if (document.layers['rightDiv']) {
					makeVis('rightDiv',0);
				}
			}
		}

	} else if (tar == rollStatus) {
		if (b == 'ie') {
			if (document.all['assistant']) {
				makeVis('assistant',1);
			}
		} else if (b == 'w3c') {

		} else {
			if (document.layers['assistant']) {
				makeVis('assistant',1);
			}
		}
		rollStatus = '';
		swapImg(tar,'submenu_nav',0);
		makeVis(tar+'_form',0);
		roll(tar,-1);
		// If a search panel is in the right hand side we want to show it
		// again when the pulldown menus go up
		if ((tar == 'search' || tar == 'contact' || tar == 'aust' || tar == 'country')) {
			if (b == 'ie') {
				if (document.all['rightDiv']) {
					makeVis('rightDiv',1);
				}
			} else if (b == 'w3c') {

			}else {
				if (document.layers['rightDiv']) {
					makeVis('rightDiv',1);
				}
			}
		}

	}
}

//page layout layer constructors
//createLay('ctryLay',10,10,67,25,'<img id="ctry_logo" border="0" height="13" width="100" src="'+project_root+'/images/hed_australia.gif">',33,FlashOff,'');
//createLay('logoLay',15,600,67,25,'<a href="'+project_root+'/"><img id="logo" border="0" height="25" width="67" src="'+project_root+'/images/logo.gif"></a>',33,FlashOff,'');
//createLay('whiteLeftLay',0,0,30,r1+r2,'',30,1,'#ffffff');
//createLay('powderBlueLeftLay',30,0,30,r1+r2,'',30,FlashOff,'#d6e5f8');
//createLay('powderBlueRightLay',30,r1+r2+10,30,r3,'',33,FlashOff,'#d6e5f8');
//createLay('lightBlueTopLay',0,r1+r2,60,10,'',33,FlashOff,'#aabdff');
//createLay('whiteRightLay',0,r1+r2,60,r6,'',32,1,'#ffffff');
//createLay('menu_rule_grad',60,0,51,widthFix,'<img id="menu_rule" hspace="0" vspace="0" height="51" width="100%" src="'+project_root+'/images/menu_grad.gif">',30,FlashOff,'#ffffff');

var brandStr = section;

	if (l1id > 0 && ((section == 'services') || (section == 'industries'))) {
		brandStr = brandStr + '_' + l1id;
	}

	//if (section == "Graduate Recruitment") {
	//	createLay('section_branding',-1,360,60,210,'<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="187" HEIGHT="61" CODEBASE="http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0"><PARAM NAME="MOVIE" VALUE="/flash/top_nav.swf"><PARAM NAME="PLAY" VALUE="true"><PARAM NAME="LOOP" VALUE="true"><PARAM NAME="QUALITY" VALUE="high"><EMBED src="/flash/top_nav.swf" quality=high bgcolor=#FFFFFF WIDTH=187 HEIGHT=61 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT>',35,1,'');
	//} else if (section == "Corporate Recovery") {
	//	createLay('section_branding',-1,360,60,210,'<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="181" HEIGHT="61" CODEBASE="http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0"><PARAM NAME="MOVIE" VALUE="/corporaterecovery/20020820_KPMG_corp_SMALL'+specialSection+'.swf"><PARAM NAME="PLAY" VALUE="true"><PARAM NAME="LOOP" VALUE="true"><PARAM NAME="QUALITY" VALUE="high"><EMBED src="/corporaterecovery/20020820_KPMG_corp_SMALL'+specialSection+'.swf" quality=high bgcolor=#FFFFFF WIDTH=187 HEIGHT=61 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT>',35,1,'');
	//} else {
	//	createLay('section_branding',0,r1+r2,60,210,'<img id="section_brand" src="'+project_root+'/images/' + brandimage + '" width="210" height="60" border="0">',31,1,'');
	//}


//createLay('trackerLay',55,50,40,28,'<img id="slider" src="'+project_root+'/images/tracker.gif" border="0">',33,FlashOff,'');
//createLay('submenu_mask',90,0,21,324,'',31,1,'#ffffff');

// If events are hidden we do not wish to display the calendar link
var calendarString
if (bShowEvents == 'false') {
	calendarString = '<a href="'+project_root+'/calendar/event_list.asp" onMouseOver="swapImg3(\'calendar\',\'submenu_nav\',1);" onMouseOut="swapImg3(\'calendar\',\'submenu_nav\',0);" ><img name="calendar_submenu_nav" src="'+project_root+'/images/buttons/but_calendar_off.gif" border="0"></a>';
} else {
	calendarString = '';
}

//Replaced by section below to draw highlights in subnav
//createLay('submenu_nav',90,324,21,440,'<a onClick="pullDown(\'search\'); swapImg3(\'search\',\'submenu_nav\',1);return false;" onMouseOver="swapImg(\'search\',\'submenu_nav\',1);" onMouseOut="swapImg(\'search\',\'submenu_nav\',0);" href="#"><img name="search_submenu_nav" src="'+project_root+'/images/buttons/but_search_off.gif" border="0"></a><a href="'+project_root+'/siteindex.asp" onMouseOver="swapImg(\'index\',\'submenu_nav\',1);" onMouseOut="swapImg(\'index\',\'submenu_nav\',0);" ><img name="index_submenu_nav" src="'+project_root+'/images/buttons/but_index_off.gif" border="0"></a><a href="'+project_root+'/content.asp?cid='+helpid+'" onMouseOver="swapImg(\'help\',\'submenu_nav\',1);" onMouseOut="swapImg(\'help\',\'submenu_nav\',0);" ><img name="help_submenu_nav" src="'+project_root+'/images/buttons/but_help_off.gif" border="0"></a><a onMouseOver="swapImg(\'contact\',\'submenu_nav\',1);" onMouseOut="swapImg(\'contact\',\'submenu_nav\',0);"  onClick="pullDown(\'contact\');swapImg3(\'contact\',\'submenu_nav\',1);return false;" href="#"><img name="contact_submenu_nav" src="'+project_root+'/images/buttons/but_contact_off.gif" border="0"></a>'+calendarString+'<a href="#" onMouseOver="swapImg(\'aust\',\'submenu_nav\',1);" onMouseOut="swapImg(\'aust\',\'submenu_nav\',0);"  onClick="pullDown(\'aust\'); swapImg3(\'aust\',\'submenu_nav\',1);return false;"><img name="aust_submenu_nav" src="'+project_root+'/images/buttons/but_aust_off.gif" border="0"></a><a href="#" onMouseOver="swapImg(\'country\',\'submenu_nav\',1);" onMouseOut="swapImg(\'country\',\'submenu_nav\',0);"  onClick="pullDown(\'country\'); swapImg3(\'country\',\'submenu_nav\',1);return false;"><img name="country_submenu_nav" src="'+project_root+'/images/buttons/but_country_off.gif" border="0"></a>',31,FlashOff,'');

var strSubNav = "";

if (section == "Home") {
	strSubNav += '<a onClick="pullDown(\'search\');swapImg3(\'search\',\'submenu_nav\',1);return false;" href="#"><img name="search_submenu_nav" src="'+project_root+'/images/buttons/but_search_on.gif" border="0"></a>';
} else {
	strSubNav += '<a onClick="pullDown(\'search\'); swapImg3(\'search\',\'submenu_nav\',1);return false;" onMouseOver="swapImg(\'search\',\'submenu_nav\',1);" onMouseOut="swapImg(\'search\',\'submenu_nav\',0);" href="#"><img name="search_submenu_nav" src="'+project_root+'/images/buttons/but_search_off.gif" border="0"></a>';
}

if (section == "index") {
	strSubNav += '<a href="'+project_root+'/siteindex.asp"><img name="index_submenu_nav" src="'+project_root+'/images/buttons/but_index_on.gif" border="0"></a>';
} else {
	strSubNav += '<a href="'+project_root+'/siteindex.asp" onMouseOver="swapImg(\'index\',\'submenu_nav\',1);" onMouseOut="swapImg(\'index\',\'submenu_nav\',0);" ><img name="index_submenu_nav" src="'+project_root+'/images/buttons/but_index_off.gif" border="0"></a>';
}

if (section == "Help") {
	strSubNav += '<a href="'+project_root+'/content.asp?cid='+helpid+'"><img name="help_submenu_nav" src="'+project_root+'/images/buttons/but_help_on.gif" border="0"></a>';
} else {
	strSubNav += '<a href="'+project_root+'/content.asp?cid='+helpid+'" onMouseOver="swapImg(\'help\',\'submenu_nav\',1);" onMouseOut="swapImg(\'help\',\'submenu_nav\',0);" ><img name="help_submenu_nav" src="'+project_root+'/images/buttons/but_help_off.gif" border="0"></a>';
}

if (section == "contact") {
	strSubNav += '<a onClick="pullDown(\'contact\');swapImg3(\'contact\',\'submenu_nav\',1);return false;" href="#"><img name="contact_submenu_nav" src="'+project_root+'/images/buttons/but_contact_on.gif" border="0"></a>';
} else {
	strSubNav += '<a onMouseOver="swapImg(\'contact\',\'submenu_nav\',1);" onMouseOut="swapImg(\'contact\',\'submenu_nav\',0);"  onClick="pullDown(\'contact\');swapImg3(\'contact\',\'submenu_nav\',1);return false;" href="#"><img name="contact_submenu_nav" src="'+project_root+'/images/buttons/but_contact_off.gif" border="0"></a>';
}

if (section == "Events") {
	strSubNav += '<a href="'+project_root+'/calendar/event_list.asp"><img name="calendar_submenu_nav" src="'+project_root+'/images/buttons/but_calendar_on.gif" border="0"></a>';
} else {
	strSubNav += '<a href="'+project_root+'/calendar/event_list.asp" onMouseOver="swapImg(\'calendar\',\'submenu_nav\',1);" onMouseOut="swapImg(\'calendar\',\'submenu_nav\',0);" ><img name="calendar_submenu_nav" src="'+project_root+'/images/buttons/but_calendar_off.gif" border="0"></a>';
}

if (section == "Regional Sites") {
	strSubNav += '<a href="#" onClick="pullDown(\'aust\');swapImg3(\'aust\',\'submenu_nav\',1);return false;"><img name="aust_submenu_nav" src="'+project_root+'/images/buttons/but_aust_on.gif" border="0"></a>';
} else {
	strSubNav += '<a href="#" onMouseOver="swapImg(\'aust\',\'submenu_nav\',1);" onMouseOut="swapImg(\'aust\',\'submenu_nav\',0);"  onClick="pullDown(\'aust\'); swapImg3(\'aust\',\'submenu_nav\',1);return false;"><img name="aust_submenu_nav" src="'+project_root+'/images/buttons/but_aust_off.gif" border="0"></a>';
}

if (section == "country") {
	strSubNav += '<a href="#" onClick="pullDown(\'country\');swapImg3(\'country\',\'submenu_nav\',1);return false;"><img name="country_submenu_nav" src="'+project_root+'/images/buttons/but_country_on.gif" border="0"></a>';
} else {
	strSubNav += '<a href="#" onMouseOver="swapImg(\'country\',\'submenu_nav\',1);" onMouseOut="swapImg(\'country\',\'submenu_nav\',0);"  onClick="pullDown(\'country\'); swapImg3(\'country\',\'submenu_nav\',1);return false;"><img name="country_submenu_nav" src="'+project_root+'/images/buttons/but_country_off.gif" border="0"></a>';
}

//Employee section
strSubNav += '<a href="/content.asp?cid=23450&s=4" onMouseOver="swapImg(\'employee\',\'submenu_nav\',1);" onMouseOut="swapImg(\'employee\',\'submenu_nav\',0);"><img name="employee_submenu_nav" src="'+project_root+'/images/buttons/but_employee_off.gif" border="0"></a>';


//createLay('submenu_nav',90,290,21,540,strSubNav,31,FlashOff,'');




//contact form roll down.  Different sizes for Netscape and IE.
if (b == "ie") {
	createLay('contact_roll',-600,324,450+nContactUsYOffset,368,'<table width="350" cellpadding="0" cellspacing="0" bgcolor="#ffffff" border="0"><tr><td height="50" width="9" nowrap><img src="'+project_root+'/images/purple_grad.gif" height="' + (450+nContactUsYOffset) + '" width="9"></td><td width="350" height="450" align="right" valign="bottom" nowrap><a onClick="pullDown(\'contact\'); " onMouseOver="swapImg(\'back\',\'contact_roll\',1);" onMouseOut="swapImg(\'back\',\'contact_roll\',0);" href="#"><img name="back_contact_roll" src="'+project_root+'/images/buttons/but_back_off.gif" vspace="0" hspace="0" border="0"></a></td><td height="450" width="9" nowrap bgcolor="#6060d8"><img src="'+project_root+'/images/clear.gif" height="450" width="9"></td></tr><tr><td height="9" width="9" nowrap><img src="'+project_root+'/images/purple_grad.gif" height="9" width="9"></td><td width="350" height="9" bgcolor="#6060d8" nowrap><img src="'+project_root+'/images/clear.gif" height="9"></td><td height="9" width="9" nowrap bgcolor="#6060d8"><img src="'+project_root+'/images/clear.gif" height="9" width="9"></td></tr></table>',29,FlashOff,'');
	var sContact = '<iframe ID="ContactFrame" width="318" height="' + (390+nContactUsYOffset) + '" frameborder="no" src="'+project_root+'/Contact/index.asp?cid='+cid+'" scrolling="no"></iframe>';
}else if (b == "w3c") {
	createLay('contact_roll',-600,324,450+nContactUsYOffset,368,'<table width="350" cellpadding="0" cellspacing="0" bgcolor="#ffffff" border="0"><tr><td height="50" width="9" nowrap><img src="'+project_root+'/images/purple_grad.gif" height="' + (450+nContactUsYOffset) + '" width="9"></td><td width="350" height="450" align="right" valign="bottom" nowrap><a onClick="pullDown(\'contact\'); " onMouseOver="swapImg(\'back\',\'contact_roll\',1);" onMouseOut="swapImg(\'back\',\'contact_roll\',0);" href="#"><img name="back_contact_roll" src="'+project_root+'/images/buttons/but_back_off.gif" vspace="0" hspace="0" border="0"></a></td><td height="450" width="9" nowrap bgcolor="#6060d8"><img src="'+project_root+'/images/clear.gif" height="450" width="9"></td></tr><tr><td height="9" width="9" nowrap><img src="'+project_root+'/images/purple_grad.gif" height="9" width="9"></td><td width="350" height="9" bgcolor="#6060d8" nowrap><img src="'+project_root+'/images/clear.gif" height="9"></td><td height="9" width="9" nowrap bgcolor="#6060d8"><img src="'+project_root+'/images/clear.gif" height="9" width="9"></td></tr></table>',29,FlashOff,'');
	var sContact = '<iframe ID="ContactFrame" width="318" height="' + (390+nContactUsYOffset) + '" frameborder="no" src="'+project_root+'/Contact/index.asp?cid='+cid+'" scrolling="no"></iframe>';
}else {
	createLay('contact_roll',-600,324,480+nContactUsYOffset,368,'<table width="350" cellpadding="0" cellspacing="0" bgcolor="#ffffff" border="0"><tr><td height="50" width="9" nowrap><img src="'+project_root+'/images/purple_grad.gif" height="' + (480+nContactUsYOffset) + '" width="9"></td><td width="350" height="' + (450+nContactUsYOffset) + '" align="right" valign="bottom" nowrap><a onClick="pullDown(\'contact\'); " onMouseOver="swapImg(\'back\',\'contact_roll\',1);" onMouseOut="swapImg(\'back\',\'contact_roll\',0);" href="#"><img name="back_contact_roll" src="'+project_root+'/images/buttons/but_back_off.gif" vspace="0" hspace="0" border="0"></a></td><td height="450" width="9" nowrap bgcolor="#6060d8"><img src="'+project_root+'/images/clear.gif" height="450" width="9"></td></tr><tr><td height="9" width="9" nowrap><img src="'+project_root+'/images/purple_grad.gif" height="9" width="9"></td><td width="350" height="9" bgcolor="#6060d8" nowrap><img src="'+project_root+'/images/clear.gif" height="9"></td><td height="9" width="9" nowrap bgcolor="#6060d8"><img src="'+project_root+'/images/clear.gif" height="9" width="9"></td></tr></table>',29,FlashOff,'');
	var sContact = '<layer ID="ContactFrame" width="318" height="' + (390+nContactUsYOffset) + '" frameborder="no" src="'+project_root+'/Contact/index.asp?cid='+cid+'" scrolling="no"></layer>';
}
//createLay('contact_form',130,350,390+nContactUsYOffset,368,'<form name="contactForm" method="get" action="'+project_root+'/Contact/contact.asp">'+sContact+'</form>',29,0,'');

//search form roll down
//createLay('search_roll',-500,324,255,290,'<table width="255" height="125" cellpadding="0" cellspacing="0" bgcolor="#ffffff" border="0"><tr><td height="300" width="9" nowrap><img src="'+project_root+'/images/purple_grad.gif" height="300" width="9"></td><td rowspan="3" width="9" nowrap bgcolor="#6060d8"><img src="'+project_root+'/images/clear.gif" height="300" width="9"></td></tr><tr><td align="left" height="13" valign="bottom" nowrap><img src="'+project_root+'/images/purple_grad.gif" height="13" width="9"><img src="'+project_root+'/images/clear.gif" height="13" width="310"><a onClick="pullDown(\'search\'); " onMouseOver="swapImg(\'back\',\'search_roll\',1);" onMouseOut="swapImg(\'back\',\'search_roll\',0);" href="#"><img name="back_search_roll" height="13" width="15" src="'+project_root+'/images/buttons/but_back_off.gif" border="0"></a></td></tr><tr><td height="9" bgcolor="#6060d8" nowrap><img src="'+project_root+'/images/clear.gif" height="9" width="300"></td></tr></table>',29,FlashOff,'');
//createLay('search_form',130,354,255,298,sSearchSection,30,0,'');

//Calendar form roll down
//createLay('calendar_roll',-500,324,500,368,'<table width="308" height="125" cellpadding="0" cellspacing="0" bgcolor="#ffffff" border="0"><tr><td rowspan="3" width="9" nowrap><img src="'+project_root+'/images/purple_grad.gif" height="540" width="9"></td><td align="center" width="292" height="5" nowrap><img src="'+project_root+'/images/clear.gif" height="203" width="1"></td><td rowspan="3" width="9" nowrap bgcolor="#6060d8"><img src="'+project_root+'/images/clear.gif" height="500" width="9"></td></tr><tr><td align="right" height="13" valign="bottom" nowrap><a onClick="pullDown(\'calendar\'); " onMouseOver="swapImg(\'back\',\'calendar_roll\',1);" onMouseOut="swapImg(\'back\',\'calendar_roll\',0);" href="#"><img name="back_calendar_roll" height="13" width="15" src="'+project_root+'/images/buttons/but_back_off.gif" border="0"></a></td></tr><tr><td height="5" bgcolor="#6060d8" nowrap><img src="'+project_root+'/images/clear.gif" height="1" width="368" border="0"></td></tr></table>',29,FlashOff,'');
//createLay('calendar_form',130,354,500,366,sCalSection,29,0,'');

//aust regional selector roll down
//createLay('aust_roll',-300,324,139,436,'<table width="436" cellpadding="0" cellspacing="0" bgcolor="#ffffff" border="0"><tr><td height="130" width="9" nowrap><img src="'+project_root+'/images/purple_grad.gif" height="130" width="9"></td><td width="418" height="130" align="right" valign="bottom" nowrap><a onClick="pullDown(\'aust\'); " onMouseOver="swapImg(\'back\',\'aust_roll\',1);" onMouseOut="swapImg(\'back\',\'aust_roll\',0);" href="#"><img name="back_aust_roll" src="'+project_root+'/images/buttons/but_back_off.gif" vspace="0" hspace="0" border="0"></a></td><td height="130" width="9" nowrap bgcolor="#6060d8"><img src="'+project_root+'/images/clear.gif" height="130" width="9"></td></tr><tr><td height="9" width="9" nowrap><img src="'+project_root+'/images/purple_grad.gif" height="9" width="9"></td><td width="418" height="9" bgcolor="#6060d8" nowrap><img src="'+project_root+'/images/clear.gif" height="9"></td><td height="9" width="9" nowrap bgcolor="#6060d8"><img src="'+project_root+'/images/clear.gif" height="9" width="9"></td></tr></table>',28,FlashOff,'#0000ff');

//country selector roll down
//createLay('country_roll',-300,324,139,436,'<table width="436" cellpadding="0" cellspacing="0" bgcolor="#ffffff" border="0"><tr><td height="130" width="9" nowrap><img src="'+project_root+'/images/purple_grad.gif" height="130" width="9"></td><td width="418" height="130" align="right" valign="bottom" nowrap><a onClick="pullDown(\'country\'); " onMouseOver="swapImg(\'back\',\'country_roll\',1);" onMouseOut="swapImg(\'back\',\'country_roll\',0);" href="#"><img name="back_country_roll" src="'+project_root+'/images/buttons/but_back_off.gif" vspace="0" hspace="0" border="0"></a></td><td height="130" width="9" nowrap bgcolor="#6060d8"><img src="'+project_root+'/images/clear.gif" height="130" width="9"></td></tr><tr><td height="9" width="9" nowrap><img src="'+project_root+'/images/purple_grad.gif" height="9" width="9"></td><td width="418" height="9" bgcolor="#6060d8" nowrap><img src="'+project_root+'/images/clear.gif" height="9"></td><td height="9" width="9" nowrap bgcolor="#6060d8"><img src="'+project_root+'/images/clear.gif" height="9" width="9"></td></tr></table>',28,FlashOff,'#0000ff');

function makeRightLinks() {
	var r0 = (origWidth) - r1;
	rightLinksStr = '<table width="'+r0+'" cellpadding="0" cellspacing="0" border="0"><tr><td rowspan="2" width="'+r2+'" bgcolor="#d6e5f8" nowrap><img src="'+project_root+'/images/clear.gif" height="1" width="1"></td><td width="10" valign="top" bgcolor="#aabdff" nowrap><img src="'+project_root+'/images/roll_shadow.gif" height="91" width="10"></td><td width="'+r3+'" bgcolor="#d6e5f8" nowrap><img src="'+project_root+'/images/clear.gif" height="1" width="1"></td><td width="'+r4+'" nowrap></td><td width="'+r5+'" valign="top"><img src="'+project_root+'/images/clear.gif" height="5" width="'+r5+'"><br>';
	rightLinksStr += rightLinksDropdownStr;
	for (x=0; x < rightLinks.length; x++) {
		if (rightLinks[x].headerImg != '') {
				rightLinksStr += '<img src="'+project_root+'/images/clear.gif" height="20" width="1"><br>';
			if (rightLinks[x].path != '') {
				if (rightLinks[x].jscr) {
					rightLinksStr += '<a href="#" onClick="'+rightLinks[x].path+'">';
				} else {
					rightLinksStr += '<a href="'+rightLinks[x].path+'">';
				}
				//rightLinksStr += '<img src="'+rightLinks[x].headerImg+'" border="0"></a>';
				rightLinksStr +='<FONT class="actionColumnHead">'+rightLinks[x].headerImg + '</font>';
			} else {
				//rightLinksStr += '<img src="'+rightLinks[x].headerImg+'" border="0">';
				rightLinksStr += '<FONT class="actionColumnHead">'+rightLinks[x].headerImg + '</font>';
			}
		rightLinksStr += '<br><img src="'+project_root+'/images/clear.gif" height="5" width="1" border="0"><br>';
		}

		if (rightLinks[x].description != '') {
			rightLinksStr += '<font class="rightText">'+rightLinks[x].description+'</font><BR>';
		}

		if (rightLinks[x].linkText != '') {
			rightLinksStr += '<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td valign="top" width="10"><img src="'+project_root+'/images/blu_arr.gif" height="10" width="10" border="0"></td><td valign="top">'
			if (rightLinks[x].jscr) {rightLinksStr += '<a href="#" onClick="'+rightLinks[x].path+'">';
			} else {rightLinksStr += '<a href="'+rightLinks[x].path+'">';
			}
			if (rightLinks[x].active) {rightLinksStr += '<font class="rightLinkOn">'
			} else {rightLinksStr += '<font class="rightLink">'
			}
			rightLinksStr += rightLinks[x].linkText+'</font></a></td></tr><tr><td colspan="2" height="5" nowrap></td></tr></table>'
		}
	}
	rightLinksStr += '<img src="'+project_root+'/images/clear.gif" height="40" width="1" border="0"><br></td><td width="100%"></td></tr><tr><td colspan="5" width="20" bgcolor="#aabdff"><img src="'+project_root+'/images/clear.gif" height="10" width="20"></td></tr><tr><td colspan="3" nowrap bgcolor="#d6e5f8"><img src="'+project_root+'/images/clear.gif" height="50" width="1"></td><td colspan="3"></td></tr></table>';
	createLay('rightLinksLay',112,r1+eventOffset,0,0,rightLinksStr,1,FlashOff,'');
}




function popup2(tar,par,subnav,n) {
	if (curTar != '') {
		if (curTar != (section+'_'+l1id)) {
//			swapImg2(curTar,par,n);
		}
		if (curNav) {
			makeVis(curTar+'_subnav',0)
		}
	}
	swapImg2(tar,par,n);

	if (subnav) {
		makeVis(tar+'_subnav',1)
		curNav = 1;
	} else {
		curNav = 0;
	}
	curTar = tar;
}


function resetSubnav() {
	if (curTar != '') {
		if (curTar != (section+'_'+l1id)) {
			swapImg(curTar,'sub_nav',this.imgoff);
		}
		if (curNav) {
			makeVis(curTar+'_subnav',0)
		}
		curNav = 0;
		curTar = '';
	}
}

//enr email validation
function submission ()
{
    var x = 0
	//alert("the value of the redirect field is "+document.emailform.redirect.value);
	//window.location = document.write(document.URL);
    while ((x < document.emailform.elements.length - 5))
    {
        if (document.emailform.elements[x].value == '')
        {
            alert('Please enter the '+document.emailform.elements[x].name +' and try again.')
            document.emailform.elements[x].focus()
            return;
        }
        x ++
    }
    this.document.emailform.submit();
  }
//-->
