
//link listener
$('a').bind("mouseenter focus",
  function() {
    $(this).animate({color: '#ffffff'}, 500).css('text-shadow', '#bebebe 0px 0px 10px');
  }
);
$('a').bind("mouseleave blur",
  function() {
    $(this).animate({color: linkcolor}, 500).css('text-shadow', 'none');
  }
);

//show text listener
var speed = 2000;
$('.show').bind("mouseenter focus",
  function() {
    var target="p:has(#" + $(this).attr('id') + ")";
    $(target).animate({color: '#ffffff'}, speed)
  }
);
//home show text acc link
if ($('.home #d-text').length != 0) {
  $('<p class="acc-showtext"><a href="#">Showing the whole text...</a></p>').appendTo('.home #d-text');
  
  $('.acc-showtext a').bind("focus",
    function() {
      $(this).css('position', 'static');
      $(this).animate({color: '#ffffff'}, 500);
      $('.show-row').animate({color: '#ffffff'}, 500)
    }
  );
  $('.acc-showtext a').bind("blur",
    function() {
      $('#twitter').focus();
      $(this).replaceWith('<span>Showing the whole text...</span>');
      $('.acc-showtext span').animate({color: '#000000'}, 500);
    }
  );
}

//social listener
$('#d-social a').bind("mouseenter focus",
  function() {
    var target='#' + $(this).attr('id') + " span";
    $(target).css('color', '#000000').fadeIn(600);
  }
);
$('#d-social a').bind("mouseout blur",
  function() {
    var target='#' + $(this).attr('id') + " span";
    $(target).fadeOut(150);
  }
);
