﻿// 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



// paths
onImgArray[0].src = "../images/ourhomes_on.gif"
onImgArray[1].src = "../images/where_on.gif"
onImgArray[2].src = "../images/neighborhood_on.gif"
onImgArray[3].src = "../images/builder_on.gif"
onImgArray[4].src = "../images/partners_on.gif"
onImgArray[5].src = "../images/CONTACTUS_ON.gif"
onImgArray[6].src = "../images/PRINTPLAN_ON.gif"
onImgArray[7].src = "../images/VIEWLARGER_ON.gif"
onImgArray[8].src = "../images/subnav_chooseplan_on.gif"
onImgArray[9].src = "../images/subnav-features_on.gif"
onImgArray[10].src = "../images/subnav-lakeclaire_on.gif"
onImgArray[11].src = "../images/subnav-map_on.gif"
onImgArray[12].src = "../images/subnav-dine_on.gif"
onImgArray[13].src = "../images/virtualtour_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





// paths
outImgArray[0].src = "../images/ourhomes.gif"
outImgArray[1].src = "../images/where.gif"
outImgArray[2].src = "../images/neighborhood.gif"
outImgArray[3].src = "../images/builder.gif"
outImgArray[4].src = "../images/partners.gif"
outImgArray[5].src = "../images/CONTACTUS.gif"
outImgArray[6].src = "../images/PRINTPLAN.gif"
outImgArray[7].src = "../images/VIEWLARGER.gif"
outImgArray[8].src = "../images/subnav_chooseplan.gif"
outImgArray[9].src = "../images/subnav-features.gif"
outImgArray[10].src = "../images/subnav-lakeclaire.gif"
outImgArray[11].src = "../images/subnav-map.gif"
outImgArray[12].src = "../images/subnav-dine.gif"
outImgArray[13].src = "../images/virtualtour.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        
            }
        }
	}
}



//-->