/*
	Copyright David Trewern Design         :: www.dtdesign.com ::
	Unauthorised modification / use is a criminal offence, and
	will be prosecuted to the fullest extent permitted by law.
	All Rights Reserved
*/

// USE: call images 'swap_*_#.gif' in 'i' folder with:
// * = image name (must also be placed in NAVarr array below)
// # = image state : 0 = off, 1 = on

NAVarr = new Array("nav_home", "nav_ourfirm", "nav_ourservices", "nav_ourpeople", "nav_technologies", "nav_globalservices", "nav_careers", "nav_newsresources", "nav_contactus",
		"ourfirm_history", "ourfirm_company", "ourfirm_teamintro", "ourfirm_offices",
		"ourser_patents", "ourser_trademarks", "ourser_designs", "ourser_litigation", "ourser_ip", "ourser_corporate", "ourser_domainname", "ourser_copyright",
		"ourpeo_teamprofiles", "ourpeo_individual",
		"techno_applied", "techno_biotech", "techno_chemistry", "techno_civil", "techno_electrical", "techno_mechanical", "techno_mining", "techno_physics",
		"career_patent", "career_trademarks", "career_legal", "career_graduate", "career_current",
		"newsre_links", "newsre_brochures", "newsre_tools", "newsre_factsheets", "newsre_news", "newsre_latest", "newsre_subscribe");
if (document.images) {
	for (var NAVitem in NAVarr) { 
		 for (var NAVicount=0; NAVicount < 2; NAVicount++) { 
				eval("b" + NAVarr[NAVitem] + NAVicount + " = new Image()");
				eval("b" + NAVarr[NAVitem] + NAVicount + ".src = '/assets/swap_" + NAVarr[NAVitem] + "_" + NAVicount + ".gif'");
		 } 
	} 
}

function BturnOn(imageName) {
	if (document.images) { document [imageName].src = eval("b" +imageName + "1.src");   }
	}

function BturnOff(imageName) {
	if (document.images) { document [imageName].src = eval("b" + imageName + "0.src");   }
	}
