$(document).ready(function(){
   init();
 });
$(document).ready(function(){
   init_interno();
 });
// 
function init() {
	// set the first <a> to the "down_state" class
	$("a.open_btn:eq(0)").toggleClass("down_state");
	// hide all expanded sections except the first one
	$("div.expandedSection:gt(0)").css( {display:"none"});
	// iterate through <a> objects to add click methods to open the next DIV
	$("a.open_btn").click(function() {
		// if down_state, remove, otherwise set to down state
		$(this).toggleClass("down_state");
		// open the next div to this <a> if its closed, close it if its open
     	$(this).next("div.expandedSection").slideToggle(400);
		// and you're done
      	return false;
  	});
};

function init_interno() {
	// set the first <a> to the "down_state" class
	$("a.open_btn_interno:eq(0)").toggleClass("down_state_interno");
	// hide all expanded sections except the first one
	$("div.expandedSection_interno:gt(0)").css( {display:"none"});
	// iterate through <a> objects to add click methods to open the next DIV
	$("a.open_btn_interno").click(function() {
		// if down_state, remove, otherwise set to down state
		$(this).toggleClass("down_state_interno");
		// open the next div to this <a> if its closed, close it if its open
     	$(this).next("div.expandedSection_interno").slideToggle(400);
		// and you're done
      	return false;
  	});
};

