document.write('<script type="text/javascript" src="/js/pc/jquery.easing.1.3.js"></script>');  
document.write('<script type="text/javascript" src="/js/pc/jquery.flickable-1.0b3.js"></script>');  
document.write('<script type="text/javascript" src="/js/pc/jquery.prettyPhoto.js"></script>');  
document.write('<script type="text/javascript" src="/js/pc/jquery.biggerlink.js"></script>');  
document.write('<script type="text/javascript" src="/js/pc/jquery.corner.js"></script>');  
document.write('<script type="text/javascript" src="/js/pc/product.js"></script>');  
document.write('<script type="text/javascript" src="/js/pc/jquery.cookie.js"></script>');
$(document).ready(function() {
	//Scroll
	$('a[href*=#]').click(function(){
		if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
			var $target = jQuery(this.hash);
			$target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
			if ($target.length) {
				var targetOffset = $target.offset().top;
				$('html,body').animate({scrollTop: targetOffset});
				return false;
			}
		}
	});
	if($.cookie('SBI') == null){
		$.cookie('SBI',Math.floor(Math.random()*10000000) + "" + (new Date()).getTime(),{ path: '/', expires: 10 } );
	}
	
	window.document.onkeydown = function (e) {
	    if (e != undefined) {
	        if (e.keyCode == 116) {
	        	if(window.confirm('更新してもよろしいですか?')){
	                e.stopPropagation();
	                e.preventDefault();
	                location.reload();
	                return false;
	        	} else {
	        		return false;
	        	}
	        }
	    } else {
	        if (event.keyCode == 116) {
	            if(window.confirm('更新してもよろしいですか?')){

	            } else {
	                event.keyCode = null;
	                return false;
	            }
	        }
	    }
	};
	
});

