//// invalid css
document.write('<style type="text/css">body, x:-moz-any-link {font-size:12px;} body, x:-moz-broken { font-size:75%;}body, x:x{ font-size:75%; }</style>');
document.write('<style type="text/css">#contents .banner a:hover img,#contents .banner a:focus img,#contents .banner a:active img,#content .image a:hover img,#contents .image a:focus img,#contents .image a:active img { opacity: 0.6; filter:alpha(opacity=60); -ms-filter:"alpha(opacity=60)";}</style>'); //.image hover


/// ボタンロールオーバー
$(function(){
    $("img.btn ,#srch input.btn").mouseover(function(){
        $(this).attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_on$2"))
    }).mouseout(function(){
        $(this).attr("src",$(this).attr("src").replace(/^(.+)_on(\.[a-z]+)$/, "$1$2"));
    }).each(function(){
        $("<img>").attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_on$2"))
    })
})



/// ページ内リンク
jQuery.easing.quart = function (x, t, b, c, d) {
	return -c * ((t=t/d-1)*t*t*t - 1) + b;
};

// ロード
jQuery(document).ready(function(){

	//
	// <a href="#***">の場合、スクロール処理を追加
	//
	jQuery('a[href*=#]').click(function() {
		if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
			var $target = jQuery(this.hash);
			$target = $target.length && $target || jQuery('[name=' + this.hash.slice(1) +']');
			if ($target.length) {
				var targetOffset = $target.offset().top;
				jQuery('html,body').animate({ scrollTop: targetOffset }, 500, 'quart');
				return false;
			}
		}
	});

});
		




////IE6 PNG
if (typeof document.documentElement.style.maxHeight != "undefined") {
}
else {
DD_belatedPNG.fix('#site-id img,#header,#maincontent .section-type1 h2, #maincontent .section-type1 .section-title, #maincontent .comment-section h2, #maincontent .trackback-section h2'); //適用させる要素,id,class名
}


//// IE6 a:hover
try { 
						document.execCommand('BackgroundImageCache', false, true);
						} catch(e) {}
