//original calendar date : http://javascript.internet.com
// Nanakshari Calendar Date : Nanak Naam Centre Bedford UK (http://www.bedfordgurdwara.org.uk)

var pmons = new Array("",
"Poh", "Maagh", "Phagun", "Chet", "Vaisakhi", "Jeth",
 "Haarh", "Saavan", "Bhaadon", "Assu", "Kattak", "Maggar"
);

var months = new Array("", 
"Maagh", "Phagun", "Chet", "Vaisakhi", "Jeth", "Haarh",
"Saavan", "Bhaadon", "Assu", "Kattak", "Maggar", "Poh"
);

var offset = new Array("", 
"13", "12", "14", "14", "15", "15", "16",
"16", "15", "15", "14", "14"
);

var LeapYr = new Array("", 
"13", "13", "14", "14", "15", "15", "16",
"16", "15", "15", "14", "14"
);

var SikhMonthDaysLeapYear = new Array("", 
"30", "31", "31", "31", "31", "31", "31",
"30", "30", "30", "30", "30"
);

var SikhMonthDays = new Array("", 
"30", "30", "31", "31", "31", "31", "31",
"30", "30", "30", "30", "30"
);

var today = new Date(); // today
var mon = offset[today.getMonth() + 1]; // day of new Sikh month
var monlyr = LeapYr[today.getMonth() + 1]; // day of new Sikh month (leap year)
var day = today.getDate(); // western day
var year = y2k(today.getYear()); // western year

function RomanDate() {
tempdate = new Date();
tempmonth = LeapYr[tempdate.getMonth() + 1];
tempmonb4 = SikhMonthDaysLeapYear[tempdate.getMonth() ];
tmpmonb4 = SikhMonthDays[tempdate.getMonth() ];
tmpmonth = offset[tempdate.getMonth() + 1];
pmonth = months[tempdate.getMonth() + 1];
pmonb4 = months[tempdate.getMonth() ];
tempday = tempdate.getDate();
_1stday = (day - mon +1);
sdaysb4 = (tempmonb4 - -_1stday);//leap year
daysb4s = (tmpmonb4 - -_1stday);
tempyear = y2k(tempdate.getYear());
Sikhyear = (year - 1469);
if(sdaysb4<=0)
Sikhdaysb4 = (sdaysb4 - -"30" + " Poh")
else
Sikhdaysb4 = sdaysb4
if (daysb4s<=0)
Daysb4Sikh = (daysb4s - -"30" + " Poh")
else
Daysb4Sikh = daysb4s
if (tempyear % 4 == 0) // leap year
if (_1stday <=0) // before 1st day of new Sikh month
return("<font class='ldrkred'> " + Sikhdaysb4 + " " + pmonb4 + " " + Sikhyear + " </font>"); // leapyear before new Sikh month
else // after 1st day of new Sikh month
return("<font class='ldrkred'> " + _1stday + " " + pmonth + " " + Sikhyear + " </font>"); // leapyear after new Sikh month
else // not leap year
if (_1stday <=0) // before 1st day of new Sikh month
return("<font class='ldrkred'> " + Daysb4Sikh + " " + pmonb4 + " " + Sikhyear + " </font>"); // before new Sikh month
else // after 1st day of new Sikh month
return("<font class='ldrkred'> " + _1stday + " " + pmonth + " " + Sikhyear + " </font>"); // after new Sikh month
}

function SmallRomanDate() {
tempdate = new Date();
tempmonth = LeapYr[tempdate.getMonth() + 1];
tempmonb4 = SikhMonthDaysLeapYear[tempdate.getMonth() ];
tmpmonb4 = SikhMonthDays[tempdate.getMonth() ];
tmpmonth = offset[tempdate.getMonth() + 1];
pmonth = months[tempdate.getMonth() + 1];
pmonb4 = months[tempdate.getMonth() ];
tempday = tempdate.getDate();
_1stday = (day - mon +1);
sdaysb4 = (tempmonb4 - -_1stday);//leap year
daysb4s = (tmpmonb4 - -_1stday);
tempyear = y2k(tempdate.getYear());
Sikhyear = (year - 1469);
if(sdaysb4<=0)
Sikhdaysb4 = (sdaysb4 - -"30" + " Poh")
else
Sikhdaysb4 = sdaysb4
if (daysb4s<=0)
Daysb4Sikh = (daysb4s - -"30" + " Poh")
else
Daysb4Sikh = daysb4s
if (tempyear % 4 == 0) // leap year
if (_1stday <=0) // before 1st day of new Sikh month
return("<font class='sdrkred'> " + Sikhdaysb4 + " " + pmonb4 + " " + Sikhyear + " </font>"); // leapyear before new Sikh month
else // after 1st day of new Sikh month
return("<font class='sdrkred'> " + _1stday + " " + pmonth + " " + Sikhyear + " </font>"); // leapyear after new Sikh month
else // not leap year
if (_1stday <=0) // before 1st day of new Sikh month
return("<font class='sdrkred'> " + Daysb4Sikh + " " + pmonb4 + " " + Sikhyear + " </font>"); // before new Sikh month
else // after 1st day of new Sikh month
return("<font class='sdrkred'> " + _1stday + " " + pmonth + " " + Sikhyear + " </font>"); // after new Sikh month
}

//gurmukhi moded version

var gmons = new Array("",
"poh", "mwG", "P`gx", "cyq", "ivswK", "jyT",
 "hwV", "swa¨x", "Bwdo", "A`sU", "k`qk", "m`Gr"
);

var mths = new Array("", 
"mwG", "P`gx", "cyq", "ivswK", "jyT", "hwV",
"swa¨x", "Bwdo", "A`sU", "k`qk", "m`Gr", "poh"
);

var offset = new Array("", 
"13", "12", "14", "14", "15", "15", "16",
"16", "15", "15", "14", "14"
);

var LeapYr = new Array("", 
"13", "13", "14", "14", "15", "15", "16",
"16", "15", "15", "14", "14"
);

