function rollOver(){
    var preLoad = new Object();
    $('img.btn').not("[@src*='_on.']").each(function(){
        var imgSrc = this.src;
        var fType = imgSrc.substring(imgSrc.lastIndexOf('.'));
        var imgName = imgSrc.substr(0, imgSrc.lastIndexOf('.'));
        var imgOver = imgName + '_on' + fType;
        preLoad[this.src] = new Image();
        preLoad[this.src].src = imgOver;
        $(this).hover(
            function (){
                this.src = imgOver;
            },
            function (){
                this.src = imgSrc;
            }
        );
    });
}
$(function(){
	rollOver();
	$(".lmList > dt:first-child > a").css({"backgroundImage":'url(/shared/img/common/bgLocalmenuTop.png)'});
	$(".lmList2 > dt:first-child > a").css({"backgroundImage":'url(/shared/img/common/bgLocalmenuTop.png)'});
	$(".lmList3 > dt:first-child > a").css({"backgroundImage":'url(/shared/img/common/bgLocalmenuTop.png)'});
	$(".lmsec > dd > ul > li:last-child > a").css({"borderBottom":'none'});
	if(document.all){
		$("a > span.img").click(function(){$(this).parent().get(0).click();});
		$("a .linkContainer").click(function(){$(this).parent().get(0).click();});
	}
	$(".blockHeaderR02R > a > img, .topshop, .shopshop, .mh1005").click(function(){
		var s="";
		var t=this.className.replace("btn ","");
		if(t=="btn"){
			s=window.location.pathname.replace('index.html','');
			if(s.match('\/$'))s=s.slice(1,-1);
			s=s.replace(/\//g,'-');
			s='/onlineshop/'+s;
		}else{
			s='/onlineshop/'+t;	
		}
		pageTracker._trackPageview(s);
	});
	try{document.execCommand('BackgroundImageCache', false, true);}catch(e){};
});

