function rollOver(){
    var preLoad = new Object();
    $('.btn').not("[@src*='_o.']").each(function(){
        var imgSrc = this.src;
        var fType = imgSrc.substring(imgSrc.lastIndexOf('.'));
        var imgName = imgSrc.substr(0, imgSrc.lastIndexOf('.'));
        var imgOver = imgName + '_o' + fType;
        preLoad[this.src] = new Image();
        preLoad[this.src].src = imgOver;
        $(this).hover(
            function (){
                this.src = imgOver;
            },
            function (){
                this.src = imgSrc;
            }
        );
    });
}
$(function(){
	rollOver();
	$(".blockAH02Ltop .r a").click(function(){_gaq.push(['_trackEvent',"資料請求","ページ上",location.pathname.replace(/index.html/,'')]);});
	$(".blockTB01Bottom .contact a").click(function(){_gaq.push(['_trackEvent',"資料請求","ページ下",location.pathname.replace(/index.html/,'')]);});
	$('a[href*=#]').click(function(){
		if(location.pathname.replace(/^\//,'')==this.pathname.replace(/^\//,'')&&location.hostname==this.hostname) { 
			var $target=$(this.hash);
			$target=$target.length&&$target||$('[name=' + this.hash.slice(1) +']');
			if ($target.length){
				var targetOffset=$target.offset().top;
				$('html,body').animate({scrollTop:targetOffset},300,function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b;});
				return false;
			}
		}
	});
	$(".blockTB01Middle a").hover(
		function(){$(this).children(".nrR").css("textDecoration","underline");},function(){$(this).children(".nrR").css("textDecoration","none");}
	);
	$(".blockTB02 .l a").hover(
		function(){$(this).children(".cnt").children(".description").css("textDecoration","underline");},function(){$(this).children(".cnt").children(".description").css("textDecoration","none");}
	);
	$(".blockAM2CM01 a").hover(
		function(){$(this).children(".txtbox").children(".title").css("textDecoration","underline");},function(){$(this).children(".txtbox").children(".title").css("textDecoration","none");}
	);
	$(".csList a,.csList2 a").hover(
		function(){$(this).children(".txtbox").children(".title").css("textDecoration","underline");},function(){$(this).children(".txtbox").children(".title").css("textDecoration","none");}
	);
	$(".productInLink4 a").hover(
		function(){$(this).children(".title").children(".btn2").attr("src",$(this).children(".title").children(".btn2").attr("src").replace(/\.png/,'_o.png'))},
		function(){$(this).children(".title").children(".btn2").attr("src",$(this).children(".title").children(".btn2").attr("src").replace(/_o/,''))}
	);
	$("a > span.img").click(function(){
		$(this).parent().get(0).click();
	});
	if(document.all){
		$("a img").click(function(){
			$(this).parent().get(0).click();
		});
		$("a img").click(function(){
			$(this).parent().parent().get(0).click();
		});
		$(".productInLink2 a").hover(
			function(){$(this).children(".title").css({"textDecoration":"underline","backgroundImage":"url(/email/shared/img/pointer_o.png)"})},
			function(){$(this).children(".title").css({"textDecoration":"none","backgroundImage":"url(/email/shared/img/pointer.png)"})}
		);
	}
	var s=["/shared/img/iconPointer_o.png","/shared/img/iconWindow_o.png","/shared/img/menuHoverIcon.png","/shared/img/menuHoverMiddle.png","/shared/img/menuHoverTop.png","/webcas/shared/img/prlist01_o.png","/webcas/shared/img/prlist02_o.png","/webcas/shared/img/prlist03_o.png"];
	var p=[];
	for(var i=0;i<s.length;i++){
		p[i]=new Image();
		p[i].src=s[i];
	}
	try{document.execCommand('BackgroundImageCache', false, true);}catch(e){};
});
