
// image roll
//------------------------------------
function imgRoll(obj,flag) {
    var pathsrc = obj.getAttribute("src");
    var path = pathsrc.slice(0,pathsrc.lastIndexOf("/")+1);
    var imgname = pathsrc.slice(pathsrc.lastIndexOf("/")+1,pathsrc.length);
    if(flag) {
        var imgname = imgname.replace(/_def/i,"_ovr");
    } else {
        var imgname = imgname.replace(/_ovr/i,"_def");
    }
    obj.setAttribute("src",path + imgname);
}

// subwin open
// ページ内では以下のように呼び出してください。
// <a href="/FF/shared/scripts/&#21628;&#12403;&#20986;&#12375;&#12383;&#12356;&#12506;&#12540;&#12472;" onclick="return openSubWindow(this.href,'小窓名',横サイズ[px指定],縦サイズ[px指定]);" target="_blank"><img src="/common/images/btn_slideshow.gif" width="160" height="50" alt="Slide Show" /></a>
// 例）<a href="/FF/shared/scripts/slideshow.html" onclick="return openSubWindow(this.href,'slideshow',500,500);" target="_blank"><img src="/common/images/btn_slideshow.gif" width="160" height="50" alt="Slide Show" /></a>
//------------------------------------
function openSubWindow(strUrl,winName,winWidth,winHeight) {
    var features = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=' + winWidth + ',height=' + winHeight;
    winName = window.open(strUrl,winName,features);
    winName.focus();
    return false;
}


// search input text
//------------------------------------
function inputClear(obj) {
    var objvalue = obj.value;
    if(objvalue=="SEARCH") {
        obj.value = "";
    }
}

//ラインナップ 画像変更
function ChangePhoto(file,imageid){
        document.images[imageid].src = file;
        return false;
}



// 表示非表示切替
function showLyr01(layNam,dispVl){
    if(document.getElementById){
        document.getElementById(layNam).style.display=dispVl;
    }else{
        document.all(layNam).style.display=dispVl;
    }
}


// ボタン表示のリセット
function allBtnOff(){
    showLyr01('searchPointButton01on','none');
    showLyr01('searchPointButton01','block');
    showLyr01('searchPointButton02on','none');
    showLyr01('searchPointButton02','block');
    showLyr01('searchPointButton03on','none');
    showLyr01('searchPointButton03','block');
    showLyr01('searchPointButton04on','none');
    showLyr01('searchPointButton04','block');
    showLyr01('searchPointButton05on','none');
    showLyr01('searchPointButton05','block');
    showLyr01('searchPointButton06on','none');
    showLyr01('searchPointButton06','block');
    showLyr01('searchPointButton07on','none');
    showLyr01('searchPointButton07','block');
    showLyr01('searchPointButton08on','none');
    showLyr01('searchPointButton08','block');
    showLyr01('searchPointButton09on','none');
    showLyr01('searchPointButton09','block');
    showLyr01('searchPointButton10on','none');
    showLyr01('searchPointButton10','block');
}






