//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_home_off.gif";
button1on = new Image();
button1on.src = "images/buttons/b_home_on.gif";

button2 = new Image();
button2.src = "images/buttons/b_buying_off.gif";
button2on = new Image();
button2on.src = "images/buttons/b_buying_on.gif";

button3 = new Image();
button3.src = "images/buttons/b_selling_off.gif";
button3on = new Image();
button3on.src = "images/buttons/b_selling_on.gif";

button4 = new Image();
button4.src = "images/buttons/b_relo_off.gif";
button4on = new Image();
button4on.src = "images/buttons/b_relo_on.gif";

button5 = new Image();
button5.src = "images/buttons/b_agents_off.gif";
button5on = new Image();
button5on.src = "images/buttons/b_agents_on.gif";

button6 = new Image();
button6.src = "images/buttons/b_rentals_off.gif";
button6on = new Image();
button6on.src = "images/buttons/b_rentals_on.gif";

button7 = new Image();
button7.src = "images/buttons/b_contact_off.gif";
button7on = new Image();
button7on.src = "images/buttons/b_contact_on.gif";

button8 = new Image();
button8.src = "images/buttons/b_gold_off.gif";
button8on = new Image();
button8on.src = "images/buttons/b_gold_on.gif";

button9 = new Image();
button9.src = "images/buttons/b_corphousing_off.gif";
button9on = new Image();
button9on.src = "images/buttons/b_corphousing_on.gif";

button10 = new Image();
button10.src = "images/buttons/b_financial_off.gif";
button10on = new Image();
button10on.src = "images/buttons/b_financial_on.gif";

button11 = new Image();
button11.src = "images/buttons/b_careers_off.gif";
button11on = new Image();
button11on.src = "images/buttons/b_careers_on.gif";

button12 = new Image();
button12.src = "images/buttons/b_mortcalc_off.gif";
button12on = new Image();
button12on.src = "images/buttons/b_mortcalc_on.gif";

button13 = new Image();
button13.src = "images/buttons/b_about_off.gif";
button13on = new Image();
button13on.src = "images/buttons/b_about_on.gif";

button14 = new Image();
button14.src = "images/buttons/b_cltinfo_off.gif";
button14on = new Image();
button14on.src = "images/buttons/b_cltinfo_on.gif";

button15 = new Image();
button15.src = "images/buttons/b_ncschool_off.gif";
button15on = new Image();
button15on.src = "images/buttons/b_ncschool_on.gif";

button16 = new Image();
button16.src = "images/buttons/b_scschool_off.gif";
button16on = new Image();
button16on.src = "images/buttons/b_scschool_on.gif";

button17 = new Image();
button17.src = "images/buttons/b_cltcom_off.gif";
button17on = new Image();
button17on.src = "images/buttons/b_cltcom_on.gif";

button18 = new Image();
button18.src = "images/buttons/b_gismaps_off.gif";
button18on = new Image();
button18on.src = "images/buttons/b_gismaps_on.gif";

button19 = new Image();
button19.src = "images/buttons/b_locations_off.gif";
button19on = new Image();
button19on.src = "images/buttons/b_locations_on.gif";

button20 = new Image();
button20.src = "images/buttons/b_terms_off.gif";
button20on = new Image();
button20on.src = "images/buttons/b_terms_on.gif";

button21 = new Image();
button21.src = "images/buttons/b_sellinghome_off.gif";
button21on = new Image();
button21on.src = "images/buttons/b_sellinghome_on.gif";

button22 = new Image();
button22.src = "images/buttons/b_homevalue_off.gif";
button22on = new Image();
button22on.src = "images/buttons/b_homevalue_on.gif";

button23 = new Image();
button23.src = "images/buttons/b_101sell_off.gif";
button23on = new Image();
button23on.src = "images/buttons/b_101sell_on.gif";

button24 = new Image();
button24.src = "images/buttons/b_parks_off.gif";
button24on = new Image();
button24on.src = "images/buttons/b_parks_on.gif";

button25 = new Image();
button25.src = "images/buttons/b_insurance_off.gif";
button25on = new Image();
button25on.src = "images/buttons/b_insurance_on.gif";

button26 = new Image();
button26.src = "images/buttons/b_newhomes_off.gif";
button26on = new Image();
button26on.src = "images/buttons/b_newhomes_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")
}}
