// --------------------------------------
// Todas as variaveis fixas sao definidas 
// com "str" na frente de seus nomes e as 
// temporárias sao definidas com "t".
// --------------------------------------

// Parametros dos Afiliados
var strAfiliado = 'Telemar';	// Nome Afiliado
var strPathAf = '/af_telemar/';	// Pasta do afiliado
var strPathDefault = '/afiliados/';	// Pasta do core afiliado
var strImgLadoEsq = strPathAf + 'images/logo_mapas_online.gif'; // Local Imagem
var strCSS = strPathAf + 'afiliados.css';
var strCategoria = 72; // Numero sistema Spolti

var strBackground = '6319A7'; // BackGround padrão

// Parametros de Cookies e Referers
var tCookieDefault = strAfiliado + '_HOME'; // Cookie Default Cliente
var tCookieAtual = '';
var tLocationPassado = '';
var tLocationReferrer= '';

var tReferenciaPO = '';

// Parametros da Navegacao
var tLastPage = '';

//Origem
var strOrigem;

//Variaveis Usuario
var tNome='', tId_User=0, tNivelUser=0; // Nome do Cliente - Id_User - Nivel do Usuario

//Variaveis Páginas
var strConteudo='index.htm', strMenu='inc_menu_off.htm', strLog='inc_topo_logoff.htm'; // frameConteudo - frameMenu - frameLogin

//Carregando todos os frames
function lf_Carrega_Frames(){
	frameLogin.location = strPathDefault + strLog;
	frameMenu.location = strPathAf + strMenu;
	frameConteudo.location = strPathDefault + strConteudo;
}

//Carregando frameConteudo
function lf_Carrega_Conteudo(){
	frameConteudo.location = strPathDefault + strConteudo;
}
//Carregando frameConteudo
function lf_Carrega_Login(){
	frameLogin.location = strPathDefault + strLog;
}

//Envia Pedido para Local Web
function lf_EnviaPedido(LocalClick){
	window.open('https://ssl224.locaweb.com.br/maplink/servicesystem/pedido.aspx?categoria=' + strCategoria +  '&or=' + tCookieAtual + '&po=' + strAfiliado + '-' + LocalClick,'Pedido','toolbar=yes,location=no,directories=no,status=yes,titlebar=no,menubar=no,scrollbars=yes,resizable=yes,height=500,width=775')
	//alert('https://ssl224.locaweb.com.br/maplink/servicesystem/pedido.aspx?categoria=' + strCategoria +  '&or=' + tCookieAtual + '&po=' + strAfiliado + '-' + LocalClick);
}