[Rainmeter]
Author			=hatbocs@gmail.com
AppVersion		=1.0
Update			=300	;Update the calendar every .5 seconds
;Disable when done	;Set BackgroundMode=2 for solid light grey bg color. Really only used during debugging.
BackgroundMode	=0
SolidColor		=255, 255, 255, 25
BevelType		=0

[Variables]
;General config settings
;Show part of the surrounding months? 1=Yes / 0 (or anything else)=no
ShowOtherMonths	=1

;Month display text properties
Month.font		=Eurosti
Month.color		=0,0,0
Month.size		=10
Month.align		=left
Month.style		=normal
Month.hidden	=0		;0 for no, 1 for yes

;Day of the week label text properties
DayLabel.font	=Eurosti
DayLabel.color	=255,255,255
DayLabel.size	=7
DayLabel.bg.w	=16
DayLabel.bg.h	=16
DayLabel.xstart	=8	;Changes the X of the first day label. The rest is adjusted automaticaly by pxS

;Day of the week label text
;Numbered 0-6 with 0 being the first day of the week and 6 being the last
;Changing these values does not affect the calculation of the dates and is purely cosmetic
DayLabel0.text	="Ïîí"
DayLabel1.text	="Âòî"
DayLabel2.text	="Ñðå"
DayLabel3.text	="×åò"
DayLabel4.text	="Ïÿò"
DayLabel5.text	="Ñóá"
DayLabel6.text	="Âîñ"

;Day text properties
DayText.font	=Eurosti
DayText.color	=255,255,255,200
DayText.hilight	=0,0,0,200
DayText.size	=8
DayText.align	=right
DayText.style	=normal

;Previous month day properties
PrevMonth.font	=Eurosti
PrevMonth.color	=63, 103, 123, 2
PrevMonth.size	=8
PrevMonth.style	=normal
PrevMonth.align	=right

;Next month day properties
NextMonth.font	=Eurosti
NextMonth.color	=144, 8, 8, 2
NextMonth.size	=8
NextMonth.style	=normal
NextMonth.align	=right

;Current day's properties. Bolded by default
BoldDay.font	=Eurosti
BoldDay.color	=0,0,0,250
BoldDay.size	=8
BoldDay.style	=bold

;Calendar icon settings
Icon			=../cal_silk.png
cal.x			=0
cal.y			=0

;General text formatting
;Used mainly for day labels
sAlign			=center
sStyle			=normal
AA				=1

;Spacing between each label
;Can also be used to change overall width. Manually adjust date alignments if done, though.
pxS				=27

;Align weekday x
;Aligns the days vertically along each column that makes up the days of the week
pD1.x			=17
pD2.x			=37
pD3.x			=57
pD4.x			=77
pD5.x			=97
pD6.x			=117
pD7.x			=137

;Align week y
;Aligns the days horizontally along each row
;If the month label is hidden subtract 20 from the values. If the month label is visible pW1.y sould be 40. 20 is the default spacing
DayLabel.bg.y	=22		;x is always assumed 0
DayLabel.y		=24

pW1.y			=40
pW2.y			=58
pW3.y			=78
pW4.y			=98
pW5.y			=118
pW6.y			=138

;Day definition shortcuts
;Used in first week calculations
_sun			=1
_mon			=2
_tue			=3
_wed			=4
_thu			=5
_fri			=6
_sat			=7

[cShowOtherMonths]
Measure			=calc
Formula			=(#ShowOtherMonths# = 1) ? 1 : 0

[cCentury]		;mod(century , 4) century assumed 20 for 2000. If this is ever used in the 2100s then change to 21. That's a big if.
Measure			=calc
Formula			=(20%4)

[mYear]			;Gets current year in ## format. ex: 09
Measure			=time
Format			=%y

[mMonth]		;Gets current month without leading zero. ex: 9
Measure			=time
Format			=%#m

[cPrevMonth]
Measure			=calc
Formula			=mMonth - 1

[mDay]			;Gets current day without leading zero. ex 9
Measure			=time
Format			=%#d

[cLeapYear]		;Returns 1 if leap year or 0 if not
Measure			=calc
Formula			=((mYear%4 = 0) && (mYear%100 <> 0) || (mYear%400 = 0)) ? 1 : 0

[cMonthCode]	;Returns month "code" according to notes
Measure			=calc
Formula			=((mMonth = 3) || (mMonth = 11)) ? 3 : (((mMonth = 4) || (mMonth = 7)) ? 6 : ((mMonth = 5) ? 1 : ((mMonth = 6) ? 4 : ((mMonth = 8) ? 2 : (((mMonth = 9) || (mMonth = 12)) ? 5 : ((mMonth = 10) ? 0 : ((cLeapYear = 1) ? ((mMonth = 1) ? 6 : 2) : ((mMonth = 1) ? 0 : 3))))))))

[cPrevMonthCode];Returns previous month's "code" according to notes. Oh how I wish Rainmeter has functions.
Measure			=calc
Formula			=((cPrevMonth = 3) || (cPrevMonth = 11)) ? 3 : (((cPrevMonth = 4) || (cPrevMonth = 7)) ? 6 : ((cPrevMonth = 5) ? 1 : ((cPrevMonth = 6) ? 4 : ((cPrevMonth = 8) ? 2 : (((cPrevMonth = 9) || (cPrevMonth = 12)) ? 5 : ((cPrevMonth = 10) ? 0 : ((cLeapYear = 1) ? ((cPrevMonth = 1) ? 6 : 2) : ((cPrevMonth = 1) ? 0 : 3))))))))

[cMonthStartDay];Determines which day of the week a month starts. Used in week one to turn off days not in the current month
Measure			=calc
Formula			=(FLOOR((5*mYear)/4)+cMonthCode+1-(2*cCentury))%7

[cMonthStart]	;Used to help determine day a month starts. If the day of the week is 0 or Saturday then return 7 (for day 7 in a traditional sense) otherwise return the other "coded" day of the week.
Measure			=calc
Formula			=(cMonthStartDay = 0) ? 7 : cMonthStartDay

[cDayCount]		;Redundant use to determine total count of days in a month. Used to calculate when to stop displaying days in week 5 or 6. Credit to Jiri Mahel of HUD.Vision.
Measure			=calc
Formula			=((mMonth = 4) || (mMonth = 6) || (mMonth = 9) || (mMonth = 11)) ? 30 : ((mMonth = 2) ? ((((mYear % 4) = 0) && ((mYear % 100) > 0)) ? 29 : (((mYear % 400) = 0) ? 29 : 28)) : 31)

[cPrevDayCount]	;Similar to DayCount but used to calculate the number of days for the previous month.
Measure			=calc
Formula			=((cPrevMonth = 4) || (cPrevMonth = 6) || (cPrevMonth = 9) || (cPrevMonth = 11)) ? 30 : ((cPrevMonth = 2) ? ((((mYear % 4) = 0) && ((mYear % 100) > 0)) ? 29 : (((mYear % 400) = 0) ? 29 : 28)) : 31)

[cPrevMonthEndDay]	;Find the day of the week the previous month ends.
Measure			=calc
Formula			=(FLOOR((5*mYear)/4)+cPrevMonthCode+cPrevDayCount-(2*cCentury))%7

[cPrevMonthEnd]	;Find the day of the week the previous month ends.
Measure			=calc
Formula			=(cPrevMonthEndDay = 0) ? 7 : cPrevMonthEndDay

[cMonthName]	;Shows the name of the month (%B for long name: January, %b for appreviated name: Jan) and the current year (%Y for long year: 2009, %y for short year: 09)
				;Could also be modified to include the numerical day (%d for day with leading zero: 05, %#d for day without leading zero: 5)
Measure			=time
Format			="%B, %#d"
;Uncomment to include day
;Format			="%B %#d of %Y"

;---------------------------------------------------------------------------
;Calculate the first week of days
;This assumes Monday is the first day of the week

[cWD0]			;Calc weekday 1 (start)
Measure			=calc
Formula			=#_mon#-FLOOR((5*mYear)/4)-cMonthCode+(2*cCentury)-7*FLOOR((#_mon#-FLOOR((5*mYear)/4)-cMonthCode+(2*cCentury))/7)

[cWD1]			;Calc weekday 2
Measure			=calc				
Formula			=#_tue#-FLOOR((5*mYear)/4)-cMonthCode+(2*cCentury)-7*FLOOR((#_tue#-FLOOR((5*mYear)/4)-cMonthCode+(2*cCentury))/7)

[cWD2]			;Calc weekday 3
Measure			=calc				
Formula			=#_wed#-FLOOR((5*mYear)/4)-cMonthCode+(2*cCentury)-7*FLOOR((#_wed#-FLOOR((5*mYear)/4)-cMonthCode+(2*cCentury))/7)

[cWD3]			;Calc weekday 4
Measure			=calc				
Formula			=#_thu#-FLOOR((5*mYear)/4)-cMonthCode+(2*cCentury)-7*FLOOR((#_thu#-FLOOR((5*mYear)/4)-cMonthCode+(2*cCentury))/7)

[cWD4]			;Calc weekday 5
Measure			=calc				
Formula			=#_fri#-FLOOR((5*mYear)/4)-cMonthCode+(2*cCentury)-7*FLOOR((#_fri#-FLOOR((5*mYear)/4)-cMonthCode+(2*cCentury))/7)

[cWD5]			;Calc weekday 6
Measure			=calc
Formula			=#_sat#-FLOOR((5*mYear)/4)-cMonthCode+(2*cCentury)-7*FLOOR((#_sat#-FLOOR((5*mYear)/4)-cMonthCode+(2*cCentury))/7)

[cWD6]			;Calc weekday 7 (end)
Measure			=calc
Formula			=(#_sun#-FLOOR((5*mYear)/4)-cMonthCode+(2*cCentury)-7*FLOOR((#_sun#-FLOOR((5*mYear)/4)-cMonthCode+(2*cCentury))/7)) = 0 ? 7 : (#_sun#-FLOOR((5*mYear)/4)-cMonthCode+(2*cCentury)-7*FLOOR((#_sun#-FLOOR((5*mYear)/4)-cMonthCode+(2*cCentury))/7))

[cDay00]		;Week 1 Begin-----------------------------------------------
;Day 1 in week 1
Measure			=calc				
Formula			=cWD0

[cDay00Draw]
;Combine drawing the current date or previous month's date.
Measure			=calc
Formula			=(#_mon# = cMonthStart) ? 1 : ((cShowOtherMonths = 1) && (mMonth <> 1) ? -1 : 0)
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter mDay00][!RainmeterHideMeter mPrevDay00]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter mDay00][!RainmeterShowMeter mPrevDay00]
IfEqualValue	=0
IfEqualAction	=!Execute [!RainmeterHideMeter mDay00][!RainmeterHideMeter mPrevDay00]

[cPrevMonthDay00]
Measure			=calc
Formula			=cPrevDayCount - cPrevMonthEnd + #_mon#

[cHL00Draw]
Measure			=calc
Formula			=(mDay = cDay00) && (cDay00Draw = 1) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter TodayHL00][!RainmeterHideMeter mDay00]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter TodayHL00][!RainmeterShowMeter mDay00]

