// Turn off error report
window.onerror = null;

// Simple browser check. Other browsers will not have a rollover
goodBrowser = (document.all || document.layers || document.getElementById) ? 1:0

if (goodBrowser) {

		// Declare an array and fill it with the names of the pics
		names = new Array("about", "services", "events", "clients", "tips", "news", "contact")
		
		// Declare an array with twice the size of names in above array
	    buttons = new Array(names.length*2);

		// ..fill it with the sources of the pics
		for( m = 0; m <= buttons.length-1; m++) 
			buttons[m] = new Image();
			
		// Off Status
		buttons[0].src = "/images/nav/about_off.gif"; 	     
		buttons[1].src = "/images/nav/services_off.gif";
		buttons[2].src = "/images/nav/events_off.gif";
		buttons[3].src = "/images/nav/clients_off.gif";
		buttons[4].src = "/images/nav/tips_off.gif";
		buttons[5].src = "/images/nav/news_off.gif";
		buttons[6].src = "/images/nav/contact_off.gif";

		// On Status
		buttons[7].src = "/images/nav/about_on.gif";
		buttons[8].src = "/images/nav/services_on.gif";
		buttons[9].src = "/images/nav/events_on.gif";
		buttons[10].src = "/images/nav/clients_on.gif";
		buttons[11].src = "/images/nav/tips_on.gif";
		buttons[12].src = "/images/nav/news_on.gif";
		buttons[13].src = "/images/nav/contact_on.gif";
}

// Do the swapping
function swap(off,on) {
	if (goodBrowser) 
		document.images[names[off]].src = buttons[on].src;  
}
