function exibe(w,h,wmode,movie) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+w+'" height="'+h+'">');
	document.write('<param name="wmode" value="transparent"/>');
	document.write('<param name="quality" value="high"/>');	
	document.write('<param name="movie" value="'+movie+'"/>');
	document.write('<embed src="'+movie+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="'+wmode+'" width="'+w+'" height="'+h+'"></embed>');
	document.write('</object>');
}


// JavaScript Document

//===============================================================================

//= ABRE POP-UP CENTRALIZADO ====================================================

//===============================================================================

var win = null;

function NewWindow(mypage,myname,w,h,scroll){

	LeftPosition = parseInt((screen.width) ? (screen.width-w)/2 : 0);

	TopPosition = parseInt((screen.height) ? (screen.height-h)/2 : 0);

	settings = 'width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',noresizable,status=yes'

	win = window.open(mypage,myname,settings)

}





//===============================================================================

//= REDIMENSIONA POP-UP =========================================================

//===============================================================================

function Redimensiona(w, h) {

	//Corrige o tamanho da janela

	if (navigator.appName == "Microsoft Internet Explorer") {

		w = parseInt(w) + 10;

		h = parseInt(h) + 48;

	} else {

		w = parseInt(w) + 6;

		h = parseInt(h) + 49;

	};

	// IE 7

	var nversao = navigator.appVersion;

	var nresult = nversao.search(/\bMSIE 7.0\b/g);

	if (nresult > 0) {

		h = parseInt(h) + 28;

	};

	//

	window.resizeTo(w, h);

	LeftPosition =  parseInt((screen.width) ? (screen.width-w)/2 : 0);

	TopPosition =  parseInt((screen.height) ? (screen.height-h)/2 : 0);

	window.moveTo(LeftPosition,TopPosition);

	window.focus();

}

