

// função para esconder ou mostrar, sempre o inverso
function showHiden(obj,obj2) {
	if(document.getElementById(obj).style.display == 'block'){
		document.getElementById(obj).style.display = 'none';
		document.getElementById(obj2).innerHTML = 'mostrar  <img src="http://www.santander.com.br/document/wps/icoSetaBaixo.jpg" align="top"  />'
	}else{
		document.getElementById(obj).style.display = 'block';
		document.getElementById(obj2).innerHTML = 'esconder  <img src="http://www.santander.com.br/document/wps/icoSetaCima.jpg" align="top"  />'
	}
}

var urlIB_Banespa = "https://www.santandernet.com.br";
            function LogarNC()
            {
                if(document.frmnetbankingNC.txtDocto.value == "")
                {
                   alert("Por favor, preencha o campo CPF");
                   return false;
               }else{
                    var URL = urlIB_Banespa + "/defaultnc.asp?txtDocto=" + document.frmnetbankingNC.txtDocto.value  + '&oA=site';
                    window.open(URL,  "_blank");
                   return false;
                }
            }
            function sL(obj) 
           {
                if(document.getElementById)
                {
                    document.getElementById(obj).style.display = 'block';
                }
                if(document.all && !document.getElementById)
                {
                    document.all(obj).style.display = 'block';
                }
            }
            function hL(obj) 
            {
                if(document.getElementById)
                {
                    document.getElementById(obj).style.display = 'none';
                }
                if(document.all && !document.getElementById)
                {
                    document.all(obj).style.display = 'none';
                }
            }
			
			function dialogo(){
					if (document.getElementById("select_dialogo").value == ""){
						alert("Selecione um Canal de Diálogo");
						return false;
					}
					
					else {
						location.href = document.getElementById("select_dialogo").value;
						return false;
					}
				}
				
	$(document).ready(function(){
		//Definimos que todos as tags dd tero display:none menos o primeiro filho
		$('dd:not(:first)').hide();

		//Ao clicar no link, executamos a funcao
		var clicked = "";
		clicked = "dt1";

		$('dt a').click(function(){

			if (clicked == $(this).attr("id")){
				return false;
			}
			else{
				//$("#"+clicked).css('background-color', 'black');
				$("#"+clicked).removeClass('selected');
				$("#"+clicked).addClass('deselected');
				clicked = $(this).attr("id");
				//$(this).css('background-color', 'red');
				$(this).removeClass('deselected');
				$(this).addClass('selected');

			}
			//As tags dd's visveis agora ficam com display:none
			$("dd:visible").slideUp("fast");
			//Apos, a funcao  transferida para seu pai, que procura o proximo irmao no codigo o tonando visvel
			$(this).parent().next().slideDown("fast");
			return false;
		});
	});	

 var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-17133846-1']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

