﻿// image swap preload

var doAboutSwap = true;

if (document.images) {

// over array
var onImgArray = new Array
onImgArray[0] = new Image
onImgArray[1] = new Image
onImgArray[2] = new Image
onImgArray[3] = new Image
onImgArray[4] = new Image
onImgArray[5] = new Image
onImgArray[6] = new Image
onImgArray[7] = new Image
onImgArray[8] = new Image
onImgArray[9] = new Image
onImgArray[10] = new Image
onImgArray[11] = new Image
onImgArray[12] = new Image
onImgArray[13] = new Image
onImgArray[14] = new Image
onImgArray[15] = new Image
onImgArray[16] = new Image
onImgArray[17] = new Image
onImgArray[18] = new Image
onImgArray[19] = new Image


// paths
onImgArray[0].src = "images/home_on.gif"
onImgArray[1].src = "images/requestinfo_on.gif"
onImgArray[2].src = "images/thecenter_on.gif"
onImgArray[3].src = "images/residential_on.gif"
onImgArray[4].src = "images/officeretail_on.gif"
onImgArray[5].src = "images/areainfo_on.gif"
onImgArray[6].src = "images/about_on.gif"
onImgArray[7].src = "images/home_on.gif"
onImgArray[8].src = "images/top_home_on.gif"
onImgArray[9].src = "images/top_search_on.gif"
onImgArray[10].src = "images/top_properties_on.gif"
onImgArray[11].src = "images/top_contact_on.gif"
onImgArray[12].src = "images/resources_on.gif"
onImgArray[13].src = "images/listings_on.gif"
onImgArray[14].src = "images/developments_on.gif"
onImgArray[15].src = "images/openhouses_on.gif"
onImgArray[16].src = "images/history_on.gif"
onImgArray[17].src = "images/careers_on.gif"
onImgArray[18].src = "images/contact_on.gif"
onImgArray[19].src = "images/press_on.gif"


// out array
var outImgArray = new Array
outImgArray[0] = new Image
outImgArray[1] = new Image
outImgArray[2] = new Image
outImgArray[3] = new Image
outImgArray[4] = new Image
outImgArray[5] = new Image
outImgArray[6] = new Image
outImgArray[7] = new Image
outImgArray[8] = new Image
outImgArray[9] = new Image
outImgArray[10] = new Image
outImgArray[11] = new Image
outImgArray[12] = new Image
outImgArray[13] = new Image
outImgArray[14] = new Image
outImgArray[15] = new Image
outImgArray[16] = new Image
outImgArray[17] = new Image
outImgArray[18] = new Image
outImgArray[19] = new Image




// paths
outImgArray[0].src = "images/home.gif"
outImgArray[1].src = "images/requestinfo.gif"
outImgArray[2].src = "images/thecenter.gif"
outImgArray[3].src = "images/residential.gif"
outImgArray[4].src = "images/officeretail.gif"
outImgArray[5].src = "images/areainfo.gif"
outImgArray[6].src = "images/about.gif"
outImgArray[7].src = "images/home.gif"
outImgArray[8].src = "images/top_home.gif"
outImgArray[9].src = "images/top_search.gif"
outImgArray[10].src = "images/top_properties.gif"
outImgArray[11].src = "images/top_contact.gif"
outImgArray[12].src = "images/resources.gif"
outImgArray[13].src = "images/listings.gif"
outImgArray[14].src = "images/developments.gif"
outImgArray[15].src = "images/openhouses.gif"
outImgArray[16].src = "images/history.gif"
outImgArray[17].src = "images/careers.gif"
outImgArray[18].src = "images/contact.gif"
outImgArray[19].src = "images/press.gif"


}

// swapping functions

function imgOver(i) {
	if (document.images) {
	if(i != 6){
	document.images['nav' + i].src = onImgArray[i].src
    } else {
        if(doAboutSwap){
            document.images['nav' + i].src = onImgArray[i].src        
            }
        }
	}
}

function imgOut(i) {
	if (document.images) {
	if(i != 6){
	document.images['nav' + i].src = outImgArray[i].src
    } else {
        if(doAboutSwap){
            document.images['nav' + i].src = outImgArray[i].src        
            }
        }
	}
}



//-->