jQuery(document).ready(function($) {
	//alpha-png
	$().pngRollover();
});

jQuery.fn.pngRollover = function() {
	$("img.rollover2").each(function(){
		$("<img>").attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_on$2"));
	})
	if($.browser.msie && $.browser.version<7){
		$("img.rollover2").each(function(){
			
			$(this)
				.data("src",$(this).attr("src"))
				.attr("src","http://www.keihan-ert.jp/images/spacer.gif")
				.css("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+$(this).data("src")+"',sizingMethod='scale')")
			
		}).mouseover(function(){
			$(this).css("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+$(this).data("src").replace(/^(.+)(\.[a-z]+)$/, "$1_on$2")+"',sizingMethod='scale')")
		}).mouseout(function(){
			$(this).css("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+$(this).data("src")+"',sizingMethod='scale')")
		})
		
	}else{
		$("img.rollover2").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"));
		})
	}
};

try { 
    document.execCommand('BackgroundImageCache', false, true);
} catch(e) {}