function onm(on1){
	document.images[on1].src = '../menu/m_' + on1 +'_on.gif';
}
function offm(off1){
	document.images[off1].src = '../menu/m_' + off1 +'_off.gif';
}

function onm3(on3,place){
	document.images[place].src = '../menu/p_' + on3 +'_on.gif';
}
function offm3(off3,place){
	document.images[place].src = '../menu/p_' + off3 +'_off.gif';
}


function onpt(p1){
	document.images.title.src = 'c/t_' + p1 +'.gif';

if (navigator.userAgent.match(/MSIE (\d\.\d+)/)) {
document.images['pt'].filters.revealTrans.apply();
document.images.pt.src = 'c/' + p1 +'.jpg';
document.images['pt'].filters.revealTrans.play();
}

else{document.images.pt.src = 'c/' + p1 +'.jpg';}
}


function pull(flg) {
	if (flg == 'ok') document.getElementById('mngk').style.visibility='hidden', document.getElementById('mnok').style.visibility='visible', document.getElementById('mnms').style.visibility='hidden', document.getElementById('mnko').style.visibility='hidden';
	else if (flg == 'gk')  document.getElementById('mnok').style.visibility='hidden', document.getElementById('mngk').style.visibility='visible', document.getElementById('mnms').style.visibility='hidden', document.getElementById('mnko').style.visibility='hidden';
	else if (flg == 'ms')  document.getElementById('mnok').style.visibility='hidden', document.getElementById('mngk').style.visibility='hidden', document.getElementById('mnms').style.visibility='visible', document.getElementById('mnko').style.visibility='hidden';
	else if (flg == 'ko')  document.getElementById('mnok').style.visibility='hidden', document.getElementById('mngk').style.visibility='hidden', document.getElementById('mnms').style.visibility='hidden', document.getElementById('mnko').style.visibility='visible';
	else document.getElementById('mngk').style.visibility='hidden',document.getElementById('mnok').style.visibility='hidden', document.getElementById('mnms').style.visibility='hidden',document.getElementById('mnko').style.visibility='hidden' ;
}

function getOSType() {
    var uAgent  = navigator.userAgent.toUpperCase();
    if (uAgent.indexOf("MAC") >= 0) return "MacOS";
    if (uAgent.indexOf("WIN") >= 0) return "Windows";
    if (uAgent.indexOf("X11") >= 0) return "UNIX";
}
function onh(on5){
	document.images[on5].src = '../img/' + on5 +'_on.gif';
}
function offh(off5){
	document.images[off5].src = '../img/' + off5 +'_off.gif';
}

function ony(on6,place){
	document.images[place].src = '../img/' + on6 +'_on.gif';
}
function offy(off6,place){
	document.images[place].src = '../img/' + off6 +'_off.gif';
}

function onqr(on,place){
	document.images[place].src = '../inq/img/' + on +'.gif'; 
}

function ons(on7){
	document.images[on7].src = '../teire/img/' + on7 +'_on.gif';
}
function offs(off7){
	document.images[off7].src = '../teire/img/' + off7 +'_off.gif';
}

function onr(on8){
	document.images[on8].src = '../r_shop/img/' + on8 +'_on.gif';
}
function offr(off8){
	document.images[off8].src = '../r_shop/img/' + off8 +'_off.gif';
}


function onimg(on9,place){
	document.images[place].src = 'img/' + on9 +'_on.gif';
}
function offimg(off9,place){
	document.images[place].src = 'img/' + off9 +'_off.gif';
}

function LinkMo1(url) {
        var LM1;
        LM1=window.open(url,"win1","scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,width=430,height=530");
        LM1.window.focus();
}
function LinkMo2(url) {
        var LM2;
        LM2=window.open(url,"win2","scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,width=580,height=600");
        LM2.window.focus();
}
function LinkMo3(url) {
        var LM3;
        LM3=window.open(url,"win3","scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,width=420,height=430");
        LM3.window.focus();
}

function LinkMo4(url) {
        var LM4;
        LM4=window.open(url,"win4","scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,width=650,height=610");
        LM4.window.focus();
}

    function LinkMo5(url) {
        var LM5;
        LM5=window.open(url,"win5","scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,width=520,height=585");
        LM5.window.focus();
}

    function LinkMo6(url) {
        var LM6;
        LM6=window.open(url,"win6","scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,width=570,height=585");
        LM6.window.focus();
}

    function LinkMo7(url) {
        var LM7;
        LM7=window.open(url,"win7","scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,width=610,height=585");
        LM7.window.focus();
}


function LinkMo8(url) {
        var LM8;
        LM1=window.open(url,"win8","scrollbars=no,resizable=yes,toolbar=no,location=no,directories=no,width=420,height=480");
        LM1.window.focus();
}

function LinkMo9(url) {
        var LM9;
        LM4=window.open(url,"win9","scrollbars=yes,resizable=yes,toolbar=yes,location=no,directories=no,width=650,height=610");
        LM4.window.focus();
}

function LinkMo10(url) {
        var LM10;
        LM10=window.open(url,"win10","scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,width=650,height=750");
        LM10.window.focus();
}

function GoURL(url){
 var op =url.next.selectedIndex
 document.location.href = url.next.options[op].value
}


var sw=0;
function bon() {
	if (sw != 1) document.getElementById('kiso').style.display='inline', sw = 1;
	else document.getElementById('kiso').style.display='none', sw= 0 ;
}

