//written March 2007 by Barrett Rose barrett.rose@gmail.com



//swap through he imagesArray
		
		function runSlideshow1()
		{

				
						var image=document.getElementById("slideshow1");
						var caption=document.getElementById("captionDiv1");
						var iddiv=document.getElementById("iddiv1");
						
						image.src=imagesArray1[index1][0].src;
						var time=imagesArray1[index1][2];
						var id=imagesArray1[index1][3];
				
						//iddiv.innerHTML="<p>@@@@ id="+id+"    @@@@</p>";
					//"<p>### testing id=image"+id+" ###</p>"+
						caption.innerHTML=imagesArray1[index1][1];
						caption.width=200;

							if(index1 != imagesArray1.length-1)
							{	
									index1++;
								
							}else
							{
									index1=0;
							}
								setTimeout("runSlideshow1()",time);
									
		}

		function runSlideshow2()
		{

				
						var image=document.getElementById("slideshow2");
						var caption=document.getElementById("captionDiv2");
						var iddiv=document.getElementById("iddiv2");
						image.src=imagesArray2[index2][0].src;
						var time=imagesArray2[index2][2];
						var id=imagesArray2[index2][3];

						//"<p>### testing id=image"+id+" ###</p>"+
						caption.innerHTML=imagesArray2[index2][1];
				
							if(index2 != imagesArray2.length-1)
							{	
									index2++;
								
							}else
							{
									index2=0;
							}
								setTimeout("runSlideshow2()",time);
									
		}

		function runSlideshow3()
		{

				
						var image=document.getElementById("slideshow3");
						var caption=document.getElementById("captionDiv3");
						var iddiv=document.getElementById("iddiv3");
						image.src=imagesArray3[index3][0].src;

//alert(imagesArray3[index3][2]);
						var time=imagesArray3[index3][2];
						var id=imagesArray3[index3][3];
				
						//iddiv.innerHTML="<p>@@@@ id="+id+"    @@@@</p>";
					//"<p>### testing id=image"+id+" ###</p>"+
						caption.innerHTML=imagesArray3[index3][1];
				
							if(index3 != imagesArray3.length-1)
							{	
									index3++;
								
							}else
							{
									index3=0;
							}
								setTimeout("runSlideshow3()",time);
									
		}
						


		function runSlideshow4()
		{

				
						var image=document.getElementById("slideshow4");
						var caption=document.getElementById("captionDiv4");
						var iddiv=document.getElementById("iddiv3");
						image.src=imagesArray4[index4][0].src;

//alert(imagesArray3[index3][2]);
						var time=imagesArray4[index4][2];
						var id=imagesArray4[index4][3];
				
						//iddiv.innerHTML="<p>@@@@ id="+id+"    @@@@</p>";
					//"<p>### testing id=image"+id+" ###</p>"+
						caption.width=400;
						caption.innerHTML=imagesArray4[index4][1];
				
							if(index4 != imagesArray4.length-1)
							{	
									index4++;
								
							}else
							{
									index4=0;
							}
								setTimeout("runSlideshow4()",time);
									
		}		
		
		
		
		//written March 2007 by Barrett Rose barrett.rose@gmail.com



