function writeswfhtml(nome, width, height, html) {
	document.writeln('<object type="application/x-shockwave-flash" data="'+ nome +'.swf" width="'+ width +'" height="'+ height +'">');
	document.writeln('<param name="movie" value="'+ nome +'.swf" />');
	document.writeln('<param name="quality" value="high" />');
	document.writeln('<param name="wmode" value="transparent">');	
	document.writeln(html);
	document.writeln('</object>');
}

function writeswfhtml2(nome, width, height, html, paramextra) {
	document.writeln('<object type="application/x-shockwave-flash" data="includes/swf/'+ nome +'.swf" width="'+ width +'" height="'+ height +'">');
	document.writeln('<param name="movie" value="includes/swf/'+ nome +'.swf" />');
	document.writeln('<param name="quality" value="high" />');
	document.writeln(paramextra);
	document.writeln(html);
	document.writeln('</object>');
}

function showVideo(linkvideo, width, height)
{
	//document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+width+'" height="'+height+'">');
	//document.writeln('<param name="movie" value="'+linkvideo+'" />');
	//document.writeln('<param name="quality" value="high" />');
	//document.writeln('<param name="wmode" value="transparent">');
	//document.writeln('<embed src="'+linkvideo+'" width="'+width+'" height="'+height+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" WMode="Transparent"></embed>');
	//document.writeln('</object>');
	
	document.writeln('<object width="'+width+'" height="'+height+'">');

	document.writeln('<param name="movie" value="'+linkvideo+'" />');
    
    document.writeln('<param name="allowscriptaccess" value="always" /><param name="allowfullscreen" value="true" />');
    
    document.writeln('<param name="wmode" value="window" />');
    
    document.writeln('<embed width="'+width+'" height="'+height+'" allowfullscreen="true" wmode="window" src="'+linkvideo+'" allowscriptaccess="always" type="application/x-shockwave-flash">');
    
    document.writeln('</embed>');
    
    document.writeln('</object>');
}

function playerPodcast(nome, file, width, height, html) {
	document.writeln('<object type="application/x-shockwave-flash" data="'+ nome +'.swf?soundPlayer='+file+'" width="'+ width +'" height="'+ height +'">');
	document.writeln('<param name="movie" value="'+ nome +'.swf?soundPlayer='+file+'" />');
	document.writeln('<param name="quality" value="high" />');
	document.writeln('<param name="wmode" value="transparent">');	
	document.writeln(html);
	document.writeln('</object>');
}