var SikhMonthDaysLeapYear = new Array("", 
"30", "31", "31", "31", "31", "31", "31",
"30", "30", "30", "30", "30"
);

var SikhMonthDays = new Array("", 
"30", "30", "31", "31", "31", "31", "31",
"30", "30", "30", "30", "30"
);

var today = new Date(); // today
var mon = offset[today.getMonth() + 1]; // day of new Sikh month
var monlyr = LeapYr[today.getMonth() + 1]; // day of new Sikh month (leap year)
var day = today.getDate(); // western day
var year = y2k(today.getYear()); // western year

function GurmukhiDate() {
tepdate = new Date();
tempmonth = LeapYr[tepdate.getMonth() + 1];
tempmonb4 = SikhMonthDaysLeapYear[tepdate.getMonth() ];
tmpmonb4 = SikhMonthDays[tepdate.getMonth() ];
tmpmonth = offset[tepdate.getMonth() + 1];
gmonth = mths[tepdate.getMonth() + 1];
gmonb4 = mths[tepdate.getMonth() ];
tempday = tepdate.getDate();
_1stday = (day - mon +1);
sdaysb4 = (tempmonb4 - -_1stday);//leap year
daysb4s = (tmpmonb4 - -_1stday);
tempyear = y2k(tepdate.getYear());
Sikhyear = (year - 1469);
if(sdaysb4<=0)
Sikhdaysb4 = (sdaysb4 - -"30" + " poh")
else
Sikhdaysb4 = sdaysb4
if (daysb4s<=0)
Daysb4Sikh = (daysb4s - -"30" + " poh")
else
Daysb4Sikh = daysb4s
if (tempyear % 4 == 0) // leap year
if (_1stday <=0) // before 1st day of new Sikh month
return("<font class='gdrkred'> &nbsp;" + Sikhdaysb4 + " " + gmonb4 + " " + Sikhyear + " </font>"); // leapyear before new Sikh month
else // after 1st day of new Sikh month
return("<font class='gdrkred'> &nbsp;" + _1stday + " " + gmonth + " " + Sikhyear + " </font>"); // leapyear after new Sikh month
else // not leap year
if (_1stday <=0) // before 1st day of new Sikh month
return("<font class='gdrkred'> &nbsp;" + Daysb4Sikh + " " + gmonb4 + " " + Sikhyear + " </font>"); // before new Sikh month
else // after 1st day of new Sikh month
return("<font class='gdrkred'> &nbsp;" + _1stday + " " + gmonth + " " + Sikhyear + " </font>"); // after new Sikh month
}

//end gurmukhi moded vesion


var pmons = new Array("",
"Poh", "Maagh", "Phagun", "Chet", "Vaisakhi", "Jeth",
 "Haarh", "Saavan", "Bhaadon", "Assu", "Kattak", "Maggar"
);

var months = new Array("", 
"Maagh", "Phagun", "Chet", "Vaisakhi", "Jeth", "Haarh",
"Saavan", "Bhaadon", "Assu", "Kattak", "Maggar", "Poh"
);

var offset = new Array("", 
"13", "12", "14", "14", "15", "15", "16",
"16", "15", "15", "14", "14"
);

var LeapYr = new Array("", 
"13", "13", "14", "14", "15", "15", "16",
"16", "15", "15", "14", "14"
);

var SikhMonthDaysLeapYear = new Array("", 
"30", "31", "31", "31", "31", "31", "31",
"30", "30", "30", "30", "30"
);

var SikhMonthDays = new Array("", 
"30", "30", "31", "31", "31", "31", "31",
"30", "30", "30", "30", "30"
);

var today = new Date(); // today
var mon = offset[today.getMonth() + 1]; // day of new Sikh month
var monlyr = LeapYr[today.getMonth() + 1]; // day of new Sikh month (leap year)
var day = today.getDate(); // western day
var year = y2k(today.getYear()); // western year

