startListSSSS = function ()
{
	document.getElementById("opcCadAnuncio").className="menuLI"
	document.getElementById("opcAdmLocacao").className="menuLI"
	document.getElementById("opcCobLocacao").className="menuLI"
	document.getElementById("opcPrestContas").className="menuLI"
	document.getElementById("opcMeuCR").className="menuLI"
	document.getElementById("opcContratos").className="menuLI"
	document.getElementById("opcCobContratos").className="menuLI"
	document.getElementById("opcBaixaBoleto").className="menuLI"
	document.getElementById("opcTabelas").className="menuLI"
	document.getElementById("opcRelatorios").className="menuLI"
	if (document.all&&document.getElementById)
	{
		navRoot=document.getElementById("nav");
		navRoot.className="menuUL";
		for (i=0; i<navRoot.childNodes.length; i++)
		{
			node=navRoot.childNodes[i];
			if (node.nodeName=="LI")
			{
				node.onmouseover=function ()
				{
					document.getElementById("ifMenu").className="iFrameMenu";
					this.className+=" over";
				}
				node.onmouseout=function()
				{
					document.getElementById("ifMenu").className="iFrameMenuInvisivel";
					this.className=this.className.replace(" over","");
				}
			}
		}
	}
	tempo();
	posicionacursor();
}

startListSSSN = function ()
{
	document.getElementById("opcCadAnuncio").className="menuLI"
	document.getElementById("opcAdmLocacao").className="menuLI"
	document.getElementById("opcCobLocacao").className="menuLI"
	document.getElementById("opcPrestContas").className="menuLI"
	document.getElementById("opcMeuCR").className="menuLI"
	document.getElementById("opcContratos").className="menuLIInvisivel"
	document.getElementById("opcCobContratos").className="menuLIInvisivel"
	document.getElementById("opcBaixaBoleto").className="menuLIInvisivel"
	document.getElementById("opcTabelas").className="menuLIInvisivel"
	document.getElementById("opcRelatorios").className="menuLI"
	if (document.all&&document.getElementById)
	{
		navRoot=document.getElementById("nav");
		navRoot.className="menuUL";
		for (i=0; i<navRoot.childNodes.length; i++)
		{
			node=navRoot.childNodes[i];
			if (node.nodeName=="LI")
			{
				node.onmouseover=function ()
				{
					document.getElementById("ifMenu").className="iFrameMenu";
					this.className+=" over";
				}
				node.onmouseout=function()
				{
					document.getElementById("ifMenu").className="iFrameMenuInvisivel";
					this.className=this.className.replace(" over","");
				}
			}
		}
	}
	tempo();
	posicionacursor();
}

startListSSNN = function ()
{
	document.getElementById("opcCadAnuncio").className="menuLI"
	document.getElementById("opcAdmLocacao").className="menuLI"
	document.getElementById("opcCobLocacao").className="menuLI"
	document.getElementById("opcPrestContas").className="menuLI"
	document.getElementById("opcMeuCR").className="menuLIInvisivel"
	document.getElementById("opcContratos").className="menuLIInvisivel"
	document.getElementById("opcCobContratos").className="menuLIInvisivel"
	document.getElementById("opcBaixaBoleto").className="menuLIInvisivel"
	document.getElementById("opcTabelas").className="menuLIInvisivel"
	document.getElementById("opcRelatorios").className="menuLI"
	if (document.all&&document.getElementById)
	{
		navRoot=document.getElementById("nav");
		navRoot.className="menuUL";
		for (i=0; i<navRoot.childNodes.length; i++)
		{
			node=navRoot.childNodes[i];
			if (node.nodeName=="LI")
			{
				node.onmouseover=function ()
				{
					document.getElementById("ifMenu").className="iFrameMenu";
					this.className+=" over";
				}
				node.onmouseout=function()
				{
					document.getElementById("ifMenu").className="iFrameMenuInvisivel";
					this.className=this.className.replace(" over","");
				}
			}
		}
	}
	tempo();
	posicionacursor();
}

