function toggle(section, index) {
	if (document.getElementById('profile'+index).style.display == "none") {
		if (o_section[index]) {
			$('#section'+index+' .profile').slideUp(700);
			$('#section'+index+' .arrow').attr("src","/images/arrow_right.gif");
			$('#section'+section+'_arrow').attr("src","/images/arrow_right.gif");
			o_section[section] = 0;
		}
		if (o_index) {
			$('#profile'+o_index).slideUp(400);
			$('#arrow'+o_index).attr("src","/images/arrow_right.gif");
		}
		$('#profile'+index).slideDown(500);
		$('#arrow'+index).attr("src","/images/arrow_down.gif");
		o_index = index;
	}
	else {
		$('#profile'+index).slideUp(700);
		$('#arrow'+index).attr("src","/images/arrow_right.gif");
		$('#section'+section+'_arrow').attr("src","/images/arrow_right.gif");
		o_section[section] = 0;
	};
}

function toggle_section(index) {
	o_index = "";
	if (o_section[index]) {
		$('#section'+index+' .profile').slideUp(700);
		$('#section'+index+' .arrow').attr("src","/images/arrow_right.gif");
		$('#section'+index+'_arrow').attr("src","/images/arrow_right.gif");
		o_section[index] = 0;
	}
	else {
		$('#section'+index+' .profile').slideDown(500);
		$('#section'+index+' .arrow').attr("src","/images/arrow_down.gif");
		$('#section'+index+'_arrow').attr("src","/images/arrow_down.gif");
		o_section[index] = 1;
	}
}

function print_friendly(url) {
	p_win = window.open(url+'?print=1','PrintWindow','width=700,height=700,status=1,scrollbars=1,menubar=1,toolbar=0,resizable=0,location=0,directories=0,copyhistory=0');
	setTimeout('p_win.print()', 2000);
}

var o_index = "";
var o_section = new Array();
