function showGuarantee() {
	new Effect.SlideDown('aspin_guarantee_holder', { 
		duration: 1,
		fps: 29,
		transition:Effect.Transitions.Bounce,
		queue: 'end',
		afterFinish: function() {
			new Effect.Appear('aspin_guarantee_wrapper', {
				duration: 2,
				fps: 29,
				queue: 'front'
			});
		} 
	});
}

function closeGuarantee() {
	new Effect.Fold('aspin_guarantee_holder', { duration: 1, fps: 29 });
}

var album = { 
  startup: function() { 
    new PeriodicalExecuter(album.cycle, 2) 
  }, 
  cycle: function() {
		if ($('images')) {
	    new Effect.Fade('images', {  
	      duration: 1, 
	      fps: 29, 
	      afterFinish: function() { 
	        new Ajax.Updater('images','/aspin_portal/next_image', { 
	          asynchronous: true, 
	          onSuccess: function() { 
	            new Effect.Appear('images', {
	              duration: 1,
	              fps: 29,
	              queue:'end'
	            })
	          } 
	        }) 
	      } 
	    })
		}
  } 
}
if (document.images) {
	pic1 = new Image();
	pic1.src = "/images/portal-gutters-and-soffit-color.jpg";
	pic2 = new Image();
	pic2.src = "/images/portal-home-theater-color.jpg";
	pic3 = new Image();
	pic3.src = "/images/portal-home-theater-color.jpg";
	pic4 = new Image();
	pic4.src = "/images/portal-windows-color.jpg";
	pic5 = new Image();
	pic5.src = "/images/portal-roofing-and-siding-color.jpg";
};