                 flipperState = .Began
             }
             
-            var screenBounds = UIScreen.mainScreen().bounds
             var animationLayer = DJKAnimationLayer(frame: self.staticView.rightSide.bounds, isFirstOrLast:false)
             
             //if an animation has a lower zPosition then it will not be visible throughout the entire animation cycle

    func deviceOrientationDidChangeNotification() {
        clearAnimations()
    }
}

    func didFlipToNewPage(animationLayer:DJKAnimationLayer, gesture:UIPanGestureRecognizer, translation:CGFloat) -> Bool {
        
        var releaseSpeed = getReleaseSpeed(translation, gesture: gesture)
        
        var didFlipToNewPage = false
        if animationLayer.flipDirection == .Left && fabs(releaseSpeed) > DJKFlipperConstants.SpeedThreshold && !animationLayer.isFirstOrLastPage && releaseSpeed < 0 ||
            animationLayer.flipDirection == .Right && fabs(releaseSpeed) > DJKFlipperConstants.SpeedThreshold && !animationLayer.isFirstOrLastPage && releaseSpeed > 0 {
                didFlipToNewPage = true
        }
        return didFlipToNewPage
    }
