
$(function() { 
	$('#Slider').bgSlider({
		autoPlay 	: true,				// Slider automatico
		playSpeed 	: 5000,				// Velocidad de slider   1000 = 1 seg
		transSpeed	: 1000,				// Velocidad de transicion   1000 = 1 seg
		clickStop	: true,				// Detener slider al elegir un item
		bgId 		: 'BgSlider',		// ID del Contenedor de Imagenes
		panelId		: 'Panel',			// ID referencial a cada item
		showCount	: true 				// Show the bulet of cunter
	});
	
	$('#Destacados .Box H4 IMG.hover, #Destacados .Box .background').animate( { 'opacity':0 } , 0 );
	
	$('#Destacados .Box').hover(
		function (e) {
				e.preventDefault();
				if ($.browser.msie){
					$(this).stop().animate( { 'margin-top': -15 } , 800 );
					$(this).find('h4 .imgTop').stop().animate( { 'opacity': 0 } , 800 );
					$(this).find('h4 .imgBott').stop().animate( { 'opacity': 1 } , 800 );
					$(this).find('.background').stop().animate( { 'opacity': 1 } , 800 );
					$(this).find('p').css('color','#FFFFFF');	
				}else{
					$(this).stop().animate( { 'margin-top': -15 } , 800 );
					$(this).find('h4 .imgTop img:first').stop().animate( { 'opacity': 0 } , 800 );
					$(this).find('h4 .imgBott img.hover').stop().animate( { 'opacity': 1 } , 800 );
					$(this).find('.background').stop().animate( { 'opacity': 1 } , 800 );
					$(this).find('p').css('color','#FFFFFF');
				}
			},
		function (e) {
				e.preventDefault();
				if ($.browser.msie){
					$(this).stop().animate( { 'margin-top': 0 } , 800 );
					$(this).find('h4 .imgTop').stop().animate( { 'opacity': 1 } , 800 );
					$(this).find('h4 .imgBott').stop().animate( { 'opacity': 0 } , 800 );
					$(this).find('.background').stop().animate( { 'opacity': 0 } , 800 );
					$(this).find('p').css('color','#CDCDCD');	
				}else{
					$(this).stop().animate( { 'margin-top': 0 } , 800 );
					$(this).find('h4 .imgTop img:first').stop().animate( { 'opacity': 1 } , 800 );
					$(this).find('h4 .imgBott img.hover').stop().animate( { 'opacity': 0 } , 800 );
					$(this).find('.background').stop().animate( { 'opacity': 0 } , 800 );
					$(this).find('p').css('color','#CDCDCD');		
				}
							
			}
	);		
})


