//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/csgraphics/b_home_off.jpg";
button1on = new Image();
button1on.src = "images/csgraphics/b_home_on.jpg";

button2 = new Image();
button2.src = "images/csgraphics/b_about_off.jpg";
button2on = new Image();
button2on.src = "images/csgraphics/b_about_on.jpg";

button3 = new Image();
button3.src = "images/csgraphics/b_calendar_off.jpg";
button3on = new Image();
button3on.src = "images/csgraphics/b_calendar_on.jpg";

button4 = new Image();
button4.src = "images/csgraphics/b_sponsors_off.jpg";
button4on = new Image();
button4on.src = "images/csgraphics/b_sponsors_on.jpg";

button5 = new Image();
button5.src = "images/csgraphics/b_members_off.jpg";
button5on = new Image();
button5on.src = "images/csgraphics/b_members_on.jpg";

button6 = new Image();
button6.src = "images/csgraphics/b_links_off.jpg";
button6on = new Image();
button6on.src = "images/csgraphics/b_links_on.jpg";

button7 = new Image();
button7.src = "images/csgraphics/b_contact_off.jpg";
button7on = new Image();
button7on.src = "images/csgraphics/b_contact_on.jpg";

button8 = new Image();
button8.src = "images/csgraphics/b_faq_off.jpg";
button8on = new Image();
button8on.src = "images/csgraphics/b_faq_on.jpg";

button9 = new Image();
button9.src = "images/csgraphics/b_usercp_off.jpg";
button9on = new Image();
button9on.src = "images/csgraphics/b_usercp_on.jpg";

button10 = new Image();
button10.src = "images/csgraphics/b_register_off.jpg";
button10on = new Image();
button10on.src = "images/csgraphics/b_register_on.jpg";

button11 = new Image();
button11.src = "images/csgraphics/b_newposts_off.jpg";
button11on = new Image();
button11on.src = "images/csgraphics/b_newposts_on.jpg";

button12 = new Image();
button12.src = "images/csgraphics/b_todaysposts_off.jpg";
button12on = new Image();
button12on.src = "images/csgraphics/b_todaysposts_on.jpg";

button14 = new Image();
button14.src = "images/csgraphics/b_search_off.jpg";
button14on = new Image();
button14on.src = "images/csgraphics/b_search_on.jpg";

button15 = new Image();
button15.src = "images/csgraphics/b_quicklinks_off.jpg";
button15on = new Image();
button15on.src = "images/csgraphics/b_quicklinks_on.jpg";

button16 = new Image();
button16.src = "images/csgraphics/b_logoff_off.jpg";
button16on = new Image();
button16on.src = "images/csgraphics/b_logoff_on.jpg";

button17 = new Image();
button17.src = "images/csgraphics/b_community_off.jpg";
button17on = new Image();
button17on.src = "images/csgraphics/b_community_on.jpg";

button18 = new Image();
button18.src = "images/csgraphics/b_forum_off.jpg";
button18on = new Image();
button18on.src = "images/csgraphics/b_forum_on.jpg";

button19 = new Image();
button19.src = "images/csgraphics/cs_footerDef.png";
button19on = new Image();
button19on.src = "images/csgraphics/cs_footerRollb.png";

button20 = new Image();
button20.src = "images/csgraphics/linkedInTop.jpg";
button20on = new Image();
button20on.src = "images/csgraphics/linkedInTopRoll.jpg";
}

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")
}}