LNAVD="h|s|f|c|a|u";
HNAVD="h|q|ff|n|orgm|wrwph";
FNAVD="h|myintra|add|nel";
APP_HEADD="Welcome to New York Senior Care ";
HEAD_ICOND="title.gif";

function get_url(name)
{
 var url="";
 switch (name)
 {
  case("s"): url="Services|services.php"; break;
  case("uid"): url="User ID Information|"; break;
  case("site_save"): url="Sitemap|/sitemap.html"; break;
  case("site"): url="Sitemap|"; break;
  case("home"): url="Home|/"; break;
  case("h"): url="Home|index.php"; break;
  case("wh"): url="Home|/"; break;
  case("queries"): url="Queries|/queries.html"; break;
  case("a"): url="Activities|activities.php"; break;
  case("help"): url="Help|/help.html"; break;
  case("ff"): url="Features|/servicesq.html"; break;
  case("hlp"): url="Help|index1.html"; break;
  case("faq"): url="FAQ|/cgi-bin/faq";break;
  case("f"): url="Features|features.php";break;
  case("ffaq"): url="FAQ|/cgi-bin/faq";break;
  case("ff"): url="FAQ|/cgi-bin/faq";break;
  case("services"): url="Features|/servicesq.html"; break;
  case("updates"): url="News|/News.html";break;
  case("wu"): url="News|News.html";break;
  case("u"): url="Contact Us|contact.php";break;
  case("people"): url="People|/peopleq.html";break;
  case("loc"): url="Locations|/locq.html";break;
  case("l"): url="Locations|/locq.html";break;
  case("gener"): url="General|/genq.html";break;
  case("g"): url="General|/genq.html";break;
  case("c"): url="Community|community.php";break;
  case("dynam"): url="Dynamic|/cgi-bin/pq-o";break;
  case("d"): url="Dynamic|/cgi-bin/pq-o";break;
  case("db"): url="Attributes|/attribs.html";break;
  case("mass"): url="Massmail|";break;
 }
return(url);
}

function h_nav()
{
if (typeof HNAV != "undefined") var Names=HNAV.split("|");
else
          var Names=HNAVD.split("|");
var lenNames=Names.length;
var ind=1;
for (var i=0;i<lenNames;i++)
{
 var url=get_url(Names[i]);
 var nm=url.split("|")[0];
 var ur=url.split("|")[1];
 h_menu(nm,ur,ind);
 ind=0;
}
}

function l_nav()
{
if (typeof LNAV != "undefined") var Names=LNAV.split("|");
else      var Names=LNAVD.split("|");
var lenNames=Names.length;
var ind=1;
for (var i=0;i<lenNames;i++)
{
 var url=get_url(Names[i]);
 var nm=url.split("|")[0];
 var ur=url.split("|")[1];
 l_menu(nm,ur,ind);
 ind=0;
}
}

function f_nav()
{
if (typeof FNAV != "undefined") var Names=FNAV.split("|");
else      var Names=FNAVD.split("|");

//alert(FNAVD);

var lenNames=Names.length;
var ind=1;
for (var i=0;i<lenNames;i++)
{
 var url=get_url(Names[i]);
 var nm=url.split("|")[0];
 var ur=url.split("|")[1];
 f_menu(nm,ur,ind);
 ind=0;
}
 f_menu(nm,ur,2);
}

function orgMail()
{
 window.open("/orgmail.html","_blank");
}
  

function sel_head_img()
{
var  head_gif="header_800.jpg";
if (screen.width>900) head_gif="header_900.jpg";
if (screen.width>1000) head_gif="header_1024.jpg";
if (screen.width>1100) head_gif="header_1100.jpg";
if (screen.width>1200) head_gif="header_1200.jpg";
if (screen.width>1300) head_gif="header_1300.jpg";
if (screen.width>1400) head_gif="header_1400.jpg";
if (screen.width>1500) head_gif="header_1500.jpg";
if (screen.width>1600) head_gif="header_1600.jpg";
return (head_gif);
}

