
// the slideshow speed (in milliseconds)
var SlideShowSpeed = 6000;

// the duration of crossfade (in milliseconds)
var CrossFadeDuration = 1000;

var Picture = new Array();
var Caption = new Array();

Picture[1]  = 'http://homecreations.org/new/rotater2/1.jpg';
Picture[2]  = 'http://homecreations.org/new/rotater2/2.jpg';
Picture[3]  = 'http://homecreations.org/new/rotater2/3.jpg';
Picture[4]  = 'http://homecreations.org/new/rotater2/4.jpg';
Picture[5]  = 'http://homecreations.org/new/rotater2/5.jpg';
Picture[6]  = 'http://homecreations.org/new/rotater2/6.jpg';
Picture[7]  = 'http://homecreations.org/new/rotater2/7.jpg';
Picture[8]  = 'http://homecreations.org/new/rotater2/8.jpg';

Caption[1]  = "Thank you very much for building our dream home.<br>Everyone at Home Creations gave us the royal treatment.<br>Dilawer and Ramzan, Norman";
Caption[2]  = "Our sales person was very informative and helped a<br>great deal in helping us figure out what we wanted.<br>Mavis, Norman";
Caption[3]  = "Excellent staff and service! Thanks!<br>Yoshiko, Norman";
Caption[4]  = "Good experience overall would definitely recommend to others.<br>John, Midwest City";
Caption[5]  = "I am a very satisfied customer, I love my new home!!!<br>Shenedra, OKC";
Caption[6]  = "We are so excited to own our first home.<br>Thanks so much for building a home our family can enjoy for a lifetime.<br>Marc, Norman";
Caption[7]  = "Voted 'Best Home Builder'<br>The Oklahoman\' Readers\' Choice Award 2006";
Caption[8]  = "Voted 'Best Home Builder'<br>Norman Transcript Readers\' Choice 2005 & 2003";

//Caption[1]  = "Voted 'Best Home Builder'<br><font size='1'>Norman Transcript Readers\' Choice 2005 & 2003</font>";
//Caption[2]  = "Safer homes using anchor bolts,<br>OSB sheathing and tornado straps";
//Caption[3]  = "13 SEER A/C to lower cooling bills<br>by as much as 20%";
//Caption[4]  = "Structured wiring";
//Caption[5]  = "100% Financing";
//Caption[6]  = "Voted 'Best Home Builder'<br><font size='1'>Norman Transcript Readers\' Choice 2005 & 2003</font>";
//Caption[7]  = "Safer homes using anchor bolts,<br>OSB sheathing and tornado straps";
//Caption[8]  = "13 SEER A/C to lower cooling bills<br>by as much as 20%";


var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}

function runSlideShow(){
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;
if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss];
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}
