jQuery.extend( jQuery.easing,
{
	easeInOutExpo: function (x, t, b, c, d) {
		if (t==0) return b;
		if (t==d) return b+c;
		if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
		return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
	}
});

$(document).ready(function(){ 
	
	//$("#header li a:last").css({backgroundImage: 'none'});
	
    $("#headcycle").after('<div id="nav">').cycle({
        fx:     'fade',
        speed:   1000,
        timeout: 5000,
        pager:  '#nav'
    });
	
	var linksWidth = 0;
	$("#nav").find("a").each(function(n) {
		linksWidth += $(this).width();
		$("#nav").width(linksWidth);
	});
	
	$("#headcycle li").find("a").each(function(n) {
			$(this).append("<span>" + $(this).find("img").attr("alt") + "<\/span>");											
	});
	$("#headcycle li a").hover(function(){ 
	  $(this).find("span").toggleClass("go").text("More stuff coming soon...");
	},function(){ 
	  $(this).find("span").toggleClass("go").text($(this).find("img").attr("alt"));
	});
	
}); // ends ready

