// ==============================
// Set the following variables...
// ==============================

// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 3000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 2;

var pictype = ".jpg"
var picUrl = "mls/" + mlsnum + "/" + mlsnum;

var pic = new Array(); // don't change this

var showHot = false;   // don't change this

for (i=1;i<=Numpics;i++){
pic[i] = picUrl + "_" + i + pictype
}

var firstpic = pic[1]
var iss;
var jss = 1;
var pss = pic.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = pic[iss];}

function control(how){

if (showHot){
if (how=="H") jss = 1;
if (how=="F") jss = jss + 1;
if (how=="B") jss = jss - 1;
if (jss > (pss)) jss=1;
if (jss < 1) jss = pss;

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.all) document.images.PictureBox.filters.blendTrans.Play();
}}

var newwindow=0 //open links in new window? 1=yes, 0=no
var ie=document.all

function gotoshow(){
if (newwindow)
window.open("index.htm")
else
window.location="index.htm"
}

function virtualtour(){
if (virtual=="Y")
document.write('<a class=rightmenu href="' + virtualurl + '"><B>Virtual Tour</B></a>')
else
document.write('<B>No Virtual Tour</B>')
}
