function desc(fl,la,al){
document.write ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+la+'" height="'+al+'">');
document.write ('<param name="movie" value="'+fl+'">');
document.write ('<param name="wmode" value="transparent">');
document.write ('<param name="quality" value="high">');
document.write (' <embed src="'+fl+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" swLiveConnect=true width="'+la+'" height="'+al+'"></embed></object>');
}

function flash(fl,la,al){
document.write ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+la+'" height="'+al+'" ID=fscommand>');
document.write ('<param name="movie" value="'+fl+'">');
document.write ('<param name="wmode" value="transparent">');
document.write ('<param name="quality" value="high">');
document.write (' <embed src="'+fl+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" swLiveConnect=true NAME=fscommand width="'+la+'" height="'+al+'"></embed></object>');
}

function swf(fl,la,al){
document.write ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+la+'" height="'+al+'" ID=fscommandVideo>');
document.write ('<param name="movie" value="'+fl+'">');
document.write ('<param name="wmode" value="transparent">');
document.write ('<param name="quality" value="high">');
document.write (' <embed src="'+fl+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" swLiveConnect=true NAME=fscommandVideo width="'+la+'" height="'+al+'"></embed></object>');
}

function video(vd,la,al){
document.write ('<object type="video/x-ms-wmv" data="'+vd+'" width="'+la+'" height="'+al+'">');
document.write ('<param name="src" value="'+vd+'" />');
document.write ('<param name="autostart" value="true" />');
document.write ('<param name="controller" value="true" />');
document.write ('</object>');
}


//****************************************************
//**  Programador Flavio Chapela 
//**  Funcao objNavegador
//**  Ação: Recuperar Objetos da Pagina
//**  Data 23/04/2007
//**  Lang: Jscript
//****************************************************
function objNavegador(id)
{
  if (document.getElementById)
  {
    return document.getElementById(id);
  }
  else if (document.all)
  {
    return document.all[id];
  }
  else if (document.layers)
  {
    return document.layers[id];
  }
  else return false;
}

//***********************************************************
//**  Programador Flavio Chapela 
//**  Funcao createXMLHttpRequest
//**  Ação: Retorna doc. Xml Assincrono, por fila de espera
//**  Data 23/04/2007
//**  Lang: Jscript
//***********************************************************
//Fila de conexões
fila=[]
ifila=0
function createXMLHttpRequest() {
	/*
		Interface genérica para acesso ao conector remoto.
	*/
   try{ return new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){}
   try{ return new ActiveXObject("Microsoft.XMLHTTP"); }catch(e){}
   try{ return new XMLHttpRequest(); }catch(e){}
   alert("XMLHttpRequest sem suporte.");
   return null;
}
	
var xhReq = createXMLHttpRequest();

function xhSend(){
	
	// var conteudo = objNavegador(fila[ifila][2]);
		   
    //Carregando
    //var carga = "<center>Carregando...</center>"   
    //conteudo.innerHTML=carga;    
	
	
	xhReq.open("get",fila[ifila][0],true);
	xhReq.setRequestHeader('Content-Type','text/x-www-form-urlencoded');
	//xhReq.setRequestHeader('Content-Lenght',form_string.lenght);
	
		
    xhReq.onreadystatechange = function(){						
											
        if (xhReq.readyState==4){										
            //Lê o texto								
            var texto=xhReq.responseText;											
            //Desfaz o urlencode							
            texto=texto.replace(/\+/g," ");						
            texto=unescape(texto);											
            //Exibe o texto no div conteúdo						
            var conteudo = objNavegador(fila[ifila][2]);	
			conteudo.innerHTML=texto;
            //lyCarga.style.visibility = 'hidden';
            
            //Roda o próximo
            ifila++
            if(ifila<fila.length)setTimeout("xhSend()",20)
								}
			}	
									
    xhReq.send(fila[ifila][3]);
    //ResizeLayer();
}











//***********************************************************
//**  Programador Flavio Chapela 
//**  Funcao Navegar
//**  Ação: Açao de Chamada da Url para fila de espera
//**  Data 23/04/2007
//**  Lang: Jscript
//***********************************************************
function Navegar(url,divEntrega)
{
	var info =  '';
	var formulario = '';
	 //Adiciona à fila
    fila[fila.length]=[url,formulario,divEntrega,info]
    //Se não há conexões pendentes, executa
    if((ifila+1)==fila.length)xhSend();
	//ResizeLayer();
}
 
 function scriptVB()
 {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub fscommand_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call fscommand_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('Sub fscommandVideo_FSCommand(ByVal command, ByVal args)\n');
	document.write('call fscommandVideo_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
 }