var Sections = {};

function Section(id) {
	this.id = id;
	return this;
}
Section.prototype = {
	id: null,
	
	toggle: function(section){
		var self = this;
		var current = $('#' + this.id + ' div.sectionToggle.' + section);
		if ($('#' + this.id + ' div.sectionToggle.' + section + ':visible').length > 0 && $('#' + this.id + ' div.sectionToggle:visible:not(.' + section + ')').length == 0) {
			current.hide();
		}
		else {
			if ($('#' + this.id + ' div.sectionToggle:visible:not(.' + section + ')').length > 0) {
				$('#' + this.id + ' div.sectionToggle:visible:not(.' + section + ')').hide();
				current.show();
			}
			else current.show();
		}
	},
	
	showAll: function() {
		$('#' + this.id + ' div.sectionToggle').show();
	}
};