$(document).ready(function() {
	jQuery("#contactform").validate({
			submitHandler: function(form) {
				jQuery(form).ajaxSubmit(function() {
					jQuery('#contactform').html("<div id='sucmessage'></div>");
					jQuery('#sucmessage').html("<h2>Thank you. Your form has been submitted successfully.</h2>")
					.append("<p><a href=\"javascript:hideContact()\">Close this window</a></p>")
					.hide()
					.fadeIn(1000, function() {
					});
				});
			}
		});
	});

jQuery(document).ready(function() {
	Cufon.replace('h1,h2,h3');
	hover: true;
	$("#contactform").validate();
	if (location.hash == "#contact")
      showContact();
});

Cufon.replace('h2', {
	hover: true
});
Cufon.replace('h3', {
	hover: true
});

function showContact()
{
	$("#contact").fadeIn("slow");
}

function hideContact()
{
	$("#contact").fadeOut("slow");
}

function showFeed()
{
	$(".feeds").fadeIn("slow");
}

function hideFeed()
{
	$(".feeds").fadeOut("slow");
}

$('#contactform input[type="reset"]').live('click',function(){
		$("#contact").fadeOut("slow");
		return false;
});

$(document).ready(function() {
	$("#tweet").getTwitter({
		userName: "jamiecalabro",
		numTweets: 1,
		loaderText: "Loading Tweet...",
		slideIn: false,
		showHeading: false,
		showProfileLink: false,
		showTimestamp: true
	});
});

$(document).ready(function(){
    $('#lastfm').lastFM({
        username: 'jcalabro',
        apikey: '731ca598bdab1c1161a26d3ebf33c5d2',
        number: 2,
        onComplete: function(){
            //Nothing...
        }
    });
});