$(document).ready(function(){

  $('.vote, .voted').live('click', function(){

    $.get($(this).attr('href'), null, null, 'script');
    
    return false;
  });
  
  $('.preview').live('click', function(){
    var sPath = $(this).attr('href');
    
    $.get(sPath, null, null, 'script');
    return false;
  });
  
  $('.fav, .subscribe').live('click', function(){
    
    $.get($(this).attr('href'), null, null, 'script');
    
    return false;
  });

  
  // $('#content .info, #content .comments, #content .like').live('click', function(){
  //   $('#content .wrapper .options li a').removeClass('active');
  //   $(this).addClass('active');
  //   $('#content .text .wrapp').html('<div class="preloader"></div>');
  //   
  //   $.get(location.href, {'a': $(this).attr('class')}, null, 'script');
  //   
  //   return false;
  // });
  
  $('#list li div .image').css('cursor', 'pointer').click(function(){
    var sLocation = $(this).parent().find('.text a:first').attr('href');
    
    location.href = sLocation;
  });
  
  $('.mark').click(function()
  {
    $(this).parent().find('input').select();
    
    return false;
  });
  
  $('.copy').click(function()
  {
    var sText = $(this).parent().find('input').attr('value');
    
    $.copy(sText);
    
    return false;
  });
  
});
