// Pre-load some images

Home1= new Image(150,32)
Home1.src = "./navigationHome.gif"

Home2= new Image(150,32)
Home2.src = "./navigationHome2.gif"

AboutUs1= new Image(150,32)
AboutUs1.src = "./navigationAboutUs.gif"

AboutUs2= new Image(150,32)
AboutUs2.src = "./navigationAboutUs2.gif"

Services1= new Image(150,32)
Services1.src = "./navigationServices.gif"

Services2= new Image(150,32)
Services2.src = "./navigationServices2.gif"

Equipment1= new Image(150,32)
Equipment1.src = "./navigationEquipment.gif"

Equipment2= new Image(150,32)
Equipment2.src = "./navigationEquipment2.gif"

Recycling1= new Image(150,32)
Recycling1.src = "./navigationRecycling.gif"

Recycling2= new Image(150,32)
Recycling2.src = "./navigationRecycling2.gif"

Estimate1= new Image(150,32)
Estimate1.src = "./navigationEstimate.gif"

Estimate2= new Image(150,32)
Estimate2.src = "./navigationEstimate2.gif"

Contact1= new Image(150,32)
Contact1.src = "./navigationContactUs.gif"

Contact2= new Image(150,32)
Contact2.src = "./navigationContactUs2.gif"

LiArrow= new Image(22,9)
LiArrow.src = "./li-navarrow.gif"

// DYNAMIC MENU ENGINE
function OpenSection(strSection) {
  // declarations
  var objElement;
  var strSectionsToClose = new Array("AboutUs", "Services", "Equipment", "Recycling", "Estimate");
  // hide all sections
  for (var i=0 ; i<strSectionsToClose.length ; i++) {
    objElement = document.getElementById(strSectionsToClose[i]);
    objElement.style.display = "none";
  }
  // show appropriate section
  if (strSection != "") {
//    LowestLevel("hide");
    objElement = document.getElementById(strSection);
    objElement.style.display = "block";
//    parent.main.location = "ProductSplash-" + strSection + ".html";
  } else LowestLevel("show");
}
function LowestLevel(hide) {
  objElement = document.getElementById("LowestLevel");
  objElement.style.display = (hide=="hide"?"none":"block");
  objElement = document.getElementById("Back");
  objElement.style.display = (hide=="hide"?"block":"none");
}


function checkForm() {
   var flag="true";
   
   if (document.quoteform.contact.value == "") {
        alert("Please enter a contact name.");         
        flag = "false";
   }
   if (document.quoteform.phone.value == "") {
        alert("Please enter your phone number.");         
        flag = "false";        
   }   
   if (flag == "false") {
        return false;
   }
   else {
        return true;
   }
}

