// JavaScript Document


var recentTop = new Array()

recentTop[0] = '<h5 class="recent-header"><a href="#">Philips Healthcare - Ultrasound</a></h5> <p class="recent-address">22100 Bothell Everett Hwy<br />Bothell, WA 98021<br />(425) 487-7928</p>'
		   
recentTop[1] = '<h5 class="recent-header"><a href="http://www.vitalitychiropractic.com/" target="blank">Vitality Chiropractic - Dr. Bonnie Verhunce</a></h5> <p class="recent-address">21904 Marine View Dr S #C<br />Des Moines, WA 98198<br />(206) 824-5521</p>'

recentTop[2] = '<h5 class="recent-header"><a href="http://www.sbmcseattle.com" target="blank">Salmon Bay Marine Center</a></h5> <p class="recent-address">2284 W Commodore Wy #100<br />Seattle, WA 98199<br/>(206) 450-9100</p>'

recentTop[3] = '<h5 class="recent-header"><a href="http://www.rolfsimport.com" target="blank">Rolfs Import Auto Services in Fife</a></h5> <p class="recent-address">3151 20th Street East<br />Fife, WA 98424<br/>(253) 248-1080</p>'
		   
recentTop[4] = '<h5 class="recent-header"><a href="http://www.advantage-autoworks.com/">Advantage Autoworks</a></h5> <p class="recent-address">5012 Auto Center Blvd.<br />Bremerton, WA 98312<br/>(360) 373-1448</p>'

recentTop[5] = '<h5 class="recent-header"><a href="http://www.cce-inc.com/">Centennial Contractors Enterprises</a></h5> <p class="recent-address">3100 NW Bucklin Hill Rd., Suite 226<br />Silverdale, WA 98383<br/>(360) 698-2769</p>'

recentTop[6] = '<h5 class="recent-header"><a href="http://www.amandagmayes.com">Amanda G Mayes, DMD</a></h5> <p class="recent-address">2520 Perry Avenue, Suite A<br />Bremerton, WA 98310<br/>(360) 479-2240</p>'

recentTop[7] = '<h5 class="recent-header"><a href="http://www.specialtyvetpath.com/" target="blank">Specialty VETPATH</a></h5> <p class="recent-address">14810 15th Ave NE<br />Shoreline, WA 98155<br/>(206) 453-5691</p>'
		   
var j = 0
var p = recentTop.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
	preBuffer[i] = new Image()
	preBuffer[i].src = recentTop[i]
}
var whichComment = Math.round(Math.random()*(p-1));
function showRecent(){
	document.write(recentTop[whichComment]);	
}

/////------------------------------------

var recentBottom = new Array()

recentBottom[0] = '<h5 class="recent-header"><a href="http://www.currentdental.com" target="blank">Current Dental</a></h5> <p class="recent-address">2625 Wheaton Way Suite D<br />Bremerton, WA 98310<br />(360) 373-2539</p>'
		   
recentBottom[1] = '<h5 class="recent-header"><a href="#">Dr. Pitchers Practice</a></h5> <p class="recent-address">3036 Perry Ave, Suite C<br />Bremerton, WA 98310<br />(360) 479-4380</p>'
  
recentBottom[2] = '<h5 class="recent-header"><a href="http://www.olsenautobody.com">Olsen Auto Body & Collision</a></h5> <p class="recent-address">1919 Humboldt St<br />Bellingham, WA 98225<br/>(360) 733-0463</p>'

recentBottom[3] = '<h5 class="recent-header"><a href="http://www.oilcanhenry.com" target="blank">Oil Can Henrys</a></h5> <p class="recent-address">411 S. Thor<br />Spokane, WA 99201<br/>(509) 535-5858</p>'
		   
recentBottom[4] = '<h5 class="recent-header"><a href="http://www.oilcanhenry.com" target="blank">Oil Can Henrys</a></h5> <p class="recent-address">12108 N. Division<br />Spokane, WA 99228<br/>(509) 467-0266</p>'

recentBottom[5] = '<h5 class="recent-header"><a href="http://www.oilcanhenry.com">Oil Can Henrys</a></h5> <p class="recent-address">5220 W. Lowell Ave.<br />Spokane, WA 99205<br/>(509) 465-8989</p>'

recentBottom[6] = '<h5 class="recent-header"><a href="#">Riverside Painting</a></h5> <p class="recent-address">430 E. Nora<br />Spokane, WA 99202<br/>(509) 599-8517</p>'
		   
var j = 0
var p = recentBottom.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
	preBuffer[i] = new Image()
	preBuffer[i].src = recentBottom[i]
}
var bottomComment = Math.round(Math.random()*(p-1));
function showRecent2(){
	document.write(recentBottom[bottomComment]);	
}

//Random image generator -------->

var theImages = new Array() 
 
theImages[0] = 'images/sub-image1.jpg'
theImages[1] = 'images/sub-image2.jpg'
theImages[2] = 'images/sub-image3.jpg'
theImages[3] = 'images/sub-image4.jpg'
theImages[4] = 'images/sub-image5.jpg' 
theImages[5] = 'images/sub-image6.jpg'

 
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="'+theImages[whichImage]+'">');
}



