$(function(){
    $.fn.zap = function () {
        return this.each(function(){ $(this.childNodes).insertBefore(this); }).remove();
      };

    $('#navigation ul.sf-menu > li a').wrapInner('<span></span>');
    $('ul.sf-menu ul li a span').zap();
    
    $('.social a:eq(6)').addClass('last');
    $('.social a:eq(13)').addClass('last');
    $('.comment:last').addClass('commentlast');
    
    $('#top-bar li:not(:last-child)').append('&nbsp;|');
    $('ul.sf-menu').superfish({autoArrows:false});
    $('.blink').
        focus(function() {
            if(this.title==this.value) {
                this.value = '';
            }
        }).
        blur(function(){
            if(this.value=='') {
                this.value = this.title;
            }
        });
    $("a[href=#social]").easyTooltip({
        xOffset: -45,
        yOffset: 30
        
    });
    
});