var aseasons= [
	["20030203","20030302","Ordinary Time",0],
	["20030309","20030413","Lent",1],
	["20030420","20030601","Easter",2],
	["20030608","20031123","Ordinary Time",2],
	["20031130","20031221","Advent",0],
	["20031228","20040104","Christmas",0]
	];

var homepic= [
	["418922","Madonna and Child","","Magnet"],
	["314713","Madonna with Green Cushion","Solario, Andrea","Art Print"],
	["412449","Madonna by Raphael","","Poster"],
	["290935","Cowper Madonna","Raphael","Art Print"],
	["309850","The Madonna of the Carnation, c. 1515","Luini, Bernardino","Art Print"],
	["375153","Madonna of the Chair","Raphael, Sanzio","Art Print"],
	["325312","Sistine Madonna, c.1513-1514","Raphael","Art Print"],
	["290992","Madonna and Child","Luini, Bernardino","Art Print"],
	["375157","Madonna and Child","","Art Print"],
	["311293","Virgin in Prayer","Sassoferrato","Art Print"],
	["323586","Annunciation","Sandro Botticelli","Art Print"],
	["418922","Madonna and Child","","Magnet"]
	];

var customers= [
	["Just received my order [<a href=single.html#SG21-001 class=line>Sea&nbsp;of&nbsp;Grace&nbsp;&&nbsp;Light</a>]. How beautiful and exactly as pictured on your website. I'm sure I'll be back for more!!","Cynthia N. - Massachusetts"],
	["IT LOOKS GREAT [<a href=rosaries.html#RP21-001 class=line>Pearls&nbsp;of&nbsp;Faith</a>]...I appreciate your help, especially for someone trying to find their faith again! I will certainly look to your site again soon to see about getting one for my car\'s rear view mirror.","Cheryl S. - South  Carolina"],
	["The rosaries arrived today. They are beautiful! Thank you so much for the time you spent on my order.","Bill H. - Texas"],
	["Thanks so much for the rosary - It's beautiful!!!","Marvie A. - Nevada"],
	["I received it in good time, good shape, and I am happy with the product. It was a gift for our newborn daughter, our 9th child ...I am sure I will purchase your products in the future.","Michael B. - Indiana"],
	["I received my order yesterday.  It was beautifully packaged and I am pleased with the [<a href=bracelets.html#BS21-001 class=line>Constancy&nbsp;Without&nbsp;Parallel</a>] rosary bracelet .  Thank you and God bless you in your work.","Kathleen C. - Indiana"],
	["I received the rosary yesterday.  It looks beautiful...Thank you for your follow-up ...","Carman S. - Michigan"],
	["Many warm thanks for this [<a href=rosaries.html#RS21-003 class=line>Wherever&nbsp;the&nbsp;River&nbsp;Flows</a>] rosary.  The design is charming, unique, and well-made.","Christina K. - New Hampshire"],
	["I received my order [<a href=single.html#SG21-001 class=line>Sea&nbsp;of&nbsp;Grace&nbsp;&&nbsp;Light</a>] yesterday and it is lovely.  I think my mom will be very pleased with it. I especially liked the packaging - simple and elegant.","Kathleen S. - Florida"],
	["Thank you for the beautiful chaplets, and for the \'service with a smile\'.","Hector R. - Florida"],
	["I received the [<a href=bracelets.html#BG21-001 class=line>Sea&nbsp;of&nbsp;Grace&nbsp;&&nbsp;Light</a>] bracelets this morning and they are perfect!  Thanks so much for your prompt service.","Kathleen S. - California"],
	["I received the fine [<a href=rosaries.html#RW33-002 class=line>Solace &nbsp;of&nbsp;Our&nbsp;Pilgrimage</a>] Rosary this afternoon. It is beautiful! Thanks so much for your prompt service and beautiful and thoughtful packaging. I will recommend your site to anyone who asks about my Rosary.","Dave D. - California"],
	["I opened the <a href=single.html#SE27-001 class=line>In Her Seed Shall Conquer II</a> first and was somewhat stunned by its luminosity. It's as if the light and grace I feel when I pray is already there, implanted in these beads, and my fingers recognize it. Thank you.","Valerie P. - Texas"],
	["The rosaries [<a href=single.html#SW33-002 class=line>Faithful&nbsp;Messenger</a>, <a href=bracelets.html#BH21-001 class=line>Most&nbsp;Humble&nbsp;Disciple</a>, <a href=bracelets.html#BG21-001 class=line>Sea&nbsp;of&nbsp;Grace&nbsp;&&nbsp;Light</a>] are beautiful--even better than expected.  I loved the card that came with them as well explaining how to pray the rosary. Thank you for sharing your beautiful work with me!","Anne C. - New Jersey"],
	["I just received the <a href=single.html#SW21-001 class=line>Carpenter\'s Wife</a>.  It is a very beautiful work.  I don't think the picture on the web page captures just how stunning it is or how large it is.  It has a wonderful feel to it.  Thank you.","Peter G. - Pennsylvania"],
	["I really appreciated the extra touches, as it was wrapped in a very lovely fashion, which is great because it\'s a Christmas gift for someone special. The <a href=bracelets.html#BS27-001 class=line>[Fair Lady of the Eucharist]</a> rosary bracelet itself was beautiful, and I'm really pleased.  Thank you!","Lourdes O. - New York"],
	["I just now opened my package with the two rosary  bracelets.  Such nice packaging!  The bracelets are far more beautiful than I imagined.  The photos were very good on the web site, but they do not show the quality of the pieces.   I am very pleased with them!  Beautiful beads and very well made!Thank you for making such a beautiful rosary  bracelet available.","Sue M. - Indiana"],
	[" I recieved <a href=rosaries.html#RW21-001 class=line>[the Joseph\'s Spouse Rosary]</a> yesterday. It was even more beatiful then I thought it would be. Everyone here at the seminary who has seen it thinks it really beautiful, you did an amazing job.","Chris L. - Pennsylvania"]
	];

