var Selection = {
	a:Object,
	b:Object,
	c:Object,
	init:function() {													//assignment of class variables (ones that can be set at onload), and event handlers
		this.a = $("projectType");										//it appears that after definining a or b with this.a the value a can be called simply with a
		this.b = document.getElementsByClassName("hidden");  			//assigns all of the elemnts with class hidden to array b
		a.onchange = Selection.hider;
		Selection.hider();												//hide all the div's
	},
	
	hider:function() {
	for (var i = 0; i<b.length; i++) {
		Element.hide(b[i].id);											//hides all the div's in the hidden class
		}
		Selection.show();												//for some reason this fails to fire if stuff.show [requires the ()]
	},

	show:function() {
		Element.show("if" + $F("projectType"));							//get the id of the div to be shown, and assign it to c
//		this.c = $("if" + $F("projectType"));
//		this.c.style.display= "block";
	}
}

window.onload = Selection.init;