function article_list_visible () {
	$(html_obj_id).style.visibility = 'visible';
}
function article_list_hidden () {
	$(html_obj_id).style.visibility = 'hidden';
}
mouse_over_menu = 0;
check_mouse_pos_timeout = setTimeout('', 0);
function check_mouse_pos () {
	if (0 == mouse_over_menu) {
		article_list_hidden();
	}
}
function set_mouse_pos (is_hover) {
	mouse_over_menu = is_hover;
	if (0 == mouse_over_menu) {
		check_mouse_pos_timeout = setTimeout('check_mouse_pos()', 100);
	}
	else if (check_mouse_pos_timeout) {
		clearTimeout(check_mouse_pos_timeout);
	}
}
function swap_article_list (cat_id) {
	html_obj_id = 'article_list';
	if ($(html_obj_id)) {
		cssvisibility = $(html_obj_id).style.visibility;
		if ('visible' == cssvisibility) {
			article_list_hidden();
		}
		else {
			set_mouse_pos(1);
			article_list_visible ();
			update_list(cat_id);
		}
	}
}
function update_list (cat_id) {
	html_obj_id = 'article_list';
	var actual_bgcolor = $(html_obj_id).style.backgroundColor
	$(html_obj_id).style.backgroundColor = 'white';
	$(html_obj_id).innerHTML = '<img src="/img/a_loading.gif" alt="Chargement..." height="32" width="32" />';
	//var url = './?pagename=a_category_list&ajax_cat=' + cat_id;
	var url = './?page_id=1174&a_cat=' + cat_id
	new Ajax.Updater(html_obj_id, url, {asynchronous:true, method:'get', 
		onComplete:function () {
			$(html_obj_id).style.backgroundColor = actual_bgcolor;
				var elem = $('article_list');
				var computed_style = document.defaultView.getComputedStyle(elem,null);
				var cssheight = computed_style.getPropertyValue("height");
				var cssmaxheight = computed_style.getPropertyValue("max-height");
				if (cssheight == cssmaxheight) {
					csswidth = computed_style.getPropertyValue("width");
					csswidthpx = csswidth.replace('px', '');
					cssnewwidth  = eval(csswidthpx) + 20;
					//alert(cssheight + '\n' + cssmaxheight + '\n' + csswidth + '\n' + csswidthpx + '\nnew : ' + cssnewwidth);
					elem.style.width = cssnewwidth + 'px';
				}
				else {
					//alert('h  :' + cssheight + '\nmh : ' + cssmaxheight);
				}
		}});
}