// 21-03-00-00:2002.06.21  : T.Kishimoto  : TJAV2224384 LDEV Security
//            :2002.  .    :              : TLDG2224848 LDEV Guard Support
// 21-04-00-00:2002.10.17  : H.Yasukawa   : TJEN2224889 E-NAS Support
// 21-04-00-00:2002.10.17  : H.Yasukawa   : TJSP2224887 Spread Sheet Support
// 21-07-00-00:2003.05.13  : H.Yasukawa   : TOLV2225768 Open LDEV Guard Support
// 21-07-01/00:2003.06.11  : H.Yasukawa   : T4ED2225856 External Device Support
// ----------------------------------------------------------------------------
// RAID500
// History  :Version       :DATE      : Coder       : P#          : Changes
//          :40-00-00/00-00:2003.10.20: H.Yasukawa  : U5002220617 : For RAID500
//          :              :200x.xx.xx: H.Yasukawa  : UHUR2221028 : HUR Support
//          :40-04-00/00-09:2004.02.26: H.Yasukawa  : U5ED2221025 : External Device for R500
//          :40-05-01/00-00:2004.03.25: T.Kishimoto : UPOD2220978 : PortOnDemand for R500
//          :40-05-01/00-00:2004.04.12  : T.Kishimoto : U5002221996 Not to Support HUR 
//          :50-00-19/00-01:2004.06.23  : K.Usami : U5002222929 PortOnDemand Concealment-izing
//          :50-xx-xx/xx-xx:2004.10.07  : K.Usami : U500222xxxx For SLPR
//          :50-03-05/00-xx:2004.11.11  : K.Usami     : UPRM2223849 For SLPR 
//          :50-03-05/00-xx:2004.11.26  : K.Usami     : UPRM2224016 HIHSM 3rd skip 
//          :50-03-05/00-xx:2005.08.02  : K.Usami     : UIS02225840 iSCSI 
//
btnnum = 64  ;                        // U5002220617
tabnum = 8   ;                        // U5002220617
tabno  = 512 ;                        // U5002220617
tabcheck        = new Array(tabno);   // U5002220617
buttoncheck     = new Array(btnnum);  // U5002220617
button_property = new Array(btnnum);  // U5002220617
tchange_b2n     = new Array(btnnum);  // U5002220617
tchange_t2n     = new Array(tabno);   // U5002220617
tchange_b2i     = new Array(btnnum);  // U5002220617
tchange_n2b     = new Array(btnnum);  // U5002220617
tchange_n2t     = new Array(tabno);   // U5002220617
tchange_t2i     = new Array(tabno);   // U5002220617
imgonoff        = new Array(2);
timgonoff       = new Array(2);
bimgonoff       = new Array(2);
timgonoff[0]    = new Array(tabno);   // U5002220617
timgonoff[1]    = new Array(tabno);   // U5002220617
bimgonoff[0]    = new Array(btnnum);  // U5002220617
bimgonoff[1]    = new Array(btnnum);  // U5002220617
for(i=0;i<tabno;i++){                 // U5002220617
  tabcheck[i]=0;
}
for(i=0;i<btnnum;i++){                // U5002220617
  buttoncheck[i]=0;
  button_property[i] = new Array(9);
}
// Status     :0
//buttoncheck[ 0]=1;button_property[ 0][0]=1;
//  button_property[ 0][1]= 0;
// LUNM       :1 
// NAS Port Reset
buttoncheck[ 1]=1;button_property[ 1][0]=4;	// #UIS02225840 iSCSI
  button_property[ 1][1]= 8;
  button_property[ 1][2]= 9;
// iSCSI #UIS02225840
  button_property[ 1][3]= 10;	// #UIS02225840 iSCSI
// NAS Port Reset
  button_property[ 1][4]= 11;	// #UIS02225840 iSCSI
// VolumeM    :2 
buttoncheck[ 2]=1;button_property[ 2][0]=2;
  button_property[ 2][1]=16;
  button_property[ 2][2]=17;
// DCR        :3 
// TJEN2224889
buttoncheck[ 3]=1;button_property[ 3][0]=2;
  button_property[ 3][1]=24;
// for E-NAS : TJEN2224889
  button_property[ 3][2]=25;
// Performance:4 
buttoncheck[ 4]=1;button_property[ 4][0]=1;	//	UPRM2224016 HIHSM 3rd skip 
//buttoncheck[ 4]=1;button_property[ 4][0]=2;	//	UPRM2224016 HIHSM 3rd skip 
  button_property[ 4][1]=32;	//	UPRM2224016 HIHSM 3rd skip 
//  button_property[ 4][2]=33;	//	UPRM2223849
//  button_property[ 4][3]=34;
// HORC       :5
//buttoncheck[ 5]=1;button_property[ 5][0]=1;
//  button_property[ 5][1]=40;
// HMORCF     :6
//buttoncheck[ 6]=1;button_property[ 6][0]=1;
//  button_property[ 6][1]=48;
// HORC       :7
//buttoncheck[ 7]=1;button_property[ 7][0]=1;
//  button_property[ 7][1]=56;
// HMRCF      :8
//buttoncheck[ 8]=1;button_property[ 8][0]=1;
//  button_property[ 8][1]=64;
//MainFrame   :9
//for LDEV Security
//for LDEV Guard
//  buttoncheck[ 9]=1;button_property[ 9][0]=3;
//  button_property[ 9][1]=72;
//  button_property[ 9][2]=73;
//for LDEV Guard
//  button_property[ 9][3]=74;
//HODM       :10
//buttoncheck[10]=0;