[mDay00]
Meter			=string
MeasureName		=cDay00
X				=#pD1.x#
Y				=#pW1.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL00]
Meter			=string
MeasureName		=cDay00
X				=#pD1.x#
Y				=#pW1.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[mPrevDay00]
Meter			=string
MeasureName		=cPrevMonthDay00
X				=#pD1.x#
Y				=#pW1.y#
FontColor		=#PrevMonth.color#
FontFace		=#PrevMonth.font#
FontSize		=#PrevMonth.size#
stringAlign		=#PrevMonth.align#
stringStyle		=#PrevMonth.style#
AntiAlias		=#AA#

[cDay01]		
;Day 2 in week 1
Measure			=calc				
Formula			=cWD1

[cDay01Draw]
Measure			=calc
Formula			=(cDay00Draw = 1) || (#_tue# = cMonthStart) ? 1 : ((cShowOtherMonths = 1) && (mMonth <> 1) ? -1 : 0)
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter mDay01][!RainmeterHideMeter mPrevDay01]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter mDay01][!RainmeterShowMeter mPrevDay01]
IfEqualValue	=0
IfEqualAction	=!Execute [!RainmeterHideMeter mDay01][!RainmeterHideMeter mPrevDay01]

[cPrevMonthDay01]
Measure			=calc
Formula			=cPrevDayCount - cPrevMonthEnd + #_tue#

[cHL01Draw]
Measure			=calc
Formula			=(mDay = cDay01) && (cDay01Draw = 1) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter TodayHL01][!RainmeterHideMeter mDay01]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter TodayHL01][!RainmeterShowMeter mDay01]

[mDay01]
Meter			=string
MeasureName		=cDay01
X				=#pD2.x#
Y				=#pW1.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL01]
Meter			=string
MeasureName		=cDay01
X				=#pD2.x#
Y				=#pW1.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[mPrevDay01]
Meter			=string
MeasureName		=cPrevMonthDay01
X				=#pD2.x#
Y				=#pW1.y#
FontColor		=#PrevMonth.color#
FontFace		=#PrevMonth.font#
FontSize		=#PrevMonth.size#
stringAlign		=#PrevMonth.align#
stringStyle		=#PrevMonth.style#
AntiAlias		=#AA#

[cDay02]		
;Day 3 in week 1
Measure			=calc				
Formula			=cWD2

[cDay02Draw]
Measure			=calc
Formula			=(cDay01Draw = 1) || (#_wed# = cMonthStart) ? 1 : ((cShowOtherMonths = 1) && (mMonth <> 1) ? -1 : 0)
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter mDay02][!RainmeterHideMeter mPrevDay02]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter mDay02][!RainmeterShowMeter mPrevDay02]
IfEqualValue	=0
IfEqualAction	=!Execute [!RainmeterHideMeter mDay02][!RainmeterHideMeter mPrevDay02]

[cPrevMonthDay02]
Measure			=calc
Formula			=cPrevDayCount - cPrevMonthEnd + #_wed#

[cHL02Draw]
Measure			=calc
Formula			=(mDay = cDay02) && (cDay02Draw = 1) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter TodayHL02][!RainmeterHideMeter mDay02]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter TodayHL02][!RainmeterShowMeter mDay02]

[mDay02]
Meter			=string
MeasureName		=cDay02
X				=#pD3.x#
Y				=#pW1.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL02]
Meter			=string
MeasureName		=cDay02
X				=#pD3.x#
Y				=#pW1.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[mPrevDay02]
Meter			=string
MeasureName		=cPrevMonthDay02
X				=#pD3.x#
Y				=#pW1.y#
FontColor		=#PrevMonth.color#
FontFace		=#PrevMonth.font#
FontSize		=#PrevMonth.size#
stringAlign		=#PrevMonth.align#
stringStyle		=#PrevMonth.style#
AntiAlias		=#AA#

