//check if the browser is Navigator 3 or higher:
agent = navigator.userAgent;
browserVer = 2;
if (agent.substring(0, 7) == "Mozilla")
{
	if (parseInt(agent.substring(8,9))>=3) {browserVer = 1;}
}

//preload universal images:
if (browserVer ==1) {
button1 = new Image();
button1.src = "images/buttons/b_whoweare_off.jpg";
button1on = new Image();
button1on.src = "images/buttons/b_whoweare_on.jpg";

button2 = new Image();
button2.src = "images/buttons/b_whatwedo_off.jpg";
button2on = new Image();
button2on.src = "images/buttons/b_whatwedo_on.jpg";

button3 = new Image();
button3.src = "images/buttons/b_ourwork_off.jpg";
button3on = new Image();
button3on.src = "images/buttons/b_ourwork_on.jpg";

button4 = new Image();
button4.src = "images/buttons/b_ourclients_off.jpg";
button4on = new Image();
button4on.src = "images/buttons/b_ourclients_on.jpg";

button5 = new Image();
button5.src = "images/buttons/b_contact_off.jpg";
button5on = new Image();
button5on.src = "images/buttons/b_contact_on.jpg";

button6 = new Image();
button6.src = "images/buttons/b_getstarted_off.gif";
button6on = new Image();
button6on.src = "images/buttons/b_getstarted_on.gif";

button7 = new Image();
button7.src = "images/buttons/b_photo_off.gif";
button7on = new Image();
button7on.src = "images/buttons/b_photo_on.gif";

button8 = new Image();
button8.src = "images/buttons/b_home2_off.gif";
button8on = new Image();
button8on.src = "images/buttons/b_home2_on.gif";

button9 = new Image();
button9.src = "images/buttons/b_contact2_off.gif";
button9on = new Image();
button9on.src = "images/buttons/b_contact2_on.gif";

button10 = new Image();
button10.src = "images/buttons/b_whatisreno2_off.gif";
button10on = new Image();
button10on.src = "images/buttons/b_whatisreno2_on.gif";

button11 = new Image();
button11.src = "images/buttons/b_whatisinclude2_off.gif";
button11on = new Image();
button11on.src = "images/buttons/b_whatisinclude2_on.gif";

button12 = new Image();
button12.src = "images/buttons/b_flatfee2_off.gif";
button12on = new Image();
button12on.src = "images/buttons/b_flatfee2_on.gif";

button13 = new Image();
button13.src = "images/buttons/b_getstarted2_off.gif";
button13on = new Image();
button13on.src = "images/buttons/b_getstarted2_on.gif";

button14 = new Image();
button14.src = "images/buttons/b_photo2_off.gif";
button14on = new Image();
button14on.src = "images/buttons/b_photo2_on.gif";
}

function hilite(imgDocID, imgObjName) {
//manages mouseOver animations
//imgDocID - the name or number of the document image to be replaced
//imgObjName - the name of the image object to be swapped in

if (browserVer == 1) {
document.images[imgDocID].src = eval(imgObjName + ".src")
}}