	function mailSuccess() {
		alert('Your email has been sent!');
	}
	
	function mailFailure() {
		alert('There was a problem sending your email, please try again.');
	}

$(document).ready(function(){

	$("#share_this_on_facebook").click(function() {
		window.open("http://www.facebook.com/share.php?u=http://www.switchtomac.com/");
		return false;
	});


	$("#tweet_this").click(function() {
		var twitterString = $('#share_box').val();
		var encodedTwitterString = escape(twitterString);
		window.open("http://twitter.com?status=" + encodedTwitterString);
		return false;
	});	
	
	$("#video_email").focus(function(srcc)
    {
        if ($(this).val() == "myfriend@email.com")
        {
            $(this).val("");
        }
    });
    
    $("#video_email").blur(function()
    {
        if ($(this).val() == "")
        {
            $(this).val("myfriend@email.com");
        }
    });
	
	$(".twtr-join-conv").attr("target", "_blank");
	
});