$(document).ready(function() {
	$(".fancy").fancybox({
		'titlePosition': 'over'
	});
	var usuario_twitter	= 'emmgfx';
	var twitter			= $("#twitter").html();
	
	$("#twitter").html(twitter+'Cargando Twitter de '+usuario_twitter);

	$.get("http://www.emm-gfx.net/wp-content/themes/simplex2/get_twitter.php?u="+usuario_twitter, function(data){
		$("#twitter").html(twitter+data);
	});
	$('#twitter').ajaxError(function(){$(this).html(twitter+'Error al cargar el Twitter de '+usuario_twitter);});
	
	$("pre").mouseover(function(){
		$(this).stop().animate({width:"800px"},200).css("z-index","999999999");
	});
	$("pre").mouseout(function(){
		$(this).stop().animate({width:"560px"},500);
	});
	$('.tipsy').tipsy({gravity: 's'});
	/*$("h2>a,#paginas>li>a,#categorias>li>a,#paginador a").live('click',function(){
		var href = $(this).attr('href');
		href = href + ' #contenido';
		$("#contenido").load(href);
		return false;
	});*/
$('#slideshow').cycle({ 
    fx:      'fade', 
    pause:    1,
    timeout:  6000
});
  $(".fecha").click(function(){
    a = $(this).attr("rel");
    b = $(this).text();
    $(this).text(a).attr("rel",b);
    return false;
  });
});