//ECOPY       :11
//buttoncheck[11]=1;button_property[11][0]=1;
//  button_property[11][1]=88;

//Open LDEV Guard:12  : TOLV2225768
buttoncheck[12]=1;button_property[12][0]=1;
  button_property[12][1]=96;

//External Device:13  : T4ED2225856,U5ED2221025
//buttoncheck[13]=1;button_property[13][0]=2;
//  button_property[13][1]=104;
//  button_property[13][2]=105;

//Spread Sheet:14  : TJSP2224887
//buttoncheck[14]=1;button_property[14][0]=1;
//  button_property[14][1]=112;
//Install     :15
// UPOD2220978
// U5002222929
//buttoncheck[15]=1;button_property[15][0]=4; // U5002222929 04.06.23
//buttoncheck[15]=1;button_property[15][0]=3;   // 4->3 U5002222929 04.06.23
//  button_property[15][1]=120;
// button_property[15][2]=121;
//  button_property[15][3]=122;
// button_property[15][4]=123;	// U5002222929 04.06.23

//U5002221996  
// //HUR :16  : UHUR2221028
// buttoncheck[16]=1;button_property[16][0]=1;
// button_property[16][1]=128;
// //HUR :17  : UHUR2221028
// buttoncheck[17]=1;button_property[17][0]=1;
//   button_property[17][1]=136;

bimgonoff[1][ 0]="/icon/statuson.gif";
bimgonoff[1][ 1]="/icon/LUN_Managementon.gif";
bimgonoff[1][ 2]="/icon/Volume_Managementon.gif";
bimgonoff[1][ 3]="/icon/Cache_Managementon.gif";
bimgonoff[1][ 4]="/icon/Performanceon.gif";
bimgonoff[1][ 5]="/icon/HORCon.gif";
bimgonoff[1][ 6]="/icon/HOMRCFon.gif";
bimgonoff[1][ 7]="/icon/HRCon.gif";
bimgonoff[1][ 8]="/icon/HMRCFon.gif";
bimgonoff[1][ 9]="/icon/Mainframeon.gif";
bimgonoff[1][10]="";
bimgonoff[1][11]="/icon/E-COPYon.gif";
//TOLV2225768
bimgonoff[1][12]="/icon/Open_LDEV_Guardon.gif";
//T4ED2225856
bimgonoff[1][13]="/icon/External_Deviceon.gif";
//TJSP2224887
bimgonoff[1][14]="/icon/Spread_Sheeton.gif";
bimgonoff[1][15]="/icon/installon.gif";
// U5002221996 
// //UHUR2221028
// bimgonoff[1][16]="/icon/HURon.gif";
// bimgonoff[1][17]="/icon/HUR-MFon.gif";

bimgonoff[0][ 0]="/icon/statusoff.gif";
bimgonoff[0][ 1]="/icon/LUN_Managementoff.gif";
bimgonoff[0][ 2]="/icon/Volume_Managementoff.gif";
bimgonoff[0][ 3]="/icon/Cache_Managementoff.gif";
bimgonoff[0][ 4]="/icon/Performanceoff.gif";
bimgonoff[0][ 5]="/icon/HORCoff.gif";
bimgonoff[0][ 6]="/icon/HOMRCFoff.gif";
bimgonoff[0][ 7]="/icon/HRCoff.gif";
bimgonoff[0][ 8]="/icon/HMRCFoff.gif";
bimgonoff[0][ 9]="/icon/Mainframeoff.gif";
bimgonoff[0][10]="";
bimgonoff[0][11]="/icon/E-COPYoff.gif";
//TOLV2225768
bimgonoff[0][12]="/icon/Open_LDEV_Guardoff.gif";
//T4ED2225856
bimgonoff[0][13]="/icon/External_Deviceoff.gif";
//TJSP2224887
bimgonoff[0][14]="/icon/Spread_Sheetoff.gif";
bimgonoff[0][15]="/icon/Installoff.gif";
// U5002221996 
// //UHUR2221028
// bimgonoff[0][16]="/icon/HURoff.gif";
// bimgonoff[0][17]="/icon/HUR-MFoff.gif";

imgonoff[0]="/icon/imgoff.gif";
imgonoff[1]="/icon/img.gif";


bi=3;
ai=1;
for(i=0;i<btnnum;i++){                // U5002220617
  if(buttoncheck[i] != 0){
     tchange_b2n[ i]=b+bi;
     tchange_n2b[b+bi]= i;
     tchange_b2i[ i]= ai+a;
//     alert(tchange_b2i[ i]);
     for(j=0;j<button_property[ i][0];j++){
//      U5002221690 8*i+j=>tabid2
//        tabcheck[8*i+j]=1;
        tabid2=button_property[ i][j+1];
        tabcheck[tabid2]=1;
        tchange_t2n[tabid2]=b+bi+1;
        tchange_n2t[b+bi+1 ]=tabid2;
        tchange_t2i[tabid2]=a+ai+2;
        bi++;ai=ai+3;
        timgonoff[0][tabid2]="/icon/imgoff.gif" ;
        timgonoff[1][tabid2]="/icon/img.gif" ;
     }
     bi++;ai++;
  }
}
