$(document).ready(function(){
						 
checkHoliday();
setInterval("rotateImages()", 4000);

				  });


function checkHoliday(){
var nDate = new Date();
var xDate = nDate.getDate();
var nMonth = new Date();
var xMonth = nMonth.getMonth() + 1;
var zDate = xMonth + '/' + xDate;



if ( zDate == '5/30' || zDate == '5/31') 
{
			$.fx.speeds._default = 500;
			$('#memorial').dialog({
			autoOpen: true,
			show: 'blind',
			hide: 'blind',
			position: [880,400],
		});
			
		$('#july4').hide();	
		$('#labor').hide();	
		$('#thanksgiving').hide();	
		$('#christmas').hide();	
		$('#newYear').hide();	
}
else if (zDate == '7/3' || zDate == '7/4')
{
			$.fx.speeds._default = 500;
			$('#july4').dialog({
			autoOpen: true,
			show: 'blind',
			hide: 'blind',
		});
		$('#memorial').hide();
		$('#labor').hide();	
		$('#thanksgiving').hide();	
		$('#christmas').hide();	
		$('#newYear').hide();
}
else if (zDate == '9/4' || zDate == '9/5' || zDate == '9/6')
{
			$.fx.speeds._default = 500;
			$('#labor').dialog({
			autoOpen: true,
			show: 'blind',
			hide: 'blind',
		});
		$('#memorial').hide();
		$('#july4').hide();	
		$('#thanksgiving').hide();	
		$('#christmas').hide();	
		$('#newYear').hide();
}
else if (zDate == '11/24' || zDate == '11/25' || zDate == '11/26')
{
			$.fx.speeds._default = 500;
			$('#thanksgiving').dialog({
			autoOpen: true,
			show: 'blind',
			hide: 'blind',
		});
		$('#memorial').hide();
		$('#july4').hide();	
		$('#labor').hide();	
		$('#christmas').hide();	
		$('#newYear').hide();
}
else if (zDate == '12/23' || zDate == '12/24' || zDate == '12/25' || zDate == '12/26')
{
			$.fx.speeds._default = 500;
			$('#christmas').dialog({
			autoOpen: true,
			show: 'blind',
			hide: 'blind',
		});
		$('#memorial').hide();
		$('#july4').hide();	
		$('#labor').hide();	
		$('#thanksgiving').hide();	
		$('#newYear').hide();
}
else if (zDate == '12/31' || zDate == '1/1')
{
			$.fx.speeds._default = 500;
			$('#newYear').dialog({
			autoOpen: true,
			show: 'blind',
			hide: 'blind',
		});
		$('#memorial').hide();
		$('#july4').hide();	
		$('#labor').hide();	
		$('#thanksgiving').hide();	
		$('#christmas').hide();
}
else
{
		$('#memorial').hide();
		$('#july4').hide();	
		$('#labor').hide();	
		$('#thanksgiving').hide();	
		$('#christmas').hide();	
		$('#newYear').hide();
}
}

function rotateImages() {
            var oCurPhoto = $('#photoShow div.current');
            var oNxtPhoto = oCurPhoto.next();
            if (oNxtPhoto.length == 0)
                oNxtPhoto = $('#photoShow div:first');

            oCurPhoto.removeClass('current').addClass('previous');
            oNxtPhoto.css({ opacity: 0.0 }).addClass('current').animate({ opacity: 

1.0 }, 2000,
                function() {
                    oCurPhoto.removeClass('previous');
                });
			}

 
