var varBrowser = "Other";

if(navigator.appName.indexOf("Netscape",0) == 0) {
  varBrowser = "Netscape";
}
else {
  if ((navigator.appName.indexOf("Microsoft",0) == 0) || (navigator.appName.indexOf("MS",0) == 0)) {
    varBrowser = "MSIE";
  }
}

if(document.images) {
  this[1] = new Image();
  this[1].src = "images/n/join_roll2.gif";
  this[2] = new Image();
  this[2].src = "images/n/events_roll2.gif";
  this[3] = new Image();
  this[3].src = "images/n/games_roll3.gif";
  this[4] = new Image();
  this[4].src = "images/n/groups_roll1.gif";
  this[5] = new Image();
  this[5].src = "images/n/marketplace_roll2.gif";
  this[6] = new Image();
  this[6].src = "images/n/members_roll1.gif";
  this[7] = new Image();
  this[7].src = "images/n/pubs_roll1.gif";
  this[8] = new Image();
  this[8].src = "images/n/programs_roll4.gif";
}

function swapIt(imgName,imgType,imgAction) {
  if (document.images) {
    if (imgAction == 1) {
      switch(imgType) {
        case "Join": 
          newSrc="images/n/join_roll2.gif";
          break
        case "Events1": 
          newSrc="images/n/events_roll2.gif";
          break
        case "Games": 
          newSrc="images/n/games_roll3.gif";
          break
        case "Groups": 
          newSrc="images/n/groups_roll1.gif";
          break
        case "Marketplace":
          newSrc="images/n/marketplace_roll2.gif"
          break
        case "Members": 
          newSrc="images/n/members_roll1.gif";
          break
        case "Publications":
          newSrc="images/n/pubs_roll1.gif";
          break
        case "Programs":
          newSrc="images/n/programs_roll4.gif"; 
          break
      }
    }
    else {
      switch(imgType){
        case "Join":
          newSrc="images/n/join3.gif";
          break
        case "Events1":
          newSrc="images/n/events3.gif";
          break
        case "Games":
          newSrc="images/n/games3.gif";
          break
        case "Groups":
          newSrc="images/n/groups1.gif";
          break
        case "Marketplace":
          newSrc="images/n/marketplace1.gif";
          break
        case "Members":
          newSrc="images/n/members1.gif";
          break
        case "Publications":
          newSrc="images/n/pubs1.gif";
          break
        case "Programs":
          newSrc="images/n/programs4.gif";
          break
      }
    }
    document.images[imgName].src = newSrc;
    
  }
}