$(document).ready(function(){

/* FadeIn OnLoad */
	$('body').hide().fadeIn(1400);

/* Efectos FadeIn FadeOut */
if (jQuery.browser.msie) {
    $("#hme-crs .buttons, #blq-blqchA .btnexpr").hover(function() {
      $(this).stop().animate({opacity: "0.6"}, 700);
    },
    function() {
      $(this).stop().animate({opacity: "1"}, 700);
    });
}else{
    $("#hldr-header a img, #hme-crs .buttons, #blq-blqchA .btnexpr, #blq-blqchC .btnrecet").hover(function() {
      $(this).stop().animate({opacity: "0.6"}, 700);
    },
    function() {
      $(this).stop().animate({opacity: "1"}, 700);
    });
}

/* Fancybox */	
$("a#lgtbxGo").fancybox({
		'transitionIn'	:	'fade',
		'transitionOut'	:	'fade',
		'speedIn'		:	600, 
		'speedOut'		:	200,
		'overlayOpacity':	0.90,
		'overlayColor'	:	'#032347'
});
if (jQuery.browser.msie) {
	$("a#VidlgtbxGo").fancybox({
			'type'			:	'inline',
			'padding'		:	'0',
			'margin'		:	'0',
			'transitionIn'	:	'fade',
			'transitionOut'	:	'fade',
			'scrolling'		:	'no',
			'speedIn'		:	600, 
			'speedOut'		:	200,
			'overlayOpacity':	0.90,
			'overlayColor'	:	'#032347',
			'onClosed'		: function() {parent.location.reload(true); ;}
	});
}else{
	$("a#VidlgtbxGo").fancybox({
			'type'			:	'inline',
			'padding'		:	'0',
			'margin'		:	'0',
			'transitionIn'	:	'fade',
			'transitionOut'	:	'fade',
			'scrolling'		:	'no',
			'speedIn'		:	600, 
			'speedOut'		:	200,
			'overlayOpacity':	0.90,
			'overlayColor'	:	'#032347'
	});
}
$("a#termL, a#legalL").fancybox({
			'width'			:	'700',
			'height'		:	'500',
			'type'			:	'inline',
			'transitionIn'	:	'fade',
			'transitionOut'	:	'fade',
			'speedIn'		:	600, 
			'speedOut'		:	200,
			'overlayOpacity':	0.90,
			'overlayColor'	:	'#032347'
});

/* Slider */
	$('#slider').nivoSlider({controlNav:true, effect:'fade'});

/* Animaciones Index */
	/*IMG Recetas*/
	$(".box-receta #imgM").mouseover(function(){
		$(this).animate({scale: [1.07, 1.07], rotate: '-4deg'},{queue:false, duration:200, easing: 'easeInSine'});
	});
	$(".box-receta #imgM").mouseout(function(){
		$(this).animate({scale: [1.0, 1.0], rotate: '0deg'},{queue:false, duration:200, easing: 'easeOutSine'});
	});

/*
if (jQuery.browser.msie) {
	$("#blq-blqchA .btnexpr").mouseover(function(){
		$(this).css({"marginTop":"160px", "marginLeft":"162px"}).animate({scale: [1.04, 1.04], rotate: '0deg'},{queue:false, duration:300, easing: 'easeInSine'});
	});
	$("#blq-blqchA .btnexpr").mouseout(function(){
		$(this).css({"marginTop":"160px", "marginLeft":"162px"}).animate({scale: [1.0, 1.0], rotate: '0deg'},{queue:false, duration:300, easing: 'easeOutSine'});
	});
	$("#blq-blqchC .mask, #hldr-blqch #blq-blqchC h1").mouseover(function(){
		if (jQuery.browser.msie && jQuery.browser.version == '7.0') {
			$("#blq-blqchC").animate({marginLeft: '0px', marginTop: '0px'},{queue:false, duration:0});
		}
		$("#blq-blqchC .mask").animate({scale: [1.05, 1.05], rotate: '-4deg'},{queue:false, duration:300, easing: 'easeInSine'});
		$("#blq-blqchC .file").animate({scale: [1.05, 1.05], rotate: '-4deg', marginLeft: '0px', marginTop: '27px'},{queue:false, duration:300, easing: 'easeInSine'});
			$("#blq-blqchC .btnrecet").animate({scale: [1.05, 1.05], rotate: '-4deg', marginLeft: '124px', marginTop: '151px'},{queue:false, duration:300, easing: 'easeInSine'});
			$("#hldr-blqch #blq-blqchC h1").animate({scale: [1.06, 1.06], rotate: '-3deg', marginLeft: '106px', marginTop: '9px'},{queue:false, duration:300, easing: 'easeInSine'});		
	});
	$("#blq-blqchC .mask, #hldr-blqch #blq-blqchC h1").mouseout(function(){
		if (jQuery.browser.msie && jQuery.browser.version == '7.0') {
			$("#blq-blqchC").animate({marginLeft: '0px', marginTop: '0px'},{queue:false, duration:0});
		}
		$("#blq-blqchC .mask").animate({scale: [1.0, 1.0], rotate: '0deg'},{queue:false, duration:300, easing: 'easeOutSine'});
		$("#blq-blqchC .file").animate({scale: [1.0, 1.0], rotate: '0deg', marginLeft: '0px', marginTop: '27px'},{queue:false, duration:300, easing: 'easeOutSine'});
			$("#blq-blqchC .btnrecet").animate({scale: [1.00, 1.00], rotate: '0deg', marginLeft: '120px', marginTop: '151px'},{queue:false, duration:300, easing: 'easeOutSine'});
			$("#hldr-blqch #blq-blqchC h1").animate({scale: [1.00, 1.00], rotate: '0deg', marginLeft: '108px', marginTop: '13px'},{queue:false, duration:300, easing: 'easeOutSine'});
	});
}else{
	$("#blq-blqchA .btnexpr").mouseover(function(){
		$(this).animate({scale: [1.04, 1.04], rotate: '0deg'},{queue:false, duration:300, easing: 'easeInSine'});
	});
	$("#blq-blqchA .btnexpr").mouseout(function(){
		$(this).animate({scale: [1.0, 1.0], rotate: '0deg'},{queue:false, duration:300, easing: 'easeOutSine'});
	});
	$("#blq-blqchC .mask, #hldr-blqch #blq-blqchC h1").mouseover(function(){
		$("#blq-blqchC .mask, #blq-blqchC .file").animate({scale: [1.05, 1.05], rotate: '-4deg'},{queue:false, duration:300, easing: 'easeInSine'});
		$("#blq-blqchC .btnrecet").animate({scale: [1.05, 1.05], rotate: '-4deg', marginLeft: '124px', marginTop: '151px'},{queue:false, duration:300, easing: 'easeInSine'});
		$("#hldr-blqch #blq-blqchC h1").animate({scale: [1.06, 1.06], rotate: '-4deg', marginLeft: '106px', marginTop: '9px'},{queue:false, duration:300, easing: 'easeInSine'});
	});
	$("#blq-blqchC .mask, #hldr-blqch #blq-blqchC h1").mouseout(function(){
		$("#blq-blqchC .mask, #blq-blqchC .file").animate({scale: [1.0, 1.0], rotate: '0deg'},{queue:false, duration:300, easing: 'easeOutSine'});
		$("#blq-blqchC .btnrecet").animate({scale: [1.00, 1.00], rotate: '0deg', marginLeft: '120px', marginTop: '151px'},{queue:false, duration:300, easing: 'easeOutSine'});
		$("#hldr-blqch #blq-blqchC h1").animate({scale: [1.00, 1.00], rotate: '0deg', marginLeft: '108px', marginTop: '13px'},{queue:false, duration:300, easing: 'easeOutSine'});
	});
}
*/

/* Arranco Carousel */
	$('#hme-crs').tinycarousel({duration: 200});
				
																									
});

