if (typeof(MOOdalBox) !== 'undefined') {
	var _EVAL_SCRIPTS = true;
	
	function activeMoodalArea() {
		$A($$('area.moodalbox')).each(function(el){
			// we use a regexp to check for links that 
			// have a rel attribute starting with "moodalbox"
			el.rel = el.className + " 480 259";
			el.onclick = MOOdalBox.click.pass(el, MOOdalBox);
			MOOdalBox.anchors.push(el);
		}, MOOdalBox);
	}
	
	function activeMoodalAreaLinux() {
		$A($$('area.moodalboxLinux')).each(function(el){
			el.rel = el.className + " 570 285";
			el.onclick = MOOdalBox.click.pass(el, MOOdalBox);
			MOOdalBox.anchors.push(el);
		}, MOOdalBox);
	}
	
		Object.extend(MOOdalBox, {
			close: function(){
				if(this.step < 0) return;
				this.step = -1;
				for(var f in this.fx) this.fx[f].clearTimer();
				this.center.style.display = this.bottom.style.display = 'none';
				this.contents.innerHTML = "";
				this.center.className = 'mb_loading';
				this.fx.overlay.chain(this.setup.pass(false, this)).custom(0);
				return false;
			}
		});
	
	Window.onDomReady(activeMoodalArea);
	Window.onDomReady(activeMoodalAreaLinux);
}
