String concatentation issue...i think

can anyone point out to me why this isnt working please…ps - i suck at js and im sure it has something to do with how im joining my strings:


function changeHover(navstate)
{
 var navtabs = new Array()
 navtabs[0] = "homepage"
 navtabs[1] = "reserve"
 navtabs[2] = "locations"
 
 for (i = 0; i < navtabs.length; i++)
 {
  if(navtabs* == navstate)
  {
   //do nothing
  } else {
   navtabs*.onmouseover = "SwapPic(this, 'tab_'" + navtabs* + "'_selected.gif')";
   navtabs*.onmouseout = "SwapPic(this, 'tab_'" + navtabs* + "'.gif')";
  }
 }

called by: changeHover(‘homepage’);

any thoughts? thank you!

by the way, sample of wat the above changes in the HTML:


<img src="tab_home.gif" id="homepage" border="0">