function lightDisplay(type, width, height, whatever, parameters) {
	//move the cover layer (lightboxhider) to the front
	
	//hide the fadebox
	$('fadebox').style.visibility = 'hidden'
	
	Element.hide($('lightbox'));
	Element.hide($('lightboxhider'));
	
	$('lightboxhider').style.zIndex = 500;
	$('lightboxhider').style.visibility = 'visible';
	temp = $('body').clientHeight+120+"px";
	$('lightboxhider').style.height = temp;
	
	new Effect.Appear($('lightboxhider'), {duration: 1.0, to: 0.5});
		
	$('lightbox').style.width = width;
	$('lightbox').style.height = height;
	$('lightbox').style.zIndex = 501;
	
	$('lightboxcontent').style.width = width-20;
		
	if (type == 1) {//ajax request
				
		new Ajax.Request(whatever,
		{
			method:'post',
			onSuccess: function(transport) {
				var response = transport.responseText || "empty";
				
				$('lightboxloader').style.visibility = 'hidden';
				$('lightboxcontent').innerHTML = response;
				
				if($('emaill')) {
					$('emaill').value = $('emailhidden').value;
				} else if ($('email')) {
					$('email').value = $('emailhidden').value;
				}
			},
			onFailure: function(){ 
				
				$('lightboxloader').style.visibility = 'hidden';
				$('lightboxcontent').innerHTML = "Something went wrong while connecting to our server. Our apologies. Pleas close this window and try again.";
			},
			parameters: parameters
		});
	}
		
	new Effect.Appear($('lightbox'), { duration: 2.0, to: 0.9 });
}

function lightHide() {
	
	new Effect.Fade($('lightbox'), { duration: 1.0 });
	new Effect.Fade($('lightboxhider'), {duration: 1.0});
	
	setTimeout("$('lightboxhider').style.visibility = 'hidden'", 1000);
	setTimeout("$('lightboxhider').style.zIndex = -500", 1000);
	setTimeout("$('fadebox').style.visibility = 'visible'", 1000);
	
	$('lightboxcontent').innerHTML = "";
}