// JavaScript Document

window.addEvent('domready', function() {
							
	//Slide Logos
	  var totIncrement		= 7;
	  var increment			= 887;
	  var maxRightIncrement	= increment*(-10);
	  var fx = new Fx.Style('myList', 'margin-left', {
				duration: 1000,
				transition: Fx.Transitions.Back.easeInOut,
				wait: true
	   });
	   
	   //-------------------------------------
	  // EVENTS for the button "previous"
	  $('previous').addEvents({ 
          'click' : function(event){ 
		  if(totIncrement<0){
					totIncrement = totIncrement+increment;
					fx.stop()
					fx.start(totIncrement);
				}
			}			  	  
      }); 
	 
       //-------------------------------------
	  // EVENTS for the button "next"
  	  $('next').addEvents({ 
          'click' : function(event){ 
			 if(totIncrement>maxRightIncrement){
				 totIncrement = totIncrement-increment;
		    	fx.stop()
				fx.start(totIncrement);
			}
          }		  		  
      });
	  
	  // Slide Box

   var vertical_slide =  new Fx.Slide('vertical_slide');
   vertical_slide.hide();

   $('v_toggle').addEvent('click', function(e) {
      e.stop();
      vertical_slide.toggle();
   });
   
   var vertical_slide =  new Fx.Slide('vertical_slide');
   vertical_slide.hide();

   $('v_toggleB').addEvent('click', function(e) {
      e.stop();
      vertical_slide.toggle();
   });
	
		
});
