// GEId = getElementsById
//
function Theme(col)//col
{
 LoadTheme(col);
//----------------------------
 DropColTb(dropCol,tdCol,tdCol);
 //
// window.alert(color);
}// end Theme();
//________________________________________________________________________________________________________________________________
//
function ChangeTheme(up,dwn,tdc,tbc,tbf,ctW)
{
 //--Title------------------------------------------------------------------------
 // Up & Down Image
 GEId('tdTUp').children[0].src= up; // Td Up image of Tit.
 GEId('tdTDo').children[0].src= dwn; // Td Down image of Tit.
 // left & right Image
 GEId('tdTLBK').className=tdc; // left tit Td. 
 GEId('tdTRBK').className=tdc; // right tit Td. 
 //--------------------------------------------------------------------------
 
 //--Content-------------------------------------------------------------------
 // Up & Down Image
 GEId('tdCUp').children[0].src= up; // Td Up image of Tit. 
 GEId('tdCDo').children[0].src= dwn; // Td Down image of Tit.
 // left & right Image
 GEId('tdCLBK').className=tdc; // left tit Td. 
 GEId('tdCRBK').className=tdc; // right tit Td. sCtW 
 //-------------------------------------------------------------------------- 
 GEId('tbctW').className=ctW; // my Catchword
 GEId('tdMBK').className=tdc; // BK of Menu td.
// GEId('lgFBKU').className=tdc; // BK of upper log form td. 
// GEId('tbLog').className=tbc; // BK of log form TB. 
 //-------------------------------------------------------------------------- 
// GEId('dtBK').className=tdc; // BK of date td.
// GEId('sEmBKU').className=tdc; // BK of upper email form td.
// GEId('tbEml').className=tbc; // BK of email form TB. 
 //-------------------------------------------------------------------------- 
 GEId('pgNBK').className=tdc; // BK of page navg. td.
 //--------------------------------------------------------------------------  
// GEId('tbShow').className=tbc; // BK of content TB.
 //--------------------------------------------------------------------------
  GEId('htd').className=tbf; // BK of upper TB.    
 //--------------------------------------------------------------------------   
 GEId('ftd').className=tbf; // BK of footer TB.    
 //-------------------------------------------------------------------------- 
}
//________________________________________________________________________________________________________________________________
//
//
function LoadTheme(col)
{
  try{
    //=======================================================
    // Saving the value of color in cookie
    SetName('color',col); // saving function
    var color = ShowName('color'); // store the cookie in color var.
   //=======================================================
   if(color == 'skyB'){
    ChangeTheme('me/muk/000/l/SkUp.gif','me/muk/000/l/SkDo.gif','tdBKbul','tbFBu','tdFtBu','sCtW');// Skey-blue color
 //---------------------------------------------------------------------------------------------- 
   }else if(color == 'teal'){
    ChangeTheme('me/muk/000/l/TeUp.gif','me/muk/000/l/TeDo.gif','tdBKte','tbFTe','tdFtTe','sCtWT');// Teal color
 //---------------------------------------------------------------------------------------------- 
   }else if(color == 'gray'){
    ChangeTheme('me/muk/000/l/GaUp.gif','me/muk/000/l/GaDo.gif','tdBKgr','tbFGr','tdFtGr','sCtWGr');// Gary color 
 //---------------------------------------------------------------------------------------------- 
   }else if(color == 'red'){
    ChangeTheme('me/muk/000/l/ReUp.gif','me/muk/000/l/ReDo.gif','tdBKre','tbFRe','tdFtRe','sCtWR');// Red color 
 //---------------------------------------------------------------------------------------------- 
   }else if(color == 'green'){
    ChangeTheme('me/muk/000/l/GrUp.gif','me/muk/000/l/GrDo.gif','tdBKgre','tbFGre','tdFtGre','sCtWG');// Green color 
 //---------------------------------------------------------------------------------------------- 
   }else if(color == 'blue'){
    ChangeTheme('me/muk/000/l/BuUp.gif','me/muk/000/l/BuDo.gif','tdBKb2','tbFB2','tdFtB2','sCtWB');// Blue color
 //---------------------------------------------------------------------------------------------- 
   }else if(color == 'violet'){
    ChangeTheme('me/muk/000/l/ViUp.gif','me/muk/000/l/ViDo.gif','tdBKvi','tbFVi','tdFtVi','sCtWV');// Violet color
 //---------------------------------------------------------------------------------------------- 
   }else{
    ChangeTheme('me/muk/000/l/SkUp.gif','me/muk/000/l/SkDo.gif','tdBKbul','tbFbu','td','sCtW');// Defult color
   }
//--------------------
  }catch(e){}
}
//________________________________________________________________________________________________________________________________
//
// For change width img
function ChangeImageWidth(imgW)
{
 try{
    GEId('tdTUp').children[0].width=imgW; // Td Up image W Title.
    GEId('tdTDo').children[0].width=imgW; // Td Down image W Title. 
    //
    GEId('tdCUp').children[0].width=imgW; // Td Up image W.
    GEId('tdCDo').children[0].width=imgW; // Td Down image W.  

 }catch(e){}
}
// For change width of table
function ChangeSizeFont(bdyS)
{
 try{GEId('body').style.fontsize=bdyS;}catch(e){}// Change font size of body.
}
// For change size of font
function ChangeTableWidth(tbW,taW)
{
 try{
   GEId('tbPrg').style.width=tbW;
   GEId('txtAMsg').style.width=taW; 
   
   }catch(e){}// Change width of Prog. table.
}
//________________________________________________________________________________________________________________________________
//
//
function WideNarrowPage()
{
 try{
   if(tdtitleP == 'Switch to wide page'){
     ChangeTableWidth(960,640);
     ChangeImageWidth(980); ChangeSizeFont(12);
     //----------------------------
     DropColTb(dropCol,tdCol,tdCol);

     tdtitleP= 'Switch to narrow page';
   }else{
     ChangeTableWidth(700,390);
     ChangeImageWidth(720);
     //----------------------------
     DropColTb(dropCol,tdCol,tdCol);

     tdtitleP= 'Switch to wide page';
   }
 }catch(e){}
}// end function
var tdtitleP='';
if(tdtitleP == ''){tdtitleP='Switch to wide page';}

//________________________________________________________________________________________________________________________________
//
// Make Text Larger
function TextLarger(larg)
{
 try{
   if(larg == true){
    // change to large
    // Up & Down Image
    GEId('tdTUp').children[0].width="766"; // Td Up image W Title.
    GEId('tdTDo').children[0].width="766"; // Td Down image W Title. 
    //
    GEId('tdCUp').children[0].width="766"; // Td Up image W.
    GEId('tdCDo').children[0].width="766"; // Td Down image W.  
 
    GEId('body').className='bdy'; // Change font size of body.
//---------------------
   }else{
    // change to small
        // Up & Down Image
    GEId('tdTUp').children[0].width="720"; // Td Up image W Title.
    GEId('tdTDo').children[0].width="720"; // Td Down image W Title.
    //
    GEId('tdCUp').children[0].width="720"; // Td Up image W.
    GEId('tdCDo').children[0].width="720"; // Td Down image W.  
  
    //GEId('body').className='bdy'; // Change font size of body.
   }
//----------------------------
 DropColTb(dropCol,tdCol,tdCol);
//
 }catch(e){}
 
}// end function
//________________________________________________________________________________________________________________________________
//
