                          minSpacingForCell : CGFloat(25.0),
                          minSpacingForLine: CGFloat(50.0) )
     
-    // MARK:
-    
-    @IBAction func swipeDown(sender:UISwipeGestureRecognizer) {
-        
-        print( "swipe down");
-    }
     
     func showSlide(at index:UInt) {
         if let doc = self.doc {

        return true;
        
    }
    
    /// Called when the screen’s focusedView has been updated to a new view. Use the animation coordinator to schedule focus-related animations in response to the update.
    override func didUpdateFocusInContext(context: UIFocusUpdateContext, withAnimationCoordinator coordinator: UIFocusAnimationCoordinator)
    {
        print( "PageView.didUpdateFocusInContext:" );
        
        if( !self.settingsBar.canBecomeFocused() && self._preferredFocusedView != nil ){
            coordinator.addCoordinatedAnimations({
                
                UIView.animateWithDuration(0.5, animations: {
                    
                    self.settingsBar.subviews.forEach({ (v:UIView) in
                        v.alpha = 0.0
                    })
                    
                    var f = self.settingsBar.frame
                    f.size.height = 1.0
                    self.settingsBar.frame = f
                    
                })
            }){
                self.layer.borderWidth = 0
                
                self._preferredFocusedView = nil
                self.settingsBar._canBecomeFocused = true
                
            }
            
        }
        else if( self.focused ) {
            
            coordinator.addCoordinatedAnimations({
                
                UIView.animateWithDuration(0.5, animations: {
                    
                    var f = self.settingsBar.frame
                    f.size.height = 80
                    self.settingsBar.frame = f
                    
                    self.settingsBar.subviews.forEach({ (v:UIView) in
                        v.alpha = 1.0
                    })
                    
                })
            }){
                self.layer.borderWidth = 2
                
                self.layer.borderColor = UIColor.darkGrayColor().CGColor
                
                self._preferredFocusedView = self.settingsBar
                self.setNeedsFocusUpdate()
                self.updateFocusIfNeeded()
                
                
            }
            
        }
        
    }
    
}



//  UIPageView
//
class UIPageView : UIView {
    let pointer:UIView = UIView( frame: CGRect(x: 0, y: 0, width: 10, height: 10))

    override func didMoveToSuperview() {
        pointer.backgroundColor = UIColor.redColor()

    }
    
    override func updateConstraints() {
