$( function ( ) {
	$( 'ul#follow li' ).each( function ( ) {
		$( this ).hover( function ( ) {
			$a = $( this ).children( 'a:first' );
			$a.css( { opacity: 0, filter: 'alpha(opacity=0)' } ).stop( ).fadeTo( 300, 1 );
		}, function ( ) {
			$a = $( this ).children( 'a:first' );
			$a.css( { opacity: 1, filter: 'alpha(opacity=100)' } ).fadeTo( 300, 0 );
		} );
	} );
	
	// create custom animation algorithm for jQuery called "bouncy"
	$.easing.bouncy = function (x, t, b, c, d) {
		var s = 1.70158;
		if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
		return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
	}
	 
	// create custom tooltip effect for jQuery Tooltip
	$.tools.tooltip.addEffect("bouncy",
	 
		// opening animation
		function(done) {
			this.getTip().animate({left: '+=15'}, 750, 'bouncy', done).show();
		},
	 
		// closing animation
		function(done) {
			this.getTip().animate({left: '-=15'}, 750, 'bouncy', function()  {
				$(this).hide();
				done.call();
			});
		}
	);
	 
	$("#preorder-img").tooltip({
		position: "center right",
		offset: [-105, 30],
		opacity: 0.7,
		effect: "bouncy"
	});
	
	
	$("#email").focus(function(srcc)
    {
        if ($(this).val() == $(this)[0].title)
        {
            $(this).removeClass("emptyText");
            $(this).val("");
        }
    });
    
    $("#email").blur(function()
    {
        if ($(this).val() == "")
        {
            $(this).addClass("emptyText");
            $(this).val($(this)[0].title);
        }
    });
    
    $("#email").blur(); 
} );