﻿var maximages = 6; // how many images:+1 to include zero
var imagearray = new Array(maximages);


imagearray[0] = "gallery/images/bedroom1.jpg";
imagearray[1] = "gallery/images/living2.jpg";
imagearray[2] = "gallery/images/8470.jpg";
imagearray[3] = "gallery/images/backyards.jpg";
imagearray[4] = "gallery/images/openspaces.jpg";
imagearray[5] = "gallery/images/living3.jpg";
imagearray[6] = "gallery/images/living_b.jpg";
imagearray[7] = "gallery/images/living4_b.jpg";
imagearray[8] = "gallery/images/8319.jpg";
imagearray[9] = "gallery/images/cabinets.jpg";
imagearray[10] = "gallery/images/8335.jpg";
imagearray[11] = "gallery/images/theater.jpg";

for (var i = 0; i < maximages; i++) 
{
eval('pic' + i + ' = new Image();');
eval('pic' + i + '.src = imagearray[i];'); // preloads images
}


function one() 
{
document.images['larger'].src = imagearray[0];
document.getElementById("description").innerHTML = String("Master Bedroom (B Model Shown)");
}

function two() 
{
document.images['larger'].src = imagearray[1];
document.getElementById("description").innerHTML = String("Optional Home Theater Room (B Model Shown)");
}

function three() 
{
document.images['larger'].src = imagearray[2];
document.getElementById("description").innerHTML = String("Patio (A2 Model Shown)");
}

function four() 
{
document.images['larger'].src = imagearray[3];
document.getElementById("description").innerHTML = String("Personalize Your Backyard");
}

function five() 
{
document.images['larger'].src = imagearray[4];
document.getElementById("description").innerHTML = String("Kitchen Area with Upgraded Granite (A Model Shown)");
}

function six() 
{
document.images['larger'].src = imagearray[5];
document.getElementById("description").innerHTML = String("Living Room with Upgraded Fireplace (A Model Shown) ");
}

function seven() 
{
document.images['larger'].src = imagearray[6];
document.getElementById("description").innerHTML = String("Dining/Kitchen Area (B Model Shown)");
}

function eight() 
{
document.images['larger'].src = imagearray[7];
document.getElementById("description").innerHTML = String("Living Room Area (B Model Shown)");
}

function nine() 
{
document.images['larger'].src = imagearray[8];
document.getElementById("description").innerHTML = String("Glen Entrance Sign");
}

function ten() 
{
document.images['larger'].src = imagearray[9];
document.getElementById("description").innerHTML = String("Wetbar (A Model Ugrade Shown)");
}

function eleven() 
{
document.images['larger'].src = imagearray[10];
document.getElementById("description").innerHTML = String("Glen Neighorhood");
}

function twelve() 
{
document.images['larger'].src = imagearray[11];
document.getElementById("description").innerHTML = String("Home Theater Area and Wetbar (Upgrade B Model Shown)");
}

function unused() 
{
//document.images['larger'].src = imagearray[6];
document.getElementById("focus").innerHTML = String("<div id=\"layer1\"><object classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" codebase=\"http://www.apple.com/qtactivex/qtplugin.cab\" height=\"216\" width=\"410\"><param name=\"cache\" value=\"true\"><param name=\"src\" value=\"http://images.apple.com/retail/vr/vr/fifthave_06.mov\"><param name=\"autoplay\" value=\"true\"><param name=\"controller\" value=\"true\"><embed height=\"216\" pluginspage=\"http://www.apple.com/quicktime/download/\" src=\"http://images.apple.com/retail/vr/vr/fifthave_06.mov\" type=\"video/quicktime\" width=\"410\" controller=\"true\" autoplay=\"true\" cache=\"true\"></object></div>");
document.getElementById("description").innerHTML = String("DIRECTIONS:<br />Place mouse over the image, hold down left mouse button, and move in any direction. Zoom in with control and zoom out with Shift");
}