[cDay03]		
;Day 4 in week 1
Measure			=calc				
Formula			=cWD3

[cDay03Draw]
Measure			=calc
Formula			=(cDay02Draw = 1) || (#_thu# = cMonthStart) ? 1 : ((cShowOtherMonths = 1) && (mMonth <> 1) ? -1 : 0)
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter mDay03][!RainmeterHideMeter mPrevDay03]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter mDay03][!RainmeterShowMeter mPrevDay03]
IfEqualValue	=0
IfEqualAction	=!Execute [!RainmeterHideMeter mDay03][!RainmeterHideMeter mPrevDay03]

[cPrevMonthDay03]
Measure			=calc
Formula			=cPrevDayCount - cPrevMonthEnd + #_thu#

[cHL03Draw]
Measure			=calc
Formula			=(mDay = cDay03) && (cDay03Draw = 1) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter TodayHL03][!RainmeterHideMeter mDay03]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter TodayHL03][!RainmeterShowMeter mDay03]

[mDay03]
Meter			=string
MeasureName		=cDay03
X				=#pD4.x#
Y				=#pW1.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL03]
Meter			=string
MeasureName		=cDay03
X				=#pD4.x#
Y				=#pW1.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[mPrevDay03]
Meter			=string
MeasureName		=cPrevMonthDay03
X				=#pD4.x#
Y				=#pW1.y#
FontColor		=#PrevMonth.color#
FontFace		=#PrevMonth.font#
FontSize		=#PrevMonth.size#
stringAlign		=#PrevMonth.align#
stringStyle		=#PrevMonth.style#
AntiAlias		=#AA#

[cDay04]		
;Day 5 in week 1
Measure			=calc
Formula			=cWD4

[cDay04Draw]
Measure			=calc
Formula			=(cDay03Draw = 1) || (#_fri# = cMonthStart) ? 1 : ((cShowOtherMonths = 1) && (mMonth <> 1) ? -1 : 0)
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter mDay04][!RainmeterHideMeter mPrevDay04]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter mDay04][!RainmeterShowMeter mPrevDay04]
IfEqualValue	=0
IfEqualAction	=!Execute [!RainmeterHideMeter mDay04][!RainmeterHideMeter mPrevDay04]

[cPrevMonthDay04]
Measure			=calc
Formula			=cPrevDayCount - cPrevMonthEnd + #_fri#

[cHL04Draw]
Measure			=calc
Formula			=(mDay = cDay04) && (cDay04Draw = 1) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter TodayHL04][!RainmeterHideMeter mDay04]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter TodayHL04][!RainmeterShowMeter mDay04]

[mDay04]
Meter			=string
MeasureName		=cDay04
X				=#pD5.x#
Y				=#pW1.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL04]
Meter			=string
MeasureName		=cDay04
X				=#pD5.x#
Y				=#pW1.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[mPrevDay04]
Meter			=string
MeasureName		=cPrevMonthDay04
X				=#pD5.x#
Y				=#pW1.y#
FontColor		=#PrevMonth.color#
FontFace		=#PrevMonth.font#
FontSize		=#PrevMonth.size#
stringAlign		=#PrevMonth.align#
stringStyle		=#PrevMonth.style#
AntiAlias		=#AA#

[cDay05]		
;Day 6 in week 1
Measure			=calc				
Formula			=cWD5

[cDay05Draw]
Measure			=calc
Formula			=(cDay04Draw = 1) || (#_sat# = cMonthStart) ? 1 : ((cShowOtherMonths = 1) && (mMonth <> 1) ? -1 : 0)
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter mDay05][!RainmeterHideMeter mPrevDay05]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter mDay05][!RainmeterShowMeter mPrevDay05]
IfEqualValue	=0
IfEqualAction	=!Execute [!RainmeterHideMeter mDay05][!RainmeterHideMeter mPrevDay05]

[cPrevMonthDay05]
Measure			=calc
Formula			=cPrevDayCount - cPrevMonthEnd + #_sat#

[cHL05Draw]
Measure			=calc
Formula			=(mDay = cDay05) && (cDay05Draw = 1) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter TodayHL05][!RainmeterHideMeter mDay05]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter TodayHL05][!RainmeterShowMeter mDay05]

[mDay05]
Meter			=string
MeasureName		=cDay05
X				=#pD6.x#
Y				=#pW1.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL05]
Meter			=string
MeasureName		=cDay05
X				=#pD6.x#
Y				=#pW1.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[mPrevDay05]
Meter			=string
MeasureName		=cPrevMonthDay05
X				=#pD6.x#
Y				=#pW1.y#
FontColor		=#PrevMonth.color#
FontFace		=#PrevMonth.font#
FontSize		=#PrevMonth.size#
stringAlign		=#PrevMonth.align#
stringStyle		=#PrevMonth.style#
AntiAlias		=#AA#

[cDay06]		
;Day 7 in week 1
;If the month hasn't started already then something is really wrong.
Measure			=calc				
Formula			=cWD6

[cDay06Draw]
Measure			=calc
Formula			=(cDay05Draw = 1) || (#_sun# = cMonthStart) ? 1 : ((cShowOtherMonths = 1) && (mMonth <> 1) ? -1 : 0)
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter mDay06][!RainmeterHideMeter mPrevDay06]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter mDay06][!RainmeterShowMeter mPrevDay06]
IfEqualValue	=0
IfEqualAction	=!Execute [!RainmeterHideMeter mDay06][!RainmeterHideMeter mPrevDay06]

[cHL06Draw]
Measure			=calc
Formula			=(mDay = cDay06) && (cDay06Draw = 1) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter TodayHL06][!RainmeterHideMeter mDay06]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter TodayHL06][!RainmeterShowMeter mDay06]

[mDay06]
Meter			=string
MeasureName		=cDay06
X				=#pD7.x#
Y				=#pW1.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL06]
Meter			=string
MeasureName		=cDay06
X				=#pD7.x#
Y				=#pW1.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[cDay10]		;Week 2 Begin-----------------------------------------------
;Day 1 in week 2
Measure			=calc
Formula			=cDay06 + 1

[cHL10Draw]
Measure			=calc
Formula			=(mDay = cDay10) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter TodayHL10][!RainmeterHideMeter mDay10]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter TodayHL10][!RainmeterShowMeter mDay10]

[mDay10]
Meter			=string
MeasureName		=cDay10
X				=#pD1.x#
Y				=#pW2.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL10]
Meter			=string
MeasureName		=cDay10
X				=#pD1.x#
Y				=#pW2.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[cDay11]
;Day 2 in week 2
Measure			=calc
Formula			=cDay10 + 1

[cHL11Draw]
Measure			=calc
Formula			=(mDay = cDay11) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter TodayHL11][!RainmeterHideMeter mDay11]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter TodayHL11][!RainmeterShowMeter mDay11]

[mDay11]
Meter			=string
MeasureName		=cDay11
X				=#pD2.x#
Y				=#pW2.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL11]
Meter			=string
MeasureName		=cDay11
X				=#pD2.x#
Y				=#pW2.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[cDay12]
;Day 3 in week 2
Measure			=calc
Formula			=cDay11 + 1

