/* jQuery required.
 * Using version 1.3.2.
 *
*/

$(document).ready(function() {
// 外部リンクを新規ウィンドウで開く
	$('a.blank,a.external').click(function() {
		window.open(this.href, '_blank').focus();
		return false;
	});

// ページ内スクロール
	$('a[href*="#"]').easingScroll({
		easing: 'easeInOutQuart',
		duration: 500
	});

// リストの最後にクラスを付ける
	$('#footer li:last-child').addClass('liEnd');
	$('#breadCrumbs li:last-child').addClass('currentPage');
	
	$('#voiceList > li:odd').addClass('odd');
	$('#voiceList > li:even').addClass('even');
	$('#voiceList .profileList li:last-child').addClass('liEnd');
	$('#status #s-data tr:last-child td').addClass('tdEnd');
	$('#arrangePoint .arrangePhotos ul > li:even').addClass('even');
	$('#arrangePoint .arrangePhotos ul > li:even').addClass('even');	
	$('.postCategory li:nth-child(1)').addClass('pc1');	
	$('.postCategory li:nth-child(2)').addClass('pc2');
	
// ボックスの高さを合わせる
	$("#galleryPhotos li").equalHeights();
	$("body#photoGallery .photoCaption").equalHeights();
	
// Slimbox(Lightbox)用に属性を付ける
	$('.photo a').addClass('slimbox');
// Slimbox用指定
	$('a.slimbox').slimbox();
});
