var EOC = {}
EOC.ServiceMenu = Class.create({
	initialize: function() {
		this.activeId = null;	
	},
	toggle: function(id) {
		if(id) {
			if(id != this.activeId) {
				if(this.activeId) {
					Effect.toggle(this.activeId, 'slide', { duration: 0.5 });
				}
				this.activeId = id;
			} else {
				this.activeId = null;
			}
			Effect.toggle(id, 'slide', { duration: 0.5 });
		}
	},
	show: function(id) {
		if(id) {
			$(id).show();
			this.activeId = id;
		}
	}
});
EOC.ContentToggle = Class.create({
	initialize: function() {
		this.activeId = null;	
	},
	toggle: function(id) {
		if(id != this.activeId) {
			Effect.toggle(id, 'slide', { duration: 0.5 });
			if(this.activeId) {
				Effect.toggle(this.activeId, 'slide', { duration: 0.5 });
			}
			this.activeId = id;
		}
	},
	show: function(id) {
		if(id) {
			$(id).show();
			this.activeId = id;
		}
	}
});
var serviceMenu = new EOC.ServiceMenu();
var programMenu = new EOC.ServiceMenu();
var contentToggle = new EOC.ContentToggle();