[cHL12Draw]
Measure			=calc
Formula			=(mDay = cDay12) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter TodayHL12][!RainmeterHideMeter mDay12]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter TodayHL12][!RainmeterShowMeter mDay12]

[mDay12]
Meter			=string
MeasureName		=cDay12
X				=#pD3.x#
Y				=#pW2.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL12]
Meter			=string
MeasureName		=cDay12
X				=#pD3.x#
Y				=#pW2.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[cDay13]
;Day 4 in week 2
Measure			=calc
Formula			=cDay12 + 1

[cHL13Draw]
Measure			=calc
Formula			=(mDay = cDay13) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter TodayHL13][!RainmeterHideMeter mDay13]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter TodayHL13][!RainmeterShowMeter mDay13]

[mDay13]
Meter			=string
MeasureName		=cDay13
X				=#pD4.x#
Y				=#pW2.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL13]
Meter			=string
MeasureName		=cDay13
X				=#pD4.x#
Y				=#pW2.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[cDay14]
;Day 5 in week 2
Measure			=calc
Formula			=cDay13 + 1

[cHL14Draw]
Measure			=calc
Formula			=(mDay = cDay14) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter TodayHL14][!RainmeterHideMeter mDay14]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter TodayHL14][!RainmeterShowMeter mDay14]

[mDay14]
Meter			=string
MeasureName		=cDay14
X				=#pD5.x#
Y				=#pW2.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL14]
Meter			=string
MeasureName		=cDay14
X				=#pD5.x#
Y				=#pW2.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[cDay15]
;Day 6 in week 2
Measure			=calc
Formula			=cDay14 + 1

[cHL15Draw]
Measure			=calc
Formula			=(mDay = cDay15) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter TodayHL15][!RainmeterHideMeter mDay15]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter TodayHL15][!RainmeterShowMeter mDay15]

[mDay15]
Meter			=string
MeasureName		=cDay15
X				=#pD6.x#
Y				=#pW2.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL15]
Meter			=string
MeasureName		=cDay15
X				=#pD6.x#
Y				=#pW2.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[cDay16]
;Day 7 in week 2
Measure			=calc
Formula			=cWD6 + 7

[cHL16Draw]
Measure			=calc
Formula			=(mDay = cDay16) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter TodayHL16][!RainmeterHideMeter mDay16]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter TodayHL16][!RainmeterShowMeter mDay16]

[mDay16]
Meter			=string
MeasureName		=cDay16
X				=#pD7.x#
Y				=#pW2.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL16]
Meter			=string
MeasureName		=cDay16
X				=#pD7.x#
Y				=#pW2.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[cDay20]		;Week 3 Begin-----------------------------------------------
;Day 1 in week 3
;Keep adding one
;No need to worry about calculating if day exists until 28th
Measure			=calc				
Formula			=cDay16 + 1

[cHL20Draw]
Measure			=calc
Formula			=(mDay = cDay20) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter TodayHL20][!RainmeterHideMeter mDay20]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter TodayHL20][!RainmeterShowMeter mDay20]

[mDay20]
Meter			=string
MeasureName		=cDay20
X				=#pD1.x#
Y				=#pW3.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL20]
Meter			=string
MeasureName		=cDay20
X				=#pD1.x#
Y				=#pW3.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[cDay21]
;Day 2 in week 3
Measure			=calc				
Formula			=cDay20 + 1

[cHL21Draw]
Measure			=calc
Formula			=(mDay = cDay21) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter TodayHL21][!RainmeterHideMeter mDay21]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter TodayHL21][!RainmeterShowMeter mDay21]

[mDay21]
Meter			=string
MeasureName		=cDay21
X				=#pD2.x#
Y				=#pW3.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL21]
Meter			=string
MeasureName		=cDay21
X				=#pD2.x#
Y				=#pW3.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[cDay22]
;Day 3 in week 3
Measure			=calc
Formula			=cDay21 + 1

[cHL22Draw]
Measure			=calc
Formula			=(mDay = cDay22) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter TodayHL22][!RainmeterHideMeter mDay22]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter TodayHL22][!RainmeterShowMeter mDay22]

[mDay22]
Meter			=string
MeasureName		=cDay22
X				=#pD3.x#
Y				=#pW3.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL22]
Meter			=string
MeasureName		=cDay22
X				=#pD3.x#
Y				=#pW3.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[cDay23]
;Day 4 in week 3
Measure			=calc
Formula			=cDay22 + 1

[cHL23Draw]
Measure			=calc
Formula			=(mDay = cDay23) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter TodayHL23][!RainmeterHideMeter mDay23]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter TodayHL23][!RainmeterShowMeter mDay23]

[mDay23]
Meter			=string
MeasureName		=cDay23
X				=#pD4.x#
Y				=#pW3.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL23]
Meter			=string
MeasureName		=cDay23
X				=#pD4.x#
Y				=#pW3.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[cDay24]
;Day 5 in week 3
Measure			=calc				
Formula			=cDay23 + 1

[cHL24Draw]
Measure			=calc
Formula			=(mDay = cDay24) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter TodayHL24][!RainmeterHideMeter mDay24]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter TodayHL24][!RainmeterShowMeter mDay24]

[mDay24]
Meter			=string
MeasureName		=cDay24
X				=#pD5.x#
Y				=#pW3.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL24]
Meter			=string
MeasureName		=cDay24
X				=#pD5.x#
Y				=#pW3.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[cDay25]
;Day 6 in week 3
Measure			=calc				
Formula			=cDay24 + 1

[cHL25Draw]
Measure			=calc
Formula			=(mDay = cDay25) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter TodayHL25][!RainmeterHideMeter mDay25]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter TodayHL25][!RainmeterShowMeter mDay25]

[mDay25]
Meter			=string
MeasureName		=cDay25
X				=#pD6.x#
Y				=#pW3.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL25]
Meter			=string
MeasureName		=cDay25
X				=#pD6.x#
Y				=#pW3.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[cDay26]
;Day 7 in week 3
Measure			=calc				
Formula			=cWD6 + 14

[cHL26Draw]
Measure			=calc
Formula			=(mDay = cDay26) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter TodayHL26][!RainmeterHideMeter mDay26]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter TodayHL26][!RainmeterShowMeter mDay26]

[mDay26]
Meter			=string
MeasureName		=cDay26
X				=#pD7.x#
Y				=#pW3.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL26]
Meter			=string
MeasureName		=cDay26
X				=#pD7.x#
Y				=#pW3.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[cDay30]		;Week 4 Begin-----------------------------------------------
;Day 1 in Week 4
;No need to worry about calculating if day exists until 28th
Measure			=calc				
Formula			=cDay26 + 1

[cHL30Draw]
Measure			=calc
Formula			=(mDay = cDay30) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter TodayHL30][!RainmeterHideMeter mDay30]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter TodayHL30][!RainmeterShowMeter mDay30]

[mDay30]
Meter			=string
MeasureName		=cDay30
X				=#pD1.x#
Y				=#pW4.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL30]
Meter			=string
MeasureName		=cDay30
X				=#pD1.x#
Y				=#pW4.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[cDay31]
;Day 2 in Week 4
Measure			=calc				
Formula			=cDay30 + 1

[cHL31raw]
Measure			=calc
Formula			=(mDay = cDay31) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter TodayHL31][!RainmeterHideMeter mDay31]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter TodayHL31][!RainmeterShowMeter mDay31]

