     
     //メニューボタンを押した時のアニメーション
     func MenuButtontapped(sender: UIButton){
-        let tap: UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: "onTap:")
         
-        if(menushow == 0){      //Menuが出ていない時
-            
+        if(menushow == 0){      //Menuが出てくる
+            tap.addTarget(self, action: "onTap:")
             self.AnimationMenuView.addGestureRecognizer(tap)
             UIView.animateWithDuration(1.5, delay: 0.0, options: [UIViewAnimationOptions.Repeat,UIViewAnimationOptions.AllowUserInteraction], animations: { () -> Void in
                 

                }, completion: { _ in
            })
            
        }else{
            self.AnimationMenuView.removeGestureRecognizer(tap)
            UIView.animateWithDuration(0.3, animations: { () -> Void in
                self.circleimageview.alpha = 0.0

                },
                
                completion: nil)
            
            
            UIView.animateWithDuration(0.3, animations: { () -> Void in
                self.AnimationMenuView.backgroundColor = UIColor(red: 0.0, green: 0.0, blue: 0.0, alpha: 1.0)
