Written , flatly , by David Kendall and directed , barely , by There 's Something About Mary co-writer Ed Decter .