/******************************************************************************* jquery.mb.components Copyright (c) 2001-2010. Matteo Bicocchi (Pupunzi); Open lab srl, Firenze - Italy email: info@pupunzi.com site: http://pupunzi.com Licences: MIT, GPL ******************************************************************************/ /* * jQuery.mb.components: mb.mediaEmbedder * version: 1.0- 23-gen-2010 - 55 * © 2001 - 2010 Matteo Bicocchi (pupunzi), Open Lab * */ (function ($) { $.mb_videoEmbedder = { name:"jquery.mb.videoEmbedder", version:1.0, author:"Matteo Bicocchi", defaults: { width:450, youtube:{ showTitle:false }, called: false }, regEx:/\[(.*?)\]/g, mb_setMovie:function (context, pat, embedString) { // console.debug(context); // console.debug(pat); // console.debug(embedString); function findMovieAndEmbed(node, pat, embedString) { var skip = 0; if (pat.indexOf("&") != -1) pat = pat.replace(/&/g, "&"); if (node.nodeType == 3) { var pos = node.data.toUpperCase().indexOf(pat); if (pos >= 0) { // teoros //var embed = $('