function showLinks(n){
var el=document.getElementById(n);
var p=el.parentNode;
for(var i=0;i<p.childNodes.length;i++){//check all of n's siblings (n's parent's childen)
if(p.childNodes[i].style && p.childNodes[i].style.display=='block'){//find who is displaying
p.childNodes[i].style.display='none';
if(p.childNodes[i]==el) return;//remove this line to remove toggling action
break;
}
}
el.style.display='block'
}

function validate(theForm) {
if (theForm.user_email.value == "")
{
  alert("Digite seu Email");
  theForm.user_email.focus();
  return (false);
}
if (theForm.senha.value == "")
{
  alert("Digite sua senha");
  theForm.senha.focus();
  return (false);
}
return (true);
}

function CngClass(){
 var zxcevt=window.event||arguments.callee.caller.arguments[0];
 var zxcobj=window.event?zxcevt.srcElement:zxcevt.target;
 while (zxcobj.parentNode){
  if (zxcobj.nodeName=='LI') break;
  zxcobj=zxcobj.parentNode;
 }
 if (zxcobj.nodeName!='LI') return;
 var zxcul=zxcobj.parentNode;
 var lis=zxcul.getElementsByTagName('LI');
 for (var z0=0;z0<lis.length;z0++){
  lis[z0].className=lis[z0]!=zxcobj?'ex':'current';
 }
}


// Jquery hide/show

<!-- jquery for this page -->
// initialize the jquery code
 $(document).ready(function(){
//close all the content divs on page load
$('.mover').hide();
$('.mover2').hide();
$('.mover3').hide();
$('.mover4').hide();
$('.mover5').hide();
$('.mover6').hide();
$('.mover7').hide();
$('.mover8').hide();
$('.mover9').hide();
$('.mover10').hide();
$('.mover11').hide();
$('.mover12').hide();
$('.mover13').hide();
$('.mover14').hide();

// toggle slide
$('#slideToggle').click(function(){
// by calling sibling, we can use same div for all demos
$(this).siblings('.mover').slideToggle();
});

// regular toggle with speed of 'slow'
function toggle(id_click,id_mostra) {
$('#'+id_click+'').click(function(){
$(this).siblings('#'+id_mostra+'').toggle('slow');
});
}

$('#toggleSlow').click(function(){
$(this).siblings('.mover').toggle('slow');
});
$('#toggleSlow2').click(function(){
$(this).siblings('.mover2').toggle('slow');
});
$('#toggleSlow3').click(function(){
$(this).siblings('.mover3').toggle('slow');
});
$('#toggleSlow4').click(function(){
$(this).siblings('.mover4').toggle('slow');
});
$('#toggleSlow5').click(function(){
$(this).siblings('.mover5').toggle('slow');
});
$('#toggleSlow6').click(function(){
$(this).siblings('.mover6').toggle('slow');
});
$('#toggleSlow7').click(function(){
$(this).siblings('.mover7').toggle('slow');
});
$('#toggleSlow8').click(function(){
$(this).siblings('.mover8').toggle('slow');
});
$('#toggleSlow9').click(function(){
$(this).siblings('.mover9').toggle('slow');
});
$('#toggleSlow10').click(function(){
$(this).siblings('.mover10').toggle('slow');
});
$('#toggleSlow11').click(function(){
$(this).siblings('.mover11').toggle('slow');
});
$('#toggleSlow12').click(function(){
$(this).siblings('.mover12').toggle('slow');
});
$('#toggleSlow13').click(function(){
$(this).siblings('.mover13').toggle('slow');
});
$('#toggleSlow14').click(function(){
$(this).siblings('.mover14').toggle('slow');
});
// fade in and out
$('#fadeInOut').toggle(function() {
$(this).siblings('.mover').fadeIn('slow');
}, function() {
$(this).siblings('.mover').fadeOut('slow');
});

//animate
$('#animate').click(function() {
$(this).siblings('.mover')
.slideDown(5500).fadeOut(7300);
});

});

// Copair link via flash
function copy(inElement) {
if(navigator.appName == 'Microsoft Internet Explorer'){
window.clipboardData.setData('text',inElement.value);
} else {
  if (inElement.createTextRange) {
    var range = inElement.createTextRange();
    if (range && BodyLoaded==1)
      range.execCommand('Copy');
  } else {
    var flashcopier = 'flashcopier';
    if(!document.getElementById(flashcopier)) {
      var divholder = document.createElement('div');
      divholder.id = flashcopier;
      document.body.appendChild(divholder);
    }
    document.getElementById(flashcopier).innerHTML = '';
    var divinfo = '<embed src="_clipboard.swf" FlashVars="clipboard='+encodeURIComponent(inElement.value)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';
    document.getElementById(flashcopier).innerHTML = divinfo;
  }
} 
}