function MonthBaniM5() {
tempdate = new Date();
tempmonth = LeapYr[tempdate.getMonth() + 1];
tempmonb4 = SikhMonthDaysLeapYear[tempdate.getMonth() ];
tmpmonb4 = SikhMonthDays[tempdate.getMonth() ];
tmpmonth = offset[tempdate.getMonth() + 1];
pmonth = months[tempdate.getMonth() + 1];
pmonb4 = months[tempdate.getMonth() ];
tempday = tempdate.getDate();
_1stday = (day - mon +1);
sdaysb4 = (tempmonb4 - -_1stday);
daysb4s = (tmpmonb4 - -_1stday);
tempyear = y2k(tempdate.getYear());
Sikhyear = (year - 1469);
mPoh = ("<font class=1>In the month of Poh, the cold does not touch those, whom the Husband Lord hugs close in His Embrace.</font></td></tr><tr><td width=100%><font class=1>Their minds are transfixed by His Lotus Feet. They are attached to the Blessed Vision of the Lord\'s Darshan.</font></td></tr><tr><td width=100%><font class=1>Seek the Protection of the Lord of the Universe; His service is truly profitable.</font></td></tr><tr><td width=100%><font class=1>Corruption shall not touch you, when you join the Holy Saints and sing the Lord\'s Praises.</font></td></tr><tr><td width=100%><font class=1>From where it originated, there the soul is blended again. It is absorbed in the Love of the True Lord.</font></td></tr><tr><td width=100%><font class=1>When the Supreme Lord God grasps someone\'s hand, he shall never again suffer separation from Him.</font></td></tr><tr><td width=100%><font class=1>I am a sacrifice, 100,000 times, to the Lord, my Friend, the Unapproachable and Unfathomable.</font></td></tr><tr><td width=100%><font class=1>Please preserve my honour, Lord\; Nanak begs at Your Door.</font></td></tr><tr><td width=100%><font class=1>Poh is beautiful and all comforts come to that one, whom the Carefree Lord has forgiven. \|\|11\|\|</font>");
mMaagh = ("<font class=1>In the month of Maagh, let your cleansing bath be the dust of the Saadh Sangat, the Company of the Holy.</font></td></tr><tr><td width=100%><font class=1>Meditate and listen to the Name of the Lord and give it to everyone.</font></td></tr><tr><td width=100%><font class=1>In this way, the filth of lifetimes of karma shall be removed and egotistical pride shall vanish from your mind.</font></td></tr><tr><td width=100%><font class=1>Sexual desire and anger shall not seduce you and the dog of greed shall depart.</font></td></tr><tr><td width=100%><font class=1>Those who walk on the Path of Truth shall be praised throughout the world.</font></td></tr><tr><td width=100%><font class=1>Be kind to all beings-this is more meritorious than bathing at the sixty-eight sacred shrines of pilgrimage and the giving of charity.</font></td></tr><tr><td width=100%><font class=1>That person, upon whom the Lord bestows His Mercy, is a wise person.</font></td></tr><tr><td width=100%><font class=1>Nanak is a sacrifice to those who have merged with God.</font></td></tr><tr><td width=100%><font class=1>In Maagh, they alone are known as true, unto whom the Perfect Guru is Merciful. \|\|12\|\|</font>");
mPhagun = ("<font class=1>In the month of Phalgun, bliss comes to those, unto whom the Lord, the Friend, has been revealed.</font></td></tr><tr><td width=100%><font class=1>The Saints, the Lord's helpers, in their mercy, have united me with Him.</font></td></tr><tr><td width=100%><font class=1>My bed is beautiful and I have all comforts. I feel no sadness at all.</font></td></tr><tr><td width=100%><font class=1>My desires have been fulfiled-by great good fortune, I have obtained the Sovereign Lord as my Husband.</font></td></tr><tr><td width=100%><font class=1>Join with me, my sisters and sing the songs of rejoicing and the Hymns of the Lord of the Universe.</font></td></tr><tr><td width=100%><font class=1>There is no other like the Lord-there is no equal to Him.</font></td></tr><tr><td width=100%><font class=1>He embellishes this world and the world hereafter and He gives us our permanent home there.</font></td></tr><tr><td width=100%><font class=1>He rescues us from the world-ocean; never again do we have to run the cycle of reincarnation.</font></td></tr><tr><td width=100%><font class=1>I have only one tongue, but Your Glorious Virtues are beyond counting. Nanak is saved, falling at Your Feet.</font></font></td></tr><tr><td width=100%><font class=1>In Phalgun, praise Him continually; He has not even an iota of greed. \|\|13</font>");
mChet = ("<font class=1>In the month of Chayt, by meditating on the Lord of the Universe, a deep and profound joy arises.</font></td></tr><tr><td width=70%><font class=1>Meeting with the humble Saints, the Lord is found, as we chant His Name with our tongues.</font></td></tr><tr><td width=100%><font class=1>Those who have found God-blessed is their coming into this world.</font></td></tr><tr><td width=100%><font class=1>Those who live without Him, for even an instant-their lives are rendered useless.</font></td></tr><tr><td width=100%><font class=1>The Lord is totally pervading the water, the land and all space. He is contained in the forests as well.</font></td></tr><tr><td width=100%><font class=1>Those who do not remember God-how much pain must they suffer.</font></td></tr><tr><td width=100%><font class=1>Those who dwell upon their God have great good fortune.</font></td></tr><tr><td width=100%><font class=1>My mind yearns for the Blessed Vision of the Lord's Darshan. O Nanak, my mind is so thirsty.</font></td></tr><tr><td width=100%><font class=1>I touch the feet of one who unites me with God in the month of Chayt. \|\|2\|\|</font></td>");
mVaisakhi = ("<font class=1>In the month of Vaisaakh, how can the bride be patient\? She is separated from her Beloved.</font></td></tr><tr><td width=100%><font class=1>She has forgotten the Lord, her Life-companion, her Master; she has become attached to Maya, the deceitful one.</font></td></tr><tr><td width=100%><font class=1>Neither son, nor spouse, nor wealth shall go along with you-only the Eternal Lord.</font></td></tr><tr><td width=100%><font class=1>Entangled and enmeshed in the love of false occupations, the whole world is perishing.</font></td></tr><tr><td width=100%><font class=1>Without the Naam, the Name of the One Lord, they lose their lives in the hereafter.</font></td></tr><tr><td width=100%><font class=1>Forgetting the Merciful Lord, they are ruined. Without God, there is no other at all.</font></td></tr><tr><td width=100%><font class=1>Pure is the reputation of those who are attached to the Feet of the Beloved Lord.</font></td></tr><tr><td width=100%><font class=1>Nanak makes this prayer to God: \"Please, come and unite me with Yourself.\"</font></td></tr><tr><td width=100%><font class=1>The month of Vaisaakh is beautiful and pleasant, when the Saint causes me to meet the Lord. \|\|3\|\|</font>");
mJeth = ("<font class=1>In the month of Jayt\'h, the bride longs to meet with the Lord. All bow in humility before Him.</font></td></tr><tr><td width=100%><font class=1>One who has grasped the hem of the robe of the Lord, the True Friend-no one can keep him in bondage.</font></td></tr><tr><td width=100%><font class=1>God's Name is the Jewel, the Pearl. It cannot be stolen or taken away.</font></td></tr><tr><td width=100%><font class=1>In the Lord are all pleasures which please the mind.</font></td></tr><tr><td width=100%><font class=1>As the Lord wishes, so He acts and so His creatures act.</font></td></tr><tr><td width=100%><font class=1>They alone are called blessed, whom God has made His Own.</font></td></tr><tr><td width=100%><font class=1>If people could meet the Lord by their own efforts, why would they be crying out in the pain of separation\?</font></td></tr><tr><td width=100%><font class=1>Meeting Him in the Saadh Sangat, the Company of the Holy, O Nanak, celestial bliss is enjoyed.</font></td></tr><tr><td width=100%><font class=1>In the month of Jayt\'h, the playful Husband Lord meets her, upon whose forehead such good destiny is recorded. \|\|4\|\|</font>");
mHaarh = ("<font class=1>The month of Aasaarh seems burning hot, to those who are not close to their Husband Lord.</font></td></tr><tr><td width=100%><font class=1>They have forsaken God the Primal Being, the Life of the World and they have come to rely upon mere mortals.</font></td></tr><tr><td width=100%><font class=1>In the love of duality, the soul-bride is ruined; around her neck she wears the noose of Death.</font></td></tr><tr><td width=100%><font class=1>As you plant, so shall you harvest; your destiny is recorded on your forehead.</font></td></tr><tr><td width=100%><font class=1>The life-night passes away and in the end, one comes to regret and repent and then depart with no hope at all.</font></td></tr><tr><td width=100%><font class=1>Those who meet with the Holy Saints are liberated in the Court of the Lord.</font></td></tr><tr><td width=100%><font class=1>Show Your Mercy to me, O God; I am thirsty for the Blessed Vision of Your Darshan.</font></td></tr><tr><td width=100%><font class=1>Without You, God, there is no other at all. This is Nanak's humble prayer.</font></td></tr><tr><td width=100%><font class=1>The month of Aasaarh is pleasant, when the Feet of the Lord abide in the mind. \|\|5\|\|</font>");
mSaavan = ("<font class=1>In the month of Saawan, the soul-bride is happy, if she falls in love with the Lotus Feet of the Lord.</font></td></tr><tr><td width=100%><font class=1>Her mind and body are imbued with the Love of the True One; His Name is her only Support.</font></td></tr><tr><td width=100%><font class=1>The pleasures of corruption are false. All that is seen shall turn to ashes.</font></td></tr><tr><td width=100%><font class=1>The drops of the Lord's Nectar are so beautiful. Meeting the Holy Saint, we drink these in.</font></td></tr><tr><td width=100%><font class=1>The forests and the meadows are rejuvenated and refreshed with the Love of God, the All-powerful, Infinite Primal Being.</font></td></tr><tr><td width=100%><font class=1>My mind yearns to meet the Lord. If only He would show His Mercy and unite me with Himself.</font></td></tr><tr><td width=100%><font class=1>Those brides who have obtained God-I am forever a sacrifice to them.</font></td></tr><tr><td width=100%><font class=1>O Nanak, when the Dear Lord shows kindness, He adorns His bride with the Word of His Shabad.</font></td></tr><tr><td width=100%><font class=1>Saawan is delightful for those happy soul-brides whose hearts are adorned with the Necklace of the Lord's Name. \|\|6\|\|</font>");
mBhaadon = ("<font class=1>In the month of Bhaadon, she is deluded by doubt, because of her attachment to duality.</font></td></tr><tr><td width=100%><font class=1>She may wear thousands of ornaments, but they are of no use at all.</font></td></tr><tr><td width=100%><font class=1>On that day when the body perishes-at that time, she becomes a ghost.</font></td></tr><tr><td width=100%><font class=1>The Messenger of Death seizes and holds her and does not tell anyone his secret.</font></td></tr><tr><td width=100%><font class=1>And her loved ones-in an instant, they move on, leaving her all alone.</font></td></tr><tr><td width=100%><font class=1>She wrings her hands, her body writhes in pain and she turns from black to white.</font></td></tr><tr><td width=100%><font class=1>As she has planted, so does she harvest; such is the field of karma.</font></td></tr><tr><td width=100%><font class=1>Nanak seeks God's Sanctuary; God has given him the Boat of His Feet.</font></td></tr><tr><td width=100%><font class=1>Those who love the Guru, the Protector and Savior, in Bhaadon, shall not be thrown down into hell. \|\|7\|\|</font>");
mAssu = ("<font class=1>In the month of Assu, my love for the Lord overwhelms me. How can I go and meet the Lord\?</font></td></tr><tr><td width=100%><font class=1>My mind and body are so thirsty for the Blessed Vision of His Darshan. Won\'t someone please come and lead me to him, O my mother.</font></td></tr><tr><td width=100%><font class=1>The Saints are the helpers of the Lord's lovers; I fall and touch their feet.</font></td></tr><tr><td width=100%><font class=1>Without God, how can I find peace\? There is nowhere else to go.</font></td></tr><tr><td width=100%><font class=1>Those who have tasted the sublime essence of His Love, remain satisfied and fulfiled.</font></td></tr><tr><td width=100%><font class=1>They renounce their selfishness and conceit and they pray, \"God, please attach me to the hem of Your robe.\"</font></td></tr><tr><td width=100%><font class=1>Those whom the Husband Lord has united with Himself, shall not be separated from Him again.</font></td></tr><tr><td width=100%><font class=1>Without God, there is no other at all. Nanak has entered the Sanctuary of the Lord.</font></td></tr><tr><td width=100%><font class=1>In Assu, the Lord, the Sovereign King, has granted His Mercy and they dwell in peace. \|\|8\|\|</font>");
mKattak = ("<font class=1>In the month of Katak, do good deeds. Do not try to blame anyone else.</font></td></tr><tr><td width=100%><font class=1>Forgetting the Transcendent Lord, all sorts of illnesses are contracted.</font></td></tr><tr><td width=100%><font class=1>Those who turn their backs on the Lord shall be separated from Him and consigned to reincarnation, over and over again.</font></td></tr><tr><td width=100%><font class=1>In an instant, all of Maya's sensual pleasures turn bitter.</font></td></tr><tr><td width=100%><font class=1>No one can then serve as your intermediary. Unto whom can we turn and cry\?</font></td></tr><tr><td width=100%><font class=1>By one's own actions, nothing can be done; destiny was pre-determined from the very beginning.</font></td></tr><tr><td width=100%><font class=1>By great good fortune, I meet my God and then all pain of separation departs.</font></td></tr><tr><td width=100%><font class=1>Please protect Nanak, God; O my Lord and Master, please release me from bondage.</font></td></tr><tr><td width=100%><font class=1>In Katak, in the Company of the Holy, all anxiety vanishes. \|\|9\|\|</font>");
mMaggar = ("<font class=1>In the month of Maghar, those who sit with their Beloved Husband Lord are beautiful.</font></td></tr><tr><td width=100%><font class=1>How can their glory be measured\? Their Lord and Master blends them with Himself.</font></td></tr><tr><td width=100%><font class=1>Their bodies and minds blossom forth in the Lord; they have the companionship of the Holy Saints.</font></td></tr><tr><td width=100%><font class=1>Those who lack the Company of the Holy, remain all alone.</font></td></tr><tr><td width=100%><font class=1>Their pain never departs and they fall into the grip of the Messenger of Death.</font></td></tr><tr><td width=100%><font class=1>Those who have ravished and enjoyed their God, are seen to be continually exalted and uplifted.</font></td></tr><tr><td width=100%><font class=1>They wear the Necklace of the jewels, emeralds and rubies of the Lord's Name.</font></td></tr><tr><td width=100%><font class=1>Nanak seeks the dust of the feet of those who take to the Sanctuary of the Lord's Door.</font></td></tr><tr><td width=100%><font class=1>Those who worship and adore God in Maghar, do not suffer the cycle of reincarnation ever again. \|\|10\|\|</font>");
if(sdaysb4<=0) //fix for year start
pmonb4 = "Poh"
if (daysb4s<=0) //fix for year start
pmonth = "Poh"
if (tempyear % 4 == 0) // leap year
if (_1stday <=0) // before 1st day of new Sikh month
switch (pmonb4){
case "Poh" :return(mPoh);
break
case "Maagh" :return(mMaagh)
break
case "Phagun" :return(mPhagun);
break
case "Chet" :return(mChet);
break
case "Vaisakhi" :return(mVaisakhi);
break
case "Jeth" :return(mJeth);
break
case "Haarh" :return(mHaarh);
break
case "Saavan" :return(mSaavan);
break
case "Bhaadon" :return(mBhaadon);
break
case "Assu" :return(mAssu);
break
case "Kattak" :return(mKattak);
break
case "Maggar" :return(mMaggar);
break
default:return("error date unavailable");
}
else // after 1st day of new Sikh month
switch (pmonth){
case "Poh" :return(mPoh);
break
case "Maagh" :return(mMaagh)
break
case "Phagun" :return(mPhagun);
break
case "Chet" :return(mChet);
break
case "Vaisakhi" :return(mVaisakhi);
break
case "Jeth" :return(mJeth);
break
case "Haarh" :return(mHaarh);
break
case "Saavan" :return(mSaavan);
break
case "Bhaadon" :return(mBhaadon);
break
case "Assu" :return(mAssu);
break
case "Kattak" :return(mKattak);
break
case "Maggar" :return(mMaggar);
break
default:return("error date unavailable");
}
else // not leap year
if (_1stday <=0) // before 1st day of new Sikh month
switch (pmonb4){
case "Poh" :return(mPoh);
break
case "Maagh" :return(mMaagh)
break
case "Phagun" :return(mPhagun);
break
case "Chet" :return(mChet);
break
case "Vaisakhi" :return(mVaisakhi);
break
case "Jeth" :return(mJeth);
break
case "Haarh" :return(mHaarh);
break
case "Saavan" :return(mSaavan);
break
case "Bhaadon" :return(mBhaadon);
break
case "Assu" :return(mAssu);
break
case "Kattak" :return(mKattak);
break
case "Maggar" :return(mMaggar);
break
default:return("error date unavailable");
}
else // after 1st day of new Sikh month
switch (pmonth){
case "Poh" :return(mPoh);
break
case "Maagh" :return(mMaagh)
break
case "Phagun" :return(mPhagun);
break
case "Chet" :return(mChet);
break
case "Vaisakhi" :return(mVaisakhi);
break
case "Jeth" :return(mJeth);
break
case "Haarh" :return(mHaarh);
break
case "Saavan" :return(mSaavan);
break
case "Bhaadon" :return(mBhaadon);
break
case "Assu" :return(mAssu);
break
case "Kattak" :return(mKattak);
break
case "Maggar" :return(mMaggar);
break
default:return("error date unavailable");
}
}
function MonthBaniM1() {
tempdate = new Date();
tempmonth = LeapYr[tempdate.getMonth() + 1];
tempmonb4 = SikhMonthDaysLeapYear[tempdate.getMonth() ];
tmpmonb4 = SikhMonthDays[tempdate.getMonth() ];
tmpmonth = offset[tempdate.getMonth() + 1];
pmonth = months[tempdate.getMonth() + 1];
pmonb4 = months[tempdate.getMonth() ];
tempday = tempdate.getDate();
_1stday = (day - mon +1);
sdaysb4 = (tempmonb4 - -_1stday);
daysb4s = (tmpmonb4 - -_1stday);
tempyear = y2k(tempdate.getYear());
Sikhyear = (year - 1469);
mPoh = ("<font class=1>In Poh, the snow falls and the sap of the trees and the fields dries up.</font></td></tr><tr><td width=100%><font class=1>Why have You not come\? I keep You in my mind, body and mouth.</font></td></tr><tr><td width=100%><font class=1>He is permeating and pervading my mind and body\; He is the Life of the World. Through the Word of the Guru\'s Shabad, I enjoy His Love.</font></td></tr><tr><td width=100%><font class=1>His Light fills all those born of eggs, born from the womb, born of sweat and born of the earth, each and every heart.</font></td></tr><tr><td width=100%><font class=1>Grant me the Blessed Vision of Your Darshan, O Lord of Mercy and Compassion. O Great Giver, grant me understanding, that I might find salvation.</font></td></tr><tr><td width=100%><font class=1>O Nanak, the Lord enjoys, savors and ravishes the bride who is in love with Him. \|\|14\|\|</font>");
mMaagh = ("<font class=1>In Maagh, I become pure\; I know that the sacred shrine of pilgrimage is within me.</font></td></tr><tr><td width=100%><font class=1>I have met my Friend with intuitive ease\; I grasp His Glorious Virtues and merge in His Being.</font></td></tr><tr><td width=100%><font class=1>O my Beloved, Beauteous Lord God, please listen\: I sing Your Glories and merge in Your Being. If it is pleasing to Your Will, I bathe in the sacred pool within.</font></td></tr><tr><td width=100%><font class=1>The Ganges, Jamunaa, the sacred meeting place of the three rivers, the seven seas, charity, donations, adoration and worship all rest in the Transcendent Lord God\; throughout the ages, I realise the One.</font></td></tr><tr><td width=100%><font class=1>O Nanak, in Maagh, the most sublime essence is meditation on the Lord\; this is the cleansing bath of the sixty-eight sacred shrines of pilgrimage. \|\|15\|\|</font>");
mPhagun = ("<font class=1>In Phalgun, her mind is enraptured, pleased by the Love of her Beloved.</font></td></tr><tr><td width=100%><font class=1>Night and day, she is enraptured and her selfishness is gone.</font></td></tr><tr><td width=100%><font class=1>Emotional attachment is eradicated from her mind, when it pleases Him\; in His Mercy, He comes to my home.</font></td></tr><tr><td width=100%><font class=1>I dress in various clothes, but without my Beloved, I shall not find a place in the Mansion of His Presence.</font></td></tr><tr><td width=100%><font class=1>I have adorned myself with garlands of flowers, pearl necklaces, scented oils and silk robes.</font></td></tr><tr><td width=100%><font class=1>O Nanak, the Guru has united me with Him. The soul-bride has found her Husband Lord, within the home of her own heart. \|\|16\|\|</font>");
mChet = ("<font class=1></font></td></tr><tr><td width=100%><font class=1>In the month of Chayt, the lovely spring has come and the bumble bees hum with joy.</font></td></tr><tr><td width=100%><font class=1>The forest is blossoming in front of my door\; if only my Beloved would return to my home.</font></td></tr><tr><td width=100%><font class=1>If her Husband Lord does not return home, how can the soul-bride find peace\? Her body is wasting away with the sorrow of separation.</font></td></tr><tr><td width=100%><font class=1>The beautiful song-bird sings, perched on the mango tree\; but how can I endure the pain in the depths of my being\?</font></td></tr><tr><td width=100%><font class=1>The bumble bee is buzzing around the flowering branches\; but how can I survive\? I am dying, O my mother.</font></td></tr><tr><td width=100%><font class=1>O Nanak, in Chayt, peace is easily obtained, if the soul-bride obtains the Lord as her Husband, within the home of her own heart. \|\|5\|\|</font>");
mVaisakhi = ("<font class=1></font></td></tr><tr><td width=100%><font class=1>Baisakhi is so pleasant\; the branches blossom with new leaves.</font></td></tr><tr><td width=100%><font class=1>The soul-bride yearns to see the Lord at her door. Come, O Lord and take pity on me.</font></td></tr><tr><td width=100%><font class=1>Please come home, O my Beloved\; carry me across the treacherous world-ocean. Without You, I am not worth even a shell.</font></td></tr><tr><td width=100%><font class=1>Who can estimate my worth, if I am pleasing to You\? I see You and inspire others to see You, O my Love.</font></td></tr><tr><td width=100%><font class=1>I know that You are not far away\; I believe that You are deep within me and I realise Your Presence.</font></td></tr><tr><td width=100%><font class=1>O Nanak, finding God in Baisakhi, the consciousness is filled with the Word of the Shabad and the mind comes to believe. \|\|6\|\|</font>");
mJeth = ("<font class=1>The month of Jayt\'h is so sublime. How could I forget my Beloved\?</font></td></tr><tr><td width=100%><font class=1>The earth burns like a furnace and the soul-bride offers her prayer.</font></td></tr><tr><td width=100%><font class=1>The bride offers her prayer and sings His Glorious Praises\; singing His Praises, she becomes pleasing to God.</font></td></tr><tr><td width=100%><font class=1>The Unattached Lord dwells in His true mansion. If He allows me, then I will come to Him.</font></td></tr><tr><td width=100%><font class=1>The bride is dishonoured and powerless\; how will she find peace without her Lord\?</font></td></tr><tr><td width=100%><font class=1>O Nanak, in Jayt\'h, she who knows her Lord becomes just like Him\; grasping virtue, she meets with the Merciful Lord. \|\|7\|\|</font>");
mHaarh = ("<font class=1>The month of Aasaarh is good\; the sun blazes in the sky.</font></td></tr><tr><td width=100%><font class=1>The earth suffers in pain, parched and roasted in the fire.</font></td></tr><tr><td width=100%><font class=1>The fire dries up the moisture and she dies in agony. But even then, the sun does not grow tired.</font></td></tr><tr><td width=100%><font class=1>His chariot moves on and the soul-bride seeks shade\; the crickets are chirping in the forest.</font></td></tr><tr><td width=100%><font class=1>She ties up her bundle of faults and demerits and suffers in the world hereafter. But dwelling on the True Lord, she finds peace.</font></td></tr><tr><td width=100%><font class=1>O Nanak, I have given this mind to Him\; death and life rest with God. \|\|8\|\|</font>");
mSaavan = ("<font class=1>In Saawan, be happy, O my mind. The rainy season has come and the clouds have burst into showers.</font></td></tr><tr><td width=100%><font class=1>My mind and body are pleased by my Lord, but my Beloved has gone away.</font></td></tr><tr><td width=100%><font class=1>My Beloved has not come home and I am dying of the sorrow of separation. The lightning flashes and I am scared.</font></td></tr><tr><td width=100%><font class=1>My bed is lonely and I am suffering in agony. I am dying in pain, O my mother.</font></td></tr><tr><td width=100%><font class=1>Tell me - without the Lord, how can I sleep, or feel hungry\? My clothes give no comfort to my body.</font></td></tr><tr><td width=100%><font class=1>O Nanak, she alone is a happy soul-bride, who merges in the Being of her Beloved Husband Lord. \|\|9\|\|</font>");
mBhaadon = ("<font class=1>In Bhaadon, the young woman is confused by doubt\; later, she regrets and repents.</font></td></tr><tr><td width=100%><font class=1>The lakes and fields are overflowing with water\; the rainy season has come - the time to celebrate.</font></td></tr><tr><td width=100%><font class=1>In the dark of night it rains\; how can the young bride find peace\? The frogs and peacocks send out their noisy calls.</font></td></tr><tr><td width=100%><font class=1>\"Pri-o. Pri-o. Beloved. Beloved.\" cries the rainbird, while the snakes slither around, biting.</font></td></tr><tr><td width=100%><font class=1>The mosquitoes bite and sting and the ponds are filled to overflowing\; without the Lord, how can she find peace\?</font></td></tr><tr><td width=100%><font class=1>O Nanak, I will go and ask my Guru\; wherever God is, there I will go. \|\|10\|\|</font>");
mAssu = ("<font class=1>In Assu, come, my Beloved\; the soul-bride is grieving to death.</font></td></tr><tr><td width=100%><font class=1>She can only meet Him, when God leads her to meet Him\; she is ruined by the love of duality.</font></td></tr><tr><td width=100%><font class=1>If she is plundered by falsehood, then her Beloved forsakes her. Then, the white flowers of old age blossom in my hair.</font></td></tr><tr><td width=100%><font class=1>Summer is now behind us and the winter season is ahead. Gazing upon this play, my shaky mind wavers.</font></td></tr><tr><td width=100%><font class=1>In all ten directions, the branches are green and alive. That which ripens slowly, is sweet.</font></td></tr><tr><td width=100%><font class=1>O Nanak, in Assu, please meet me, my Beloved. The True Guru has become my Advocate and Friend. \|\|11\|\|</font>");
mKattak = ("<font class=1>In Katak, that alone comes to pass, which is pleasing to the Will of God.</font></td></tr><tr><td width=100%><font class=1>The lamp of intuition burns, lit by the essence of reality.</font></td></tr><tr><td width=100%><font class=1>Love is the oil in the lamp, which unites the soul-bride with her Lord. The bride is delighted, in ecstasy.</font></td></tr><tr><td width=100%><font class=1>One who dies in faults and demerits - her death is not successful. But one who dies in glorious virtue, really truly dies.</font></td></tr><tr><td width=100%><font class=1>Those who are blessed with devotional worship of the Naam, the Name of the Lord, sit in the home of their own inner being. They place their hopes in You.</font></td></tr><tr><td width=100%><font class=1>Nanak\: please open the shutters of Your Door, O Lord and meet me. A single moment is like six months to me. \|\|12\|\|</font>");
mMaggar = ("<font class=1>The month of Maghar is good, for those who sing the Glorious Praises of the Lord and merge in His Being.</font></td></tr><tr><td width=100%><font class=1>The virtuous wife utters His Glorious Praises\; my Beloved Husband Lord is Eternal and Unchanging.</font></td></tr><tr><td width=100%><font class=1>The Primal Lord is Unmoving and Unchanging, Clever and Wise\; all the world is fickle.</font></td></tr><tr><td width=100%><font class=1>By virtue of spiritual wisdom and meditation, she merges in His Being\; she is pleasing to God and He is pleasing to her.</font></td></tr><tr><td width=100%><font class=1>I have heard the songs and the music and the poems of the poets\; but only the Name of the Lord takes away my pain.</font></td></tr><tr><td width=100%><font class=1>O Nanak, that soul-bride is pleasing to her Husband Lord, who performs loving devotional worship before her Beloved. \|\|13\|\|</font>");
if(sdaysb4<=0) //fix for year start
pmonb4 = "Poh"
if (daysb4s<=0) //fix for year start
pmonth = "Poh"
if (tempyear % 4 == 0) // leap year
if (_1stday <=0) // before 1st day of new Sikh month
switch (pmonb4){
case "Poh" :return(mPoh);
break
case "Maagh" :return(mMaagh)
break
case "Phagun" :return(mPhagun);
break
case "Chet" :return(mChet);
break
case "Vaisakhi" :return(mVaisakhi);
break
case "Jeth" :return(mJeth);
break
case "Haarh" :return(mHaarh);
break
case "Saavan" :return(mSaavan);
break
case "Bhaadon" :return(mBhaadon);
break
case "Assu" :return(mAssu);
break
case "Kattak" :return(mKattak);
break
case "Maggar" :return(mMaggar);
break
default:return("error date unavailable");
}
else // after 1st day of new Sikh month
switch (pmonth){
case "Poh" :return(mPoh);
break
case "Maagh" :return(mMaagh)
break
case "Phagun" :return(mPhagun);
break
case "Chet" :return(mChet);
break
case "Vaisakhi" :return(mVaisakhi);
break
case "Jeth" :return(mJeth);
break
case "Haarh" :return(mHaarh);
break
case "Saavan" :return(mSaavan);
break
case "Bhaadon" :return(mBhaadon);
break
case "Assu" :return(mAssu);
break
case "Kattak" :return(mKattak);
break
case "Maggar" :return(mMaggar);
break

default:return("error date unavailable");
}
else // not leap year
if (_1stday <=0) // before 1st day of new Sikh month
switch (pmonb4){
case "Poh" :return(mPoh);
break
case "Maagh" :return(mMaagh)
break
case "Phagun" :return(mPhagun);
break
case "Chet" :return(mChet);
break
case "Vaisakhi" :return(mVaisakhi);
break
case "Jeth" :return(mJeth);
break
case "Haarh" :return(mHaarh);
break
case "Saavan" :return(mSaavan);
break
case "Bhaadon" :return(mBhaadon);
break
case "Assu" :return(mAssu);
break
case "Kattak" :return(mKattak);
break
case "Maggar" :return(mMaggar);
break
default:return("error date unavailable");
}
else // after 1st day of new Sikh month
switch (pmonth){
case "Poh" :return(mPoh);
break
case "Maagh" :return(mMaagh)
break
case "Phagun" :return(mPhagun);
break
case "Chet" :return(mChet);
break
case "Vaisakhi" :return(mVaisakhi);
break
case "Jeth" :return(mJeth);
break
case "Haarh" :return(mHaarh);
break
case "Saavan" :return(mSaavan);
break
case "Bhaadon" :return(mBhaadon);
break
case "Assu" :return(mAssu);
break
case "Kattak" :return(mKattak);
break
case "Maggar" :return(mMaggar);
break
default:return("error date unavailable");
}
}
var when = new Array();
var ife = new Array();

