function abrir_swf(DIR,SWF,W,H)
{
	var obj_str = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+W+'" height="'+H+'">';
	obj_str += '<param name="movie" value="'+DIR+'/'+SWF+'.swf" />';
	obj_str += '<param name="quality" value="high" />';
	obj_str += '<param name="wmode" value="transparent" />';
	obj_str += '<embed src="'+DIR+'/'+SWF+'.swf" width="'+W+'" height="'+H+'" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent">';
	obj_str += '</embed>';
	obj_str += '</object>';
	//document.div_flash.innerHTML = obj_str;
	document.write(obj_str);
}

function abrir_wmv(DIR2,WMV2,W2,H2)
{
	var obj_str2 = '<embed type="application/x-mplayer2"';
	obj_str2 += 'id="MaxPlayer"';
	obj_str2 += 'name="MaxPlayer"';
	obj_str2 += 'pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/" bgcolor="000000"';
	obj_str2 += 'showstatusbar="true"';
	obj_str2 += 'autostart="false"';
	obj_str2 += 'controller="true"';
	obj_str2 += 'loop="false"';
	obj_str2 += 'src="'+DIR2+'/'+WMV2+'.wmv" width="'+W2+'" height="'+H2+'">';
	obj_str2 += '</embed>';
	document.write(obj_str2);
}