
	WF.base.popup = function() {

		var Base = WF.base;

		/* Class to apply popup link to */
		var popUpClass = 'popup';

		return {

			wWidth : '560',
			wHeight : '500',

			initialize : function() {

				links = document.getElementsByTagName('a');

				for (var i=0; i < links.length; i++) {

					if(links[i].className.match(popUpClass)) {
						Base.addEvent(links[i], 'click', this.addPopup);
					}
				}

			},

			addPopup : function(e) {
				Base.cancelEvent(e);
				link = Base.elementFromEvent(e);
				if(!link) return;

				window.open (link,"popUp","status=1,width="+WF.base.popup.wWidth+",height="+WF.base.popup.wHeight+",scrollbars=yes");

			}

		}

	}();