	
	var popUpContainer;
	var popUpGreyOut;
	var popUpBox = new Object();
	var _greyOut = new Object();
	
	var popUpOptions = {duration: 500, mode: 'both',onShow:function(){}};
	var popUpGOptions = {duration: 100, mode: 'both'};
	
	var toCenter;	
	
	function showPopUp(id){
		var popUpContainer = $('popUp_'+id);
		var popUpGreyOut = $('greyOut_'+id);
		toCenter[id] = function(){popUpContainer.move({duration: 2, position: 'center'});}
		popUpOptions.onShow = toCenter[id];
		popUpBox[id] = new Fx.Reveal(popUpContainer,popUpOptions);
		_greyOut[id] = new Fx.Reveal(popUpGreyOut,popUpGOptions);
		
		
		//popUpContainer.move({duration: 10, position: 'center'});
		
		_greyOut[id].reveal();
		popUpBox[id].reveal();
		//toCenter[id]();
		window.addEvent('scroll', toCenter[id]);
		//window.fireEvent('scroll');
		return false;
	}
	function closePopUp(id){
		popUpBox[id].dissolve();
		_greyOut[id].dissolve();
		window.removeEvent('scroll', toCenter[id]);
		return false;
	}
	

