window.addEvent('domready', function(){

	var M = new Modulos();
	M.getModulos();

		$$('div[class=swfobject]').each(function(item,index){
		    item.id = 'swfobject' + index;
		    var size = item.getSize();
		    var json = JSON.decode(item.get('text'));
		    var flashvars = json.flashvars;
		    var params = {menu:"false",scale:"noScale",allowFullScreen:"true",wmode:"transparent"};
		    var attributes = {};
		    Object.append(flashvars,{width:size.x,height:size.y});
		    swfobject.embedSWF(json.swf, item.id , size.x, size.y, "9.0.0","", flashvars, params, attributes);
		});




});

