/* ActiveX */
function objectSwf(swf,width,height,flashvars,wmode, id) {
	document.write('<object type="application/x-shockwave-flash" width="' + width + '" height="' + height + '" data="' + swf + '" id="' + id + '" >');
	document.write('<param name="movie" value="' + swf + '" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="menu" value="false" />');
	document.write('<param name="wmode" value="'+wmode+'" />');
	document.write('<param name="FlashVars" value="'+flashvars+'" />');
    document.write('<param name="allowFullScreen" value="true" />');
	document.write('<embed src="' + swf + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" allowFullScreen="true" allowScale="false" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '" wmode="'+wmode+'" id="' + id + '" ></embed>');
	document.write('</object>');
}

/* Cria objActiveX na posição desejada */
function objectSwfDiv(oDiv,swf,width,height,flashvars,wmode) {
	var alvo 				=	document.getElementById(oDiv);
	if( alvo ) {
		alvo.innerHTML		=	'<object type="application/x-shockwave-flash" width="' + width + '" height="' + height + '" data="' + swf + '">';
		alvo.innerHTML		+=	'<param name="movie" value="' + swf + '" />';
		alvo.innerHTML		+=	'<param name="quality" value="high" />';
		alvo.innerHTML		+=	'<param name="menu" value="false" />';
		alvo.innerHTML		+=	'<param name="wmode" value="'+wmode+'" />';
		alvo.innerHTML		+=	'<param name="FlashVars" value="'+flashvars+'" />';
        alvo.innerHTML      +=  '<param name="allowFullScreen" value="true" />';
		alvo.innerHTML		+=	'<embed src="' + swf + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" allowFullScreen="true" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '" wmode="'+wmode+'"></embed>';
		alvo.innerHTML		+=	'</object>';
	} else {
		// Alvo nao localizado na pagina
		alert("ActiveX error 001");
	}
}
