$(function(){
	$("a[rel='external']").click(function(){
		window.open($(this).attr("href"));
		return false;
	});
	$("a[rel='external nofollow']").click(function(){
		window.open($(this).attr("href"));
		return false;
	});
	$("a[rel='nofollow']").click(function(){
		window.open($(this).attr("href"));
		return false;
	});
	$("a[rel='nofollow external']").click(function(){
		window.open($(this).attr("href"));
		return false;
	});

	$.ajax({
		url: "/proxy/index?url=http://vic-tour.jugem.jp/?mode=atom",
		cache: true,
		dataType:"xml",
		success: function(xml){
			$('<ul class="foot_img" id="stuffBlogFeed"></ul>').appendTo('div#stuffBlog');
			$(xml).find('entry').each(function(i){
				if (i == 3) {
					return false;
				}
				var title = $(this).find('title').text();
				var url = $(this).find('link').attr('href');
				$('<li></li>').html('<a href="'+url+'" title="'+title+'の記事へ" rel="external">'+title+'</a>').appendTo('ul#stuffBlogFeed');
    		});
		}
	});
	
//	$.ajax({
//		url: "/proxy/index?url=http://www.victory-tour.net/feed/atom",
//		cache: true,
//		dataType:"xml",
//		success: function(xml){
//			$('<ul class="foot_img" id="tabiproBlogFeed"></ul>').appendTo('div#tabiproBlog');
//			$(xml).find('entry').each(function(i){
//				if (i == 3) {
//					return false;
//				}
//				var title = $(this).find('title').text();
//				var url = $(this).find('link').attr('href');
//				$('<li></li>').html('<a href="'+url+'" title="'+title+'の記事へ" rel="external">'+title+'</a>').appendTo('ul#tabiproBlogFeed');
//  		});
//		}
//	});
});

