	// Array Declaration:
	var slides = new Array("images/gallery/AS-mid_summer_night.jpg",
						   "images/gallery/SFI-cortoverde.jpg",
						   "images/gallery/20205 kilim.jpg",
						   "images/home/Falling_Leaves.gif");		   
	
	// Variable Declaration:
	var thisSlide = 0;
	var slideCount = slides.length;
	
	// Array Declaration:
	var slides2 = new Array("images/gallery/needle_kirov.jpg",
							"images/gallery/GM-Suzanni-Turkey.jpg",
							"images/gallery/fettuchinileather.jpg",
							"images/gallery/divine.jpg");		   
	
	// Variable Declaration:
	var thisSlide2 = 0;
	var slideCount2 = slides2.length;

	
	
	function rotate()
	{
	
		// if there are images objects in the document
		if (document.images)
		{
			// add one to the value of thisAd
			thisSlide++;
			
			//if value of thisAd is equal to the value of imageCount
			if (thisSlide == slideCount)
			{
				// then reset thisAd to zero
				thisSlide = 0;
			} // end if
		// display the item in the adImages array that is at the index of the thisAd variable value
		document.slide.src = slides[thisSlide];		
		
		setTimeout("rotate();", 4 * 1000);
		} // end if		
	} // end rotate()
	
	function rotate2()
	{
	
		// if there are images objects in the document
		if (document.images)
		{
			// add one to the value of thisAd
			thisSlide2++;
			
			//if value of thisAd is equal to the value of imageCount
			if (thisSlide2 == slideCount2)
			{
				// then reset thisAd to zero
				thisSlide2 = 0;
			} // end if
		// display the item in the adImages array that is at the index of the thisAd variable value
		document.slide2.src = slides2[thisSlide2];		
		
		setTimeout("rotate2();", 4 * 1000);
		} // end if		
	} // end rotate2()
	
	
