/*	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("home", "company", "ourproducts", "news", "casestudies", "locate", "usedmachinery","contact", "clientlogin", "downloads", "spareparts", "enquiries", "updateregistration","hmft_she_1", "hmft_she_2", "hmft_she_3", "hmft_she_4", "hmft_rnd_1", "hmft_rnd_2", "hmft_rnd_3", "hmft_rnd_4", "hmft_rnd_5", "hmft_che_1", "hmft_che_2", "hmft_che_3", "hmft_che_4", "hmft_che_5");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");   }}var state = 'hidden';var current = '';function showhide(layer_ref) {	if (current != '') {		if (document.all) { //IS IE 4 or 5 (or 6 beta)			eval( "document.all." + current + ".style.visibility = 'hidden'");		}		if (document.layers) { //IS NETSCAPE 4 or below			document.layers[current].visibility = 'hidden';		}		if (document.getElementById && !document.all) {			layer_x = document.getElementById(current);			layer_x.style.visibility = 'hidden';		}		state = 'hidden';	}	if (layer_ref == current) {		current = '';	} else {		if (state == 'visible') {			state = 'hidden';		}else {			state = 'visible';		}		if (document.all) { //IS IE 4 or 5 (or 6 beta)			eval( "document.all." + layer_ref + ".style.visibility = state");		}		if (document.layers) { //IS NETSCAPE 4 or below			document.layers[layer_ref].visibility = state;		}		if (document.getElementById && !document.all) {			layer_x = document.getElementById(layer_ref);			layer_x.style.visibility = state;		}				current = layer_ref;	}}