startListSNNN = function ()
{
	document.getElementById("opcCadAnuncio").className="menuLIInvisivel"
	document.getElementById("opcAdmLocacao").className="menuLIInvisivel"
	document.getElementById("opcCobLocacao").className="menuLIInvisivel"
	document.getElementById("opcPrestContas").className="menuLIInvisivel"
	document.getElementById("opcMeuCR").className="menuLIInvisivel"
	document.getElementById("opcContratos").className="menuLIInvisivel"
	document.getElementById("opcCobContratos").className="menuLIInvisivel"
	document.getElementById("opcBaixaBoleto").className="menuLIInvisivel"
	document.getElementById("opcTabelas").className="menuLIInvisivel"
	document.getElementById("opcRelatorios").className="menuLIInvisivel"
	if (document.all&&document.getElementById)
	{
		navRoot=document.getElementById("nav");
		navRoot.className="menuUL";
		for (i=0; i<navRoot.childNodes.length; i++)
		{
			node=navRoot.childNodes[i];
			if (node.nodeName=="LI")
			{
				node.onmouseover=function ()
				{
					document.getElementById("ifMenu").className="iFrameMenu";
					this.className+=" over";
				}
				node.onmouseout=function()
				{
					document.getElementById("ifMenu").className="iFrameMenuInvisivel";
					this.className=this.className.replace(" over","");
				}
			}
		}
	}
	tempo();
	posicionacursor();
}

startListSNSS = function ()
{
	document.getElementById("opcCadAnuncio").className="menuLIInvisivel"
	document.getElementById("opcAdmLocacao").className="menuLIInvisivel"
	document.getElementById("opcCobLocacao").className="menuLIInvisivel"
	document.getElementById("opcPrestContas").className="menuLIInvisivel"
	document.getElementById("opcMeuCR").className="menuLI"
	document.getElementById("opcContratos").className="menuLI"
	document.getElementById("opcCobContratos").className="menuLI"
	document.getElementById("opcBaixaBoleto").className="menuLI"
	document.getElementById("opcTabelas").className="menuLI"
	document.getElementById("opcRelatorios").className="menuLIInvisivel"
	if (document.all&&document.getElementById)
	{
		navRoot=document.getElementById("nav");
		navRoot.className="menuUL";
		for (i=0; i<navRoot.childNodes.length; i++)
		{
			node=navRoot.childNodes[i];
			if (node.nodeName=="LI")
			{
				node.onmouseover=function ()
				{
					document.getElementById("ifMenu").className="iFrameMenu";
					this.className+=" over";
				}
				node.onmouseout=function()
				{
					document.getElementById("ifMenu").className="iFrameMenuInvisivel";
					this.className=this.className.replace(" over","");
				}
			}
		}
	}
	tempo();
	posicionacursor();
}

startListSNSN = function ()
{
	document.getElementById("opcCadAnuncio").className="menuLIInvisivel"
	document.getElementById("opcAdmLocacao").className="menuLIInvisivel"
	document.getElementById("opcCobLocacao").className="menuLIInvisivel"
	document.getElementById("opcPrestContas").className="menuLIInvisivel"
	document.getElementById("opcMeuCR").className="menuLI"
	document.getElementById("opcContratos").className="menuLIInvisivel"
	document.getElementById("opcCobContratos").className="menuLIInvisivel"
	document.getElementById("opcBaixaBoleto").className="menuLIInvisivel"
	document.getElementById("opcTabelas").className="menuLIInvisivel"
	document.getElementById("opcRelatorios").className="menuLIInvisivel"
	if (document.all&&document.getElementById)
	{
		navRoot=document.getElementById("nav");
		navRoot.className="menuUL";
		for (i=0; i<navRoot.childNodes.length; i++)
		{
			node=navRoot.childNodes[i];
			if (node.nodeName=="LI")
			{
				node.onmouseover=function ()
				{
					document.getElementById("ifMenu").className="iFrameMenu";
					this.className+=" over";
				}
				node.onmouseout=function()
				{
					document.getElementById("ifMenu").className="iFrameMenuInvisivel";
					this.className=this.className.replace(" over","");
				}
			}
		}
	}
	tempo();
	posicionacursor();
}

startListSNNS = function ()
{
	document.getElementById("opcCadAnuncio").className="menuLIInvisivel"
	document.getElementById("opcAdmLocacao").className="menuLIInvisivel"
	document.getElementById("opcCobLocacao").className="menuLIInvisivel"
	document.getElementById("opcPrestContas").className="menuLIInvisivel"
	document.getElementById("opcMeuCR").className="menuLIInvisivel"
	document.getElementById("opcContratos").className="menuLI"
	document.getElementById("opcCobContratos").className="menuLI"
	document.getElementById("opcBaixaBoleto").className="menuLI"
	document.getElementById("opcTabelas").className="menuLI"
	document.getElementById("opcRelatorios").className="menuLIInvisivel"
	if (document.all&&document.getElementById)
	{
		navRoot=document.getElementById("nav");
		navRoot.className="menuUL";
		for (i=0; i<navRoot.childNodes.length; i++)
		{
			node=navRoot.childNodes[i];
			if (node.nodeName=="LI")
			{
				node.onmouseover=function ()
				{
					document.getElementById("ifMenu").className="iFrameMenu";
					this.className+=" over";
				}
				node.onmouseout=function()
				{
					document.getElementById("ifMenu").className="iFrameMenuInvisivel";
					this.className=this.className.replace(" over","");
				}
			}
		}
	}
	tempo();
	posicionacursor();
}

