$(function(){
	// ロールオーバー用のクラスの除去
	if ($('#naviID').length == 1) {
		var ides = $('#naviID').val().split(',');
		for (var idx = 0; idx < ides.length; idx++) {
			var id = '#' + ides[idx];
			if ($(id).length == 1) {
				$(id).removeClass('imgover');
				$(id).attr('src', $(id).attr('src').replace(/\.(gif|jpe?g|png)$/, '_ov.$1'));
			}
		}
	}
	if ($('#pageID').length == 1) {
		var ides = $('#pageID').val().split(',');
		for (var idx = 0; idx < ides.length; idx++) {
			var id = '#' + ides[idx];
			if ($(id).length == 1) {
				$(id).addClass('thisPage');
			}
		}
	}

	// ロールオーバー
	$('.imgover').not('[src*="'+ '_ov' +'."]').mouseover(function(){
		$(this).attr('src', $(this).attr('src').replace(/\.(gif|jpe?g|png)$/, '_ov.$1'));
	});
	$('.imgover').not('[src*="'+ '_ov' +'."]').mouseout(function(){
		$(this).attr('src', $(this).attr('src').replace(/_ov\.(gif|jpe?g|png)$/, '.$1'));
	});	
});

$(function(){
	$('#archive dl dd:odd').addClass('even');
});

$(window).unload(function() {	});

