 	}
 }
 
+let captionPadding: CGFloat = 8.0
+
 class LBPhotoCaptionView: UIView
 {
 	init(frame: CGRect, plainText:NSString)

		
		var captionLabel = self.captionLabelWithPlainText(plainText, orAttributedText:nil, fromFrame:frame)
		
		var backgroundView = UIView(frame: captionLabel.frame)
		backgroundView.backgroundColor = UIColor.blackColor()
		backgroundView.alpha = 0.6
		
		var captionFrame = CGRectMake(0, frame.size.height-captionLabel.frame.size.height,
			captionLabel.frame.size.width, captionLabel.frame.size.height)
		
		self.frame = captionFrame
		
		self.backgroundColor = UIColor.clearColor()
		self.autoresizingMask = .FlexibleTopMargin | .FlexibleWidth
			

	func tapGestureRecognizer(tapGesture: UITapGestureRecognizer)
	{
		if let uDelegate = galleryDelegate {
			if (tapGesture.numberOfTapsRequired == 1) {
				if uDelegate.respondsToSelector("photoGallery:didTapAtIndex:") {
					uDelegate.photoGallery!(gallery!, didTapAtIndex: self.tag)
