jQuery(function($) {
	$("a.fancy").fancybox();
	
	if($.browser.msie){
		var ha = 0;
		var hH2 = 0;
		$('div.accordion > h2').each(function(){
			hH2 += Number(parseInt($(this).height()));	
			hH2 += Number(parseInt($(this).css('marginTop')));	
			hH2 += Number(parseInt($(this).css('marginBottom')));	
			
		});
		$('div.news').each(function(){
			if(parseInt($(this).height()) > ha)
				ha = parseInt($(this).height()) + parseInt(hH2) + 80;
		});
			
	}
	
	$("div.accordion").accordion({clearStyle: true, active: false, autoHeight: false, header: 'h2'});
	
	if(typeof id_news == 'string'){
		$('#a_' + id_news).click();
		$.scrollTo( '#a_' + id_news, 800);
	}
	
	if($.browser.msie)
		$('div.accordion').css('height', ha + 'px');
		
});

