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

    
    //メニューボタンを押した時のアニメーション
    func MenuButtontapped(sender: UIButton){
        let opt = UIViewAnimationOptions.TransitionCurlDown
        
        if(menushow == 0){      //Menuが出ていない時
            UIView.animateWithDuration(0.3, animations: { () -> Void in
                self.AnimationMenuView.backgroundColor = UIColor(red: 0.0, green: 0.0, blue: 0.0, alpha: 1.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.borderWidth = 3
                    self.screentransitionbuttonarray[i].layer.borderColor = UIColor(red: 1.0, green: 1.0, blue: 0.0, alpha: 1.0).CGColor
                }
                
                self.view.bringSubviewToFront(self.AnimationMenuView)
                self.menushow = 1
            })
            
            UIView.animateWithDuration(0.3, delay: 0.1, options: opt, animations: { () -> Void in
                // 魔法陣出現の処理
                self.circleimageview.frame = CGRectMake(0, 60, self.view.frame.width, 400)
                self.circleimageview.alpha = 1.0

            })
            
        }else{
            self.AnimationMenuView.removeGestureRecognizer(tap)
            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.menushow = 0
            })
            
            UIView.animateWithDuration(0.3, delay: 0.1, options: UIViewAnimationOptions.TransitionCurlDown, 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 onTap(sender: UIButton){
        print("tap")
    }
    
    func ScreenTransitionButtontapped(sender: UIButton){
