Also, on the gun salutes:

the custom originates in naval tradition, where a warship would harmlessly fire out to sea, until all ammo was spent, to show that it was disarmed, signifying a lack of hostile intent...

or something to that affect