// changing date 
function setCopyright(){
var myDate = new Date();
document.write('copyright (c) 2000-'+ myDate.getFullYear() + ' e-Seikatsu Co., Ltd. All rights reserved.');
}

//プルダウンメニュー
$(document).ready(function(){
    $("#nav-one li").hover(
        function(){ $("ul", this).fadeIn("fast"); }, 
        function() { } 
    );
    if (document.all) {
        $("#nav-one li").hoverClass ("sfHover");
    }
});


$.fn.hoverClass = function(c) {
    return this.each(function(){
        $(this).hover( 
            function() { $(this).addClass(c);  },
            function() { $(this).removeClass(c); }
        );
    });
}; 

function setPageScroll(){
	if(document.getElementById("pagetop-button")) {
		document.getElementById("pagetop-button").onclick = function () {
			bytefx.scroll(document.getElementById("pagetop"),20);
		}
	}
}

function popup(url,w,h,winName){
	var subWin = window.open(url, winName, 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+w+',height='+h+'');
	subWin.focus();
}