 var Button_Sizes = "@166@143@178@166@148";
    Butts = Button_Sizes.split("@");
 var HSpace1; var VSpace1;

function Browser(){
    if (navigator.appName == "Netscape"){
       return "Ns"
    }else if (navigator.appName == "Microsoft Internet Explorer"){
       return "IE"
    }else{
       return "Other"
    } // End If
} // End of Function "Browser"

function Get_Dimensions(){

   switch(Browser()){
     case "IE":
       HSpace1 = Math.round(document.body.clientWidth * .01)
       VSpace1 = Math.round(document.body.clientHeight * .02)
       VtdSpace = VSpace1 * 2.4
     break
     case "Ns":
       HSpace1 = Math.round(window.innerWidth * .01)
       VSpace1 = Math.round(window.innerHeight * .02)
       VtdSpace = VSpace1 * 2.4
     break
     case "Other":
        HSpace1 = 10
        VSpace1 = 8
        VtdSpace = 26
     } //End switch

       switch(screen.width){
         case 640:
           Scale_Factor = .65
         break
         case 800:
           Scale_Factor = .85
         break
         case 1024:
           Scale_Factor = .90
         break
         case 1152:
           Scale_Factor = .95
         break
         case 1280:
           Scale_Factor = 1
         break
         default:
           Scale_Factor = 1
       } //End switch

   for(x = 1; x <= Butts.length; ++x){
        switch(x){
          case 1:
            Horz_B1 = Math.round(parseInt(Butts[x]) * Scale_Factor);
            Vert_B1 =  Math.round(35 * Scale_Factor);
            Table_Width = HSpace1 * 4 + Horz_B1;
          break
          case 2:
            Horz_B2 = Math.round(parseInt(Butts[x]) * Scale_Factor);
            Vert_B2 =  Math.round(35 * Scale_Factor);
            Table_Width += Horz_B2;
          break
          case 3:
            Horz_B3 = Math.round(parseInt(Butts[x]) * Scale_Factor);
            Vert_B3 =  Math.round(35 * Scale_Factor);
            Table_Width += Horz_B3;
          break
          case 4:
            Horz_B4 = Math.round(parseInt(Butts[x]) * Scale_Factor);
            Vert_B4 =  Math.round(35 * Scale_Factor);
            Table_Width += Horz_B4
          break
          case 5:
            Horz_B5 = Math.round(parseInt(Butts[x]) * Scale_Factor);
            Vert_B5 =  Math.round(35 * Scale_Factor);
            Table_Width += Horz_B5
        }// End Switch
   }// End For

   //alert(Horz_B1 + " x " + Vert_B1 + " Spaces " +  HSpace1 + " x " + + VSpace1 + " Table " + Table_Width)
}// End Function "Get_Dimensions"