when[0] = "november 26, 2003";
ife[0] = "<font size=1 color='#ffffff' face='arial'>Today : </font><a href='http://www.bedfordgurdwara.org.uk/news.sht#EpAAkVFpyVNJnzpvjS'><font size=1 color='#33ff33'>Kirtan 6:30pm</font></a>";

when[1] = "november 25, 2004";
ife[1] = "<font size=1 color='#ffffff' face='arial'>Tomorrow : </font><a href='http://www.bedfordgurdwara.org.uk/news.sht#EpAAkVFpyVNJnzpvjS'><font size=1 color='#33ff33'>Asa di Var 5:30am</font></a>";

when[2] = "november 27, 2004";
ife[2] = "<font size=1 color='#ffffff' face='arial'>Today : </font><a href='http://www.bedfordgurdwara.org.uk/news.sht#EpAAkVFpyVNJnzpvjS'><font size=1 color='#33ff33'>Nishan Sahib &amp; Nagar Kirtan</font></a>";

when[3] = "november 28, 2004";
ife[3] = "<font size=1 color='#ffffff' face='arial'>Today : </font><a href='http://www.bedfordgurdwara.org.uk/news.sht#EpAAkVFpyVNJnzpvjS'><font size=1 color='#33ff33'>10am Kirtan</font></a>";

