             tapanimationbuttonflag = true
         }
         
+        //現在表示している日付と今日の日付を比較して、アニメーションを切り替えて表示する
         if compareunit == .OrderedAscending {           //currentnsdateが今日より小さい(前の日付)場合
-            
+            self.ShowAllData(CommonMethod().Changecalendar(date.year, calender: "A.D"), m: date.month, d: date.day, arraynumber: 2)
             self.AnimationCalenderLabel(20, afterposition: 8)
             self.SetupDayButton(1)
             self.AnimationShiftLabelCompletion(shiftlabel_x[0], mainposition: shiftlabel_x[0], nextpositon: shiftlabel_x[1])
             
         }else if compareunit == .OrderedDescending{     //currentnsdateが今日より大きい(後の日付)場合
-            
+            self.ShowAllData(CommonMethod().Changecalendar(date.year, calender: "A.D"), m: date.month, d: date.day, arraynumber: 0)
             self.AnimationCalenderLabel(-4, afterposition: 8)
             self.SetupDayButton(-1)
             self.AnimationShiftLabelCompletion(shiftlabel_x[1], mainposition: shiftlabel_x[2], nextpositon: shiftlabel_x[2])

    
    func prevday(){
        self.DayControl(-1)
        
        //日付表示ラベルを画面左側からアニメーション表示させる
        self.AnimationCalenderLabel(-4, afterposition: 8)
        self.AnimationShiftLabelCompletion(shiftlabel_x[1], mainposition: shiftlabel_x[2], nextpositon: shiftlabel_x[2])

        let nsdatesplit = self.ReturnYearMonthDayWeekday(currentnsdate)
        let newnsdate = self.CreateNSDate(nsdatesplit.year, month: nsdatesplit.month, day: nsdatesplit.day+control)
        currentnsdate = newnsdate

        let currentnsdatesplit = self.ReturnYearMonthDayWeekday(currentnsdate)
        
        //日付を表示しているラベルの内容を変更する
        self.SetCalenderLabel(currentnsdatesplit.year, month: currentnsdatesplit.month, day: currentnsdatesplit.day, weekday: currentnsdatesplit.weekday)

        self.SetupDayButton(control)
    }
    
