/* JavaScript Function */
/* ポップアップウィンドウをオープンする*/
function open_window(url){
  twin1=window.open(url,"_blank",'resizable=yes,width=780,height=580,scrollbars=no,status=no,left=0,top=0');
}

function open_window_sc(url){
  twin1=window.open(url,"_blank",'resizable=yes,width=800,height=580,scrollbars=yes,status=no,left=0,top=0');
}

function open_window_m(url){
  twin1=window.open(url,"_blank",'resizable=yes,width=550,height=450,scrollbars=no,status=no,left=0,top=0');
}
	
function open_window_l(url){
  twin1=window.open(url,"_blank",'resizable=yes,width=550,height=550,scrollbars=no,status=no,left=0,top=0');
}	

function open_window_ll(url){
  twin1=window.open(url,"_blank",'resizable=yes,width=550,height=600,scrollbars=no,status=no,left=0,top=0');
}	

function open_window_ll_sc(url){
  twin1=window.open(url,"_blank",'resizable=yes,width=550,height=600,scrollbars=yes,status=no,left=0,top=0');
}	

function open_window_lw_sc(url){
  twin1=window.open(url,"_blank",'resizable=yes,width=670,height=600,scrollbars=yes,status=no,left=0,top=0');
}	


/* メニューを常に左上に表示する*/
function moveMenu () {
//    if(!document.getElementById) return;
//    var obj = document.getElementById("menu");
//    var y = scrollTop() + 0;
//    obj.style.top = y + "px";
//    setTimeout("moveMenu();", 500);
}

function winWidth () {
    if(window.innerWidth)
        return window.innerWidth;
    if(document.compatMode == "CSS1Compat")
        return document.body.parentNode.clientWidth;
    if(document.body.clientWidth)
        return document.body.clientWidth;
    return 600;
}
function winHeight () {
    if(window.innerHeight)
        return window.innerHeight;
    if(document.compatMode == "CSS1Compat")
        return document.body.parentNode.clientHeight;
    if(document.body.clientHeight)
        return document.body.clientHeight;
    return 400;
}
function scrollLeft () {
    if(window.pageXOffset)
        return window.pageXOffset;
    if(document.compatMode == "CSS1Compat")
        return document.body.parentNode.scrollLeft;
    if(document.body.scrollLeft)
        return document.body.scrollLeft;
    return 0;
}
function scrollTop () {
    if(window.pageYOffset)
        return window.pageYOffset;
    if(document.compatMode == "CSS1Compat")
        return document.body.parentNode.scrollTop;
    if(document.body.scrollTop)
        return document.body.scrollTop;
    return 0;
}
