/**
 * 特集カテゴリ画像自動切換え
 */
 
j$(document).ready( function() {
	j$("#feature .photos ul")
	.after('<div class="navFeature">')
	.cycle({
		fx: 'fade',
		speed: 'fast',
		timeout: 10000,
		pager:  '.navFeature'
	});
	j$("#feature .photos .navFeature a:nth-child(1)").addClass("navFeature1");
	j$("#feature .photos .navFeature a:nth-child(2)").addClass("navFeature2");
	j$("#feature .photos .navFeature a:nth-child(3)").addClass("navFeature3");

	j$("#feature .photos ul li .imageLink").each( function() {
		var buf = j$(this).html();
		buf = buf.replace("<br>", "：");
		buf = buf.replace("<BR>", "：");
		buf = buf.replace("imageLink", "textLink");
		var textLink = '<a class="textLink" href="' + j$(this).attr("href") + '">' + buf + '</a>';
		j$(this).parent().append(textLink);
	});
});
