function doNextPic()    {
this.imgObj=eval(this.theImgObj);
(this.n == (this.theImg.length-1)) ? this.n = 0 : this.n++;
this.imgObj.src = this.theImg[this.n];
this.thePic = this.n;
}

function doPrevPic()    {
this.imgObj=eval(this.theImgObj);
(this.n == 0) ? this.n = this.theImg.length-1 : this.n--;
this.imgObj.src = this.theImg[this.n];
this.thePic = this.n;
}

function doPic(thePicNum)    {
this.imgObj=eval(this.theImgObj);
this.imgObj.src = this.theImg[thePicNum];
this.n = thePicNum;
this.thePic = thePicNum;
}

function doStop() 	{
clearTimeout(this.timerID);
this.timerInterval=0;
			}

function goPic() {
if (this.theOpenInPopup[this.thePic] == "yes") 	{
var newWin = window.open(this.theLink[this.thePic]);
	} else {

window.location=this.theLink[this.thePic];
		}
}

function slideObj()     {
this.theImgObj = "";
this.thePic = 0;
this.n = 0;
this.timerID=0;
this.LGtimerInterval=1000*4; //---Timer works well at 6--- Set the number to the right of the asterisc to the number of seconds you want the Features box to wait before auto-rotating
this.SMtimerInterval=1000*2; //Set the number to the right of the asterisc to the number of seconds you want the Exclusives box to wait before auto-rotating
this.theImg = new Array();
this.theLink = new Array();
this.theOpenInPopup= new Array();

this.doNextPic = doNextPic;
this.doPrevPic = doPrevPic;
this.doPic = doPic;
this.doStop = doStop;
this.goPic = goPic;
                        }


//document.thePicSmallHotSpots1.src=theImg[0];