include jQuery UI slide effects
Pass media type from toolbox link to var newMedia