fist_day sounds like some dodgy porno. I think there's some Freudian stuff going on here, but my psychoanalysis mind eludes me!
As for the suggestion of JavaScript, I'd personally use PHP to create all the nodes relating to the calendar, and then hook in JavaScript to make it dynamic; such as switching the months, and selecting the desired date.