﻿// JavaScript Document
  var sel_area = new Array;

  //--奥行きZ座標set 
  function zindexLAYER(layName,zindex,parea){
    if(document.getElementById)                  //n6,m1,e5,e6,o6用
      document.getElementById(layName).style.zIndex= zindex
    else if(document.all)
      document.all(layName).style.zIndex=zindex  //e4用
    else if(document.layers)
      document.layers[layName].zIndex=zindex     //n4用
  }

  //--背景色set 
  function setBGCOLOR(layName,color){
    //opera は透明が効かないのでページ背景色と同色へ便宜修正
    if(color=='')(!!window.opera)?color='white':color='transparent';
    if(document.getElementById)       //n6,m1,e5,e6,o6用
      document.getElementById(layName).style.backgroundColor =color
    else if(document.all)             //e4用
      document.all(layName).style.backgroundColor=color
    else if(document.layers){         //n4用
      if(color=='transparent')color=null
        document.layers[layName].bgColor=color 
    }
  }
  function fn_reload(){
  zindexLAYER('4', 0, 0);
  zindexLAYER('2', 0, 0);
  zindexLAYER('3', 0, 0);
  zindexLAYER('1', 0, 0);
  zindexLAYER('3', 0, 0);
  }

  function cl(layName){
  if("4"==layName){zindexLAYER('4', 2, 0);}
  else if("5"==layName){zindexLAYER('5', 2, 0);}
  else if("2"==layName){zindexLAYER('2', 2, 0);}
  else if("1"==layName){zindexLAYER('1', 2, 0);}
  else if("3"==layName){zindexLAYER('3', 2, 0);}

  if("4"!=layName){zindexLAYER('4', 0, 0);}
  if("5"!=layName){zindexLAYER('5', 0, 0);}
  if("2"!=layName){zindexLAYER('2', 0, 0);}
  if("1"!=layName){zindexLAYER('1', 0, 0);}
  if("3"!=layName){zindexLAYER('3', 0, 0);}
  }
