function GetDateDiff(holiday, today)
{
	var difference = 0;
	var days = 0;
	difference = holiday - today;
	days = Math.round(difference/(1000*60*60*24));
	return days;
}
var today = new Date();
var year = today.getFullYear();
var newyear = new Date();
newyear.setFullYear(year, 0, 01);
var newyearDiff = GetDateDiff(newyear, today);
var valentine = new Date();
valentine.setFullYear(year, 1, 14);
var valDiff = GetDateDiff(valentine, today);
var halloween = new Date();
halloween.setFullYear(year, 9, 31);
var halloDiff = GetDateDiff(halloween, today);
var xmas = new Date();
xmas.setFullYear(year, 11, 25);
var xmasDiff = GetDateDiff(xmas, today);

document.write('<style>');
document.write('div#page{width: ' + (screen.width-40) + 'px;}');
switch(0)
{
	case newyearDiff:
		document.write('div#content{width: ' + (screen.width-395) + 'px; height: ' + (document.documentElement.clientHeight-125) + 'px; overflow: auto;}');
	break;
	case valDiff:
		document.write('div#content{width: ' + (screen.width-408) + 'px; height: ' + (document.documentElement.clientHeight-125) + 'px; overflow: auto;}');
	break;
	case halloDiff:
		document.write('div#content{width: '+(screen.width-386)+'px; height: ' + (document.documentElement.clientHeight-125) + 'px; overflow: auto;}');
	break;
	case xmasDiff:
		document.write('div#content{width: ' + (screen.width-296) + 'px;}');
	break;
	default:
		document.write('div#content{width: ' + (screen.width-293) + 'px;}');
}// height: ' + (document.documentElement.clientHeight-125) + 'px; overflow: auto;
document.write('</style>');
