jQuery(function(a){var b=foswiki.getPreference("PUBURLPATH")+"/"+foswiki.getPreference("SYSTEMWEB")+"/JQueryPlugin";a.fn.media.defaults.mp3Player=b+"/plugins/media/mediaplayer/player.swf";a.fn.media.defaults.flvPlayer=b+"/plugins/media/mediaplayer/player.swf";a.fn.media.defaults.params={bgColor:"#000",allowfullscreen:true};a(".jqMedia:not(.jqInitedMedia)").livequery(function(){var d=a(this),c=a.extend({caption:"",skin:"stormtrooper"},d.metadata());if(c.autoplay){c.flashvars=a.extend({},c.flashvars,{autostart:true})}if(c.skin){c.flashvars=a.extend({},c.flashvars,{skin:b+"/plugins/media/skins/"+c.skin+".zip"})}d.addClass("jqInitedMedia");d.find("a[href]").each(function(){a(this).media(c)})})});