function slideSwitch() {
    var $active = $('#galeria IMG.active');
    if ( $active.length == 0 ) $active = $('#galeria IMG:last');
    // use this to pull the images in the order they appear in the markup
    var $next =  $active.next().length ? $active.next()
        : $('#galeria IMG:first');
    // uncomment the 3 lines below to pull the images in random order 
    // var $sibs  = $active.siblings();
    // var rndNum = Math.floor(Math.random() * $sibs.length );
    // var $next  = $( $sibs[ rndNum ] );
    $active.addClass('last-active');
    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}
$(function() {
    setInterval( "slideSwitch()", 5000 );
});


	$(document).ready(function(){
		var slidegal = function(){
	$('#galeria_cont').click(function() {
  $(this).slideUp('slow', function() {
  	 $('#info_cont').fadeIn('fast')
  }); 
});	
}
slidegal();
});

$(document).ready(function(){
	$('.galLink').click(function() {
  $('#info_cont').fadeOut('fast', function() {
  	 $('#galeria_cont').slideDown('slow')
  });
 
});	
});


$(document).ready(function(){
	$("a.overview").click(function(){
		
		 $("#cont_ppal").empty().html('<img src="img/ajax-loader.gif" />');

    // Make AJAX call
    $("#cont_ppal").load("file:///D:/trabajos%20de%20PSD%20a%20HTML/trabajos%20Samuel/Punto%20de%20vista/sitio/overview.html");
});
});

$(document).ready(function(){
  $('.trigger').click(function(){
  $('#cont_ppal').empty().html('<img src="img/ajax-loader.gif" />');
  $('#cont_ppal').load(url, function(){
    	slidegal();
    	});
   
    return false;
  });
});

