The etiquette of visitations and funerals will help you navigate through the process if you've lost a loved one, and show you how to help if someone close to you has lost a family member and need to lean on your strength for support through this sad time. http://www.mannersmentor.com/
Funeral etiquette - TWO EDITS: 1.) Mormon - Funerals take place in a Mormon Church, not a temple. 2.) Muslim - Depending on the family, there may be nothing wrong with giving flowers. Though caskets are not used, foundations of stone and cement are set within the grave. This is to exemplify that all people receive the same burial, regardless of social status, ethnicity, etc.