$(document).ready(function() {	

	$('.pergunta').click(function() {
		$(this).toggleClass('contacts_highlight');
			if (
			$(this).find('.resposta').css('display') == 'none'
			){
			$(this).find('.resposta').slideToggle(300);
			} 
			else {
			$(this).find('.resposta').slideToggle(300);
			}
	});
	
	
/* LINKS OVER EFFECT */
	$('.move').hover(function() { //mouse in
	$(this).animate(
	{
		top: '-3px',
		position: 'relative'
	}
	,200);
	}, function() { //mouse out
		$(this).animate({ top: 0 }, 300);
	});	
	
});

function openChat() {
	window.open('http://www.google.com/talk/service/badge/Start?tk=z01q6amlqd42ovj2iqrdc78t2dnlis7d7v2b10umsq6e0nd1g6e9sh3amrlsum8krgmlqnr7lltrnc1f7aej3fr3od5npli7utboaj584leu5n5vj2mk2jj37hv02j2oqfuuq7fp86aigtb8','DAPE Chat','left=20,top=20,width=300,height=500,toolbar=1,resizable=0');
	}
	
function clearForm(form) {
  $(':input', form).each(function() {
    var type = this.type;
    var tag = this.tagName.toLowerCase(); // normalize case
    // it's ok to reset the value attr of text inputs,
    // password inputs, and textareas
    if (type == 'text' || type == 'password' || tag == 'textarea')
      this.value = "";
    // checkboxes and radios need to have their checked state cleared
    // but should *not* have their 'value' changed
    else if (type == 'checkbox' || type == 'radio')
      this.checked = false;
    // select elements need to have their 'selectedIndex' property set to -1
    // (this works for both single and multiple select elements)
    else if (tag == 'select')
      this.selectedIndex = -1;
  });
};