[mDay31]
Meter			=string
MeasureName		=cDay31
X				=#pD2.x#
Y				=#pW4.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL31]
Meter			=string
MeasureName		=cDay31
X				=#pD2.x#
Y				=#pW4.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[cDay32]
;Day 3 in Week 4
Measure			=calc				
Formula			=cDay31 + 1

[cHL32Draw]
Measure			=calc
Formula			=(mDay = cDay32) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter TodayHL32][!RainmeterHideMeter mDay32]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter TodayHL32][!RainmeterShowMeter mDay32]

[mDay32]
Meter			=string
MeasureName		=cDay32
X				=#pD3.x#
Y				=#pW4.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL32]
Meter			=string
MeasureName		=cDay32
X				=#pD3.x#
Y				=#pW4.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[cDay33]
;Day 4 in Week 4
Measure			=calc				
Formula			=cDay32 + 1

[cHL33Draw]
Measure			=calc
Formula			=(mDay = cDay33) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter TodayHL33][!RainmeterHideMeter mDay33]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter TodayHL33][!RainmeterShowMeter mDay33]

[mDay33]
Meter			=string
MeasureName		=cDay33
X				=#pD4.x#
Y				=#pW4.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL33]
Meter			=string
MeasureName		=cDay33
X				=#pD4.x#
Y				=#pW4.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[cDay34]
;Day 5 in Week 4
Measure			=calc				
Formula			=cDay33 + 1

[cHL34Draw]
Measure			=calc
Formula			=(mDay = cDay34) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter TodayHL34][!RainmeterHideMeter mDay34]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter TodayHL34][!RainmeterShowMeter mDay34]

[mDay34]
Meter			=string
MeasureName		=cDay34
X				=#pD5.x#
Y				=#pW4.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL34]
Meter			=string
MeasureName		=cDay34
X				=#pD5.x#
Y				=#pW4.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[cDay35]
;Day 6 in Week 4
Measure			=calc				
Formula			=cDay34 + 1

[cHL35Draw]
Measure			=calc
Formula			=(mDay = cDay35) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter TodayHL35][!RainmeterHideMeter mDay35]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter TodayHL35][!RainmeterShowMeter mDay35]

[mDay35]
Meter			=string
MeasureName		=cDay35
X				=#pD6.x#
Y				=#pW4.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL35]
Meter			=string
MeasureName		=cDay35
X				=#pD6.x#
Y				=#pW4.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[cDay36]
;Day 7 in Week 4
Measure			=calc				
Formula			=cWD6 + 21

[cHL36Draw]
Measure			=calc
Formula			=(mDay = cDay36) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterShowMeter TodayHL36][!RainmeterHideMeter mDay36]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterHideMeter TodayHL36][!RainmeterShowMeter mDay36]

[mDay36]
Meter			=string
MeasureName		=cDay36
X				=#pD7.x#
Y				=#pW4.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL36]
Meter			=string
MeasureName		=cDay36
X				=#pD7.x#
Y				=#pW4.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[cDay40]		;Week 5 Begin-----------------------------------------------
;Day 1 in Week 5
Measure			=calc				
Formula			=cDay36 + 1

[cNextMonthDay40]
Measure			=calc
Formula			=(cDay40 > cDayCount) ? 1 : 0

[cDay40Sort]
Measure			=calc
Formula			=(cDay40 > cDayCount) ? ((cShowOtherMonths = 1) && (mMonth <> 12) ? 1 : -1) : 0

[cDay40Draw]
Measure			=calc
Formula			=(cDay40Sort = 0) && (mDay <> cDay40) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterHideMeter TodayHL40][!RainmeterShowMeter mDay40]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterShowMeter TodayHL40][!RainmeterHideMeter mDay40]

[cPrevMonthDay40]
Measure			=calc
Formula			=(cDay40Sort = 1) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterHideMeter mDay40][!RainmeterHideMeter TodayHL40][!RainmeterShowMeter mNextDay40]
IfBelowValue	=0
IfBelowAction	=!RainmeterHideMeter mNextDay40

[mDay40]
Meter			=string
MeasureName		=cDay40
X				=#pD1.x#
Y				=#pW5.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL40]
Meter			=string
MeasureName		=cDay40
X				=#pD1.x#
Y				=#pW5.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[mNextDay40]
Meter			=string
MeasureName		=cNextMonthDay40
X				=#pD1.x#
Y				=#pW5.y#
FontColor		=#NextMonth.color#
FontFace		=#NextMonth.font#
FontSize		=#NextMonth.size#
stringAlign		=#NextMonth.align#
stringStyle		=#NextMonth.style#
AntiAlias		=#AA#

[cDay41]
;Day 2 in Week 5
Measure			=calc				
Formula			=cDay40 + 1

[cNextMonthDay41]
Measure			=calc
Formula			=(cDay41 > cDayCount) ? (cNextMonthDay40 + 1) : 0

[cDay41Sort]
Measure			=calc
Formula			=(cDay41 > cDayCount) ? ((cShowOtherMonths = 1) && (mMonth <> 12) ? 1 : -1) : 0

[cDay41Draw]
Measure			=calc
Formula			=(cDay41Sort = 0) && (mDay <> cDay41) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterHideMeter TodayHL41][!RainmeterShowMeter mDay41]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterShowMeter TodayHL41][!RainmeterHideMeter mDay41]

[cPrevMonthDay41]
Measure			=calc
Formula			=(cDay41Sort = 1) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterHideMeter mDay41][!RainmeterHideMeter TodayHL41][!RainmeterShowMeter mNextDay41]
IfBelowValue	=0
IfBelowAction	=!RainmeterHideMeter mNextDay41

[mDay41]
Meter			=string
MeasureName		=cDay41
X				=#pD2.x#
Y				=#pW5.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL41]
Meter			=string
MeasureName		=cDay41
X				=#pD2.x#
Y				=#pW5.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[mNextDay41]
Meter			=string
MeasureName		=cNextMonthDay41
X				=#pD2.x#
Y				=#pW5.y#
FontColor		=#NextMonth.color#
FontFace		=#NextMonth.font#
FontSize		=#NextMonth.size#
stringAlign		=#NextMonth.align#
stringStyle		=#NextMonth.style#
AntiAlias		=#AA#

[cDay42]
;Day 3 in Week 5
Measure			=calc				
Formula			=cDay41 + 1

[cNextMonthDay42]
Measure			=calc
Formula			=(cDay42 > cDayCount) ? (cNextMonthDay41 + 1) : 0

[cDay42Sort]
Measure			=calc
Formula			=(cDay42 > cDayCount) ? ((cShowOtherMonths = 1) && (mMonth <> 12) ? 1 : -1) : 0

[cDay42Draw]
Measure			=calc
Formula			=(cDay42Sort = 0) && (mDay <> cDay42) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterHideMeter TodayHL42][!RainmeterShowMeter mDay42]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterShowMeter TodayHL42][!RainmeterHideMeter mDay42]

[cPrevMonthDay42]
Measure			=calc
Formula			=(cDay42Sort = 1) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterHideMeter mDay42][!RainmeterHideMeter TodayHL42][!RainmeterShowMeter mNextDay42]
IfBelowValue	=0
IfBelowAction	=!RainmeterHideMeter mNextDay42

