$(document).ready(function() {
	$('.fadeThis').append('<span class="hover"><\/span>').each(function () {
	  var $span = $('> span.hover', this).css('opacity', 0);
	  $(this).hover(function () {
	    $span.stop().fadeTo(300, 1);
	  }, function () {
	    $span.stop().fadeTo(500, 0);
	  });
	});
});

$(document).ready(function($) {
 	$('a[rel*=facebox]').facebox() 
})

$(document).ready(function() {
	$('#coda-slider-1').codaSlider();
});

function external_link(texto) {
    // Establece el atributo "target" a "_blank" y
    // añade una indicación al título (tooltip) del enlace.
    $("a[rel~='external']").each(function () {
        this.target = "_blank";
        this.title = texto + this.title;
    });
    // Aplica el estilo "externalLink" a los enlaces que NO contengan una imagen.
    $("a[rel~='external']:not(:has(img))").addClass("externalLink");
}
