// Java Document
//window.onload = initAll;

// Show todat's date.
<!--// Courtesy of SimplytheBest.net (http://simplythebest.net/info/dhtml_scripts.html)
function makeArray(n) {
this.length = n
return this
}
monthNames = new makeArray(12)
monthNames[1] = "January"
monthNames[2] = "February"
monthNames[3] = "March"
monthNames[4] = "April"
monthNames[5] = "May"
monthNames[6] = "June"
monthNames[7] = "July"
monthNames[8] = "August"
monthNames[9] = "September"
monthNames[10] = "October"
monthNames[11] = "November"
monthNames[12] = "December"
function dateString(oneDate) {
var theMonth = monthNames[oneDate.getMonth() + 1]
var theYear = oneDate.getFullYear()
return theMonth + " " + oneDate.getDate() + ", " + theYear
}

// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully

// =======================================
// set the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000

// Duration of crossfade (seconds)
var crossFadeDuration = 3

// Specify the image files
var Pic = new Array() // don't touch this
var ForSale = new Array()
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = 'image/OnTheRoad.jpg'
Pic[1] = 'image/SV_03.jpg'
Pic[2] = 'image/SV_02.jpg'
Pic[3] = 'image/29_large.jpg'
Pic[4] = 'image/02_large.jpg'
Pic[5] = 'image/04_large.jpg'
Pic[6] = 'image/27_large.jpg'
Pic[7] = 'image/BOOB_02.jpg'
Pic[8] = 'image/IMG_2941.jpg'
Pic[9] = 'image/IMG_0097.jpg'
Pic[10] = 'image/2011 Million Mile Monday.jpg'

ForSale[0] = 'ForSale/IMG_2249.jpg'
ForSale[1] = 'ForSale/IMG_2250.jpg'
ForSale[2] = 'ForSale/IMG_2251.jpg'
ForSale[3] = 'ForSale/IMG_2252.jpg'
ForSale[4] = 'ForSale/IMG_2253.jpg'
ForSale[5] = 'ForSale/IMG_2254.jpg'
ForSale[6] = 'ForSale/IMG_2255.jpg'
ForSale[7] = 'ForSale/IMG_2256.jpg'

// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0
var p = Pic.length
var Idx_1 = 1
var Idx_0 = 0
var SaleLen = ForSale.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}
var ADLoad = new Array()
for (i = 0; i < SaleLen; i++){
	ADLoad[i] = new Image()
	ADLoad[i].src = ForSale[i]
}

function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="revealtrans(duration=2)"
      document.images.SlideShow.style.filter="revealtrans(duration=crossFadeDuration,transition=12)"
      document.images.SlideShow.filters.revealtrans.Apply()      
      document.images.AD_1.style.filter="revealtrans(duration=2)"
      document.images.AD_1.style.filter="revealtrans(duration=crossFadeDuration,transition=12)"
      document.images.AD_1.filters.revealtrans.Apply()      
      document.images.AD_2.style.filter="revealtrans(duration=2)"
      document.images.AD_2.style.filter="revealtrans(duration=crossFadeDuration,transition=12)"
      document.images.AD_2.filters.revealtrans.Apply()      
   }
   document.images.SlideShow.src = preLoad[j].src
   document.images.AD_1.src = ADLoad[Idx_0].src
   document.images.AD_2.src = ADLoad[Idx_1].src
   if (document.all){
      document.images.SlideShow.filters.revealtrans.Play()
      document.images.AD_1.filters.revealtrans.Play()
      document.images.AD_2.filters.revealtrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   Idx_0 = Idx_0 + 2
   Idx_1 = Idx_1 + 2
   if (Idx_0 > (SaleLen - 1)) Idx_0 = 0
   if (Idx_1 > (SaleLen - 1)) Idx_1 = 1 
   t = setTimeout('runSlideShow()', slideShowSpeed)
}
//-->


