             screentransitionbuttonarray[i].tag = i
             AnimationMenuView.addSubview(screentransitionbuttonarray[i])
         }
-
+        
         
         
         //viewへの追加と前後関係の調整

            })
            
        }else{
            UIView.animateWithDuration(0.3, animations: { () -> Void in
                self.circleimageview.alpha = 0.0
                for(var i = 0; i < 4; i++){
                    self.screentransitionbuttonarray[i].backgroundColor = UIColor(red: 1.0, green: 0.0, blue: 0.0, alpha: 0.0)
                   self.screentransitionbuttonarray[i].layer.borderColor = UIColor(red: 0.0, green: 0.0, blue: 1.0, alpha: 0.0).CGColor

                }
                self.menushow = 0
            })
            
            UIView.animateWithDuration(0.3, delay: 0.1, options: opt, animations: { () -> Void in
                self.AnimationMenuView.backgroundColor = UIColor(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
                }, completion: { _ in
                    self.view.sendSubviewToBack(self.AnimationMenuView)
            })
        }
        
    }
    
    func ScreenTransitionButtontapped(sender: UIButton){

        super.viewDidLoad()
        
        //背景を設定
        //        backimageview.image = backimage
        //        backimageview.frame = CGRectMake(0.0, 0.0, self.view.frame.width, self.view.frame.height)
        //        self.view.addSubview(backimageview)
        //        self.view.sendSubviewToBack(backimageview)
        
        //ツールバーの作成
        ToolBar = UIToolbar(frame: CGRect(x: 0.0, y: 0.0, width: self.view.frame.width, height: 140.0))
