

XFlash.addFactory( 
	"tituloInternas", 
	function ( elData )
	{
		var r = 
		{
			src: "/export/system/modules/br.com.cooperforte.instituto.site/resources/global/swf/titulo.swf",
			width: $( elData.element ).width(),
			height: $( elData.element ).height(),
			flashvars:
			{
				c : "555555",
				i : "false",
				f : "",
				t: $( elData.element ).text(),
				largura: $( elData.element ).width(),
				altura: $( elData.element ).height(),
				s: parseInt( $( elData.element ).css( 'font-size' ) )
			}
		}
		return r;
	}
)

XFlash.addFactory( 
	"tituloBox", 
	function ( elData )
	{
		var width = $(elData.element).parents(".envieAmigo").length > 0 ? 360 : $( elData.element ).width();
		var height = $(elData.element).parents(".envieAmigo").length > 0 ? 25 : $( elData.element ).height();
		
		var r = 
		{
			src: "/export/system/modules/br.com.cooperforte.instituto.site/resources/global/swf/titulo.swf",
			width: width,
			height: height,
			flashvars:
			{
				c : "7E7455",
				i : "false",
				f : "",
				t: $( elData.element ).text(),
				largura: width,
				altura: height,
				s: parseInt( $( elData.element ).css( 'font-size' ) )
			}
		}
		
		return r;
	}
)


XFlash.addFactory( 
	"tituloSemBox", 
	function ( elData )
	{
		var r = 
		{
			src: "/export/system/modules/br.com.cooperforte.instituto.site/resources/global/swf/titulo.swf",
			width: $( elData.element ).width(),
			height: $( elData.element ).height(),
			flashvars:
			{
				c : "7E7455",
				i : "false",
				f : "",
				t: $( elData.element ).text(),
				largura: $( elData.element ).width(),
				altura: $( elData.element ).height(),
				s: parseInt( $( elData.element ).css( 'font-size' ) )
			}
		}
		return r;
	}
)

XFlash.addFactory( 
	"displayAudioPequeno", 
	function ( elData )
	{
		var r = 
		{
			src: "/export/system/modules/br.com.cooperforte.instituto.site/resources/global/swf/audioPlayer.swf",
			width: $( elData.element ).width(),
			height: $( elData.element ).height(),
			flashvars:
			{
				url : $( elData.element ).attr("title")
			}
		}
		$( elData.element ).attr("title", "").width("auto");
		return r;
	}
)


XFlash.addFactory( 
	"audioPlayerGrande", 
	function ( elData )
	{
		var r = 
		{
			src: "/export/system/modules/br.com.cooperforte.instituto.site/resources/global/swf/audioPlayerGrande.swf",
			width: $( elData.element ).width(),
			height: $( elData.element ).height(),
			flashvars:
			{
				url : $( elData.element ).attr("title")
			}
		}
		$( elData.element ).attr("title", "").width("auto");
		return r;
	}
)

XFlash.addFactory( 
	"exibeProgramas", 
	function ( elData )
	{
		var r = 
		{
			src: "/export/system/modules/br.com.cooperforte.instituto.site/resources/global/swf/slideDestaques.swf",
			width: $( elData.element ).width(),
			height: $( elData.element ).height(),
			params:
			{
				wmode : "transparent"
			},
			flashvars:
			{
				url : "/opencms/system/modules/br.com.cooperforte.instituto.site/resources/global/xml/programas.xml"
			}
		}
		$( elData.element ).attr("title", "").width("auto");
		return r;
	}
)

XFlash.addFactory( 
	"tituloTabela", 
	function ( elData )
	{
		var r = 
		{
			src: "/export/system/modules/br.com.cooperforte.instituto.site/resources/global/swf/titulo.swf",
		       	width: $( elData.element ).hasClass("propriedade") ? 177 : $( elData.element ).hasClass("indicacao") ? 100 : 262,
			height: 20,
			flashvars:
			{
				c : "7E7455",
				i : "false",
				f : "",
				t: $( elData.element ).text(),
				s: parseInt( $( elData.element ).css( 'font-size' ) )
			}
		}
		return r;
	}
)


XFlash.addFactory( 
	"loaderVideo", 
	function ( elData )
	{
		var r = 
		{
			src: "/export/system/modules/br.com.cooperforte.instituto.site/resources/global/swf/videoPlayer.swf",
			width: $( elData.element ).width(),
			height: $( elData.element ).height(),
			flashvars:
			{
				url : $( elData.element ).attr("title")
			}
		}
		$( elData.element ).attr("title", "");
		return r;
	}
)


XFlash.addFactory( 
	"loaderVideoHome", 
	function ( elData )
	{
		var r = 
		{
			src: "/export/system/modules/br.com.cooperforte.instituto.site/resources/global/swf/videoPlayerHome.swf",
			width: $( elData.element ).width(),
			height: $( elData.element ).height(),
			flashvars:
			{
				url : $( elData.element ).attr("title")
			}
		}
		$( elData.element ).attr("title", "");
		return r;
	}
)

XFlash.addFactory( 
	"mapaFlash", 
	function ( elData )
	{
		var r = 
		{
			src: "/export/system/modules/br.com.cooperforte.instituto.site/resources/global/swf/mapaEstados.swf",
			width: $( elData.element ).width(),
			height: $( elData.element ).height(),
			flashvars:
			{
				call : $( elData.element ).attr("title")
			}
		}
		$( elData.element ).attr("title", "");
		$( elData.element ).height(($( elData.element ).height()- 80 ));
		return r;
	}
)

XFlash.addFactory( 
	"menuInstituto", 
	function ( elData )
	{
		var r = 
		{
			src: "/export/system/modules/br.com.cooperforte.instituto.site/resources/global/swf/titulo.swf",
			width: $( elData.element ).width(),
			height: $( elData.element ).height(),
			flashvars:
			{
				c : "7e7455",
				i : "false",
				f : "",
				l: $( elData.element ).attr("href"),
				t: $( elData.element ).text(),
				largura: $( elData.element ).width(),
				altura: $( elData.element ).height(),
				s: parseInt( $( elData.element ).css( 'font-size' ) )
			}
		}
		return r;
	}
)



XFlash.flashVersion = 8;
XFlash.cache = false;