// Home Page Elements

window.addEvent('domready',function() {
									
	// Rotate the images on the Portfolio Link
	slideShow = new SlideShow ($("rotateGallery"), {
		delay : 2000, 
		duration : 1000, 
		onInitialize : function () {
			this.start();
		},
		onStart : function () {
			var img = this.getItem().getElement("img");
			var captionStr = img.get("alt") == null ? img.get("title") == null ? img.get("src").split("/").getLast() : img.get("title") : img.get("alt");
		},
		onMouseOver : function () {
			this.stop();
		},
		onMouseOut : function () {
			this.play();
		}
	}).play();
});