function montaFlash(movie, width, height, wmode, FlashVars){  
	var swf  = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'width="'+ width +'" height="'+ height +'"'
    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<param name="movie" value="'+ movie +'" /><param name="quality" value="high" /><param name="devicefont" value="true" /><param name="wmode" value="'+ wmode +'" /><param name="FlashVars" value="'+ FlashVars +'" />'
    + '<embed src="'+ movie +'" quality="high" devicefont="true" '
    + 'width="'+ width +'" height="'+ height +'" align="middle"'
    + 'play="true"'
    + 'loop="false"'
    + 'quality="high"'
    + 'wmode="'+ wmode +'"'
    + 'allowScriptAccess="sameDomain"'
    + 'type="application/x-shockwave-flash"'
    + 'FlashVars="'+ FlashVars +'"'
    + 'pluginspage="http://www.macromedia.com/go/getflashplayer"'
    + '><\/embed>'
    + '<\/object>';
	document.write(swf);
}
function OpenPreviewPopup(arq, width, height, scroll){   
	var URL = arq 
	var W = width 
	var H = height 
	var S = scroll 

	 var Wpopupsize =(W/2); 
	 var Hpopupsize =(H/2); 
	 var CenterPopUpX = (screen.width/2)-(Wpopupsize); 
	 var CenterPopUpY = (screen.height/2)-(Hpopupsize); 
	 var pos = "left="+CenterPopUpX+",top="+CenterPopUpY; 
	 var desktop = window.open( ""+URL, "", "width="+W+",height="+H+",toolbar=no,location=no,status=no,menubar=no,scrollbars="+S+",resizable=no,"+pos); 
}