<!--
// by Jacek Stomal 2005

var flag = new String("off");
var buttonPressed = null;
var buttonSelected = null;
var activeMenu =null;
var browser = null;

   if (navigator.appName == "Netscape" && parseInt(navigator.appVersion) == 4 )
      browser = "NN4";
   else
   if (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 5)
      browser = "NN6";
   else
   if (navigator.appName == "Gecko")
      browser = "NN6";
   else
      browser = "IE";

 function ETop(){document.Top.src="Images/ETopD.gif";
}
function ETopb(){document.Top.src="Images/ETopU.gif";
}

 function Billiard(){document.Home.src="Billiards/BilliardsD.gif";
}
function Billiardb(){document.Home.src="Billiards/BilliardsU.gif";
} 

 function BilliardTables(){document.Tabl.src="Billiards/BilliardTablesD.gif";
}
function BilliardTablesb(){document.Tabl.src="Billiards/BilliardTablesU.gif";
} 

 function GameRoom(){document.Game.src="Billiards/GameRoomD.gif";
}
function GameRoomb(){document.Game.src="Billiards/GameRoomU.gif";
}

 function CasinoGames(){document.Casi.src="Billiards/CasinoGamesD.gif";
}
function CasinoGamesb(){document.Casi.src="Billiards/CasinoGamesU.gif";
}

 function Furnishings(){document.Furn.src="Billiards/FurnishingsD.gif";
}
function Furnishingsb(){document.Furn.src="Billiards/FurnishingsU.gif";
}

 function BilliardBalls(){document.Ball.src="Billiards/BilliardBallsD.gif";
}
function BilliardBallsb(){document.Ball.src="Billiards/BilliardBallsU.gif";
}

 function Lights(){document.Ligh.src="Billiards/LightsD.gif";
}
function Lightsb(){document.Ligh.src="Billiards/LightsU.gif";
}

 function CueRacks(){document.Cuer.src="Billiards/CueRacksD.gif";
}
function CueRacksb(){document.Cuer.src="Billiards/CueRacksU.gif";
}

 function PoolCues(){document.Cues.src="Billiards/PoolCuesD.gif";
}
function PoolCuesb(){document.Cues.src="Billiards/PoolCuesU.gif";
}


 function Art(){document.Arts.src="Billiards/ArtD.gif";
}
function Artb(){document.Arts.src="Billiards/ArtU.gif";
}

 function Accessories(){document.Acce.src="Billiards/AccessoriesD.gif";
}
function Accessoriesb(){document.Acce.src="Billiards/AccessoriesU.gif";
}

 function Darting(){document.Dart.src="Billiards/DartingD.gif";
}
function Dartingb(){document.Dart.src="Billiards/DartingU.gif";
}

 function Contact(){document.Cont.src="Billiards/ContactD.gif";
}
function Contactb(){document.Cont.src="Billiards/ContactU.gif";
}

 
 function Vending(){document.Vend.src="Billiards/VendingD.gif";
}
function Vendingb(){document.Vend.src="Billiards/VendingU.gif";
}

 function Jukeboxes(){document.Juke.src="Billiards/JukeboxesD.gif";
}
function Jukeboxesb(){document.Juke.src="Billiards/JukeboxesU.gif";
}



function EPri(){document.List.src="Images/PriceLIstD.gif";
}
function EPrib(){document.List.src="Images/PriceLIst.gif";
}

