﻿var swfTag = new Class(
{
	swf__tag: function()
	{
		$(tag.get('id')).setHTML('<span class="noflash-title">'+tag.get('text')+'</span>');
		var so = new SWFObject(topic__url, "loader", parseInt(String(tag.get('text')).length)*parseInt(tag.get('size'))/2+20, parseInt(tag.get('size'))*1.4, 9,'ffffff');
		so.addParam("scale", "noscale");
		so.addParam("quality", "high");
		so.addParam("menu", "false");
		so.addParam("wmode", "transparent");
		//so.useExpressInstall('wp-content/themes/eLearning/swf/exp.swf');
		props.each(function(item)
		{
			if(String(item).split('|')[1] == '' || String(item).split('|')[1] == 'undefined' && searchFor.getProperty(String(item).split('|')[0]) != null && searchFor.getProperty(String(item).split('|')[0]) != '')
			{
				so.addVariable(String(item).split('|')[0], searchFor.getProperty(String(item).split('|')[0]));
			}
		});
		so.write(tagData);
	}
})
