<!--
function findObj(n, d) { //v4.01
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n); return x;
}

//---------------- 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);
}

//---------------- Mostra e Esconde Layers ----------------------
function showHideLayers() { //v9.0
  var i,p,v,obj,args=showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'block':(v=='hide')?'none':v; }
    obj.display=v; }
}

//---------------- Insere OBJECT (SWF) ----------------------
function writeEmbed(pName, swfFile, swfWidth, swfHeight, flashVars, pWmode, pClass){
	
	var swfversion = "9.0.45.0";
	
	document.write(		   
		'<object'
			+ ' classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'
			+ ' name="' + pName + '"'
			+ ' id="' + pName + '"'
			+ ' class="' + pClass + '"'
			+ ' width="' + swfWidth +'"'
			+ ' height="' + swfHeight +'">'
			+ '<param name="movie" value="' + swfFile + '">'
			+ '<param name="play" value="true">'
			+ '<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 + '">'
			+ '<param name="swfversion" value="'+swfversion+'" />'
		
			// This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt.
			+ '<param name="expressinstall" value="../scripts/java/expressInstall.swf" />'
			
			// Next object tag is for non-IE browsers. So hide it from IE using IECC. -->              
			+ '<!--[if !IE]>-->'
			+ '<object type="application/x-shockwave-flash" data="'+swfFile+'" width="'+swfWidth+'" height="'+swfHeight+'">'
			+ '<!--<![endif]-->'
			+ '<param name="movie" value="' + swfFile + '">'
			+ '<param name="play" value="true">'
			+ '<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 + '">'
			+ '<param name="swfversion" value="'+swfversion+'" />' //versão do flash player
			+ '<param name="expressinstall" value="../scripts/java/expressInstall.swf" />'
			
			// The browser displays the following alternative content for users with Flash Player 6.0 and older.
			+ '<div>'
			+ '  <h4>Esta p&aacute;gina requer uma nova vers&atilde;o mais recente do Adobe Flash Player.</h4>'
			+ '  <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Instalar Flash player" width="112" height="33" style="border:0px" /></a></p>'
			+ '</div>'
			
			+ '<!--[if !IE]>-->'
			+ '</object>'
			+ '<!--<![endif]-->'
		+ '</object>'
				
		+ '<script type="text/javascript">'
		+ '<!--'
		+ 'swfobject.registerObject("'+pName+'");'
		+ '//-->'
		+ '</script>'		
		);
}
//-->