Answered my own question, posting here in case others have the same issue. Apparently the problem was with the variable name ph... must be a namespace issue with jQuery.
Changing the variable to xph in the script made it work fine in FF3 and IE7. Stu