	
	var ssSpeed = 8500; /*1000 milliseconds = 1 second*/
	var x;
	var test=0;
	var current=14; //last literal value of x in picture array
	var z = 0;
																 
	var pic = new Array();
	var piclink = new Array();
	var pic_info = new Array();
	
	//to load banner before images in slideshow
	var r = new Image();
	r= "images/bannerimage.png";
	
	for (z=0; z<=current; z++)
	{
	
		pic[z]= new Image();
		piclink[z]= "#";
		pic_info[z]= "";
	
	}
	
	//default size was width 380 and height 254
	
	pic[0].src ="images/artsupply.jpg";
	pic[1].src ="images/fall2010turn.jpg";
	pic[2].src ="images/mixedbag.jpg";
	pic[3].src ="images/2010 Spring Recitals.jpg";
	pic[4].src ="images/IMG_0121.jpg";
	pic[5].src ="images/Ann_Ferenze.jpg";
	pic[6].src ="images/Jerry Prettyman End Theme small.jpg";
	pic[7].src ="images/2010 Spring Recitals2.jpg";
	pic[8].src ="images/2010 pics 010.png";
	pic[9].src ="images/MusicOutreachNow Performance at Port Chester Nursing Home.jpg";
	pic[10].src ="images/fall2010_wkshps.jpg";
	pic[11].src ="images/Dianne Aronian work.jpg";
	pic[12].src ="images/Making Music Badge Workshop with Brownie Troop 2897 from Ridge Street School 2_2_10 003.jpg";
	pic[13].src ="images/raven on pen_size_color.jpg";
	pic[14].src ="images/koch_workshop.jpg";
	
	
	piclink[0] = "festival51.shtml";
	piclink[1] = "attachments/Newsletter_Fall_2010_8_5.pdf";
	piclink[6] = "archive/gallery/jazz_2010.shtml";
	piclink[10] = "attachments/fall2010_wkshps.pdf";
	piclink[13] = "archive/performingarts/poe_2010.shtml";
	piclink[14] = "attachments/koch_workshop.pdf";
	
	
	pic_info[0] = "<p>Go Green: Donate Art and Music Supplies to <br/>The Rye Arts Center!<br/>Now through Wednesday, September 8<br/><a href=\"attachments/artsupplypressrelease.pdf\">More Info</a><br/><a href=\"attachments/Donation Guidelines2010.pdf\">Donation Guidelines</a></p>";
	pic_info[1] = "<p>Hot off the presses!<br/><br/><a href=\"attachments/Newsletter_Fall_2010_8_5.pdf\">Read The RAC Fall Newsletter.</a></p>";
	pic_info[2] = "<p><i>Photo taken during one of our summer Mixed Bag:</i><br/> Drawing and Painting Weeks, where students learn and experiment with a variety of different mediums.</p>";
	pic_info[3] = "<p>2010 Spring Guitar Recital.</p>";
	pic_info[4] = "<p>A student painting from Patti Mollica's <br/><i>Fast, Loose and Bold class.</i></p>";
	pic_info[5] = "<p>Ann Ladd Ferencz decorates the RAC walls with pictures from the Summer CAP program. Mural Painting from the Renaissances period.<br/><br/> Contributing artists: 4-6 and 7-9 age groups.</p>";
	pic_info[6] = "<p><b>Jazz: Iconic Portraits and Contemporary Images</b><br/>Will feature paintings and sculptures that highlight some of jazz's legendary figures as well as works that reflect the art form's energy in contemporary and abstract form. <br/><a href=\"archive/gallery/jazz_2010.shtml\">Click here for more info.</a></p>";
	pic_info[7] = "<p>2010 Spring Flute Recital.</p>";
	pic_info[8] = "<p>Summer Digital Arts.</p>";
	pic_info[9] = "<p>Music Outreach Now Performance at Port Chester Nursing Home.</p>";
	pic_info[10] = "<p><b>Workshop Highlights</b> - <a href=\"artsschool.shtml\">Click here</a> to see some new workshops being offered for fall 2010</p>";
	pic_info[11] = "<p>RAC Student Dianne Aronian works on a still life painting in one of Ismael Checo's Saturday Workshops.</p>";
	pic_info[12] = "<p>Making Music Badge Workshop with Brownie Troop 2897 from Ridge Street School.</p>";
	pic_info[13] = "<p><b>EVERMORE MYSTERY WRITING CONTEST:</b> If you are in grades 6-12, this is your chance to create a mysterious tale, participate in our Edgar Allan Poe Mystery Writing Contest, and win prizes!<br/><br/><a href=\"archive/performingarts/poe_2010.shtml\">Click here</a> to download entry form.</p>";
	pic_info[14] = "<p>Contemplative Art Workshop<br/>with Erin Koch<br/>Open to all levels of experience<br/>Saturday, October 23, 1:00 - 4:00 pm</p>";
	
	
	function ss()
	{
		
		current ++;
	   
		if(current >= pic.length)
		{
			current = 0;
		}
			
			
			document.getElementById("artist").innerHTML = pic_info[current];	
			document.getElementById("mainsspic").src = pic[current].src;
			document.getElementById("mainsspiclink").href = piclink[current];

	  		x=setTimeout('ss()', ssSpeed);		 
	}
	
	
	function pp(){
	
	if (test == 0)
	{
		document.getElementById("pauseplay2").src = "images/play.png";
		clearTimeout(x);
		test ++;

	}else if (test == 1)
	{
		document.getElementById("pauseplay2").src = "images/pause.png";
		test --;
		x=setTimeout('ss()', ssSpeed);	
	}
	
	
	}
	
	function ff()
	{	
		clearTimeout(x);
		
		current ++;
		if(current >= pic.length)
		{
			current = 0;
		}
		document.getElementById("artist").innerHTML = pic_info[current];	
		document.getElementById("mainsspic").src = pic[current].src;
		document.getElementById("mainsspiclink").href = piclink[current];
		if(test == 0){
		x=setTimeout('ss()', ssSpeed);
		}
	}
	
	function bb()
	{	
		clearTimeout(x);
		
		current --;
		if(current < 0)
		{
			current = pic.length - 1;
		}
		document.getElementById("artist").innerHTML = pic_info[current];	
		document.getElementById("mainsspic").src = pic[current].src;
		document.getElementById("mainsspiclink").href = piclink[current];
		if(test == 0){
		x=setTimeout('ss()', ssSpeed);
		}
	}
	