/* 角丸生成 */

$('body#auction #contents-area p.box01').corner("5px");


/* ポップアップウインドウ */

$(function() {
	$(".popup").click(function(){
		window.open(this.href, "WindowName","width=740,height=210,resizable=no,scrollbars=no");
		return false;
	});
});


/* 別ウインドウリンク */

/*
$(function() {
	$('.blankLink').click(function(){
		this.target = "_blank";
	});
});
*/


/* フェードエフェクト */

$(function() {
	$('.fade img, .btn, #banner img').load(function(){
		$(this).fadeTo(100, 1);
	});
	$('.fade img, .btn, #banner img').hover(
		function(){ $(this).fadeTo(100, .6);
		},
		function(){ $(this).fadeTo(100, 1);
	});
});



/* アニメーションメニュー */

$(function() {
	$('#local-area ul.list01 a').hover(
		function() {
			$(this).animate({
				paddingLeft: '5px'
			}, 150);
		},
		function() {
		 $(this).animate({
			paddingLeft: '0'
		}, 150);
	});
});



/* ロールオーバー */

$(document).ready(function(){
  var postfix = '_o';
  $('img.rollover').not('[src*="' + postfix + '."]').each(function(){
    var img = $(this);
    var src = img.attr('src');
    var src_on = src.substr(0, src.lastIndexOf('.')) + postfix + src.substring(src.lastIndexOf('.'));
    $('<img>').attr('src', src_on);
    img.hover(
        function(){
          img.attr('src', src_on);
        },
        function(){
          img.attr('src', src);
        }
    );
  });
});



/* テーブルの行ごとに色を変える */

$(document).ready(function(){
  $("table.table03").each(function(){
    jQuery(this).find("tr:even").addClass("even");
  });
});



/* ブロック要素の高さを揃える */

/* 
$(function(){
    $('body#report #contents-area .box03,body#report #contents-area .box04').flatHeights();
});
*/


/* スムーススクロール */

$(function(){
	$('a[href^=#]').click(function() {
		var hash = this.hash;  
		if(!hash || hash == '#')  
			return false;  
		$($.browser.safari ? 'body' : 'html')  
			.animate({scrollTop: $(hash).offset().top}, 1000, 'swing');  
		return false;  
	});
});


/* CSS操作 */

$(function() {
	$('body#info #contents-area dl.list01 dd:last, body#info #contents-area dl.list01 dd:last').addClass("last");
});

