$(document).ready(function(){

    var checkboxes = $('#articles-wrap ul li');
    $.each(checkboxes, function(i, val){
        var $li = $(this);
        $('.links a:first', $li).click(function(){
           $('.desc',$li).slideToggle();
           $toggleSpan = $('span',this);
           $toggleSpan.text($toggleSpan.text()=="Show"?"Hide":"Show");
           return false;
        });
        var $checkbox = $('<input type="checkbox" name="quoteFeatures[]" value="'+$(':first',$li).text()+'">');
        $li.prepend($checkbox).hoverIntent(
            function(){
                //$('span', $li).css({textDecoration :'underline'});
                $('.links', $li).slideToggle();
            },
            function(){
                //$('span', $li).css({textDecoration :'none'});
                $('.links', $li).slideToggle();
            }
        );
        if($li.attr('class')=='included'){
           $checkbox.attr('checked','true');
        }
    });

});