

popOver = new Class({
	/////
	 // @args String url to display within "pop up" top layer of this page
	 // @returns null
	 // @purpose dynamically updates inner html of target layer
	 ///
	showOverlay: function(URL){
		$('overlay').setStyle('display', 'block');
		$('overlay_border').setStyle('opacity', .5);
		$('demoFlash').setStyle('display', 'none');

		/*
		
		var callWindow = new Request.HTML({url:'http://www.apridev.info/data.html', 
		OnSuccess: function(html) {
				//Clear the text currently inside the results div.
				$('overlay_target').set('text', '');
				//Inject the new DOM elements into the results div.
				$('overlay_target').adopt(html);
			}
		});
		
		*/
	},
	

	 // @args none
	 // @returns null
	 // @purpose hides "pop up" top layer
	 
	hideOverlay: function(){
		$('overlay').setStyle('display', 'none');
		$('overlay_target').set('text', '');
		$('demoFlash').setStyle('display', 'block');
	}	
});

popOver = new popOver;


/*window.addEvent('domready', function() {
	// You can skip the following two lines of code. We need them to make sure demos
	// are runnable on MooTools demos web page.
	if (!window.demo_path) window.demo_path = '';
	var demo_path = window.demo_path;
	// --
		
	//We can use one Request object many times.
	var req = new Request.HTML({url:'http://www.apridev.info/data.html', 
		onSuccess: function(html) {
		$('overlay').setStyle('display', 'block');
		$('overlay_border').setStyle('opacity', .5);
			//Clear the text currently inside the results div.
			$('overlay_target').set('text', '');
			//Inject the new DOM elements into the results div.
			$('overlay_target').adopt(html);
		},
		//Our request will most likely succeed, but just in case, we'll add an
		//onFailure method which will let the user know what happened.
		onFailure: function() {
			$('result').set('text', 'The request failed.');
		}
	});
	
	$('makeRequest').addEvent('click', function() {
		req.send();
	});	

});*/