automatic weight problem

I am still having trouble with automatic weights.Here is my blend with a metarig.How would i fix automatic weights?Are there some hidden settings i can use to fix it.http://www.pasteall.org/blend/30123

I found out what the problem was.I had enable bone envelops in the armature modifier.