function ShowWeapons(show) {
  var hide = 1-show;
  objshow = document.getElementById("Weapons" + show);
  objhide = document.getElementById("Weapons" + hide);
  if (objshow) {
    objshow.style.position = "relative";
    objshow.style.left = "0px";
  }
  if (objhide) {
    objhide.style.position = "absolute";
    objhide.style.left = "-2000px";
  }
  return false;
}
function ChangeWeapon(ref) {
  document.location.href = ref;
  return true;
}

function ShowWeapTip(weapon_id, show, row, url) {
  obj = document.getElementById('Weapon_' + weapon_id);
  if (show) {
    row.style.background = 'url(' + SiteURL  + 'images/site/TableRowRed.gif)';
    if (obj) {
      obj.style.left= (80 - (obj.clientWidth / 2)) + 'px';
/*alert(obj.offsetTop + ' ' + obj.offsetParent.offsetTop); */
      obj.style.top = (row.offsetTop - 0) + 'px';
    }
  } else {
    row.style.background = 'url(' + SiteURL  + 'images/site/TableRow.gif)';
    if (obj) {
      obj.style.left= '-2000px';
    }
  }
}

function ShowWeapDesc(desc, show, row, url) {
  obj = document.getElementById('WeaponDesc' + desc);

  if (show) {
    if (obj) {
      obj.style.left= (116 - (obj.clientWidth / 2) + row.offsetLeft) + 'px';
/*alert(obj.offsetTop + ' ' + obj.offsetParent.offsetTop); */
      obj.style.top = (row.offsetTop - 0) + 'px';
    }
  } else {
    if (obj) {
      obj.style.left= '-2000px';
    }
  }
}



