agent = navigator.userAgent;

  rollovercheck = 0;

  if (agent.substring(0,7) == "Mozilla")

  {

    if (parseInt(agent.substring(8,9)) >= 3) { rollovercheck=1; }

    if (agent.indexOf("MSIE 3") != -1) { rollovercheck=0; }

  }



if (rollovercheck) {  // If the image object exists



// Preload images



{


but1 = new Image();
but1.src = "../pix/sub_but_overview.gif";

but1h = new Image();
but1h.src = "../pix/sub_butx_overview.gif";


but2 = new Image();
but2.src = "../pix/sub_but_people.gif";

but2h = new Image();
but2h.src = "../pix/sub_butx_people.gif";


but3 = new Image();
but3.src = "../pix/sub_but_nutrition.gif";

but3h = new Image();
but3h.src = "../pix/sub_butx_nutrition.gif";


but4 = new Image();
but4.src = "../pix/sub_but_prospective.gif";

but4h = new Image();
but4h.src = "../pix/sub_butx_prospective.gif";


but5 = new Image();
but5.src = "../pix/sub_but_resources.gif";

but5h = new Image();
but5h.src = "../pix/sub_butx_resources.gif";


but6 = new Image();
but6.src = "../pix/sub_but_events.gif";

but6h = new Image();
but6h.src = "../pix/sub_butx_events.gif";


but7 = new Image();
but7.src = "../pix/sub_but_contact.gif";

but7h = new Image();
but7h.src = "../pix/sub_butx_contact.gif";


but9 = new Image();
but9.src = "../pix/sub_but_homepage.gif";

but9h = new Image();
but9h.src = "../pix/sub_butx_homepage.gif";


but8 = new Image();
but8.src = "../pix/sub_but_gdbbs.gif";

but8h = new Image();
but8h.src = "../pix/sub_butx_gdbbs.gif";


	}

}



function changeImage(imgDocID,imgObjName,imgDocID2,imgObjName2) {

//  manages mouse click image behaviours

//   imgDocID - the name or number of the document image to be replaced

//   imgObjName - the name of the image object to be swapped in



 if (rollovercheck) { // If the image object exists

		{

		document.images[imgDocID].src = eval(imgObjName + ".src");


		}

	}

}