- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
var el = jQuery(this);
if(el.html().length<1){
el.prev().find('div').addClass('over');
var url = jQuery(jQuery(el.prev().children()[0]).children()[1]).attr('href');
url = url.replace('index.php', '')+'?ajax=1';
//url = url.replace(/&task=[^&]+/, '&task=subcatalogs');
el.html(jQuery.ajax({
url: url,
async: false
}).responseText);
var list = jQuery(el.children()[0]);
list.find('.parent').each(function(i,item){
jQuery(item).bind('click', catalogs_click);
jQuery(item).bind('mouseover', catalogs_mouseover);
jQuery(item).bind('mouseout', catalogs_mouseout);
jQuery(item).prev().bind('mouseover', catalogs_mouseover2);
jQuery(item).prev().find('div').bind('mouseover', catalogs_mouseover3);
jQuery(item).prev().find('div a').bind('mouseover', catalogs_mouseover4);
jQuery(item).prev().find('div img').bind('mouseover', catalogs_mouseover5);
});
list.find('.final').each(function(i,item){
jQuery(item).bind('mouseover', catalogs_mouseover6).bind('mouseout', catalogs_mouseout6);
jQuery(item).find('div').bind('mouseover', catalogs_mouseover7).bind('mouseout', catalogs_mouseout7);
jQuery(item).find('div a').bind('mouseover', catalogs_mouseover8).bind('mouseout', catalogs_mouseout8);
jQuery(item).find('div img').bind('mouseover', catalogs_mouseover9).bind('mouseout', catalogs_mouseout9);
});
list.show();
}else{
var list = jQuery(el.children()[0]);
if(!list.children().find('div').hasClass('over')){
el.prev().find('div').addClass('over');
}
list.show();
}