#if ($useXmenu)
#if ($staticMenu) #else #end
#if(!$toolController.isEmpty())
#if ($staticTools) #else #end
#end #end #if ($staticMenu)

#if ($staticTools) #else | #end $r.render("content") #else
## additional div to fix IE boxmodel bug
$r.render("menuTree")
## rigth close bar does not work in IE, so we need an explicit close button
$r.translate("xmenu.menu")
#end #if(!$staticMenu && !$staticTools)
$r.render("content")
#elseif (!$staticMenu && $staticTools)

$r.render("content") #elseif ($staticMenu && !$staticTools)

#end #if ($staticTools) #if(!$toolController.isEmpty()) | $r.render("tool") #end

#else #if(!$toolController.isEmpty())
## additional div to fix IE boxmodel bug
$r.render("tool")
## left close bar does not work in IE, so we need an explicit close button
$r.translate("xtools.tools")
#end #end