where = new Array(11);
where[0] = "map_big.htm";
where[1] = "map.htm";
where[2] = "school.htm";
where[3] = "calender.htm";
where[4] = "guide.htm";
where[5] = "invitation.htm";
where[6] = "top.htm";
where[7] = "e_1.htm";
where[8] = "e_2.htm";
where[9] = "e_3.htm";
where[10] = "news.htm";
where[11] = "20th.htm";
where[12] = "e_4.htm";

function here(){
var foot = parent.navi.location.href;
if( foot.indexOf("foot.htm",0) != -1){
     var url = parent.main.location.href;
     off_01();
     if( url.indexOf(where[0],0) != -1){parent.navi.document.map.src = "img/navi_ma_on.gif";}
     if( url.indexOf(where[1],0) != -1){parent.navi.document.map.src = "img/navi_ma_on.gif";}
     if( url.indexOf(where[2],0) != -1){parent.navi.document.sch.src = "img/navi_sc_on.gif";}
     if( url.indexOf(where[3],0) != -1){parent.navi.document.cal.src = "img/navi_ca_on.gif";}
     if( url.indexOf(where[4],0) != -1){parent.navi.document.gui.src = "img/navi_gu_on.gif";}
     if( url.indexOf(where[5],0) != -1){parent.navi.document.inv.src = "img/navi_in_on.gif";}
     if( url.indexOf(where[6],0) != -1){parent.navi.document.top.src = "img/navi_to_on.gif";}
     if( url.indexOf(where[7],0) != -1){parent.navi.document.gre.src = "img/navi_gr_on.gif";}
     if( url.indexOf(where[8],0) != -1){parent.navi.document.ive.src = "img/navi_iv_on.gif";}
     if( url.indexOf(where[9],0) != -1){parent.navi.document.tes.src = "img/navi_te_on.gif";}
     if( url.indexOf(where[11],0) != -1){parent.navi.document.his.src = "img/navi_20_on.gif";}
     if( url.indexOf(where[12],0) != -1){parent.navi.document.ive.src = "img/navi_iv_on.gif";}
     }
if( foot.indexOf("foot_no.htm",0) != -1){
     var url = parent.main.location.href;
     off_02();
     if( url.indexOf(where[0],0) != -1){parent.navi.document.map.src = "img/navi_ma_on.gif";}
     if( url.indexOf(where[1],0) != -1){parent.navi.document.map.src = "img/navi_ma_on.gif";}
     if( url.indexOf(where[2],0) != -1){parent.navi.document.sch.src = "img/navi_sc_on.gif";}
     if( url.indexOf(where[3],0) != -1){parent.navi.document.cal.src = "img/navi_ca_on.gif";}
     if( url.indexOf(where[4],0) != -1){parent.navi.document.gui.src = "img/navi_gu_on.gif";}
     if( url.indexOf(where[5],0) != -1){parent.navi.document.inv.src = "img/navi_in_on.gif";}
     if( url.indexOf(where[6],0) != -1){parent.navi.document.top.src = "img/navi_to_on.gif";}
     if( url.indexOf(where[9],0) != -1){parent.navi.document.tes.src = "img/navi_te_on.gif";}
     if( url.indexOf(where[11],0) != -1){parent.navi.document.his.src = "img/navi_20_on.gif";}
     }
}

function here2(nowID){
var foot = parent.navi.location.href;
if( foot.indexOf("foot.htm",0) != -1) off_02();
if( foot.indexOf("foot_no.htm",0) != -1) off_01();
     if(nowID==0)  parent.navi.document.map.src = "img/navi_ma_on.gif";
     if(nowID==1)  parent.navi.document.map.src = "img/navi_ma_on.gif";
     if(nowID==2)  parent.navi.document.sch.src = "img/navi_sc_on.gif";
     if(nowID==3)  parent.navi.document.cal.src = "img/navi_ca_on.gif";
     if(nowID==4)  parent.navi.document.gui.src = "img/navi_gu_on.gif";
     if(nowID==5)  parent.navi.document.inv.src = "img/navi_in_on.gif";
     if(nowID==6)  parent.navi.document.top.src = "img/navi_to_on.gif";
     if(nowID==7)  parent.navi.document.gre.src = "img/navi_gr_on.gif";
     if(nowID==8)  parent.navi.document.ive.src = "img/navi_iv_on.gif";
     if(nowID==9)  parent.navi.document.tes.src = "img/navi_te_on.gif";
     if(nowID==10) parent.navi.document.news.src = "img/navi_ne_on.gif";
}

function off_01(){
//footナビリセット
   parent.navi.document.map.src = "img/navi_ma_off.gif";
   parent.navi.document.sch.src = "img/navi_sc_off.gif";
   parent.navi.document.cal.src = "img/navi_ca_off.gif";
   parent.navi.document.gui.src = "img/navi_gu_off.gif";
   parent.navi.document.inv.src = "img/navi_in_off.gif";
   parent.navi.document.top.src = "img/navi_to_off.gif";
   parent.navi.document.tes.src = "img/navi_te_off.gif";
   parent.navi.document.ive.src = "img/navi_iv_off.gif";
   parent.navi.document.his.src = "img/navi_20_off.gif";
   parent.navi.document.gre.src = "img/navi_gr_off.gif";
}

