<!--
   
// IMAGE SWAP SCRIPT
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		ln_french_on= newImage ("../images/en/ln_french_on.gif");
		ln_com_on= newImage ("../images/en/ln_com_on.gif");
		ln_rep_on= newImage ("../images/en/ln_rep_on.gif");
		preloadFlag = true;
	}
}
	
	
// QUICK FINDER SCRIPT
	
function check_quickfinder() {
	var f = document.quickfinder;
	if (f.keyword.value != "") {
		f.submit();
	}
	else {
		alert("Please enter a keyword");
		return;
	}
}
	
// SUB NAV BG-COLOR CHANGE
// This script from Allianz.pl....AEFI needs to write fot its own.
var browser	
var browserName = navigator.appName;
if (browserName == "Microsoft Internet Explorer") { var browser="ie";}
if (browserName == "Netscape") { var browser="ns";}
	
var grupa='A0';
var pod ='A0.0';
var pod1 ='A0.0';
var pod2 = 'A0.0'
var okno = ''; 
var kolor = '';
var zakl = '1';
	
//if (grupa == 'A0') { grupa = 'A5'; }
//var grupa = 'A1';
	
var color = '';
function ov(id,sHLCol) {
	
	if ((document.all) && (id!='') && (window.document.all[id])) {
		if (browser=='ie') {
			window.color = window.document.all[id].style.background;
			window.document.all[id].style.background = sHLCol;
			if ((id != okno ) && (id.length < 3) && (okno != '')) { 
				window.document.all[okno].style.background = window.color;
			}
		//alert (id+'       '+id.length)
		}
	//if ((id != okno ) && (id.length > 2)) { window.document.all[okno].style.background = window.color; }
	isOverMenu_m = true;
	}
	}
	
function o(id, sNoCol) {
	if ((document.all) && (browser=='ie')) {
		window.document.all[id].style.background = sNoCol;
		//if (id != okno ) { window.ov (okno, kolor); }
		isOverMenu_m = false;
		}
	}
	
function wysun ()
	{
	if ((grupa.substring(0,1) != 'B') && (grupa.substring(0,1) != 'E') && (grupa.substring(0,1) != 'S')
	&& (grupa.substring(0,1) != 'L') && (grupa.substring(0,1) != 'F') && (grupa != 'A0') && (grupa != 'PB0') && (grupa != 'P0'))
	{
	//	window.ov (okno, kolor); 
	//	alert (pod1.substring(5)+'    '+pod2.substring(7));
		if (kolor != '') { sLayers (kolor+'sub');	}
	}
}

function ReloadSectionNav() {
	if (sSectionNav !='') {
		changeImages('tn', sSectionImgSrc);
		popup(sSectionNav);
		}
	else {
		changeImages('tn', sSectionImgSrc); 
		popdn();
		}

}
// Variable to hold the section image src for the top navigation element.

var kCompanyImgSrc = '../images/EN/tn1.gif'; 	// Image source for company section.
var kProductsImgSrc = '../images/EN/tn2.gif';	// Image source for products section.	
var kEducationImgSrc = '../images/EN/tn3.gif';	// Image source for education section.
var kAccountsImgSrc = '../images/EN/tn4.gif';	// Image source for Accounts section.
var kContactImgSrc = '../images/EN/tn5.gif';	// Image source for Contact section.

// Dimensions the variable for the home page. 
var sSectionImgSrc = '../images/EN/tn0.gif'; 



// Variables to hold highlighted section information

// Company

var sSectionFund = ''
var sSectionFoundation = ''
var sSectionGroup = ''
var sSectionCareers = ''
var sSectionPress = ''

// Product

var sSectionHeritage = ''
var sSectionImpression = ''
var sSectionRespGroup = ''

// Education101

var sSectionCost = ''
var sSectionBasics = ''
var sSectionCalculator = ''
var sSectionFAQ = ''

// Account

var sSectionLogin = ''
var sSectionAccounts = ''
var sSectionRESP = ''
var sSectionCESG = ''
var sSectionPlan = ''

// Contact

var sSectionContact = ''
var sSectionOffice = ''
var sSectionTell=''
// -->

function submitMemberForm(sForm, sAction){
// for a specific action dynamically change the forms on submit action.

	switch (sAction){
		case "UpdateSecurityQA":
			sForm.action = "account_myaccount_submit.asp?hlpage=account_myaccount_userprofile&action=" + sAction;
			break;
		case "UpdateUserID":
			sForm.action = "account_myaccount_submit.asp?hlpage=account_myaccount_userprofile&action=" + sAction;
			break;
	}
	sForm.submit();
}