window.addEvent('domready',function(){
			if ($('Slider') != null){					
            new NivooSlider($('Slider'), {
                //directionNavPosition: 'outside',
				effect: 'sliceUpDownRight',
				interval: 5000,
				directionNavHide: true,
				orientation: 'vertical'
			});
			}
			if ($('str_57') != null) $('str_57').href = "/portafolio/proyectos_recientes.html";
			
	var prod=$('casose');
	if(prod){
		var startItem = 0; //or   0   or any
		var thumbs_mask7 = $('thumbs_mask7').setStyle('left',(startItem*30-568)+'px').set('opacity',0.8);
		var fxOptions7 = {property:'left',duration:1000, transition:Fx.Transitions.Back.easeOut, wait:false};
		var maskFx = new Fx.Tween(thumbs_mask7,fxOptions7);
		var thumbsFx = new Fx.Tween($$('#thumbs7 .thumbs')[0],fxOptions7);
		var spamFx = new Fx.Tween($('thumbs_handles7'),fxOptions7);
		var cuantity=[];
		$$('#thumbs7 .thumbs div').each(function(item, index){
			cuantity.push(index);
		});
		var nS7 = new noobSlide({
			box: $('box7'),
			items: cuantity,
			handles: $$('#thumbs_handles7 span'),
			fxOptions: fxOptions7,
			onWalk: function(currentItem){
				thumbsFx.start((currentItem*30)*-1);
				spamFx.start((currentItem*30)*-1);
				maskFx.start(currentItem*30-568);
			},
			startItem: startItem,
			addButtons: {
				previous: $('prev1'),
				next: $('next1')
			}
		});
		//walk to first with fx
		nS7.walk(0);
	}
});
