// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000

// Duration of crossfade (seconds)
var crossFadeDuration = 3

var Pic = new Array() 
var i = -1

Pic[i++] = 'wp-content/themes/ethos/images/africa01.jpg'
Pic[i++] = 'wp-content/themes/ethos/images/africa02.jpg'

Pic[i++] = 'wp-content/themes/ethos/images/africa03.jpg'
Pic[i++] = 'wp-content/themes/ethos/images/clients-amakhosi.JPG'
Pic[i++] = 'wp-content/themes/ethos/images/africa06.jpg'

Pic[i++] = 'wp-content/themes/ethos/images/africa07.jpg'
Pic[i++] = 'wp-content/themes/ethos/images/africa08.jpg'

Pic[i++] = 'wp-content/themes/ethos/images/africa09.jpg'
Pic[i++] = 'wp-content/themes/ethos/images/cathedral.jpg'
Pic[i++] = 'wp-content/themes/ethos/images/africa11.jpg'

Pic[i++] = 'wp-content/themes/ethos/images/clients_montrochelle.jpg'
Pic[i++] = 'wp-content/themes/ethos/images/clients-fordoun.jpg'
Pic[i++] = 'wp-content/themes/ethos/images/fancourtspa.JPG'

Pic[i++] = 'wp-content/themes/ethos/images/clients-steenberg.JPG'
Pic[i++] = 'wp-content/themes/ethos/images/Pakamisapool.jpg'

i = -1
var eText = new Array()

eText[i++] = 'Ethos Marketing - professionally, positively, passionately Africa'
eText[i++] = 'Garonga - a safari for the soul'

eText[i++] = 'Isandlwana - history and culture matched with fine hospitality'
eText[i++] = 'Amakhosi - a boutique Zulu safari experience'
eText[i++] = 'Rani Resorts - world class luxury in exotic and unspoiled locations'

eText[i++] = 'Serena Hotels and Resorts - East Africa\'s leading hotel group'
eText[i++] = 'The Blue Train - magnificent five-star hotel on wheels'

eText[i++] = 'Ethos Marketing - professionally, positively, passionately Africa'
eText[i++] = 'Cathedral Peak - Nestled in the majestic Drakensberg mountains'
eText[i++] = 'Ghost Mountain Inn - Zululand\'s finest country inn'

eText[i++] = 'Mont Rochelle - Undoubtedly one of the most beautiful settings in the world'
eText[i++] = 'Baines River Camp - on Zambias  mighty Zambezi River'
eText[i++] = 'Fancourt - celebrating life'

eText[i++] = 'Steenberg Hotel - minutes from Cape Town, miles from the world'
eText[i++] = 'Pakamisa - An African Shangri-La'


var t
var j = 0
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()      
   }
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   document.getElementById("embededtext").innerHTML = eText[j]
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}
