/**
 * Główny zestaw metod
 */
var Cert = {

	init : function(){
		$('h2.cert_header').bind('click',function(){
			$('#content div.plik').each(function(i,val){
				$('#'+val.id+' div.hide').css('display','none');
				$('#'+val.id+' h2').removeClass('selected');
			});
			var id = this.id.replace('cert_','');
			var o = document.getElementById('cert_data_'+id);
			o.className = 'hide';
			$('#cert_data_'+id).slideDown("slow");
			this.className = new RegExp('\\bselected\\b').test(this.className) ? this.className.replace(' selected','') : this.className+' selected';
			return false;
		});
	}	
};
