| 
	
	
		
		
			
			 
				Вопрос по функции для меню
			 
			
		
		
		
		Я новичек, вот функция: 
function ddMenu(id,dir) { 
  var head = document.getElementById(id + '-ddheader'); 
  var cont = document.getElementById(id + '-ddcontent'); 
  clearInterval(cont.timer); 
  if(dir == 1) { 
    clearTimeout(head.timer); 
    if(cont.maxh && cont.maxh <= cont.offsetHeight) { 
      return; 
    } else if(!cont.maxh) { 
      cont.style.display = 'block'; 
      cont.style.height = 'auto'; 
      cont.maxh = cont.offsetHeight; 
      cont.style.height = '0px'; 
    } 
    cont.timer = setInterval("ddSlide('" + id + "-ddcontent', 1)", DDTIMER); 
  } else { 
    head.timer = setTimeout('ddCollapse(\'' + id + '-ddcontent\')', 50); 
  } 
} 
зачем эти аргументы id,dir ( function ddMenu(id,dir) ) 
		
	
		
		
		
		
		
		
	
		
		
	
	
	 |