3 function changeFaction(href)
\r
5 uploadFromHref(href, 'a_data');
\r
9 function cacheCat(url)
\r
11 ajaxCacheHtmlId('a_data', url);
\r
14 function selectCat(id)
\r
16 var node = $('a_category');
\r
20 var list = node.getElementsByTagName('a'), selected = 0;
\r
21 for (var i=0;i<list.length;i++)
\r
23 var e = list[i], parent = e.parentNode;
\r
24 if (e.id == 'ach_' + id)
\r
26 parent.className = 'a_bodycat_sel';
\r
27 if (e.className=='sub')
\r
28 e.className = 'sel';
\r
30 uploadFromHref(e, 'a_data');
\r
34 if (selected!=parent)
\r
35 parent.className = 'a_bodycat';
\r
36 if (e.className=='sel')
\r
37 e.className = 'sub';
\r
43 function changeSelection(element, sel)
\r
45 var name = element.className, s = sel?' select':'';
\r
46 element.className = (name=='ach_show' || name=='ach_show select') ? 'ach_show'+s : 'ach_show'+s+' locked';
\r
47 element.id = sel ? 'selected':'not_select';
\r
50 function showAchReq(element)
\r
52 if (a_lastShow && a_lastShow != element)
\r
53 changeSelection(a_lastShow, false);
\r
54 a_lastShow = element;
\r
55 changeSelection(element, element.id != 'selected');
\r