okay I'm going to see if I can get some help. I've moved the script around and still I'm running into problems.
detectPlugin( 'QuickTime' ) == true ) is where I think the issue is.