// javascript sources for leumadair site

offImages=new Array();
onImages=new Array();
imageNames=new Array();

if (document.images) {

	//off images
	offImages[0]=new Image(142,38);offImages[0].src="/images/home_off.gif";
	offImages[1]=new Image(142,38);offImages[1].src="/images/location_off.gif";
	offImages[2]=new Image(142,38);offImages[2].src="/images/facilities_off.gif";
	offImages[3]=new Image(142,38);offImages[3].src="/images/rates_off.gif";
	offImages[4]=new Image(142,38);offImages[4].src="/images/history_off.gif";
	offImages[5]=new Image(142,38);offImages[5].src="/images/book_off.gif";
	offImages[6]=new Image(142,38);offImages[6].src="/images/contact_off.gif";

	//on images
	onImages[0]=new Image(142,38);onImages[0].src="/images/home_on.gif";
	onImages[1]=new Image(142,38);onImages[1].src="/images/location_on.gif";
	onImages[2]=new Image(142,38);onImages[2].src="/images/facilities_on.gif";
	onImages[3]=new Image(142,38);onImages[3].src="/images/rates_on.gif";
	onImages[4]=new Image(142,38);onImages[4].src="/images/history_on.gif";
	onImages[5]=new Image(142,38);onImages[5].src="/images/book_on.gif";
	onImages[6]=new Image(142,38);onImages[6].src="/images/contact_on.gif";

	//image names
	imageNames[0]="home";
	imageNames[1]="location";
	imageNames[2]="facilities";
	imageNames[3]="rates";
	imageNames[4]="history";
	imageNames[5]="book";
	imageNames[6]="contact";
}

function Highlight(index,state) {
	if (document.images) {
		if (state) {
			document.images[imageNames[index]].src=onImages[index].src;
		}
		else {
			document.images[imageNames[index]].src=offImages[index].src;
		}
	}
}