ahh, u almost got it.
PHP Code:
findweapon(temp.selected).image; // without the "this." part
"this" in a weapon, is the weapon object (this.name would be the name of the weapon),
and "findweapon()" is the weapon object (findweapon().name would be the name of the weapon)