WARNING: This page is about a different car, the 2007 Mazda B3000. However, it is still accessible from the selected car via links, so may be relevant.
Fig 1: Identifying Spark Plug Wires, Heater Hose Support And Ignition Coil Electrical Connector
Courtesy of MAZDA MOTORS CORP.
Fig 2: Identifying Crank Case Ventilation Tube, A/C Vacuum And Main Vacuum Hose
Courtesy of MAZDA MOTORS CORP.
Fig 3: Exploded View Of Valve Cover With Torque Specifications