if(window.addEvent){
	window.addEvent( 'domready', function(){
	  // for each toggleNest
	  $$( '.tx-roto-pim-slider' ).each(function(item){
		var thisSlider = new Fx.Slide( item.getElement( '.tx-roto-pim-slider-content' ), { duration: 500 } );

		thisSlider.hide();
	  
		item.getElement( '.tx-roto-pim-slider-toggle' ).addEvent( 'click', function(){ 
		  thisSlider.toggle(); 

		  // add the act class
		  if (item.getElement( '.tx-roto-pim-slider-toggle' ).hasClass('tx-roto-pim-slider-act')) {
			item.getElement( '.tx-roto-pim-slider-toggle' ).removeClass('tx-roto-pim-slider-act');
		  } else {
			item.getElement( '.tx-roto-pim-slider-toggle' ).addClass('tx-roto-pim-slider-act');
		  }
		
		});
	  });
	});
}
