function InsereFlash(Arquivo, Largura, Altura, FlashVars) {
	document.write('<OBJECT codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"');
	document.write('height="' + Altura + '" width="' + Largura + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" VIEWASTEXT>');
	document.write('<PARAM NAME="_cx" VALUE="15425">');
	document.write('<PARAM NAME="_cy" VALUE="741">');
	document.write('<PARAM NAME="FlashVars" VALUE="' + FlashVars + '">');
	document.write('<PARAM NAME="Movie" VALUE="' + Arquivo + '">');
	document.write('<PARAM NAME="Src" VALUE="' + Arquivo + '">');
	document.write('<PARAM NAME="WMode" VALUE="Transparent">');
	document.write('<PARAM NAME="Play" VALUE="-1">');
	document.write('<PARAM NAME="Loop" VALUE="-1">');
	document.write('<PARAM NAME="Quality" VALUE="High">');
	document.write('<PARAM NAME="SAlign" VALUE="">');
	document.write('<PARAM NAME="Menu" VALUE="-1">');
	document.write('<PARAM NAME="Base" VALUE="">');
	document.write('<PARAM NAME="AllowScriptAccess" VALUE="">');
	document.write('<PARAM NAME="Scale" VALUE="ShowAll">');
	document.write('<PARAM NAME="DeviceFont" VALUE="0">');
	document.write('<PARAM NAME="EmbedMovie" VALUE="0">');
	document.write('<PARAM NAME="BGColor" VALUE="">');
	document.write('<PARAM NAME="SWRemote" VALUE="">');
	document.write('<PARAM NAME="MovieData" VALUE="">');
	document.write('<PARAM NAME="SeamlessTabbing" VALUE="1">');
	document.write('<PARAM NAME="Profile" VALUE="0">');
	document.write('<PARAM NAME="ProfileAddress" VALUE="">');
	document.write('<PARAM NAME="ProfilePort" VALUE="0">');
	document.write('<embed src="' + Arquivo + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ');
	document.write('type="application/x-shockwave-flash" width="' + Largura + '" height="' + Altura + '" FlashVars="' + FlashVars + '"> </embed>');
	document.write('</OBJECT>');
}

function InsereVideo(Arquivo, Largura, Altura) {
	document.write('<OBJECT ID="MediaPlayer1" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" type="application/x-oleobject"  width="' + Largura + '" height="' + Altura + '" VIEWASTEXT>"');
	document.write('<PARAM NAME="FileName" VALUE="' + Arquivo + '">');
	document.write('<PARAM NAME="animationatStart" VALUE="TRUE">');
	document.write('<PARAM NAME="transparentatStart" VALUE="FALSE">');
	document.write('<PARAM NAME="autoStart" VALUE="true">');
	document.write('<PARAM NAME="autoSize" VALUE="false">');
	document.write('<PARAM NAME="showStatusBar" VALUE="true">');
	document.write('<PARAM NAME="showControls" VALUE="true">');
	document.write('<PARAM NAME="showDisplay" VALUE="false">');
	document.write('<EMBED type="application/x-mplayer2" pluginspage="mms://www.microsoft.com/windows/windowsmedia/intl/download/default.asp?DispLang=br" SRC="' + Arquivo + '" width="' + Largura + '" height="' + Altura + '" AutoStart=true showControls=false showDisplay=false>');
	document.write('</EMBED></OBJECT>');
}

function MudaTamanho(Objeto, Tamanho) {
	// Deixa os ícones dimados
	document.getElementById('imgTam1').src = '/DeiVerbum/Web/Comum/Elemento/TextoTam1D.gif';
	document.getElementById('imgTam2').src = '/DeiVerbum/Web/Comum/Elemento/TextoTam2D.gif';
	document.getElementById('imgTam3').src = '/DeiVerbum/Web/Comum/Elemento/TextoTam3D.gif';
	
	// Verifica o tamanho selecionado
	document.getElementById(Objeto).className = 'TextoPadraoCell' + Tamanho;
	document.getElementById('imgTam' + Tamanho).src = '/DeiVerbum/Web/Comum/Elemento/TextoTam' + Tamanho + '.gif';
}

function Recomendar(Titulo, Descricao, Local, IDLocal) {
	window.open('/DeiVerbum/Web/Indique/Indique.aspx?Titulo=' + Titulo + '&Descricao=' + Descricao + '&Local=' + Local + '&IDLocal=' + IDLocal, 'Recomendar', 'width=500, height=300, status=yes');
}

function CallMenu(src) {
	location.href = '/DeiVerbum/Web/Home/Home.aspx';
}

function CallNoticia(IDNoticia) {
	location.href = '/DeiVerbum/Web/Noticia/NoticiaDet.aspx?IDNoticia=' + IDNoticia + '&Pagina=1';
}
