/* pls ignore this ugly stuff and delete it after presentation */
function WAPPopup(show) {
	if(show) {
		document.getElementsByTagName('body')[0].style.width="300px";
		document.getElementsByTagName('body')[0].style.height="300px";
		document.getElementsByTagName('body')[0].style.overflow="hidden";
		new Effect.Opacity('WAPPopupHelper', { from: 1, to: 0.75, duration: 0.5 });
		new Effect.Morph('WAPPopupHelper', { 
		  style: {
		    backgroundColor: '#CCC',
		    height: '100%',
		    width: '100%'
		  }
		});
		Effect.toggle('WAPPopup', 'appear', { duration: 1.0 });
	} else {		
		new Effect.Morph('WAPPopupHelper', { 
		  style: {
		    backgroundColor: '#FFF',
		    height: '0',
		    width: '0'
		  }
		, duration: 1 });
		Effect.toggle('WAPPopup', 'appear', { duration: 1.0 });
		document.getElementsByTagName('body')[0].style.width="";
		document.getElementsByTagName('body')[0].style.height="";
		document.getElementsByTagName('body')[0].style.overflow="";
	}
}