﻿function display(id,valor)
{
	document.getElementById(id).style.display=valor;
}

function menu_ativo(menu)
{
    document.getElementById(menu).style.backgroundImage="url(common/images/"+menu+"_ativo.png)";
    $(".bottom-menu").attr("id",(menu))
}

function light_box(status , div)
{
    document.getElementById(div).style.display=status;
    document.getElementById('fade').style.display=status;
}

var arrTitles = new Array();
	arrTitles.push( {page:"moda" , title:"Moda"} );	
	arrTitles.push( {page:"decoracao" , title:"Decoração"} );
	arrTitles.push( {page:"eletro" , title:"Eletro"} );
	arrTitles.push( {page:"servicos_financeiros" , title:"Serviços Financeiros"} );
	arrTitles.push( {page:"cartao_pernambucanas" , title:"Cartão Pernambucanas"} );
	arrTitles.push( {page:"sobre_pernambucanas" , title:"Sobre a Pernambucanas"} );
	arrTitles.push( {page:"fale_conosco" , title:"Fale Conosco"} );
	arrTitles.push( {page:"faces" , title:"Faces"} );
	arrTitles.push( {page:"buscalojas" , title:"Busca de Lojas"} );
	arrTitles.push( {page:"privacidade" , title:"Privacidade"} );
	arrTitles.push( {page:"privacidade" , title:"Privacidade"} );
	arrTitles.push( {page:"cartaope_abas" , title:"Cadastro"} );
	
function changeTitle()
{
	var url = $(location).attr('href').toLowerCase();
	var title = "Pernambucanas";
	
	for( var i = 0 ; i < arrTitles.length ; i++ )
	{
		if( url.indexOf( arrTitles[i].page.toLowerCase() ) != -1)
		{
			title += " | "+arrTitles[i].title;
		}
	}
	
	document.title = title;
}

changeTitle();
	
