jQuery(function(d){d.fn.media.defaults.mp3Player=foswiki.getPreference("PUBURLPATH")+"/"+foswiki.getPreference("SYSTEMWEB")+"/JQueryPlugin/plugins/media/mediaplayer/player.swf";d.fn.media.defaults.flvPlayer=foswiki.getPreference("PUBURLPATH")+"/"+foswiki.getPreference("SYSTEMWEB")+"/JQueryPlugin/plugins/media/mediaplayer/player.swf";d.fn.media.defaults.players.flash.eAttrs.allowfullscreen="true";var c=new Array();for(var e in d.fn.media.defaults.players){var f=d.fn.media.defaults.players[e].types;if(f){f=f.split(/\s*,\s*/);for(var b=0;b<f.length;b++){c.push(f[b])}}}var a="a[href*=."+c.join("], a[href*=.")+"]";d(".jqMedia:not(.jqInitedMedia)").livequery(function(){var h=d(this);h.addClass("jqInitedMedia");var g=d.extend({caption:""},h.metadata());h.find(a).each(function(){d(this).media(g)})})});