settings.php
$abc
global $abc
to judge where ever one want.
-----
if(element[#children] == ''){
  element_children = element_children(element,TRUE);
}
if(isset(element[#children])){
  return theme_wrap(element);
}

---
#parents
#array_parents
#module
#markup
---
$scripts put to footer area

---
all scripts run fast and easy, but db operation and file source import kill time
---