        // The index variable will keep track of which image is currently showing
        var index = 0;
        
        // Call backstretch for the first time,
        // In this case, I'm settings speed of 500ms for a fadeIn effect between images.
        $.backstretch(images[index], {speed: 2000});
        
        // Set an interval that increments the index and sets the new image
        // Note: The fadeIn speed set above will be inherited
        setInterval(function() {
            index = (index >= images.length - 1) ? 0 : index + 1;
            $.backstretch(images[index]);
        }, 10000);

function initAcc(className) {
	$('div.'+className+'_content').hide();

	if (className == 'calendar_month')
	{
		$('div.'+className+'_content.current_month').show();
		$('h2.'+className+'_header.current_month').addClass('current');
	}
	if (className == 'news')
	{
		// $('div.'+className+'_content.item-1').show();
		// $('h2.'+className+'_header.item-1').addClass('current');
	}

	$('h2.'+className+'_header a').click(function() {

		var checkElement = $(this).parent().next();
		var parent = this.parentNode.parentNode.id;
		if((checkElement.is('div')) && (checkElement.is(':visible'))) {

			if ($(this).parent().hasClass('current')) {

				$(this).parent().removeClass('current');
				checkElement.slideUp('normal');

			}

			return false;

		}

		if((checkElement.is('div')) && (!checkElement.is(':visible'))) {

			$('div.'+className+'_content:visible').slideUp('normal');
			$('h2.'+className+'_header').removeClass('current');
			$(this).parent().addClass('current');
			checkElement.slideDown('normal');
			return false;

		}

	});

}

$(document).ready(function() {

	initAcc('calendar_month');
	initAcc('news');


$("img.default").hover(
function() {
$(this).stop().animate({"opacity": "0"}, "fast");
},
function() {
$(this).stop().animate({"opacity": "1"}, "fast");

 
});

});
