
$(document).ready(function(){

	Cufon.replace('body.home #content div.body h2', { fontFamily: 'font_eefa', hover: false});
	Cufon.replace('#menu li a', { fontFamily: 'font_eefa', hover: true, textShadow: '#000 1px 1px' });
	Cufon.replace('#primary h1', { fontFamily: 'font_eefa', hover: false});
	Cufon.replace('#footer div.box h2', { fontFamily: 'font_eefa', hover: false});

	$('#footer div.body a').each(function(){
		x = $(this).attr('href')
		$(this).addClass(x.substr(-3,3));
	})

/*
	$('#news div.news_item').click(function(){
		$(this).addClass('selected');
		$(this).children('div.description').children('div.body').animate({height: "toggle"});	
	});
*/
	$('#partners li').click(function(){
		$(this).addClass('selected');
		$(this).children('div.body').animate({height: "toggle"});	
	});

	$('#calendar_box div.entry p.date').each(function(y){
		$(this).addClass('pos_'+y);
		if (y > 0)
		{
			$date = $(this).text();
			$prev_date = $('#calendar_box div.entry p.pos_'+(y-1)).text();
			if ($date == $prev_date)
			{
				$(this).addClass('disabled');
			}
		}
//		x = $(this).text();
//		if (x == $(this).text())
//		{
//			$(this).addClass('disabled');
//			x = $(this).text();
//		}
	})

});

