/* $Id: product_single_menu.js 30 2008-05-27 09:12:45Z edin.coralic $ */

var ProductSingleMenu = {

	run: function() {
	/*
		if ($('product_picture')) {
			$$('.product_single_menu ul.images a').each(ProductSingleMenu.apply);
		}
	*/
	},

	apply: function(item) {
		Event.observe(item, 'click', ProductSingleMenu.clickListener.bindAsEventListener(item));
	},
	clickListener: function(event) {
		event.stop();
		$('product_picture').down('img').src = this.href;
	}

}

new StartUp(ProductSingleMenu);