when[4] = "october 31, 2003";
ife[4] = "";

when[5] = "november 8, 2004";
ife[5] = "<font size=1 color='#ffffff' face='arial'>Today : </font><a href='http://www.bedfordgurdwara.org.uk/news.sht#EpAAkVFpyVNJnzpvjS'><font size=1 color='#33ff33'>Yoga Sessions Community Centre</font></a>";

when[6] = "november 9, 2004";
ife[6] = "<font size=1 color='#ffffff' face='arial'>Today : </font><a href='http://www.bedfordgurdwara.org.uk/news.sht#EpAAkVFpyVNJnzpvjS'><font size=1 color='#33ff33'>Yoga Sessions Community Centre</font></a>";

when[7] = "november 10, 2004";
ife[7] = "<font size=1 color='#ffffff' face='arial'>Today : </font>Diwali";

when[8] = "november 11, 2004";
ife[8] = "<font size=1 color='#ffffff' face='arial'>Today : </font><a href='http://www.bedfordgurdwara.org.uk/news.sht#EpAAkVFpyVNJnzpvjS'><font size=1 color='#33ff33'>Yoga Sessions Community Centre</font></a>";

when[9] = "november 12, 2004";
ife[9] = "<font size=1 color='#ffffff' face='arial'>Today : </font><a href='http://www.bedfordgurdwara.org.uk/news.sht#EpAAkVFpyVNJnzpvjS'><font size=1 color='#33ff33'>Diwali &amp; Yoga Sessions Community Centre</font></a>";

