window.addEvent('domready', function() {
	if($("brand_prod")){
		ptabs = new mootabs('brand_prod', {	width: '500px', height: '500px', changeTransition: 'none', duration: 1000, mouseOverClass: 'over',	activateOnLoad:	'first', useAjax: false	});
	}
	var id=1
	$$(".product").each(function(el){
		ReMooz.assign('#psh'+id+' a', {
		'origin': 'img',
		'shadow': 'onOpenEnd', // fx is faster because shadow appears after resize animation
		'resizeFactor': 0.8, // resize to maximum 80% of screen size
		'cutOut': false, // don't hide the original
		'opacityResize': 0.4, // opaque resize
		'dragging': false, // disable dragging
		'centered': true // resize to center of the screen, not relative to the source element
		});

		var psho = new noobSlide({
			mode: 'horizontal',
			box: $('psh'+id),
			currentItem: 1,
			items:  $$('#psh'+id+' a'),
			handles: $$('#handles'+id+' div'),
			handle_event: 'mouseenter',
			fxOptions: {
				duration: 1000,
				transition: Fx.Transitions.Back.easeOut,
				wait: false
			},
			onWalk: function(currentItem,currentHandle){
				this.handles.set('opacity',0.3);
				currentHandle.set('opacity',1);
			}
		});
		id=id+1;
	});	
});


