/**
 * 
 */

$(document).ready(function() {
	
	/*
	$("#menuSlider a").mouseover(function(){
    	$(this).removeClass().addClass("big");
    }).mouseout(function(){
    	$(this).removeClass().addClass("normal");		
    });	
    */
    $('#leftButton,#rightButton').mouseover(function(){
    	//$(this).removeClass().addClass("big");
    	$(this).animate({
			    opacity: 1.0			    
			  }, 500, function() {
			    // Animation complete.
			  });
    }).mouseout(function(){
    	//$(this).removeClass().addClass("normal");		
    	$(this).animate({
			    opacity: 0.5			    
			  }, 500, function() {
			    // Animation complete.
			  });    	
    });	
	
	$("#menuSlider a").fancybox({
		'transitionIn'	: 'elastic',
		'transitionOut'	: 'elastic',
		'showCloseButton'	: true,
		'autoScale'     	: true,
		'type'				: 'iframe',
		'height'			: 580,
		'width'				: 700									
	});	
	
	$('#slider').textScroller({
		direction:       'horizontal',
		duration:        1000,			
		scrollId:        'menuSlider', 
		backButtonId :   'leftButton',    
		nextButtonId :   'rightButton',    
		easingType :     '',
		scrollValue :    128,
		auto:            'true',
		autoBuffer:      5000,            
		stopAutoOnClick: 'false',       
		resetOnEnd:      'true'      
	});	
	
});