when[10] = "november 13, 2003";
ife[10] = "<font size=1 color='#ffffff' face='arial'>Today : </font><a href='http://www.bedfordgurdwara.org.uk/news.sht#EpAAkVFpyVNJnzpvjS'><font size=1 color='#33ff33'>Yoga Sessions Community Centre</font></a>";

when[11] = "november 24, 2004";
ife[11] = "<font size=1 color='#ffffff' face='arial'>Today : </font>Guru Tegh Bahadur martyrdom";

when[12] = "november 25, 2003";
ife[12] = "";

when[13] = "november 26, 2004";
ife[13] = "<font size=1 color='#ffffff' face='arial'>Today : </font><a href='http://www.bedfordgurdwara.org.uk/news.sht#EpAAkVFpyVNJnzpvjS'><font size=1 color='#33ff33'>Guru Nanak Birth Anniversary</font></a>";

when[14] = "november 28, 2003";
ife[14] = "";

when[15] = "november 30, 2003";
ife[15] = "";

when[16] = "december 8, 2003";
ife[16] = "";

when[17] = "december 12, 2003";
ife[17] = "";

when[18] = "december 21, 2003";
ife[18] = "";

when[19] = "december 25, 2003";
ife[19] = "";

when[20] = "december 26, 2003";
ife[20] = "";

