function onstartingthepage() {

    captionText = caption201001SpringDinnerText
    thisImg = 0
    imgCt = captionText.length
    imagepath= "../images/2010/01SpringDinner/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/2010/01SpringDinner/01SD2010"

                newGSlide(1)

}

function JY201002Seminar() {

                captionText = caption201002SeminarText
		thisImg = 0
		imgCt = captionText.length
                imagepath = "../images/2010/02Seminar/02SN2010"

                newGSlide(1)

}

function JY201003Tour() {

                captionText = caption201003TourText
		thisImg = 0
		imgCt = captionText.length
                imagepath = "../images/2010/03Tour/03TR2010"

                newGSlide(1)

}

function JY200901SpringDinner() {

                captionText = caption200901SpringDinnerText
		thisImg = 0
		imgCt = captionText.length
                imagepath = "../images/2009/01SpringDinner/01SD2009"

                newGSlide(1)

}

function JY200902Seminar() {

                captionText = caption200902SeminarText
		thisImg = 0
		imgCt = captionText.length
                imagepath = "../images/2009/02Seminar/02SN2009"

                newGSlide(1)

}

function JY200903Tour() {

                captionText = caption200903TourText
		thisImg = 0
		imgCt = captionText.length
                imagepath = "../images/2009/03Tour/03TR2009"

                newGSlide(1)

}


function JY200801SpringDinner() {

                captionText = caption200801SpringDinnerText
		thisImg = 0
		imgCt = captionText.length
                imagepath = "../images/2008/01SpringDinner/01SD2008"

                newGSlide(1)

}


function JY200802Seminar() {

                captionText = caption200802SeminarText
		thisImg = 0
		imgCt = captionText.length
                imagepath = "../images/2008/02Seminar/02SN2008"

                newGSlide(1)

}


function JY200803Tour() {

                captionText = caption200803TourText
		thisImg = 0
		imgCt = captionText.length
                imagepath = "../images/2008/03Tour/03TR2008"

                newGSlide(1)

}

function JY200701SpringDinner() {

                captionText = caption200701SpringDinnerText
		thisImg = 0
		imgCt = captionText.length
                imagepath = "../images/2007/01SpringDinner/01SD2007"

                newGSlide(1)

}


function JY200702Seminar() {

                captionText = caption200702SeminarText
		thisImg = 0
		imgCt = captionText.length
                imagepath = "../images/2007/02Seminar/02SN2007"

                newGSlide(1)

}

function JY200703Tour() {

                captionText = caption200703TourText
		thisImg = 0
		imgCt = captionText.length
                imagepath = "../images/2007/03Tour/03TR2007"

                newGSlide(1)

}

function JY200704FSclass() {

                captionText = caption200704FSclassText
		thisImg = 0
		imgCt = captionText.length
                imagepath = "../images/2007/04FSclass/04FS2007"

                newGSlide(1)

}


function JY200707Meeting() {

                captionText = caption200707MeetingText
		thisImg = 0
		imgCt = captionText.length
                imagepath = "../images/2007/07Meeting/07MG2007"

                newGSlide(1)

}


function JY200708Graduation() {

                captionText = caption200708GraduationText
		thisImg = 0
		imgCt = captionText.length
                imagepath = "../images/2007/08Graduation/08GR2007"

                newGSlide(1)

}




function SP() {

                captionText = captionSPText
		thisImg = 0
		imgCt = captionText.length
                imagepath = "../images/7SP/Ex2007"

                newGSlide(1)

}

function SP2() {

                captionText = captionASText
		thisImg = 0
		imgCt = captionText.length
                imagepath = "../images/7SP/slideImg"

                newGSlide(1)

}			
