var FeaturedSlide = Class.create(
{
	initialize: function( element, index )
	{
		this.element = $( element );
		this.index = index;
		
		this.initDOM();
		this.initEvents();
	},
	
	initDOM: function()
	{
		this.dom			= {};
		this.dom.image 		= this.element.down( 'img' );
		this.dom.control 	= new FeaturedSlideControl( this );
		
		FeaturedSlideShow.addControl( this.dom.control );
	},
	
	initEvents: function()
	{
		this.element.observe( "click", this.handleClick.bind( this ) );
	},
	
	getElement: function()
	{
		return this.element;
	},
	
	getIndex: function()
	{
		return this.index;
	},
	
	getImage: function()
	{
		return this.dom.image;
	},
	
	getControl: function()
	{
		return this.dom.control;
	},
	
	handleClick: function( e )
	{
		Event.stop( e );
		window.location = this.element.getAttribute( "href" );
	}
});