         google.load("feeds", "1");
         function initialize(){
            init("http://www.sonymusic.co.jp/Music/Arch/SR/serialtvdrama/info.xml","feed1");
            init("http://6109.jp/serialtvdrama/rss2.0.xml","feed2");
			
			$.getJSON("http://pipes.yahoo.com/pipes/pipe.run?_id=e149d2bb59a0120c5ba573ac34cbad90&_render=json&_callback=?",function(data) {
					var title = data.value.items[0].tour[0].tour_name;
					title = trim(title, 35);
					$($("#live")).html("<a href='live/'>"+title+"</a>");
			});
         }
         function init(feedurl,obj) {
            var feed = new google.feeds.Feed(feedurl);
		feed.setNumEntries(1);
		feed.load(function(result) {
		if (!result.error) {
		var html = "";
		for (var i = 0; i < result.feed.entries.length; i++) {
			var entry = result.feed.entries[i];
			var title = entry.title;
			var titles = title.split('::');
			titles = trim(titles[0], 35);
			var link = entry.link;

		if(obj=='feed1') {
		html += "<a href='news/'>"+titles+"</a>";
		}else if(obj=='feed2') {
		html += "<a href='"+link+"' target='_blank'>"+titles+"</a>";
		}

			}

		} 
		if(obj=='feed1') {
		$($("#info")).html(html);
		}else if(obj=='feed2') {
		$($("#blog")).html(html);
		}
		});
	}

function trim(title, size) {
	var titletemp = "";
	var count = 0;
	for(var j = 0; j < title.length; j++){
		var len = escape(title.charAt(j)).length;
		if(len>=4){
			if(count + 2 <= size){
				titletemp = titletemp + title.charAt(j);
				count = count + 2;
			}
		}else {
			if(count + 1 <= size){
				titletemp = titletemp + title.charAt(j);
				count = count + 1;
			}
		}
	}
	if(count == size){ title = titletemp + "..."; }
	else if(count == size - 1){ title = titletemp + " ..."; }
	return title;
}

	google.setOnLoadCallback(initialize);
