﻿   var curMenu = "cc";
   function showMenu(obj,state) {
      document.getElementById(curMenu+"Menu").style.textDecoration = "none";
      document.getElementById(obj+"Menu").style.textDecoration = "underline";
   }
   function showSubMenu(obj,state) {
      document.getElementById(curMenu+"SubLinks").className = "hidden";
      document.getElementById(obj+"SubLinks").className = "homeNavSubLinks";
      curMenu = obj;
   }
   function checkForEnterClick(e) {
		   var key = (window.event) ? event.keyCode : e.keyCode;
		   if (key == 13) {
			    getStarted();
			    return false;
		   } else
			    return true;
     }
  function getStarted() {
     var zipcode = document.getElementById("txtZIPCode").value;
     var typeList = document.getElementById("ddlHomeFindA");
     var type = typeList.options[typeList.selectedIndex].value;
     if (zipcode.length > 0) {
        if (type > 5) {
           type -= 5;
           window.location = "/job_search.aspx?type=" + type + "&zipcode=" + zipcode;
        } else {
           window.location = "/provider_search.aspx?type=" + type + "&zipcode=" + zipcode;
        }
     }
  }
  function hover(obj,state) {
      document.getElementById(obj).src = "/images/" + obj + state + ".png";
  }