divToCloseDisact = "pr_subm_disact_0";
divToCloseAct = "pr_subm_act_0";

function stuff_info (stuff_category, stuff_type)
{	 
	
	me = window.document.getElementById('start');
	me.style.display='none';
	
	
   	
   	divToCloseAct = window.document.getElementById(divToCloseAct);
   	divToCloseAct.style.display='none';
	
   	divToCloseDisact = window.document.getElementById(divToCloseDisact);
    divToCloseDisact.style.display='block';
    
    window.document.getElementById('pr_subm_act_'+stuff_category).style.display='block';		
    window.document.getElementById('pr_subm_disact_'+stuff_category).style.display='none';		

	
	
	jQuery.ajax({
               url      : 'index.php',
               type     : 'GET',               
               dataType : 'html',          
               data     :  'cmd=stuff_info&stuff_category='+stuff_category+'&stuff_type='+stuff_type, 
          	   success  : function (data){
           	jQuery('#stuff_info').html(data);
          	}
          });
          
               
   divToCloseDisact = "pr_subm_disact_"+stuff_category;       
   divToCloseAct = "pr_subm_act_"+stuff_category;       
}

function set_categories (stuff_type)
{	 
		jQuery.ajax({
               url      : 'index.php',
               type     : 'GET',               
               dataType : 'html',          
               data     :  'cmd=set_categories&stuff_type='+stuff_type, 
          	   success  : function (data){
           	jQuery('#categories_list').html(data);
          	}
          });
}

function get_archive_list (date, type)
{	
	jQuery.ajax({
               url      : 'index.php',
               type     : 'GET',               
               dataType : 'html',
               data     :  'cmd=set_archive_list&date='+date+'&type='+type, 
          	   success  : function (data){
           	jQuery('#archive_list').html(data);
          	}
          });
}
/*
function get_archive_content (archive_id)
{	
	me = window.document.getElementById('start');
	me.style.display='none';
	
	jQuery.ajax({
               url      : 'index.php',
               type     : 'GET',               
               dataType : 'html',
               data     :  'cmd=get_archive_content&archive_id='+archive_id, 
               success  : function (data){
           	jQuery('#archive_content').html(data);
          	}
          	   
          	          	
          });

}
*/

