//
// JavaScript functions for Menus.
//
//
// COPYRIGHT NOTICE
// Copyright 2010 Michael L. Benson. All rights reserved.
//
// This script may be used and modified free of charge provided that this
// copyright notice remains intact. By using this code you are agreeing to
// indemnify the author, Michael L. Benson, from any liability which might arise
// from its use.
//
// You may give copies of this script to any third party, but you may not sell
// this script for any reason whatsoever without the prior written consent of
// Michael L. Benson. 
//
// You must obtain prior written consent from Michael L. Benson if you intend to
// redistribute this script over the Internet or via any other medium.
//
// In all cases where this script is given to a third party, this copyright
// notice must remain intact and at the beginning of the script. At all times
// this script remains the property of Michael L. Benson.
//


menu_img_on = new Array();
menu_img_off = new Array();

var menus = [
	'about/clients',
	'about/how_we_work',
	'about/overview',
	'contact/careers',
	'contact/overview',
	'practice/asset_management',
	'practice/insurance',
	'practice/wealth_management',
	'thought/case_studies',
	'thought/overview',
	'thought/research',
	'top/case_studies',
	'top/how_we_work',
	'top/thought_leadership',
	'wealth/asset_management',
	'wealth/insurance',
	'wealth_management/banking_solutions',
	'wealth_management/distribution',
	'wealth_management/front_back_office',
	'wealth_management/private_banking',
	'wealth_management/retail_private',
	'insurance/group_ins_wksite_dirchannels',
	'insurance/ins_asset_mgmt',
	'insurance/lifeins_annuities_longevity',
	'asset_management/ins_asset_mgmt_mrks',
	'asset_management/retail_mass_pri_wealth'
];


function NewMenuImage(arg)
{
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}


function InitMenus(path)
{
	var num_menus = menus.length;

	// All menus:
	for (i = 0;  i < num_menus;  i++) {
		menu_img_on[i]  = NewMenuImage(path + "images/menus/" + menus[i] + "_on.gif");
		menu_img_off[i] = NewMenuImage(path + "images/menus/" + menus[i] + ".gif");
	}
}

