if (typeof Proworx === 'undefined') {
	var Proworx = {};	
}

Proworx.Rollover = new Class({
	
	initialize: function() 
	{
		this.image = $('image');
		$$('#thumbnails a').each(function(link) {
			new Image().src = link.getAttribute('href'); 
			link.addEvent('mouseover', this._mouseover.bindWithEvent(this))
				.addEvent('click', this._click.bindWithEvent(this))
				.setStyles({cursor: 'default', outline: 0});
		}, this);
	},
	
	_mouseover: function(event)
	{
		this.image.setAttribute('src', event.target.getAttribute('href'));	
	},
							 
	_click: function(event)
	{
		event.stop();
	}
							 
});