Ext.onReady(function(){
		var step = window.step || 0;
		var image_dir = "images/steps/bottle_vases/";
		
		var images = new Array("img01.jpg", "img02.jpg", "img03.jpg");

		var alts = new Array("one", "two", "three");


		var descriptions = new Array(	"<p>1. First, snip some of your favorite blooms and greenery from your garden, or purchase a bunch from your local grocery store. Gather an odd number of plastic bottles.</p>",
										"<p>2. Next, take  the labels off your bottles. To remove the sticky residue left by the label, spray or rub with Goo Gone. Let it sit for a few minutes, then rub off with a paper towel. Wash the bottles.</p>",
										"<p>3. Pour water into each bottle until half full. Cut each flower or piece of greenery to a desired height, and place a single stem in each bottle.</p>"
																	);	
			

	var vimg = Ext.getDom('viewer_img');
	var vtext = Ext.getDom('viewer_text');
	
	Ext.get('next').on('click', function(){
		Ext.get('ss_left').show();
		step = step + 1;
		if(step>images.length-1){
			step=0;
		}
		vimg.alt = alts[step];
		vimg.src = image_dir + images[step];
		vtext.innerHTML = descriptions[step];
		if(step==images.length-1){
			Ext.get('ss_right').hide();
		}
	});
	
	Ext.get('prev').on('click', function(){
		Ext.get('ss_right').show();
		step = step - 1;
		if(step<0){
			step=images.length-1;
		}
		vimg.alt = alts[step];
		vimg.src = image_dir + images[step];
		vtext.innerHTML = descriptions[step];
		if(step==0){
			Ext.get('ss_left').hide();
		}
																			 
	});
	
	
	//load intial photo and text
	vimg.alt = alts[step];
	vimg.src = image_dir + images[step];
	vtext.innerHTML = descriptions[step];
	
	//hide previous button initially
	Ext.get('ss_left').hide();
	
});	