function EPla(){document.Plac.src="Images/PlaceOrderD.gif";
}
function EPlab(){document.Plac.src="Images/PlaceOrder.gif";
}
function EPla1(){document.Plac1.src="Images/PlaceOrderD.gif";
}
function EPla1b(){document.Plac1.src="Images/PlaceOrder.gif";
}
function EPla2(){document.Plac2.src="Images/PlaceOrderD.gif";
}
function EPla2b(){document.Plac2.src="Images/PlaceOrder.gif";
}
function EPla3(){document.Plac3.src="Images/PlaceOrderD.gif";
}
function EPla3b(){document.Plac3.src="Images/PlaceOrder.gif";
}
function EPla4(){document.Plac4.src="Images/PlaceOrderD.gif";
}
function EPla4b(){document.Plac4.src="Images/PlaceOrder.gif";
}
function EPla5(){document.Plac5.src="Images/PlaceOrderD.gif";
}
function EPla5b(){document.Plac5.src="Images/PlaceOrder.gif";
}
function EPla6(){document.Plac6.src="Images/PlaceOrderD.gif";
}
function EPla6b(){document.Plac6.src="Images/PlaceOrder.gif";
}
function EPla7(){document.Plac7.src="Images/PlaceOrderD.gif";
}
function EPla7b(){document.Plac7.src="Images/PlaceOrder.gif";
}
function EPla8(){document.Plac8.src="Images/PlaceOrderD.gif";
}
function EPla8b(){document.Plac8.src="Images/PlaceOrder.gif";
}
function EPla9(){document.Plac9.src="Images/PlaceOrderD.gif";
}
function EPla9b(){document.Plac9.src="Images/PlaceOrder.gif";
}







function Evergreen(){document.Table.src="Images/LouisEvergreenX.jpg";
}
function Royal(){document.Table.src="Images/LouisRoyalX.jpg";
}
function Burgundy(){document.Table.src="Images/LouisBurgundyX.jpg";
}
function Spruce(){document.Table.src="Images/LouisPineX.jpg";
}
function Camel(){document.Table.src="Images/LouisSandX.jpg";
}

function EPEvergreen(){document.Table.src="Images/ElDoradoPEvergreen.jpg";
}
function EPRoyal(){document.Table.src="Images/ElDoradoPRoyal.jpg";
}
function EPBurgundy(){document.Table.src="Images/ElDoradoPBurgundy.jpg";
}
function EPSpruce(){document.Table.src="Images/ElDoradoPPine.jpg";
}
function EPCamel(){document.Table.src="Images/ElDoradoPSand.jpg";
}

function EWEvergreen(){document.Table.src="Images/ElDoradoWEvergreen.jpg";
}
function EWRoyal(){document.Table.src="Images/ElDoradoWRoyal.jpg";
}
function EWBurgundy(){document.Table.src="Images/ElDoradoWBurgundy.jpg";
}
function EWSpruce(){document.Table.src="Images/ElDoradoWPine.jpg";
}
function EWCamel(){document.Table.src="Images/ElDoradoWSand.jpg";
}

function PPEvergreen(){document.Table.src="Images/PoseidonPEvergreen.jpg";
}
function PPRoyal(){document.Table.src="Images/PoseidonPRoyal.jpg";
}
function PPBurgundy(){document.Table.src="Images/PoseidonPBurgundy.jpg";
}
function PPSpruce(){document.Table.src="Images/PoseidonPPine.jpg";
}
function PPCamel(){document.Table.src="Images/PoseidonPSand.jpg";
}

function PWEvergreen(){document.Table.src="Images/PoseidonWEvergreen.jpg";
}
function PWRoyal(){document.Table.src="Images/PoseidonWRoyal.jpg";
}
function PWBurgundy(){document.Table.src="Images/PoseidonWBurgundy.jpg";
}
function PWSpruce(){document.Table.src="Images/PoseidonWPine.jpg";
}
function PWCamel(){document.Table.src="Images/PoseidonWSand.jpg";
}

function GEvergreen(){document.Table.src="Images/GeorgianEvergreenX.jpg";
}
function GRoyal(){document.Table.src="Images/GeorgianRoyalX.jpg";
}
function GBurgundy(){document.Table.src="Images/GeorgianBurgundyX.jpg";
}
function GSpruce(){document.Table.src="Images/GeorgianPineX.jpg";
}
function GCamel(){document.Table.src="Images/GeorgianSandX.jpg";
}

