$(document).ready( function() 
{
	base_url 		= $("base").attr("href");
	site_lang 		= $("meta[name='lang']").attr("content");

	site_url 		= $("input[name='site_url']").val();
	active_theme 	= $("#active_theme").val();
	


	
	// HEFECTOS en los enlaces
	
	// Productos: efecto en las imagenes enlace
	$("#producto_logos img.hover").hover(
		function () {
			$(this).clearQueue();
			$(this).fadeTo('normal', 0.60);
		},
		function () {
			$(this).fadeTo('normal', 1.00);
		}
	);


	
	/*
	// efecto en home
	$("#home_accesos a").hover(
		function () {
			$(this).clearQueue();
		}
	);
	*/
	
	/*
	// efecto en los enlaces
	$("#body a").hover(
		function () {
			$(this).clearQueue();
			$(this).animate({color: '#fff'}, 200).animate({color: '#274153'}, 200);
		}
	);
	*/

	
	

	
	// efecto en idiomas
	$("#language a img").hover(
		function () {
			$(this).clearQueue();
			$(this).animate({borderColor: '#ddd'}, 200).fadeTo('normal', 0.80);
		},
		function () {
			$(this).animate({borderColor: '#000033'}, 200).fadeTo('normal', 1.00);
		}
	);
	
	// efecto en footer
	$("#footer a").hover(
		function () {
			$(this).clearQueue();
			$(this).fadeTo("normal", 0.50);
		},
		function () {
			$(this).fadeTo("normal", 1.00);
		}
	);
	
	// efecto en el menu
	/*
	$("#navigation a").hover(
		function () {
			$(this).clearQueue();
			//$(this).animate({color:"#000", backgroundColor:"#ddd"}, 200).animate({color:"#001743", backgroundColor:"#E8EAED"}, 200);
			$(this).animate({color:'#fff'}, 100).animate({color:'#001743'}, 100);
			//$(this).animate({fontSize:'1.05em', color:'#fff'}, 400).animate({color:'#001743'}, 600);
		}
	);
	*/


	// modal box
	$("a.inline").fancybox({
		'hideOnContentClick': true,
		'showCloseButton'	: false,
		'titlePosition' 	: "inside",
		'width'				: "480px"
	});
	
	
	// HOME galeria de fotos
	$("#homeInnerFade").innerfade({
		animationtype: "fade",
		speed: "slow",
		timeout: 2800,
		type: "sequence",
		containerheight: "360px"
	});

	
	$("#popupClose").click(
		function () { 
			$.fancybox.close();
			return false; 
		}
	);
	
	
});
