$(document).ready(function(){

$('ul#nav').load('navegacion.html');


$("h1.logo").hover(function() {
	$("h1.logo").css({cursor: "pointer"});
 }, function() {
	$("h1.logo").css({cursor: "default"});
 });


$("h1.logo").click(function(){
 window.location = "index.html";
}); 

$(function() {
    setInterval( "slideSwitch()", 5000 );
});

// SCRIPT ENDS		
});

function slideSwitch() {
    var $active = $('#roll IMG.active');

    if ( $active.length == 0 ) $active = $('#roll IMG:last');

    var $next =  $active.next().length ? $active.next()
        : $('#roll IMG:first');

    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