[mDay42]
Meter			=string
MeasureName		=cDay42
X				=#pD3.x#
Y				=#pW5.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL42]
Meter			=string
MeasureName		=cDay42
X				=#pD3.x#
Y				=#pW5.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[mNextDay42]
Meter			=string
MeasureName		=cNextMonthDay42
X				=#pD3.x#
Y				=#pW5.y#
FontColor		=#NextMonth.color#
FontFace		=#NextMonth.font#
FontSize		=#NextMonth.size#
stringAlign		=#NextMonth.align#
stringStyle		=#NextMonth.style#
AntiAlias		=#AA#

[cDay43]
;Day 4 in Week 5
Measure			=calc				
Formula			=cDay42 + 1

[cNextMonthDay43]
Measure			=calc
Formula			=(cDay43 > cDayCount) ? (cNextMonthDay42 + 1) : 0

[cDay43Sort]
Measure			=calc
Formula			=(cDay43 > cDayCount) ? ((cShowOtherMonths = 1) && (mMonth <> 12) ? 1 : -1) : 0

[cDay43Draw]
Measure			=calc
Formula			=(cDay43Sort = 0) && (mDay <> cDay43) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterHideMeter TodayHL43][!RainmeterShowMeter mDay43]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterShowMeter TodayHL43][!RainmeterHideMeter mDay43]

[cPrevMonthDay43]
Measure			=calc
Formula			=(cDay43Sort = 1) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterHideMeter mDay43][!RainmeterHideMeter TodayHL43][!RainmeterShowMeter mNextDay43]
IfBelowValue	=0
IfBelowAction	=!RainmeterHideMeter mNextDay43

[mDay43]
Meter			=string
MeasureName		=cDay43
X				=#pD4.x#
Y				=#pW5.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL43]
Meter			=string
MeasureName		=cDay43
X				=#pD4.x#
Y				=#pW5.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[mNextDay43]
Meter			=string
MeasureName		=cNextMonthDay43
X				=#pD4.x#
Y				=#pW5.y#
FontColor		=#NextMonth.color#
FontFace		=#NextMonth.font#
FontSize		=#NextMonth.size#
stringAlign		=#NextMonth.align#
stringStyle		=#NextMonth.style#
AntiAlias		=#AA#

[cDay44]
;Day 5 in Week 5
Measure			=calc				
Formula			=cDay43 + 1

[cNextMonthDay44]
Measure			=calc
Formula			=(cDay44 > cDayCount) ? (cNextMonthDay43 + 1) : 0

[cDay44Sort]
Measure			=calc
Formula			=(cDay44 > cDayCount) ? ((cShowOtherMonths = 1) && (mMonth <> 12) ? 1 : -1) : 0

[cDay44Draw]
Measure			=calc
Formula			=(cDay44Sort = 0) && (mDay <> cDay44) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterHideMeter TodayHL44][!RainmeterShowMeter mDay44]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterShowMeter TodayHL44][!RainmeterHideMeter mDay44]

[cPrevMonthDay44]
Measure			=calc
Formula			=(cDay44Sort = 1) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterHideMeter mDay44][!RainmeterHideMeter TodayHL44][!RainmeterShowMeter mNextDay44]
IfBelowValue	=0
IfBelowAction	=!RainmeterHideMeter mNextDay44

[mDay44]
Meter			=string
MeasureName		=cDay44
X				=#pD5.x#
Y				=#pW5.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL44]
Meter			=string
MeasureName		=cDay44
X				=#pD5.x#
Y				=#pW5.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[mNextDay44]
Meter			=string
MeasureName		=cNextMonthDay44
X				=#pD5.x#
Y				=#pW5.y#
FontColor		=#NextMonth.color#
FontFace		=#NextMonth.font#
FontSize		=#NextMonth.size#
stringAlign		=#NextMonth.align#
stringStyle		=#NextMonth.style#
AntiAlias		=#AA#

[cDay45]
;Day 6 in Week 5
Measure			=calc				
Formula			=cDay44 + 1

[cNextMonthDay45]
Measure			=calc
Formula			=(cDay45 > cDayCount) ? (cNextMonthDay44 + 1) : 0

[cDay45Sort]
Measure			=calc
Formula			=(cDay45 > cDayCount) ? ((cShowOtherMonths = 1) && (mMonth <> 12) ? 1 : -1) : 0

[cDay45Draw]
Measure			=calc
Formula			=(cDay45Sort = 0) && (mDay <> cDay45) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterHideMeter TodayHL45][!RainmeterShowMeter mDay45]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterShowMeter TodayHL45][!RainmeterHideMeter mDay45]

[cPrevMonthDay45]
Measure			=calc
Formula			=(cDay45Sort = 1) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterHideMeter mDay45][!RainmeterHideMeter TodayHL45][!RainmeterShowMeter mNextDay45]
IfBelowValue	=0
IfBelowAction	=!RainmeterHideMeter mNextDay45

[mDay45]
Meter			=string
MeasureName		=cDay45
X				=#pD6.x#
Y				=#pW5.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL45]
Meter			=string
MeasureName		=cDay45
X				=#pD6.x#
Y				=#pW5.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[mNextDay45]
Meter			=string
MeasureName		=cNextMonthDay45
X				=#pD6.x#
Y				=#pW5.y#
FontColor		=#NextMonth.color#
FontFace		=#NextMonth.font#
FontSize		=#NextMonth.size#
stringAlign		=#NextMonth.align#
stringStyle		=#NextMonth.style#
AntiAlias		=#AA#

[cDay46]
;Day 7 in Week 5
Measure			=calc				
Formula			=cWD6 + 28

[cNextMonthDay46]
Measure			=calc
Formula			=(cDay46 > cDayCount) ? (cNextMonthDay45 + 1) : 0

[cDay46Sort]
Measure			=calc
Formula			=(cDay46 > cDayCount) ? ((cShowOtherMonths = 1) && (mMonth <> 12) ? 1 : -1) : 0

[cDay46Draw]
Measure			=calc
Formula			=(cDay46Sort = 0) && (mDay <> cDay46) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterHideMeter TodayHL46][!RainmeterShowMeter mDay46]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterShowMeter TodayHL46][!RainmeterHideMeter mDay46]

[cPrevMonthDay46]
Measure			=calc
Formula			=(cDay46Sort = 1) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterHideMeter mDay46][!RainmeterHideMeter TodayHL46][!RainmeterShowMeter mNextDay46]
IfBelowValue	=0
IfBelowAction	=!RainmeterHideMeter mNextDay46

[mDay46]
Meter			=string
MeasureName		=cDay46
X				=#pD7.x#
Y				=#pW5.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL46]
Meter			=string
MeasureName		=cDay46
X				=#pD7.x#
Y				=#pW5.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[mNextDay46]
Meter			=string
MeasureName		=cNextMonthDay46
X				=#pD7.x#
Y				=#pW5.y#
FontColor		=#NextMonth.color#
FontFace		=#NextMonth.font#
FontSize		=#NextMonth.size#
stringAlign		=#NextMonth.align#
stringStyle		=#NextMonth.style#
AntiAlias		=#AA#

[cDay50]		;Week 6 Begin-----------------------------------------------
;Day 1 in Week 6
Measure			=calc				
Formula			=cDay46 + 1

[cNextMonthDay50]
Measure			=calc
Formula			=(cDay50 > cDayCount) ? (cNextMonthDay46 + 1) : 0

[cDay50Sort]
Measure			=calc
Formula			=(cDay50 > cDayCount) ? ((cShowOtherMonths = 1) && (mMonth <> 12) ? 1 : -1) : 0

[cDay50Draw]
Measure			=calc
Formula			=(cDay50Sort = 0) && (mDay <> cDay50) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterHideMeter TodayHL50][!RainmeterShowMeter mDay50]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterShowMeter TodayHL50][!RainmeterHideMeter mDay50]

