// JavaScript Document
// Master jQuery customization


// Slider function
$(document).ready(function(){
	$('.boxgrid.caption').hover(function(){
		$(".cover", this).stop().animate({top:'15px'},{queue:false,duration:160});
	}, function() {
		$(".cover", this).stop().animate({top:'-45px'},{queue:false,duration:160});
	});
});

// rss feeder functions
function getFresh() {
            
	$("#loadArea").fadeOut(400, function() {
		$("#loadArea").load("xml_feeder.php", function() {
			$("#loadArea").fadeIn();
		});
		$("#loadArea2").load("xml_feeder_juarez.php", function() {
			$("#loadArea2").fadeIn();
		});
	});
	
};
    
$(function(){
	getFresh();
	
	var int = setInterval("getFresh()", 120000);
	
});

// banner function 
// delete if unused
$(document).ready(function() {        
    $('#titles').carousel({
      duration: 500,
      speed: 2000,
      slideshow: false, // slideshow and animate can either be both true, 
      animate: false   // both false, or slideshow = true, animate = false.
                       // animate = true, slideshow = false does nothing.
    });
    $('#images').carousel({
      hide: 'fadeOut', // jquery show / hide effect method name
      show: 'fadeIn', // jquery show / hide effect method name
      duration: 2000, // duration of wait in milliseconds
      speed: 2000, // speed in milliseconds, 'slow' or 'fast',
      seed: 5 // length of random classname applied to item to keep things all nice and seperate
              // warning: setting this to something ridiculous will make it take ages to load.
    });
}); // end banner
