

$(document).ready(function() {
	$('.coleccion .thumbs li:nth-child(3n)').css('margin-right', '0px');

	if ($('a.color-block').length > 0) {
		$('a.color-block').fancybox();
	}
		
	$('a.delete').click(function() {
		if (jQuery(this).attr('title').indexOf("el ") > -1) return confirm('\u00BFDesea borrar '+jQuery(this).attr('title')+' seleccionado?');
		else return confirm('\u00BFDesea borrar '+jQuery(this).attr('title')+' seleccionada?');
	});
	if($.fn.fancybox) {	
		$("a.fancybox").fancybox({ 'overlayShow': true, 'zoomSpeedIn': 300, 'zoomSpeedOut': 300 });
	}
	$('a[rel="external"], a.external').click( function() {
		this.target = "_blank";
	});
    
	if ($('body.zona').length > 0) {
	$("<div class='rbg'>&nbsp;</div>").insertAfter("article.g720 p:last-child");
	}
	if ($('body.com').length > 0) {
	$("<div class='rb'>&nbsp;</div>").insertAfter("#content  .hr");
	}
	//if ($('ul.xp').length > 0) {
	//$("<div class='rbgxp'>&nbsp;</div>").insertAfter("ul.xp");
	//}

		
});






