[cPrevMonthDay50]
Measure			=calc
Formula			=(cDay50Sort = 1) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterHideMeter mDay50][!RainmeterHideMeter TodayHL50][!RainmeterShowMeter mNextDay50]
IfBelowValue	=0
IfBelowAction	=!RainmeterHideMeter mNextDay50

[mDay50]
Meter			=string
MeasureName		=cDay50
X				=#pD1.x#
Y				=#pW6.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL50]
Meter			=string
MeasureName		=cDay50
X				=#pD1.x#
Y				=#pW6.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[mNextDay50]
Meter			=string
MeasureName		=cNextMonthDay50
X				=#pD1.x#
Y				=#pW6.y#
FontColor		=#NextMonth.color#
FontFace		=#NextMonth.font#
FontSize		=#NextMonth.size#
stringAlign		=#NextMonth.align#
stringStyle		=#NextMonth.style#
AntiAlias		=#AA#

[cDay51]
;Day 2 in Week 6
Measure			=calc				
Formula			=cDay50 + 1

[cNextMonthDay51]
Measure			=calc
Formula			=(cDay51 > cDayCount) ? (cNextMonthDay50 + 1) : 0

[cDay51Sort]
Measure			=calc
Formula			=(cDay51 > cDayCount) ? ((cShowOtherMonths = 1) && (mMonth <> 12) ? 1 : -1) : 0

[cDay51Draw]
Measure			=calc
Formula			=(cDay51Sort = 0) && (mDay <> cDay51) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterHideMeter TodayHL51][!RainmeterShowMeter mDay51]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterShowMeter TodayHL51][!RainmeterHideMeter mDay51]

[cPrevMonthDay51]
Measure			=calc
Formula			=(cDay51Sort = 1) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterHideMeter mDay51][!RainmeterHideMeter TodayHL51][!RainmeterShowMeter mNextDay51]
IfBelowValue	=0
IfBelowAction	=!RainmeterHideMeter mNextDay51

[mDay51]
Meter			=string
MeasureName		=cDay51
X				=#pD2.x#
Y				=#pW6.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL51]
Meter			=string
MeasureName		=cDay51
X				=#pD2.x#
Y				=#pW6.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[mNextDay51]
Meter			=string
MeasureName		=cNextMonthDay51
X				=#pD2.x#
Y				=#pW6.y#
FontColor		=#NextMonth.color#
FontFace		=#NextMonth.font#
FontSize		=#NextMonth.size#
stringAlign		=#NextMonth.align#
stringStyle		=#NextMonth.style#
AntiAlias		=#AA#

[cDay52]
;Day 3 in Week 6
Measure			=calc				
Formula			=cDay51 + 1

[cNextMonthDay52]
Measure			=calc
Formula			=(cDay52 > cDayCount) ? (cNextMonthDay51 + 1) : 0

[cDay52Sort]
Measure			=calc
Formula			=(cDay52 > cDayCount) ? ((cShowOtherMonths = 1) && (mMonth <> 12) ? 1 : -1) : 0

[cDay52Draw]
Measure			=calc
Formula			=(cDay52Sort = 0) && (mDay <> cDay52) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterHideMeter TodayHL52][!RainmeterShowMeter mDay52]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterShowMeter TodayHL52][!RainmeterHideMeter mDay52]

[cPrevMonthDay52]
Measure			=calc
Formula			=(cDay52Sort = 1) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterHideMeter mDay52][!RainmeterHideMeter TodayHL52][!RainmeterShowMeter mNextDay52]
IfBelowValue	=0
IfBelowAction	=!RainmeterHideMeter mNextDay52

[mDay52]
Meter			=string
MeasureName		=cDay52
X				=#pD3.x#
Y				=#pW6.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL52]
Meter			=string
MeasureName		=cDay52
X				=#pD3.x#
Y				=#pW6.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[mNextDay52]
Meter			=string
MeasureName		=cNextMonthDay52
X				=#pD3.x#
Y				=#pW6.y#
FontColor		=#NextMonth.color#
FontFace		=#NextMonth.font#
FontSize		=#NextMonth.size#
stringAlign		=#NextMonth.align#
stringStyle		=#NextMonth.style#
AntiAlias		=#AA#

[cDay53]
;Day 4 in Week 6
Measure			=calc				
Formula			=cDay52 + 1

[cNextMonthDay53]
Measure			=calc
Formula			=(cDay53 > cDayCount) ? (cNextMonthDay52 + 1) : 0

[cDay53Sort]
Measure			=calc
Formula			=(cDay53 > cDayCount) ? ((cShowOtherMonths = 1) && (mMonth <> 12) ? 1 : -1) : 0

[cDay53Draw]
Measure			=calc
Formula			=(cDay53Sort = 0) && (mDay <> cDay53) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterHideMeter TodayHL53][!RainmeterShowMeter mDay53]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterShowMeter TodayHL53][!RainmeterHideMeter mDay53]

[cPrevMonthDay53]
Measure			=calc
Formula			=(cDay53Sort = 1) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterHideMeter mDay53][!RainmeterHideMeter TodayHL53][!RainmeterShowMeter mNextDay53]
IfBelowValue	=0
IfBelowAction	=!RainmeterHideMeter mNextDay53

[mDay53]
Meter			=string
MeasureName		=cDay53
X				=#pD4.x#
Y				=#pW6.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL53]
Meter			=string
MeasureName		=cDay53
X				=#pD4.x#
Y				=#pW6.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[mNextDay53]
Meter			=string
MeasureName		=cNextMonthDay53
X				=#pD4.x#
Y				=#pW6.y#
FontColor		=#NextMonth.color#
FontFace		=#NextMonth.font#
FontSize		=#NextMonth.size#
stringAlign		=#NextMonth.align#
stringStyle		=#NextMonth.style#
AntiAlias		=#AA#

[cDay54]
;Day 5 in Week 6
Measure			=calc				
Formula			=cDay53 + 1

[cNextMonthDay54]
Measure			=calc
Formula			=(cDay54 > cDayCount) ? (cNextMonthDay53 + 1) : 0

[cDay54Sort]
Measure			=calc
Formula			=(cDay54 > cDayCount) ? ((cShowOtherMonths = 1) && (mMonth <> 12) ? 1 : -1) : 0

[cDay54Draw]
Measure			=calc
Formula			=(cDay54Sort = 0) && (mDay <> cDay54) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterHideMeter TodayHL54][!RainmeterShowMeter mDay54]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterShowMeter TodayHL54][!RainmeterHideMeter mDay54]

[cPrevMonthDay54]
Measure			=calc
Formula			=(cDay54Sort = 1) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterHideMeter mDay54][!RainmeterHideMeter TodayHL54][!RainmeterShowMeter mNextDay54]
IfBelowValue	=0
IfBelowAction	=!RainmeterHideMeter mNextDay54

[mDay54]
Meter			=string
MeasureName		=cDay54
X				=#pD5.x#
Y				=#pW6.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL54]
Meter			=string
MeasureName		=cDay54
X				=#pD5.x#
Y				=#pW6.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[mNextDay54]
Meter			=string
MeasureName		=cNextMonthDay54
X				=#pD5.x#
Y				=#pW6.y#
FontColor		=#NextMonth.color#
FontFace		=#NextMonth.font#
FontSize		=#NextMonth.size#
stringAlign		=#NextMonth.align#
stringStyle		=#NextMonth.style#
AntiAlias		=#AA#