var CurDate=new Date();
var day = CurDate.getDate();

function GetCustomer(){
	var eoy = new Date(CurDate.getYear(), 11, 31);
	var today = new Date ();
	var i = (eoy - today)/(1000 * 60 * 60 * 24);
	i = parseInt(i);
	i = i%18;
	document.writeln ('<p class=cust>\"' + customers[i][0] + '\"</p><p class=cust>' + customers[i][1] + '</p>');
	}

function GetPicture(){
	  if (day < 10)
	  {
	  day = "0" + day;
	  }
	var month = CurDate.getMonth();
	month = month + 1;
	  if (month < 10)
	  {
	  month = "0" + month;
	  }
	var year = CurDate.getYear();
	if (year > 99 && year < 2000) { year = year + 1900; }
	var curDT = "" + year + month + day;
	var CurDay = CurDate.getDay();
	var Mystery;
	if (CurDay == 0) {
		for (var i=0; i<aseasons.length; i++) {
			if (aseasons[i][0] <= curDT && curDT <= aseasons[i][1])
				{Mystery = aseasons[i][3]}
		}
	}
	else if (CurDay == 1) {Mystery = 0}
	else if (CurDay == 2) {Mystery = 1}
	else if (CurDay == 3) {Mystery = 2}
	else if (CurDay == 4) {Mystery = 3}
	else if (CurDay == 5) {Mystery = 1}
	else if (CurDay == 6) {Mystery = 0}
	var MonthHalfDate = CurDate.getDate();
	var MonthHalf;
	if (MonthHalfDate < 16 ) {MonthHalf=1}
	else {MonthHalf=2}
	document.writeln('<img src=Graphics/'+ month + Mystery + MonthHalf + '.jpg alt="" align=right hspace=5>');
}

function getHomePic(){
	var month = CurDate.getMonth();
	var picture = homepic[month][0]+ '.jpg'
	document.writeln('<table align=right><tr><td align=center><a href=http://affiliates.allposters.com/link/redirect.asp?item=' + homepic[month][0] + '&AID=1796184265&PSTID=1&LTID=2>');
	document.writeln('<img src="Graphics/' + picture + '"></a>');
	document.writeln('<img src="http://216.148.231.101/allposters.gif?AID=1796184265&PSTID=1&LTID=2" border="0" height="1" width="1"><br>');
	document.writeln('<font size=1><a href="http://affiliates.allposters.com/link/redirect.asp?item=' + homepic[month][0] + '&AID=1796184265&PSTID=1&LTID=2">');
	document.writeln(homepic[month][1] + '<br>');
	if (homepic[month][2]) {document.writeln(homepic[month][2] + '<br>');};
	document.writeln('Buy at AllPosters.com</a></font></td></tr></table>');
	}

function getHomePicture(){
	var month = CurDate.getMonth();
	month = month + 1;
	document.writeln('<img src=http://128.241.160.42/rosaries/Graphics/'+ month + '.jpg alt="">');

}