function popUp(url,target,width,height) {
windowX = Math.ceil( (window.screen.width - width) / 2 );
windowY = Math.ceil( (window.screen.height - height) / 2 );
window.open(url, target, "toolbar=no, location=no, directories=no, status=no, menubar=no, resizeable=no, width=" + width + ",height=" + height +", left=" + windowX +", top=" + windowY);
}



function GetFlash(nome,w,h) {
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="'+w+'" height="'+h+'">\n');

document.write('<PARAM NAME="movie" VALUE="'+nome+'.swf" />\n');
document.write('<PARAM NAME="quality" VALUE="best" />\n');
document.write('<PARAM NAME="wmode" VALUE="transparent" />\n');
document.write('<PARAM NAME="menu" VALUE="false" />\n');
document.write('<PARAM NAME="allowScriptAccess" VALUE="sameDomain" />\n');
document.write('<PARAM NAME="allowFullScreen" VALUE="false" />\n');

document.write('<EMBED src="'+nome+'.swf" wmode="transparent" menu="false" quality="best" width="'+w+'" height="'+h+'" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer">\n');

document.write('</embed>\n');
document.write('</object>\n');
}
