var slideHome = function ( elData )
{		
	var $this = $( elData.element );

	var r = 
	{
		src: '/portal/recursos/global/swf/destaqueHomeExportacao.swf',
		width: 998,
		height: 417,
		flashvars:
		{
			service: '/portal/recursos/destaques.xml'
		}
	}
	

	return r;
}

XFlash.addFactory( "destaque", slideHome );


var videos = function ( elData )
{		
	var $this = $( elData.element );
		/*width = parseInt( $this.css( "width" ) ),
		height = parseInt( $this.css( "height" ) );*/
	
	var r = 
	{
		src: '/portal/recursos/global/swf/videoPlayer.swf',
		width:  548,
		height: 270,
		flashvars:
		{
			src: $this.attr("src")
		}
	}

	return r;
}

XFlash.addFactory( "videoPlayer", videos );


var audios = function ( elData )
{		
	var $this = $( elData.element ),
		width = parseInt( $this.css( "width" ) ),
		height = parseInt( $this.css( "height" ) );
	var r = 
	{
		src: '/portal/recursos/global/swf/audioPlayer.swf',
		width: width,
		height: height,
		flashvars:
		{
			src: $this.attr("musica"),
			title: $this.attr("titulo"),
			date: $this.attr("data"),
                        autostart:false
		}
	}
	

	return r;
}

XFlash.addFactory( "mp3Player", audios );


XFlash.flashVersion = "9.0.0";
XFlash.cache = false;
