$(document).ready(function() {
	$("#contentCertification").hide();
	var _temp_op=false;
	$("#btnCertification").click(function(){
		if(_temp_op){
			_temp_op=false;
			$("#btnCertification").attr({'class':'btnOpen'});
			$("#contentCertification").slideUp('slow');
		}else{
			_temp_op=true;
			$("#btnCertification").attr({'class':'btnClose'});
			$("#contentCertification").slideDown('slow');
		}
	});
	
	var p = $("#footer");
	var offset = p.offset();
	$('#footer').css('height',$(window).height()-offset.top);
});

$(window).bind('resize', function() {
	var p = $("#footer");
	var offset = p.offset();
	$('#footer').css('height',$(window).height()-offset.top);
	
	
});
