//IE6 pngFix
jQuery(function($) {
     $("img").pngfix();
     $("#back, #next").pngfix();
});

    $(function() {
      $('#tabs').tabs();
      //$('#tabs').tabs({ collapsible: true });
      //$('#tabs').tabs({ event: 'mouseover' });
    });

            $(function() {
               $("#scrollable").scrollable({horizontal:true});
            });
            
	            $(function(){
				    $("ul.sub").hide();
				    $("ul.menu li").hover(function(){
       			     $("ul:not(:animated)",this).slideDown("fast")
     			   },
       			 function(){
       			    $("ul",this).slideUp("fast");
					    })
						})

$(document).ready(function(){

    $('a[href^=#]').click(function(){
        var target;

        target = $( $(this).attr('href') );

        if (target.length == 0) {
            return;
        }

        $('html, body').animate({scrollTop: target.offset().top});

        return false;
    });
});


jQuery(function() {

    jQuery.getFeed({
        url: './jfeed/proxy.php?url=http://lt.weblogs.jp/lt_party_report/rss.xml',
        success: function(feed) {
        
            jQuery('#result').append(''
            //+ '<a href="'
            //+ feed.link
            //+ '">'
            //+ feed.title
            //+ '</a>'
            + '');
            
            var html = '';
            
            for(var i = 0; i < feed.items.length && i < 6; i++) {
            
                var item = feed.items[i];
                
                html += '<li>&nbsp;&raquo;&nbsp;'
                + '<a href="'
                + item.link
                + '" target="_top">'
                + item.title
                + '</a>'
                + '</li>';
                
                //html += '<div class="updated">'
                //+ item.updated
                //+ '</div>';
                
                //html += '<div>'
                //+ item.description
                //+ '</div>';
            }
            
            jQuery('#result').append(html);
        }    
    });
});
