The roof valley flashing shall be provided of not less than No. 28 gauge pre-painted baked enamel metal applied over an underlayment of not less than Type 30 felt. The metal shall extend at least 11" from the centerline each way. Hips and ridges can be site-fabricated, or factory-formed hip and ridge units can be used. Weather exposure should be the same as that used in applying shakes in the field of the roof, and nails should be of sufficient length (usually 8d) to firmly attach the hip and ridge shakes to the underlying sheathing. Flashing and counter-flashing should be applied as illustrated.