/* toggle by JURINFOR */

/***************curriculos***************/

function cv_slide(id, img, txt, altura){
	cv_status=$('#'+id).attr("href");
	if(cv_status=='#closed'){
		//$('#'+txt).animate({height:altura+'px'});
		$('#'+txt).css("height","auto");
		$('#'+id).attr("href","#open");
		$('#'+img).html('<img src="/wp-content/themes/avm/images/toggle_arrow_up.png" />');
	} else if (cv_status=='#open') {
		//$('#'+txt).animate({height:'0px'},"normal");
		$('#'+txt).css("height","0px");
		$('#'+id).attr("href","#closed");
		$('#'+img).html('<img src="/wp-content/themes/avm/images/toggle_arrow_down.png" />');
	};
};

/***************princípios***************/

function small_slide(id, img, txt, altura){
	small_status=$('#'+id).attr("href");
	if(small_status=='#closed'){
		$('#'+txt).css("height","auto");
		$('#'+id).attr("href","#open");
		$('#'+img).html('<img src="/wp-content/themes/avm/images/toggle_arrow_up_small.png" />');
	} else if (small_status=='#open') {
		//$('#'+txt).animate({height:'0px'},"normal");
		$('#'+txt).css("height","0");
		$('#'+id).attr("href","#closed");
		$('#'+img).html('<img src="/wp-content/themes/avm/images/toggle_arrow_down_small.png" />');
	};
};
