jQuery(document).ready(function($){
    $('.comments a').each(function(){
        if('123456789'.indexOf($(this).text().charAt(0)) != -1){//is first character in link a number?
            var el = $(this);
            var link = el.attr('href');
            link = link.split('/');
            link.shift();
            link.shift();
            link.shift();
            link = link.join('/');
            link = '/' + link;
            link = link.split('#')[0]+'feed/';
            $.get(link, function(xml) {
                var output = '';
                $(xml).find('item:first').each(function(){
                    output += '<div class="hd"></div><div class="bd">';
                    output += $(this).find('description').text();
                    output += '</div><div class="ft">';
                    output += $(this).find('title').text();
                    output += '</div>';
                });
                el.hover(
                  function () {
                    $(this).attr('title','');
                    $(this).after($('<div class="teaser">'+output+'</div>'));
                    $(this).parent().find("div.teaser").show('slow');
                  }, 
                  function () {
                    $(this).parent().find("div.teaser").hide('slow',function(){
                        $(this).remove();
                    });
                  }
                );
            },"xml");
        }
    });
});

jQuery(document).ready(function($){
    $("li.cat-item-113>a").toggle(
      function () {
        //$("li.cat-item-113>a").addClass('hover');
        $(this).addClass('hover').parent().find('ul.children').slideDown('slow');
        $('#nav').animate({
            marginBottom: '5em'
        }, "slow");
      }, 
      function () {
        //$("li.cat-item-113>a").removeClass('hover');
        $(this).removeClass('hover').parent().find("ul.children").slideUp('slow');
        $('#nav').animate({
            marginBottom: '0'
        }, "slow");
      }
    );
});