when[21] = "december 27, 2003";
ife[21] = "";

when[22] = "december 28, 2003";
ife[22] = "";

when[23] = "december 31, 2003";
ife[23] = "";

when[24] = "January 1, 2003";
ife[24] = "";

when[25] = "january 5, 2005";
ife[25] = "<font size=1 color='#ffffff' face='arial'>Today : </font><br />Guru Gobind Singh birth anniversary";

var m = new Array("", 
"January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"
);

var x = m[today.getMonth() + 1]; // month

function wdate() {
for (i = 0; i < day.length; i++) {
tdate = new Date(days[i]);
tmonth = m[tdate.getMonth() + 1];
tday = tdate.getDate();
tyear = y2k(tdate.getYear());
if (year == tyear && x == tmonth && day == tday)
return(" " + day + " " + x + " " + year + " "); // returns message header
   }
return(" <font class='mrn'>" + day + " " + x + " " + year + "</font> "); // returns default
}

function ifevent() {
for (i = 0; i < when.length; i++) {
tpdate = new Date(when[i]);
tpmunth = m[tpdate.getMonth() + 1];
tpday = tpdate.getDate();
tpyear = y2k(tpdate.getYear());
if (year == tpyear && x == tpmunth && day == tpday)
return("<font size=1 color='#33ff33'> " + ife[i] + "<\/font>"); // automatically returns the day's Sikh announcement
   }
return("<font class='smallwhite'>Completion due December 2005<\/font>"); // returns default
}
// Y2K Fix Function
function y2k(year) {
if (year < 2000)		
year = year + 1900;
return year;
}







