function jump(cur){
       url = cur.options[cur.selectedIndex].value;
        if(url!="0"){location.href = url;}
}
   var TimeSet1 = 800;
   var ImageSetA = 6;
   var TimerID = null;
   var AnimeFlag = 0;
   ANIMA = new Array();

function disp_latest() {
     if(TimerID != null){clearTimeout(TimerID); TimerID = null;}
     if(AnimeFlag == 0){ ANIMA[6] = new Image();
	ANIMA[6].src = "./images/ramjpn00.gif";
	ANIMA[5] = new Image();
	ANIMA[5].src = "./images/ramjpn1.gif";
	ANIMA[4] = new Image();
	ANIMA[4].src = "./images/ramjpn2.gif";
	ANIMA[3] = new Image();
	ANIMA[3].src = "./images/ramjpn3.gif";
	ANIMA[2] = new Image();
	ANIMA[2].src = "./images/ramjpn4.gif";
	ANIMA[1] = new Image();
	ANIMA[1].src = "./images/ramjpn5.gif";
	ANIMA[0] = new Image();
	ANIMA[0].src = "./images/ramjpn6.gif";
	ANIMA[7] = new Image();
	ANIMA[7].src = "./images/ramjpn01.gif";
	ANIMA[8] = new Image();
	ANIMA[8].src = "./images/ramjpn02.gif";
	ANIMA[9] = new Image();
	ANIMA[9].src = "./images/ramjpn03.gif";
	ANIMA[10] = new Image();
	ANIMA[10].src = "./images/ramjpn04.gif";
	ANIMA[11] = new Image();
	ANIMA[11].src = "./images/ramjpn05.gif";
	ANIMA[12] = new Image();
	ANIMA[12].src = "./images/ramjpn06.gif";
	ANIMA[13] = new Image();
	ANIMA[13].src = "./images/ramjpn07.gif";
	ANIMA[14] = new Image();
	ANIMA[14].src = "./images/ramjpn08.gif";
	ANIMA[15] = new Image();
	ANIMA[15].src = "./images/ramjpn09.gif";
	ANIMA[16] = new Image();
	ANIMA[16].src = "./images/ramjpn10.gif";
	ANIMA[17] = new Image();
	ANIMA[17].src = "./images/ramjpn11.gif";
	ANIMA[18] = new Image();
	ANIMA[18].src = "./images/ramjpn12.gif";
	 AnimeFlag = 1;}
     ImageSetA = 6;
     document.animation.src = ANIMA[ImageSetA].src;
}
function anime_2() {
     if(AnimeFlag == 0){ ANIMA[6] = new Image();
	ANIMA[6].src = "./images/ramjpn00.gif";
	ANIMA[5] = new Image();
	ANIMA[5].src = "./images/ramjpn1.gif";
	ANIMA[4] = new Image();
	ANIMA[4].src = "./images/ramjpn2.gif";
	ANIMA[3] = new Image();
	ANIMA[3].src = "./images/ramjpn3.gif";
	ANIMA[2] = new Image();
	ANIMA[2].src = "./images/ramjpn4.gif";
	ANIMA[1] = new Image();
	ANIMA[1].src = "./images/ramjpn5.gif";
	ANIMA[0] = new Image();
	ANIMA[0].src = "./images/ramjpn6.gif";
	ANIMA[7] = new Image();
	ANIMA[7].src = "./images/ramjpn01.gif";
	ANIMA[8] = new Image();
	ANIMA[8].src = "./images/ramjpn02.gif";
	ANIMA[9] = new Image();
	ANIMA[9].src = "./images/ramjpn03.gif";
	ANIMA[10] = new Image();
	ANIMA[10].src = "./images/ramjpn04.gif";
	ANIMA[11] = new Image();
	ANIMA[11].src = "./images/ramjpn05.gif";
	ANIMA[12] = new Image();
	ANIMA[12].src = "./images/ramjpn06.gif";
	ANIMA[13] = new Image();
	ANIMA[13].src = "./images/ramjpn07.gif";
	ANIMA[14] = new Image();
	ANIMA[14].src = "./images/ramjpn08.gif";
	ANIMA[15] = new Image();
	ANIMA[15].src = "./images/ramjpn09.gif";
	ANIMA[16] = new Image();
	ANIMA[16].src = "./images/ramjpn10.gif";
	ANIMA[17] = new Image();
	ANIMA[17].src = "./images/ramjpn11.gif";
	ANIMA[18] = new Image();
	ANIMA[18].src = "./images/ramjpn12.gif";
	 AnimeFlag = 1;}
     if (ImageSetA < 0) {
        ImageSetA = 19-1;
	}
     document.animation.src = ANIMA[ImageSetA].src;
     ImageSetA--;
     if(TimerID == null){
     }
     else {
     clearTimeout(TimerID);
     TimerID = null;
     }
        TimerID=setTimeout("anime_2()", TimeSet1);
}
function stop() {
     clearTimeout(TimerID);
     if(TimerID != null){ImageSetA++; TimerID = null;}
}
   imgnum = 19;
function changeImg(dir){
         if(TimerID != null){clearTimeout(TimerID); TimerID = null; ImageSetA++;}
         if(AnimeFlag == 0){ ANIMA[6] = new Image();
	ANIMA[6].src = "./images/ramjpn00.gif";
	ANIMA[5] = new Image();
	ANIMA[5].src = "./images/ramjpn1.gif";
	ANIMA[4] = new Image();
	ANIMA[4].src = "./images/ramjpn2.gif";
	ANIMA[3] = new Image();
	ANIMA[3].src = "./images/ramjpn3.gif";
	ANIMA[2] = new Image();
	ANIMA[2].src = "./images/ramjpn4.gif";
	ANIMA[1] = new Image();
	ANIMA[1].src = "./images/ramjpn5.gif";
	ANIMA[0] = new Image();
	ANIMA[0].src = "./images/ramjpn6.gif";
	ANIMA[7] = new Image();
	ANIMA[7].src = "./images/ramjpn01.gif";
	ANIMA[8] = new Image();
	ANIMA[8].src = "./images/ramjpn02.gif";
	ANIMA[9] = new Image();
	ANIMA[9].src = "./images/ramjpn03.gif";
	ANIMA[10] = new Image();
	ANIMA[10].src = "./images/ramjpn04.gif";
	ANIMA[11] = new Image();
	ANIMA[11].src = "./images/ramjpn05.gif";
	ANIMA[12] = new Image();
	ANIMA[12].src = "./images/ramjpn06.gif";
	ANIMA[13] = new Image();
	ANIMA[13].src = "./images/ramjpn07.gif";
	ANIMA[14] = new Image();
	ANIMA[14].src = "./images/ramjpn08.gif";
	ANIMA[15] = new Image();
	ANIMA[15].src = "./images/ramjpn09.gif";
	ANIMA[16] = new Image();
	ANIMA[16].src = "./images/ramjpn10.gif";
	ANIMA[17] = new Image();
	ANIMA[17].src = "./images/ramjpn11.gif";
	ANIMA[18] = new Image();
	ANIMA[18].src = "./images/ramjpn12.gif";
	 AnimeFlag = 1;}
	         if (dir) {
		    ImageSetA++;
		    if(ImageSetA == imgnum){ ImageSetA = imgnum -1; }
		    else{    document.animation.src = ANIMA[ImageSetA].src; }
	
	        } else { 
		    ImageSetA--;
	            if (ImageSetA < 0) {
	                ImageSetA = 0;
	            } else {
		        document.animation.src = ANIMA[ImageSetA].src;
	            }
	        }
}
