// ShadowBox
//Shadowbox.init({
//	players:['img','iframe']
//});


// jQuery
$(function(){

//hover
$('dd.btn img').each(function(i){
	var before = $(this).attr('src');
	var after = (before.indexOf('gif') != -1) ? before.replace('.gif', '_hov.gif') : before.replace('.png', '_hov.png');
	var preload = new Image();
	preload.src = after;
	$(this).hover(function(){
		$(this).attr('src', after);
	},function(){
		$(this).attr('src', before);
	});
});	

$.fn.extend({
	popupDetail:function(){
		var href = $(this).attr('href');
		var popwin = window.open(href, 'newwin', 'status=yes,scrollbars=yes,resizable=yes,width=660,height=650');
		popwin.focus();
	}
})

$('#lineup li').each(function(){
	$(this).find('a.popup').click(function(){
		$(this).popupDetail();
		return false;
	});
});

//DETAILボタン位置
$('ul li dd.btn:odd').addClass('btn-right');
$('ul li dd.btn:even').addClass('');
});

