// Set the number of case studies we need to rotate through.
// Used to define the sizes of all associated arrays.
var iCaseStudyCount = 4;

var urlArray   = new Array( iCaseStudyCount ); // Case Study urls
var thumbArray = new Array( iCaseStudyCount ); // Thumbnail img objects
var txtArray   = new Array( iCaseStudyCount ); // Holds txt associated w/ each thumbnail img

var index = 0;     // The current index into the arrays

// The Case Study URLs
urlArray[0] = "caseStudies.php?CaseStudy=LongshoreClub";
urlArray[1] = "caseStudies.php?CaseStudy=RiverLanding";
urlArray[2] = "caseStudies.php?CaseStudy=FlatironBldg";
urlArray[3] = "caseStudies.php?CaseStudy=SNET";

// The Case Study thumbnails to be displayed on the the homepage
thumbArray[0] = new Image(); thumbArray[0].src = "images/thumbHomePage_LongshoreClub.jpg";
thumbArray[1] = new Image(); thumbArray[1].src = "images/thumbHomePage_RiverLanding.jpg";
thumbArray[2] = new Image(); thumbArray[2].src = "images/thumbHomePage_Flatiron.jpg";
thumbArray[3] = new Image(); thumbArray[3].src = "images/thumbHomePage_SNET.jpg";

// The text associated with each thumbnail
txtArray[0] = '<div class="ThumbTxt"><b>Longshore Club Park</b><br />Town of Westport, CT</div>';
txtArray[1] = '<div class="ThumbTxt"><b>River Landing</b><br />Norwalk, CT</div>';
txtArray[2] = '<div class="ThumbTxt"><b>Flatiron Building</b><br />New Milford, CT</div>';
txtArray[3] = '<div class="ThumbTxt"><b>SNET</b><br />Brookfield, CT</div>';