function off_02(){
//foot_offナビリセット
   parent.navi.document.map.src = "img/navi_ma_off.gif";
   parent.navi.document.sch.src = "img/navi_sc_off.gif";
   parent.navi.document.cal.src = "img/navi_ca_off.gif";
   parent.navi.document.gui.src = "img/navi_gu_off.gif";
   parent.navi.document.inv.src = "img/navi_in_off.gif";
   parent.navi.document.top.src = "img/navi_to_off.gif";
   parent.navi.document.tes.src = "img/navi_te_off.gif";
   parent.navi.document.his.src = "img/navi_20_off.gif";
}


function move_right(){
 var mainad = parent.main.location.href;
    var url = "//"+mainad;
 if(url.indexOf(where[0],0) != -1){parent.main.location.href = where[1];}
 if(url.indexOf(where[1],0) != -1){parent.main.location.href = where[2];}
 if(url.indexOf(where[2],0) != -1){parent.main.location.href = where[3];}
 if(url.indexOf(where[3],0) != -1){parent.main.location.href = where[4];}
 if(url.indexOf(where[4],0) != -1){parent.main.location.href = where[5];}
 if(url.indexOf(where[5],0) != -1){parent.main.location.href = where[6];}
 if(url.indexOf(where[6],0) != -1){parent.main.location.href = where[9];}
 if(url.indexOf(where[7],0) != -1){parent.main.location.href = where[12];}
 if(url.indexOf(where[9],0) != -1){parent.main.location.href = where[7];}
 if(url.indexOf(where[8],0) != -1){parent.main.location.href = where[11];}
 if(url.indexOf(where[11],0) != -1){parent.main.location.href = where[11];}
 if(url.indexOf(where[12],0) != -1){parent.main.location.href = where[11];}
}
function move_left(){
 var url = parent.main.location.href;
 if(url.indexOf(where[0],0) != -1){parent.main.location.href = where[0];}
 if(url.indexOf(where[1],0) != -1){parent.main.location.href = where[0];}
 if(url.indexOf(where[2],0) != -1){parent.main.location.href = where[1];}
 if(url.indexOf(where[3],0) != -1){parent.main.location.href = where[2];}
 if(url.indexOf(where[4],0) != -1){parent.main.location.href = where[3];}
 if(url.indexOf(where[5],0) != -1){parent.main.location.href = where[4];}
 if(url.indexOf(where[6],0) != -1){parent.main.location.href = where[5];}
 if(url.indexOf(where[8],0) != -1){parent.main.location.href = where[9];}
 if(url.indexOf(where[9],0) != -1){parent.main.location.href = where[6];}
 if(url.indexOf(where[7],0) != -1){parent.main.location.href = where[9];}
 if(url.indexOf(where[11],0) != -1){parent.main.location.href = where[12];}
 if(url.indexOf(where[12],0) != -1){parent.main.location.href = where[7];}
}
function move_right_no(){
 var mainad = parent.main.location.href;
    var url = "//"+mainad;
 var url = parent.main.location.href;
 if(url.indexOf(where[0],0) != -1){parent.main.location.href = where[1];}
 if(url.indexOf(where[1],0) != -1){parent.main.location.href = where[2];}
 if(url.indexOf(where[2],0) != -1){parent.main.location.href = where[3];}
 if(url.indexOf(where[3],0) != -1){parent.main.location.href = where[4];}
 if(url.indexOf(where[4],0) != -1){parent.main.location.href = where[5];}
 if(url.indexOf(where[5],0) != -1){parent.main.location.href = where[6];}
 if(url.indexOf(where[6],0) != -1){parent.main.location.href = where[9];}
 if(url.indexOf(where[9],0) != -1){parent.main.location.href = where[11];}
 if(url.indexOf(where[11],0) != -1){parent.main.location.href = where[11];}
}
function move_left_no(){
 var url = parent.main.location.href;
 if(url.indexOf(where[0],0) != -1){parent.main.location.href = where[0];}
 if(url.indexOf(where[1],0) != -1){parent.main.location.href = where[0];}
 if(url.indexOf(where[2],0) != -1){parent.main.location.href = where[1];}
 if(url.indexOf(where[3],0) != -1){parent.main.location.href = where[2];}
 if(url.indexOf(where[4],0) != -1){parent.main.location.href = where[3];}
 if(url.indexOf(where[5],0) != -1){parent.main.location.href = where[4];}
 if(url.indexOf(where[6],0) != -1){parent.main.location.href = where[5];}
 if(url.indexOf(where[9],0) != -1){parent.main.location.href = where[6];}
 if(url.indexOf(where[11],0) != -1){parent.main.location.href = where[9];}
}