//---------------- Abre PopUp ----------------------
function popup(pTarget,pFeatures) { //v3.0
	//The link(file) is the attribute HREF
	//The parameter 'pTarget' must be the same of attribute TARGET and is the WinName value
	//Features: menubar=[yes|no],scrollbars=[yes|no],width=[value],height=[value],resizable=[0|1]
	newwin = window.open('',pTarget,pFeatures);
}
//-->

//---------------- Write Embed (flash) ----------------------
function writeEmbed(pName, swfFile, swfWidth, swfHeight, flashVars, pWmode, pClass){
	document.write(
		'<OBJECT'
		+ ' classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'
		+ ' name="' + pName + '"'
		+ ' id="' + pName + '"'
		+ ' class="' + pClass + '"'
		+ ' width="' + swfWidth +'"'
		+ ' height="' + swfHeight +'"'
		+ ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0">'
		+ '<PARAM name="movie" value="' + swfFile + '">'
		+ '<PARAM name="loop" value="false">'
		+ '<PARAM name="quality" value="Best">'
		+ '<PARAM name="menu" value="true">'
		+ '<PARAM name="allowScriptAccess" value="always">'
		+ '<PARAM name="FlashVars" value="' + flashVars + '">'
		+ '<PARAM name="wmode" value="' + pWmode + '">'
		+ '<EMBED'
		+ ' name="' + pName + '"'
		+ ' id="' + pName + '"'
		+ ' src="' + swfFile +'"'
		+ ' width="' + swfWidth +'"'
		+ ' height="' + swfHeight +'"'
		+ ' loop="false"'
		+ ' quality="Best"'
		+ ' class="' + pClass +'"'
		+ ' menu="true"'
		+ ' FlashVars="' + flashVars +'"'
		+ ' wmode="' + pWmode + '"'
		+ ' allowScriptAccess="always"' 
		+ ' type="application/x-shockwave-flash"'
		+ ' pluginspage="http://www.macromedia.com/go/getflashplayer"'
		+ '</EMBED>'
		+ '</OBJECT>');
}//-->

//---------------- Carrega Pagina (Segmentos/Solucoes) ----------------------
function CarregaPagina(pObjeto){
	document.location.href = pObjeto.value;
}