function onstartingthepage() {

    captionText = caption201001SpringDinnerText
    thisImg = 0
    imgCt = captionText.length
    imagepath= "../images/SHExpo/01SD"
    document.imgForm.imgText.value = captionText[thisImg];
    JY201001SpringDinner();
    autoPlay();
<!--    moveBaqua(); -->

}

<!-- FSJY Moving Baqua -->
		var xSpeed=1;
		var xPos=300;
	
		function moveBaqua() {
			xPos+=xSpeed;
			baqua.style.left=xPos;
			if (xPos<930) setTimeout("moveBaqua()", 10)
			else {
   			  baqua.style.width=0;
			  baqua.style.height=0;
 			};
		}



		function newGSlide(direction) {
			if (document.images) {
				thisImg = thisImg + direction
				if (thisImg < 0) {
					thisImg = imgCt-1
				}
				if (thisImg == imgCt) {
					thisImg = 0
				}
                                
                                newthisImg = 10000 + thisImg;
                                aString = newthisImg.toString();

                                
				document.slideshow.src = imagepath + aString.substring(1,5) + ".jpg"
				document.imgForm.imgText.value = captionText[thisImg]
			}
		}
		
function previous(){
   auto = 0;
   newGSlide(-1);
}


function next(){
   auto = 0;
   newGSlide(1);
}


function autoPlay(){
   auto = 1;
   loopPlay();
}

function loopPlay() {
	if (auto) {
           newGSlide(1)
           setTimeout("loopPlay()", 2000)
           }
	else {
	};

}


function slide () {

    document.imgForm.imgText.value = captionText[thisImg];

}


function JY201001SpringDinner() {

                captionText = caption201001SpringDinnerText
		thisImg = 0
		imgCt = captionText.length
                imagepath = "../images/SHExpo/01SD2010"

                newGSlide(1)

}


