﻿$(document).ready(function () {
    $('.FooterSocialLink').hover(
		function () {
		    $('.FooterSocial').addClass('FooterSocialActive');
		    $('.FooterSocial').removeClass('FooterSocial');
		},
        function () {
            $('.FooterSocialActive').addClass('FooterSocial');
            $('.FooterSocialActive').removeClass('FooterSocialActive');
        });

    var url = location.href;
    $('#FacebookLink').attr("href", "http://www.facebook.com/sharer.php?u=" + encodeURI(url));
    $('#DiggLink').attr("href", "http://digg.com/submit?url=" + encodeURI(url));
/*
    var twtTitle = document.title;
    var maxLength = 140 - (twtUrl.length + 1);
    if (twtTitle.length > maxLength) {
        twtTitle = twtTitle.substr(0, (maxLength - 3)) + '...';
    }
    var twtLink = 'http://twitter.com/home?status=' + encodeURIComponent(twtTitle + ' ' + twtUrl);
  */  
});
