$(document).ready(function() {


	$("#logo").animate({marginTop: "-65px", opacity: "1.0"}, 400, function() {
		
		$("#contact").pause(1000).animate({opacity: "0.5"}, 600);
	});
	$("#logo").animate({marginTop: "0px"}, 250);
	$("#contact").disableTextSelect().hover(function() {
		$(this).animate({opacity: "1.0"}, 300);
	}, function() {
		$(this).animate({opacity: "0.5"}, 300);
	});
	
	
	$.fn.pause = function(duration) {
		$(this).animate({ dummy: 1 }, duration);
		return this;
	};
});

(function($) {
    if ($.browser.mozilla) {
        $.fn.disableTextSelect = function() {
            return this.each(function() {
                $(this).css({
                    'MozUserSelect' : 'none'
                });
            });
        };
    } else if ($.browser.msie) {
        $.fn.disableTextSelect = function() {
            return this.each(function() {
                $(this).bind('selectstart', function() {
                    return false;
                });
            });
        };
    } else {
        $.fn.disableTextSelect = function() {
            return this.each(function() {
                $(this).mousedown(function() {
                    return false;
                });
            });
        };
    }
})(jQuery);
