// LINKS EXTERNOS
  	$(function() {
		$('a[rel*="external"]').click(function(){
   		this.target = "_blank";
		});
	});

// REMOVE TITLE ATTRIBUTES
	$(document).ready(function() {
		$('a.post-edit-link').each(function() {
		$(this).removeAttr('title');
		});
	});


// JQUERY SLIDESHOW
// function slideSwitch() {
//     var $active = $('#fotos img.active');
// 
//     if ( $active.length == 0 ) $active = $('#fotos img:last');
// 
//     var $next =  $active.next().length ? $active.next()
//       : $('#fotos img:first');
// 
//     $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()", 6000 );
// });


// RANDOM BODY BG
// $(document).ready(function() {
//   var randomImages = ['bg-rojo','bg-cortina','bg-colors','bg2'];
//   var rndNum = Math.floor(Math.random() * randomImages.length);
//   $('body').css({ background: '#000 url(/wp-content/themes/ba/img/' + randomImages[rndNum] + '.jpg) center 0 no-repeat' });
// });