     var logoInitialPositionY:CGFloat = 0
     var welcomeLabelInitialPositionY:CGFloat = 0
     
+    // ParallaxRates
+    var backgroundParallaxSpeed:CGFloat!
+    var mountainParallaxSpeed: CGFloat!
+    
     override func viewDidLoad() {
         super.viewDidLoad()
     

        pageControll.currentPage = scrollView.currentPage
    }
    
    func updateAnimationViewProgress(){
        
        let progress = scrollView.pageProgressInPercentage
        
        switch progress{
        case -1.0...1.0:
            firstAnimationView.progress =  progress
            logoImageView.center.y = logoInitialPositionY + scrollView.contentOffset.x

    
    override func viewDidLayoutSubviews() {
        super.viewDidLayoutSubviews()
        
        buttonInitialPostionY = getStartedButton.center.y
        logoInitialPositionY = logoImageView.center.y
        welcomeLabelInitialPositionY = welcomeLabel.center.y
        panBackground()
    }

    func setupAnimationViews() {
        
        let pageCenter = animationMockView.center
        let viewOffset = scrollView.frame.width
        let viewSize = animationMockView.frame.size
        
        firstAnimationView = DeviceView(frame: animationMockView.frame)
        firstAnimationView.center.x = animationMockView.center.x + viewOffset
        scrollView.addSubview(firstAnimationView!)
        
        let firstAnimationText = UILabel(frame: animationMockLabel.frame)
        firstAnimationText.center.x = animationMockLabel.center.x + viewOffset
        firstAnimationText.textColor = UIColor.blackColor()
        firstAnimationText.textAlignment = .Center
        firstAnimationText.numberOfLines = 2
        firstAnimationText.text = "Ha med deg\npostkassen din overalt" // TODO: Localization
        scrollView.addSubview(firstAnimationText)
        
        secondAnimationView = LockView(frame: animationMockView.frame)
        secondAnimationView.center.x = animationMockView.center.x + viewOffset * 2
        scrollView.addSubview(secondAnimationView!)
        
        let secondAnimationText = UILabel(frame: animationMockLabel.frame)
        secondAnimationText.center.x = animationMockLabel.center.x + viewOffset * 2
        secondAnimationText.textColor = UIColor.blackColor()
        secondAnimationText.textAlignment = .Center
        secondAnimationText.numberOfLines = 2
        secondAnimationText.text = "Trygg oppbevaring\nav viktige dokumenter" // TODO: Localization
        scrollView.addSubview(secondAnimationText)
        
        thirdAnimationView = ReceiptView(frame: animationMockView.frame)
        thirdAnimationView.center.x = animationMockView.center.x + viewOffset * 3
        scrollView.addSubview(thirdAnimationView!)
        
        let thirdAnimationText = UILabel(frame: animationMockLabel.frame)
        thirdAnimationText.center.x = animationMockLabel.center.x + viewOffset * 3
        thirdAnimationText.textColor = UIColor.blackColor()
        thirdAnimationText.textAlignment = .Center
        thirdAnimationText.numberOfLines = 2
        thirdAnimationText.text = "Full kontroll med\nelektroniske kvitteringer" // TODO: Localization
        scrollView.addSubview(thirdAnimationText)
    }
    
