refactored function which calls the div used to display the flashplayer