startListSSNS = function ()
{
	document.getElementById("opcCadAnuncio").className="menuLI"
	document.getElementById("opcAdmLocacao").className="menuLI"
	document.getElementById("opcCobLocacao").className="menuLI"
	document.getElementById("opcPrestContas").className="menuLI"
	document.getElementById("opcMeuCR").className="menuLIInvisivel"
	document.getElementById("opcContratos").className="menuLI"
	document.getElementById("opcCobContratos").className="menuLI"
	document.getElementById("opcBaixaBoleto").className="menuLI"
	document.getElementById("opcTabelas").className="menuLI"
	document.getElementById("opcRelatorios").className="menuLI"
	if (document.all&&document.getElementById)
	{
		navRoot=document.getElementById("nav");
		navRoot.className="menuUL";
		for (i=0; i<navRoot.childNodes.length; i++)
		{
			node=navRoot.childNodes[i];
			if (node.nodeName=="LI")
			{
				node.onmouseover=function ()
				{
					document.getElementById("ifMenu").className="iFrameMenu";
					this.className+=" over";
				}
				node.onmouseout=function()
				{
					document.getElementById("ifMenu").className="iFrameMenuInvisivel";
					this.className=this.className.replace(" over","");
				}
			}
		}
	}
	tempo();
	posicionacursor();
}

startListInvisivel = function ()
{
	navRoot=document.getElementById("nav");
	navRoot.className="menuULInvisivel";
}

funcoesiniciais = function ()
{
//	tempo();
	posicionacursor(); 
}


tempo = function ()
{
	var ntempo;
	
	if (document.getElementById("iTempo").value=='')
	{
		document.getElementById("iTempo").value = 1
	}
	else
	{
		ntempo=document.getElementById("iTempo").value;
		ntempo=ntempo*1+1;
		document.getElementById("iTempo").value=ntempo;
	}
	if (document.getElementById("iTempo").value=='600')
	{
		location.href=document.forms[0].action;
		document.getElementById("iTempo").value=1;
	}
    setTimeout("tempo()",1000);
}


posicionacursor = function ()
{
	if (document.Form1.title=='login.aspx')
	{
		document.Form1['LoginSSL1_tbSenha'].focus();
		return;
	}
	if (document.Form1['Cabecalho1_tbObjFocus'].value=='')
		return;
	if (document.Form1['Cabecalho1_tbObjFocus'].value=='LocacaoMenu1_ascxComanda_ascxComandaCad_tbProdutoQtidade')
	{
		document.Form1['LocacaoMenu1_ascxComanda_ascxComandaCad_tbProdutoQtidade'].focus();
		document.Form1['LocacaoMenu1_ascxComanda_ascxComandaCad_tbProdutoQtidade'].select();
		document.Form1['Cabecalho1_tbObjFocus'].value='';
		return;
	}
	if (document.Form1['Cabecalho1_tbObjFocus'].value=='ContratoAnunciante1_ascxContratoAnuncianteCad_ascxComandaCad_tbProdutoQtidade')
	{
		document.Form1['ContratoAnunciante1_ascxContratoAnuncianteCad_ascxComandaCad_tbProdutoQtidade'].focus();
		document.Form1['ContratoAnunciante1_ascxContratoAnuncianteCad_ascxComandaCad_tbProdutoQtidade'].select();
		document.Form1['Cabecalho1_tbObjFocus'].value='';
		return;
	}
	if (document.Form1['Cabecalho1_tbObjFocus'].value=='LocacaoMenu1_ascxComanda_ascxComandaCad_tbProduto')
	{
		document.Form1['LocacaoMenu1_ascxComanda_ascxComandaCad_tbProduto'].focus();
		document.Form1['Cabecalho1_tbObjFocus'].value='';
		return;
	}
	if (document.Form1['Cabecalho1_tbObjFocus'].value=='LocacaoMenu1_ascxComanda_ascxComandaCad_tbIdentificacao')
	{
		document.Form1['LocacaoMenu1_ascxComanda_ascxComandaCad_tbIdentificacao'].focus();
		document.Form1['Cabecalho1_tbObjFocus'].value='';
		return;	
	}
	if (document.Form1['Cabecalho1_tbObjFocus'].value=='LocacaoMenu1_ascxComanda_ascxComandaCad_ddlTipoPgto')
	{
		document.Form1['LocacaoMenu1_ascxComanda_ascxComandaCad_ddlTipoPgto'].focus();
		document.Form1['Cabecalho1_tbObjFocus'].value='';
		return;
	}
}
