var maxSteps = 13;
var divWidth = 428;
var curDiv = 1;

document.observe("dom:loaded", function() {

	  if(mn != 'home') new Rollover('btnHome');
	  if(mn != 'despre') new Rollover('btnDespre');
	  if(mn != 'meniu') new Rollover('btnMeniu');
	  if(mn != 'meniulzilei') new Rollover('btnMeniu2');
	  if(mn != 'evenimente') new Rollover('btnEvenimente');
	  if(mn != 'foto') new Rollover('btnFoto');
	  if(mn != 'contact') new Rollover('btnContact');
	  
	  //new UI.Carousel("horizontal_carousel");
	  
	  /*
		if(mn == 'home')
	  {
		  new Rollover('btnHomeDespre');
		  new Rollover('btnHomeEvenimente');		  
	  }
		*/
	  
	  if($('horizontal_carousel'))
	  {
		  hCarousel = new UI.Carousel("horizontal_carousel", {scrollInc: 3});
	  }
	  if($('horizontal_carousel2'))
	  {
		  hCarousel = new UI.Carousel("horizontal_carousel2", {scrollInc: 3});
	  }
	  
	  
	});

function nextDiv()
{
	if(curDiv < maxSteps)
	{
	    new Effect.MoveBy($('container'), 0, -divWidth, 
	            {
	                duration: 0.4,
	                transition: Effect.Transitions.sinoidal
	    });
	    curDiv++;
	    $('menupag').update(curDiv);
	}
}

function prevDiv()
{
	if(curDiv > 1)
	{
	    new Effect.MoveBy($('container'), 0, divWidth, 
	            {
	                duration: 0.4,
	                transition: Effect.Transitions.sinoidal
	    });
	    curDiv--;
	    $('menupag').update(curDiv);
	}
}