function GWEvergreen(){document.Table.src="Images/GeorgianWEvergreenX.jpg";
}
function GWRoyal(){document.Table.src="Images/GeorgianWRoyalX.jpg";
}
function GWBurgundy(){document.Table.src="Images/GeorgianWBurgundyX.jpg";
}
function GWSpruce(){document.Table.src="Images/GeorgianWPineX.jpg";
}
function GWCamel(){document.Table.src="Images/GeorgianWSandX.jpg";
}

function GPEvergreen(){document.Table.src="Images/GeorgianPEvergreenX.jpg";
}
function GPRoyal(){document.Table.src="Images/GeorgianPRoyalX.jpg";
}
function GPBurgundy(){document.Table.src="Images/GeorgianPBurgundyX.jpg";
}
function GPSpruce(){document.Table.src="Images/GeorgianPPineX.jpg";
}
function GPCamel(){document.Table.src="Images/GeorgianPSandX.jpg";
}

function VEvergreen(){document.Table.src="Images/VictoriaEvergreenX.jpg";
}
function VRoyal(){document.Table.src="Images/VictoriaRoyalX.jpg";
}
function VBurgundy(){document.Table.src="Images/VictoriaBurgundyX.jpg";
}
function VSpruce(){document.Table.src="Images/VictoriaPineX.jpg";
}
function VCamel(){document.Table.src="Images/VictoriaSandX.jpg";
}

function VPEvergreen(){document.Table.src="Images/VictoriaPEvergreenX.jpg";
}
function VPRoyal(){document.Table.src="Images/VictoriaPRoyalX.jpg";
}
function VPBurgundy(){document.Table.src="Images/VictoriaPBurgundyX.jpg";
}
function VPSpruce(){document.Table.src="Images/VictoriaPPineX.jpg";
}
function VPCamel(){document.Table.src="Images/VictoriaPSandX.jpg";
}

function ChEvergreen(){document.Table.src="Images/ChippendaleEvergreenX.jpg";
}
function ChRoyal(){document.Table.src="Images/ChippendaleRoyalX.jpg";
}
function ChBurgundy(){document.Table.src="Images/ChippendaleBurgundyX.jpg";
}
function ChSpruce(){document.Table.src="Images/ChippendalePineX.jpg";
}
function ChCamel(){document.Table.src="Images/ChippendaleSandX.jpg";
}

function REvergreen(){document.Table.src="Images/RenaissanceEvergreenX2.jpg";
}
function RRoyal(){document.Table.src="Images/RenaissanceRoyalX2.jpg";
}
function RBurgundy(){document.Table.src="Images/RenaissanceBurgundyX2.jpg";
}
function RSpruce(){document.Table.src="Images/RenaissancePineX2.jpg";
}
function RCamel(){document.Table.src="Images/RenaissanceSandX2.jpg";
}

function RWEvergreen(){document.Table.src="Images/RenaissanceWEvergreenX2.jpg";
}
function RWRoyal(){document.Table.src="Images/RenaissanceWRoyalX2.jpg";
}
function RWBurgundy(){document.Table.src="Images/RenaissanceWBurgundyX2.jpg";
}
function RWSpruce(){document.Table.src="Images/RenaissanceWPineX2.jpg";
}
function RWCamel(){document.Table.src="Images/RenaissanceWSandX2.jpg";
}
//----------other pages--

function switchIntro(){document.Intro.src="Images/IntED.jpg";
}
function switchIntrob(){document.Intro.src="Images/IntE.jpg";
}
function switchCat(){document.Cat.src="Images/CatED.jpg";
}
function switchCatb(){document.Cat.src="Images/CatE.jpg";
}

