            //<!--
            //<![CDATA[

            slides = new Array();
            
// build an array of image names, image heights and widths, captions
            
            slides[0]= new slide("images/slideshow/mmj-slide1.jpg",256,500,"momijo");
			slides[1]= new slide("images/slideshow/mmj-slide2.jpg",256,500,"momijo");
			slides[2]= new slide("images/slideshow/mmj-slide3.jpg",256,500,"momijo");
			slides[3]= new slide("images/slideshow/mmj-slide4.jpg",256,500,"momijo");
			slides[4]= new slide("images/slideshow/mmj-slide5.jpg",256,500,"momijo");
			slides[5]= new slide("images/slideshow/mmj-slide6.jpg",256,500,"momijo");
			slides[6]= new slide("images/slideshow/mmj-slide7.jpg",256,500,"momijo");
			slides[7]= new slide("images/slideshow/mmj-slide8.jpg",256,500,"momijo");
			slides[8]= new slide("images/slideshow/mmj-slide9.jpg",256,500,"momijo");
	


// edit these parameters to change the step_interval_in_ms of show and transitions
                        
            step_interval_in_ms = 50; // decrease to make show run faster: increase for slower
            fade_steps = 75;          // decrease to make fade faster: increase for slower
            static_steps = 50;        // decrease to make static display period shorter: increase for longer
            
// do not edit the javascript code after this point            

            current = 0;
            direction = 1;            
            trans_out = 1;
            trans_in = 0;
            inc = 1/fade_steps;
            fade_step = fade_steps;
            static_step = static_steps;
            var objectA;
            var objectB;
            var imageA;
            var imageB;
            var captionA;
            var captionB;
            var isMSIE = /*@cc_on!@*/0;

            function begin(){
	           objectA = document.getElementById('slide1');
               setTrans(objectA,trans_out);
               objectB = document.getElementById('slide2');
               setTrans(objectB, trans_in);	
               imageA = document.getElementById('image1'); 
               imageB = document.getElementById('image2');  
               captionA = document.getElementById('caption1');
               captionB = document.getElementById('caption2');
               nextSlide("A");
               nextSlide("B");         
	           window.setTimeout("control();",step_interval_in_ms);
            }
            
            function control(){
               if (static_step > 0){
	               static_step--;
               }else{
	               trans_in += inc;
                   if (trans_in > 1) trans_in = 1;
                   trans_out = 1 - trans_in;
	               fade_step--;
	               setTrans(objectA,trans_out);
	               setTrans(objectB, trans_in);
	               if (fade_step == 0){
		               static_step = static_steps;
		              if (inc > 0){
			            nextSlide("A");
			            
		              }else{
			            nextSlide("B");
		              }
		           inc = inc * -1;
		           fade_step = fade_steps
	               }
                }
	            window.setTimeout("control();",step_interval_in_ms);
            }
	            
            function nextSlide(slot){
	           current++;
	           if (current > slides.length) current = 1;
	           if (slot == "A"){
		           imageA.src=slides[current -1].source;
		           imageA.height=slides[current -1].height;
		           imageA.width=slides[current -1].width;
		           captionA.firstChild.nodeValue = slides[current -1].caption;
               }else{
	               imageB.src=slides[current -1].source;
		           imageB.height=slides[current -1].height;
		           imageB.width=slides[current -1].width;
		           captionB.firstChild.nodeValue = slides[current -1].caption;
               }  
            }
	            
            function setTrans(obj, trans){
	           if (isMSIE) {
		           if (trans > .80){
			         obj.style.filter = 'none';
		           }else{
                     obj.style.filter = 'alpha(opacity=' + trans * 100 + ')';
                   }
               } else {
	             obj.style.opacity = trans;
               }
            }
            
                      
            function slide(source, height, width, caption){
               this.source = source;
               this.width = width;
               this.height = height;
               this.caption = caption;  
            }
            //]]>
            // -->
