var mainBlogNews = function(){
	this.exec = function( targetID , feedURL ){
		var dumper = new JKL.Dumper(); 
		var http = new JKL.ParseXML.JSON( feedURL );
		var rssdatalist = http.parse();
//		alert(dumper.dump(rssdatalist) );
		var line = '';
		var i = 0;
		var j = 0;
		while ( j < 5 && i < 10 && i < rssdatalist.channel.item.length ){
			if( rssdatalist.channel.item[i].title.match(/PR/) ){
			} else{
				line = line + '<li><a href="' + rssdatalist.channel.item[i].link + '">'+changePubDate(rssdatalist.channel.item[i].pubDate)+'<br />' + rssdatalist.channel.item[i].title + '</a></li>';
				j = j + 1;
			}
			i = i + 1;
		}
		$('#'+targetID).replaceWith('<div id="blognews" class="text-blog">' + line + '</ul></dd></dl></div>' );
	}
}
function changePubDate( dateData ){
	
	var list = dateData.replace(",", "").split(' ');

	if( list[2].match(/Jan/) ){ list[2] = 1; }
	else if( list[2].match(/Feb/) ){ list[2] = 2; }
	else if( list[2].match(/Mar/) ){ list[2] = 3; }
	else if( list[2].match(/Apr/) ){ list[2] = 4; }
	else if( list[2].match(/May/) ){ list[2] = 5; }
	else if( list[2].match(/Jun/) ){ list[2] = 6; }
	else if( list[2].match(/Jul/) ){ list[2] = 7; }
	else if( list[2].match(/Aug/) ){ list[2] = 8; }
	else if( list[2].match(/Sep/) ){ list[2] = 9; }
	else if( list[2].match(/Oct/) ){ list[2] = 10; }
	else if( list[2].match(/Nov/) ){ list[2] = 11; }
	else if( list[2].match(/Dec/) ){ list[2] = 12; }



	return ( list[3] + "年" + list[2] + "月" + list[1] + "日");

}

