
$(document).ready(function(){

/*
	Cufon.replace("div.h1_title span, #calendar div.title, #calendar td.name, #calendar th, #calendar div.bg td, #bans div.corner div.center, div.left_title span.bg span, #menu2 a, #menu a, div.select_date, div.list_date a, div.list_date span, table.congress div.name, table.congress div.text");
*/	  

Cufon.replace("div.h1_title span, #bans div.corner div.center, div.left_title span.bg span, #menu2 a, #menu a, div.select_date, div.list_date a, div.list_date span, table.congress div.name, table.congress div.text");
    
        
    $('#ico div:last').addClass("last");
	$('div.news_one:last').addClass("news_last");
	$('table.partners tr:first').addClass("first");	
	
	$("#menu div.li div.center a").each(function(){
	   $(this).attr('id','menu'+Math.random()*100);
	});
	
	$("#menu div.li div.center a").focus(function(){
          $(this).blur();
    }); 
	
	$("#menu div.li").hover(function(){ 
  		var li = $(this);
		var popup = li.find('div.popup');
		if (popup.length) {
			if (!li.hasClass('on')) {
				li.toggleClass('over');
				Cufon.replace("#menu div.over div.center a", {color:'#FFFFFF'});
			}
			popup.show();			
		}
	},function(){ 
  		var li = $(this);
		var popup = li.find('div.popup');
		if (popup.length) {
			if (!li.hasClass('on')) {
				Cufon.replace("#menu div.over div.center a", {color:'#0D5188'});
				li.toggleClass('over');				
			}
			popup.hide();			
		}
	});



    get_footer();
    
});

$(window).resize(function(){	

    get_footer();
    
});

function get_footer() {
	var screen_f = $("#footer").height();  
    if (screen_f>115) {
        $("#footer").css({"margin-top" : -screen_f + "px"});
        $("#padding_bot").css({"padding-bottom" : 150 + (screen_f-115) + "px"});		
    } 
}