[cDay55]
;Day 6 in Week 6
Measure			=calc				
Formula			=cDay54 + 1

[cNextMonthDay55]
Measure			=calc
Formula			=(cDay55 > cDayCount) ? (cNextMonthDay54 + 1) : 0

[cDay55Sort]
Measure			=calc
Formula			=(cDay55 > cDayCount) ? ((cShowOtherMonths = 1) && (mMonth <> 12) ? 1 : -1) : 0

[cDay55Draw]
Measure			=calc
Formula			=(cDay55Sort = 0) && (mDay <> cDay55) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterHideMeter TodayHL55][!RainmeterShowMeter mDay55]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterShowMeter TodayHL55][!RainmeterHideMeter mDay55]

[cPrevMonthDay55]
Measure			=calc
Formula			=(cDay55Sort = 1) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterHideMeter mDay55][!RainmeterHideMeter TodayHL55][!RainmeterShowMeter mNextDay55]
IfBelowValue	=0
IfBelowAction	=!RainmeterHideMeter mNextDay55

[mDay55]
Meter			=string
MeasureName		=cDay55
X				=#pD6.x#
Y				=#pW6.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL55]
Meter			=string
MeasureName		=cDay55
X				=#pD6.x#
Y				=#pW6.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[mNextDay55]
Meter			=string
MeasureName		=cNextMonthDay55
X				=#pD6.x#
Y				=#pW6.y#
FontColor		=#NextMonth.color#
FontFace		=#NextMonth.font#
FontSize		=#NextMonth.size#
stringAlign		=#NextMonth.align#
stringStyle		=#NextMonth.style#
AntiAlias		=#AA#

[cDay56]
;Day 7 in Week 6
Measure			=calc				
Formula			=cWD6 + 35

[cNextMonthDay56]
Measure			=calc
Formula			=(cDay56 > cDayCount) ? (cNextMonthDay55 + 1) : 0

[cDay56Sort]
Measure			=calc
Formula			=(cDay56 > cDayCount) ? ((cShowOtherMonths = 1) && (mMonth <> 12) ? 1 : -1) : 0

[cDay56Draw]
Measure			=calc
Formula			=(cDay56Sort = 0) && (mDay <> cDay56) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterHideMeter TodayHL56][!RainmeterShowMeter mDay56]
IfBelowValue	=0
IfBelowAction	=!Execute [!RainmeterShowMeter TodayHL56][!RainmeterHideMeter mDay56]

[cPrevMonthDay56]
Measure			=calc
Formula			=(cDay56Sort = 1) ? 1 : -1
IfAboveValue	=0
IfAboveAction	=!Execute [!RainmeterHideMeter mDay56][!RainmeterHideMeter TodayHL56][!RainmeterShowMeter mNextDay56]
IfBelowValue	=0
IfBelowAction	=!RainmeterHideMeter mNextDay56

[mDay56]
Meter			=string
MeasureName		=cDay56
X				=#pD7.x#
Y				=#pW6.y#
FontColor		=#DayText.color#
FontFace		=#DayText.font#
FontSize		=#DayText.size#
stringAlign		=#DayText.align#
stringStyle		=#DayText.style#
AntiAlias		=#AA#

[TodayHL56]
Meter			=string
MeasureName		=cDay56
X				=#pD7.x#
Y				=#pW6.y#
FontColor		=#BoldDay.color#
FontFace		=#BoldDay.font#
FontSize		=#BoldDay.size#
stringAlign		=#DayText.align#
stringStyle		=#BoldDay.style#
AntiAlias		=#AA#

[mNextDay56]
Meter			=string
MeasureName		=cNextMonthDay56
X				=#pD7.x#
Y				=#pW6.y#
FontColor		=#NextMonth.color#
FontFace		=#NextMonth.font#
FontSize		=#NextMonth.size#
stringAlign		=#NextMonth.align#
stringStyle		=#NextMonth.style#
AntiAlias		=#AA#

[heightDummy]	;Used to keep other skins from snapping to the bottom of an unused week
Meter			=image
X				=0
Y				=#pW6.y#
W				=10
H				=18
SolidColor		=0,0,0,0

[monthLabel]	;The displayed month----------------------------------------
Meter			=string
MeasureName		=cMonthName
X				=7
Y				=15
FontFace		=Trebuchet MS
FontColor		=#Month.color#
FontSize		=14
stringAlign		=#Month.align#
stringStyle		=#Month.style#
AntiAlias		=#AA#
Hidden			=1

[lDay0]			;Day Labels-------------------------------------------------
Meter			=string
Text			=#DayLabel0.text#
X				=10
Y				=24
FontColor		=#DayLabel.color#
FontFace		=#DayLabel.font#
FontSize		=#DayLabel.size#
stringAlign		=#sAlign#
stringStyle		=#sStyle#
AntiAlias		=#AA#

[lDay1]
Meter			=string
Text			=#DayLabel1.text#
X				=30
Y				=r
FontColor		=#DayLabel.color#
FontFace		=#DayLabel.font#
FontSize		=#DayLabel.size#
stringAlign		=#sAlign#
stringStyle		=#sStyle#
AntiAlias		=#AA#

[lDay2]
Meter			=string
Text			=#DayLabel2.text#
X				=50
Y				=r
FontColor		=#DayLabel.color#
FontFace		=#DayLabel.font#
FontSize		=#DayLabel.size#
stringAlign		=#sAlign#
stringStyle		=#sStyle#
AntiAlias		=#AA#

[lDay3]
Meter			=string
Text			=#DayLabel3.text#
X				=70
Y				=r
FontColor		=#DayLabel.color#
FontFace		=#DayLabel.font#
FontSize		=#DayLabel.size#
stringAlign		=#sAlign#
stringStyle		=#sStyle#
AntiAlias		=#AA#

[lDay4]
Meter			=string
Text			=#DayLabel4.text#
X				=90
Y				=r
FontColor		=#DayLabel.color#
FontFace		=#DayLabel.font#
FontSize		=#DayLabel.size#
stringAlign		=#sAlign#
stringStyle		=#sStyle#
AntiAlias		=#AA#

[lDay5]
Meter			=string
Text			=#DayLabel5.text#
X				=110
Y				=r
FontColor		=#DayLabel.color#
FontFace		=#DayLabel.font#
FontSize		=#DayLabel.size#
stringAlign		=#sAlign#
stringStyle		=#sStyle#
AntiAlias		=#AA#

[lDay6]
Meter			=string
Text			=#DayLabel6.text#
X				=130
Y				=r
FontColor		=#DayLabel.color#
FontFace		=#DayLabel.font#
FontSize		=#DayLabel.size#
stringAlign		=#sAlign#
stringStyle		=#sStyle#
AntiAlias		=#AA#

-Month-

[MeasureMonth]
Measure=Time
Format=%B
Substitute="January":"ßíâàðü","February":"Ôåâðàëü","March":"Màðò","April":"Aïðåëü","May":"Màé","June":"Èþíü","July":"Èþëü","August":"Aâãóñò","September":"Ñåíòÿáðü","October":"Oêòÿáðü","November":"Íîÿáðü","December":"Äåêàáðü"


[MeterMonth]
MeasureName=MeasureMonth
Meter=STRING
X=0
Y=4
FontColor=255,255,255,200
FontSize=10
FontFace=Segoe UI
StringAlign=Left
StringStyle=Bold
AntiAlias=1
