var Popup_Manager = Class.create();
Popup_Manager.prototype = {
	initialize: function(){
		this.btns = $$('.PopupBtn');
		this.popups = $$('.Popup');
		this.btns.each(function(iter){
			Event.observe(iter, 'click', this.toggleView.bindAsEventListener(this) );
		}.bind(this));
	},
	toggleView: function(pEvent){
		try{
			var element = Event.element(pEvent);
			var index = this.btns.indexOf(element);
			this.popups[index].toggle();
		} catch(e){}
	}
}
//Do Not use document.Observe('dom:loaded'). This is not supported by Prototype 1.5
Event.observe(window, 'load', function(){ Popup_ManagerObj = new Popup_Manager(); } );