<!-- Beginning of JavaScript -------------------// Swapping Images// Netscape 3.0 or higher and Internet Explorer 4.0 compatibility test (for javascript image swapping)browserName = navigator.appName;browserVer = parseInt(navigator.appVersion);if ((browserName == "Netscape" && browserVer >= 3) ||    (browserName == "Microsoft Internet Explorer" && browserVer >= 4))      compat = true;else 	compat = false;// Put images in cache for quick swappingif( compat ){		light_f = new Image;(29,30)		light_f.src = "../image/light_f.gif";		light_o = new Image;(29,30)		light_o.src = "../image/light_o.gif";		title = new Image;(171,100)		title.src = "../image/techno_title_sm.gif";		blank = new Image;(166,103)		blank.src = "../image/blank.gif";		button1_active = new Image;(89,30)		button1_active.src = "../image/propulsion_act.gif";		button1_inactive = new Image;(89,30)		button1_inactive.src = "../image/propulsion.gif";		button2_active = new Image;(89,30)		button2_active.src = "../image/energy_act.gif";		button2_inactive = new Image;(89,30)		button2_inactive.src = "../image/energy.gif";		button3_active = new Image;(89,30)		button3_active.src = "../image/computer_act.gif";		button3_inactive = new Image;(89,30)		button3_inactive.src = "../image/computer.gif";		button4_active = new Image;(89,30)		button4_active.src = "../image/aliens_act.gif";		button4_inactive = new Image;(89,30)		button4_inactive.src = "../image/aliens.gif";		button5_active = new Image;(89,30)		button5_active.src = "../image/spacetime_act.gif";		button5_inactive = new Image;(89,30)		button5_inactive.src = "../image/spacetime.gif";		button6_active = new Image;(89,30)		button6_active.src = "../image/gravity_act.gif";		button6_inactive = new Image;(89,30)		button6_inactive.src = "../image/gravity.gif";		button7_active = new Image;(89,30)		button7_active.src = "../image/gadget_act.gif";		button7_inactive = new Image;(89,30)		button7_inactive.src = "../image/gadget.gif";		button8_active = new Image;(89,30)		button8_active.src = "../image/medical_act.gif";		button8_inactive = new Image;(89,30)		button8_inactive.src = "../image/medical.gif";		c0= new Image;(30,30)		c0.src = "../image/c0.gif";				c1= new Image;(16,30)		c1.src = "../image/c1.gif";		c2= new Image;(16,30)		c2.src = "../image/c2.gif";		c3= new Image;(16,30)		c3.src = "../image/c3.gif";		c4= new Image;(16,30)		c4.src = "../image/c4.gif";}// swap images using the cached imagesfunction swapImg(imgName, sourceName){   if( compat ) {    		document.images[imgName].src=eval(sourceName+'.src');   		}}// Updating indicatorsfunction updateIndicator(num){					for ( x =1; x < 9; x++) {		swapImg ('indicator' + x, 'light_f');		}	if (num ==0) {			swapImg ('status', 'blank');			removeCon();		}	else {		swapImg( 'status', 'title');				swapImg( 'indicator'+num, 'light_o');		con(num);	}	}function con (num){	removeCon();	for ( x =1; x < num; x++) {		swapImg ('con' + x, 'c3');		}	swapImg( 'con' + num, 'c4');}function removeCon (){	for ( x =1; x <= 8; x++) {		swapImg ('con' + x, 'c0');		}}// -- End of JavaScript code -------------- -->
