// JavaScript Document

function showdropdown(id) {
	if (document.getElementById(id).style.display=="block") {
		document.getElementById(id).style.display="none";
	}
	else {
		document.getElementById(id).style.display="block";
	}
}

var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'dstairkitchen_3164.jpg'
theImages[1] = 'exterior1_3190.jpg'
theImages[2] = 'exterior1v2_3190.jpg'
theImages[3] = 'exterior1v2_3195.jpg'
theImages[4] = 'exterior5v2_3994-copy.jpg'
theImages[5] = 'exterior5v3_3994.jpg'
theImages[6] = 'foyerfloor6_4223.jpg'
theImages[7] = 'frontexterior4_4079.jpg'
theImages[8] = 'kitchen1_3129.jpg'
theImages[9] = 'kitchen1v2_3129.jpg'
theImages[10] = 'kitchen5_3904-copy.jpg'
theImages[11] = 'kitchen5v2_3904-copy.jpg'
//theImages[12] = 'livingroom2_3446.jpg'
//theImages[12] = 'livingroom4_3768.jpg'
theImages[12] = 'livingroom6_4141.jpg'
theImages[13] = 'loft2_3433.jpg'
theImages[14] = 'office5_4015.jpg'
theImages[15] = 'poolroom4_3826.jpg'
theImages[16] = 'poolroom4v2_3826.jpg'
theImages[17] = 'reardeck2_3259.jpg'
theImages[18] = 'theatre3_3579.jpg'

// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="images/mainphotos/'+theImages[whichImage]+'">');
}

var theImages2 = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages2[0] = '01sm.jpg'
theImages2[1] = '02sm.jpg'
theImages2[2] = '03sm.jpg'
theImages2[3] = '04sm.jpg'
theImages2[4] = '05sm.jpg'
theImages2[5] = '06sm.jpg'
theImages2[6] = '07sm.jpg'
theImages2[7] = '08sm.jpg'
theImages2[8] = '09sm.jpg'
theImages2[9] = '10sm.jpg'
theImages2[10] = '11sm.jpg'
theImages2[11] = '12sm.jpg'
theImages2[12] = '13sm.jpg'
theImages2[13] = '14sm.jpg'

// do not edit anything below this line

var j2 = 0
var p2 = theImages2.length;
var preBuffer2 = new Array()
for (i2 = 0; i2 < p2; i2++){
   preBuffer2[i2] = new Image()
   preBuffer2[i2].src = theImages2[i]
}
var whichImage2 = Math.round(Math.random()*(p2-1));
function showImage2(){
document.write('<img src="images/mainphotos/'+theImages2[whichImage2]+'">');
}


var theImages3 = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages3[0] = '<p><em>&ldquo;I  would say that after building four houses over the past 30 years, our  experience with Mt Sterling Custom Homes was the best by far!&rdquo;</em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br /><strong>-- Jim  Nordahl</strong></p>'
theImages3[1] = '<p><em>&ldquo;Everyone  we worked with on the Mt Sterling Team treated us like family. They went the  extra mile to make sure we were happy with every part of our home&rdquo;</em><br /><strong>-- Todd  &amp; Heather Brown</strong></p>'
theImages3[2] = '<p><em>&ldquo;We  would definitely use Mt Sterling Custom Homes again. They are good, honest people who made the building process  fun!&rdquo;</em><br /> <strong>-- Todd &amp; Heather Brown</strong></p>'
theImages3[3] = '<p><em>&ldquo;We  appreciated their attention to all the small details, which were important to  us, and the pride they took in building a quality home. If I ever build again,  it will be with Mt Sterling!&rdquo;</em><br /><strong>-- Doug  &amp; Leisa Kohler</strong></p>'
theImages3[4] = '<p><em>&ldquo;Mt Sterling Custom Homes has impeccable customer service  and excellent communication with their customers. All of their sub contractors  were very quality conscious and it really showed in their end product.&rdquo;</em><br /><strong>-- Mark  &amp; Natalie Lundahl</strong></p>'
theImages3[5] = '<p><em>Jeff  at Mt Sterling made building a house a pleasurable experience. He was easy to  communicate with, valued our time, and more importantly, he cared about the  quality of our house as much as we did.&rdquo;</em><br /><strong>-- Chad &amp; Angie  Harris</strong></p>'
theImages3[6] = '<p><em>&ldquo;They  helped us plan out specific details well ahead of time, provided thoughtful  guidance on changes we might want to consider and ensured a high level of  communication every step of the way.&rdquo;</em><br /><strong>-- Ty  &amp; Nanette Dalton</strong></p>'
theImages3[7] = '<p><em>&ldquo;We believe in building with an influential general contractor because of their relationships with subcontractors. Mt. Sterling had the pull to get the job done well and on time, and for a better price than we could have done on our own. The quality of our home is incomparable to many of the other new homes we see. We have and will continue to refer family and friends to Justin and Jeff at Mt. Sterling Construction.&rdquo;</em><br /><strong>-- Josh and Carrie Kirk</strong></p>'



// do not edit anything below this line

var p3 = theImages3.length;
var whichImage3 = Math.round(Math.random()*(p3-1));
function showImage3(){
document.write(theImages3[whichImage3]);
}