function switchPri(){document.Pri.src="Images/PriED.jpg";
}
function switchPrib(){document.Pri.src="Images/PriE.jpg";
}
function switchOrd(){document.Ord.src="Images/OrdED.jpg";
}
function switchOrdb(){document.Ord.src="Images/OrdE.jpg";
}
function switchCon(){document.Con.src="Images/ConED.jpg";
}
function switchConb(){document.Con.src="Images/ConE.jpg";
}
 function switchOrdSt(){document.OrdSt.src="Images/OrdStED.jpg";
}
function switchOrdStb(){document.OrdSt.src="Images/OrdStE.jpg";
}
function switchHom(){document.Home.src="Images/HomED.jpg";
}
function switchHomb(){document.Home.src="Images/HomE.jpg";
}
//switchOrdSt

//---------------calendar functions---
function dayArray() {
       d=new Array();
        d.length=7;
       d[0] = "Sunday",d[1] = "Monday", d[2] = "Tuesday";
       d[3] = "Wednesday", d[4] = "Thursday", d[5] = "Friday";
       d[6] = "Saturday";
        return(d);
}
function monthArray() {
        m=new Array();
        m.length=12;
        m[0] = "January", m[1] = "February", m[2] = "March";
        m[3] = "April", m[4] = "May", m[5] = "June";
        m[6] = "July", m[7] = "August", m[8] = "September";
        m[9] = "October", m[10] = "November", m[11] = "December";
        return(m);
}
function toDate() {

     todo=new Date();
     dayName = new dayArray();
     monthName = new monthArray();
     day=todo.getDay();
     month=todo.getMonth();
     num=todo.getDate();
     year=todo.getYear();
     document.write(dayName[day]+", "+ monthName[month]+" "+num);
}


function toYear() {

     todo=new Date();

     year=todo.getYear();
     document.write(year);
}



//----------------------validation functions----------------------

function isEmpty(Text,imgName){

  if (Text.value == "" || Text.value == null) {
    Text.focus();
    alert("Field  " + Text.name + " is required.");
    checkMarkOff(imgName);
    return false;
   }
  else if (Text.value.length >30){
     alert("You are allowed to enter maximum of 30 characters in " + Text.name + " field.");
    checkMarkOff(imgName);
    return false;
   }
  else{
     checkMarkOn(imgName);
     capLetter(Text);
     return true;
   }
                
}



function capLetter(Text){
    temp=new String(Text.value);
    letter=temp.substring(0,1);
    temp=letter.toUpperCase() + temp.substring(1,temp.length);

    appIndex = temp.indexOf("'");
 if (appIndex>-1){
     appLetter=temp.substring(appIndex+1,appIndex+2);
     temp=temp.substring(0,appIndex) +"'"+ appLetter.toUpperCase() + temp.substring(appIndex+2);
     }


   spaceIndex = temp.indexOf(" ");
 if (spaceIndex >- 1){
     spaceLetter=temp.substring(spaceIndex+1,spaceIndex+2);
     temp=temp.substring(0,spaceIndex) +" "+ spaceLetter.toUpperCase() + temp.substring(spaceIndex+2);
     }

    Text.value=temp;
}


function isEmail(Text,imgName){

  if (Text.value == "" || Text.value == null) {
    Text.focus();
    alert("All fields are required.");
    checkMarkOff(imgName);
    return false;
   }
   else if (Text.value.length >30){
     alert("You are allowed to enter maximum of 30 characters in " + Text.name + " field.");
    checkMarkOff(imgName);
    return false;
   }
  else{

      temp=new String(Text.value);

        if ( temp.indexOf("@") == -1 ||  temp.indexOf("." ) == -1){
          alert("This is not a valid E-mail Address. Please verify entered data.");
          checkMarkOff(imgName);
          Text.focus();
          Text.select();
           return false;
          }
           else{
         checkMarkOn(imgName);
    
           return true;
          }
         }
}


function checkMarkOn(imgName){
document.images[imgName].src="Images/WebsiteDesignersACheck.gif";
}

function checkMarkOff(imgName){
document.images[imgName].src="Images/WebsiteDesigners0D0D4D.gif";
}


