/*preload imagenes
jQuery.preloadImages = function()
{
  for(var i = 0; i<arguments.length; i++)
  {
    jQuery("<img>").attr("src", arguments[i]);
  }
}*/

/*fade enlaces*/
$(document).ready(function() {	
	$('a').hover(
		function () {
			$(this).animate({color:'#CED68C'}, {queue:false,duration:500});
		}, function () {
			$(this).animate({color:'#A8B545'}, {queue:false,duration:500});
		});
	$('.enlaceVerde').hover(
		function () {
			$(this).animate({color:'#CED68C'}, {queue:false,duration:500});
		}, function () {
			$(this).animate({color:'#FFF'}, {queue:false,duration:500});
		});
	$('a.activo').hover(
		function () {
			$(this).animate({color:'#CED68C'}, {queue:false,duration:500});
		}, function () {
			$(this).animate({color:'#CED68C'}, {queue:false,duration:500});
		});
	$('#submenu a').hover(
		function () {
			$(this).animate({color:'#A8B545'}, {queue:false,duration:500});
		}, function () {
			$(this).animate({color:'#999999'}, {queue:false,duration:500});
		});
	$('.boton').hover(
		function () {
			$(this).animate({color:'#FFFFFF'}, {queue:false,duration:500});
		}, function () {
			$(this).animate({color:'#FFFFFF'}, {queue:false,duration:500});
		});
	$('#restauranteboj #cajaContenido a').hover(
		function () {
			$(this).animate({color:'#e4977f'}, {queue:false,duration:500});
		}, function () {
			$(this).animate({color:'#d25129'}, {queue:false,duration:500});
		});
	$('#restauranteboj #submenu a').hover(
		function () {
			$(this).animate({color:'#d25129'}, {queue:false,duration:500});
		}, function () {
			$(this).animate({color:'#999999'}, {queue:false,duration:500});
		});
	$('#cajaBoj a').hover(
		function () {
			$(this).animate({color:'#e4977f'}, {queue:false,duration:500});
		}, function () {
			$(this).animate({color:'#d25129'}, {queue:false,duration:500});
		});
	$('#cajaLinks #submenu a').hover(
		function () {
			$(this).animate({color:'#CED68C'}, {queue:false,duration:500});
		}, function () {
			$(this).animate({color:'#FFFFFF'}, {queue:false,duration:500});
		});
	$('#cajaLinks div.panel a').hover(
		function () {
			$(this).animate({color:'#CED68C'}, {queue:false,duration:500});
		}, function () {
			$(this).animate({color:'#FFFFFF'}, {queue:false,duration:500});
		});
	$('div#cajaEnlaces a').hover(
		function () {
			$(this).animate({color:'#A8B545'}, {queue:false,duration:500});
		}, function () {
			$(this).animate({color:'#999999'}, {queue:false,duration:500});
		});
	$('.enlaceBlancoBlanco').hover(
		function () {
			$(this).animate({color:'#FFFFFF'}, {queue:false,duration:500});
		}, function () {
			$(this).animate({color:'#FFFFFF'}, {queue:false,duration:500});
		});
	});

/*jquery para enlaces*/
/*
$(document).ready(function(){
	$("a[@href$=pdf]").addClass("doc");
});
*/

/*scroll la ventana a 0*/
/*
setTimeout("window.scrollTo(0,0)",1500);
*/