function isPhone(Text,imgName) {
     temp=new String(Text.value);
     temp2=new String("");
     temp3=new String("");
     var oneChar;


  if (Text.value == "" || Text.value == null) {
           Text.focus();
           alert("All fields are required.");
           checkMarkOff(imgName);
            return false;
         }
  else{

          for (var i = 0; i <temp.length; i++) {
            oneChar = temp.charAt(i);
             if (oneChar >= "0" && oneChar <= "9")
             temp2=temp2+ oneChar; 
             }
          
          if (temp2.length == 10){
             checkMarkOn(imgName);
             temp2="("+temp2.substring(0,3) +") "+temp2.substring(3,6)+ "-"+temp2.substring(6);
             Text.value=temp2;
             return true;
             }
          else if (Text.value.length >15){
           alert("You are allowed to enter maximum of 15 characters in " + Text.name + " field.");
           checkMarkOff(imgName);
           return false;
           }
         else{
             alert("Phone number should have 10 digits including area code. Please verify entered data.");
             checkMarkOff(imgName);
             Text.focus();
             Text.select();
             return false;
             }

         }

}
//---------------validation before submission----------
function validateSubmit(form){
    temp= new String("");
    temp2= new String("");

   if ( form.Contact.value != "" && form.Contact.value != null)
 { if ( form.Contact.value.length < 30)

  {   if (form.Company.value != "" && form.Company.value != null)
     { if ( form.Company.value.length < 30)
      {   if (form.Email.value != "" && form.Email.value != null)
         { if ( form.Email.value.length < 30) 
          {   temp=form.Email.value;
               if (temp.indexOf("@") > -1 && temp.indexOf(".") > -1)
               {    if (form.Phone.value != "" && form.Phone.value != null)
                    { if ( form.Phone.value.length < 15) 
                    {   temp=form.Phone.value;
                          for (var i = 0; i <temp.length; i++) {
                          oneChar = temp.charAt(i);
                          if (oneChar >= "0" && oneChar <= "9")
                          temp2=temp2+ oneChar;}
                          if (temp2.length == 10)
                          {   
                              form.submit();
                              
                           }
                           else
                           {alert("Phone Number should have 10 digits including area code. Please verify.");}        

                        }
                       else
                       {alert("The maximum amount of characters you can enter in Phone Number field is 15 ");} 
                      }
                      else
                      {alert("The field Phone Number must be completed");}      
                 }
                 else
                 {alert("This is not a valid E-mail Address. Please verify.");}
               }
               else
               {alert("The maximum amount of characters you can enter in  E-mail Address field is 30 ");} 
            }
            else
            {alert("The field E-mail Address must be completed");}
         }
         else
         {alert("The maximum amount of characters you can enter in  Company Name field is 30 ");}
       }
      else
      {alert("The field Company Name must be completed");}
    }
 else
  {alert("The maximum amount of characters you can enter in  Contact Name field is 30 ");}
 }
 else
  {alert("The field Contact Name must be completed");}


}
//--------------------clearForm--------------------
function clearForm(form){
  for (var i=0;i<form.length;i++)
  form.elements[i].value="";

   form.Company.value="NA";
   form.Comments.value="Contact Me";

  form.Cont.src="Images/WebsiteDesigners0D0D4D.gif";
  form.Comp.src="Images/WebsiteDesigners0D0D4D.gif";
  form.Addr.src="Images/WebsiteDesigners0D0D4D.gif"; 
  form.Phon.src="Images/WebsiteDesigners0D0D4D.gif";
}
//------------------openSpecialWindow--------------------
function specialOffer()
{ 
var a="Special.htm"
 win = open(a,"Special","toolbar=no,width=479,height=233,directories=no,status=no,scrollbars=no,resize=no,menubar=no,align=top");
 }




//------prevent doule submission-----
var flagSubmit = false;

function checkSubmit(form)
{
  if(!flagSubmit)
    flagSubmit = true;
  else
    return false;
  return true;
}

//-->