includeLibs.gmenu_layers = EXT:statictemplates/media/scripts/gmenu_layers.php

styles.gmenu_layer.green >
styles.gmenu_layer.green = HMENU
styles.gmenu_layer.green.stdWrap.offsetWrap = {$styles.gmenu_layer.green.menuOffset}
styles.gmenu_layer.green.wrap = <span style="white-space: nowrap;"> | </span>
styles.gmenu_layer.green.1 = GMENU_LAYERS
styles.gmenu_layer.green.1 {
  target = _top
  xPosOffset = -{$styles.gmenu_layer.green.layer.xPosOffset}
  lockPosition = x
  expAll = 1
  topOffset = {$styles.gmenu_layer.green.layer.topOffset}
  hideMenuWhenNotOver = {$styles.gmenu_layer.green.layer.mouseOutHide}
}
styles.gmenu_layer.green.1.NO {
  XY = [10.w]+[4.w]+[5.w]+[6.w]+[7.w] , {$styles.gmenu_layer.green.height}
  backColor = {$styles.gmenu_layer.green.bgCol} 
  reduceColors = {$styles.gmenu_layer.green.reduceColors}

  3 = IMAGE
  3.file = {$styles.gmenu_layer.green.file.background}
  3.tile = 10,1

  4 = IMAGE |*|_x_
  4.file = {$styles.gmenu_layer.green.file.first}

  5 = _x_ |*| IMAGE 
  5.file = {$styles.gmenu_layer.green.file.middle}

#  6 = IMAGE
  6.file = {$styles.gmenu_layer.green.file.sublevel}
  6.align = r,t
  6.offset = -[7.w]

  7 = _x_|*|_x_|*| IMAGE
  7.file = {$styles.gmenu_layer.green.file.last}
  7.align = r,t

  10 = TEXT
  10.text.field = nav_title // title
  10.offset =  {$styles.gmenu_layer.green.firstOffset}||{$styles.gmenu_layer.green.offset}|*||*| 
  10.fontColor = {$styles.gmenu_layer.green.fontColor}
  10.niceText = {$styles.gmenu_layer.green.niceText}
  10.antiAlias = {$styles.gmenu_layer.green.antiAlias}
  10.fontSize = {$styles.gmenu_layer.green.fontSize}
  10.spacing = {$styles.gmenu_layer.green.spacing}
  10.fontFile = {$styles.gmenu_layer.green.file.fontFile}
}

styles.gmenu_layer.green.1.RO < styles.gmenu_layer.green.1.NO
styles.gmenu_layer.green.1.RO = {$styles.gmenu_layer.green.RO}
styles.gmenu_layer.green.1.RO {
  backColor = {$styles.gmenu_layer.green.RO.bgCol}
  10.fontColor = {$styles.gmenu_layer.green.RO.fontColor}
}

styles.gmenu_layer.green.1.ACT < styles.gmenu_layer.green.1.NO
styles.gmenu_layer.green.1.ACT = {$styles.gmenu_layer.green.ACT}
styles.gmenu_layer.green.1.ACT {
  backColor = {$styles.gmenu_layer.green.ACT.bgCol}
  10.fontColor = {$styles.gmenu_layer.green.ACT.fontColor}
}

styles.gmenu_layer.green.1 {
  IFSUB < .NO
  IFSUB = 1
  IFSUB.6 = IMAGE

  IFSUBRO < .RO
  IFSUBRO.6 = IMAGE
}



# Submenu on layers:

styles.gmenu_layer.green.2 = TMENU
styles.gmenu_layer.green.2.wrap = {$styles.gmenu_layer.green.2.wrap}
styles.gmenu_layer.green.2.NO {
  allWrap =  {$styles.gmenu_layer.green.2.allWrap}
  linkWrap = {$styles.gmenu_layer.green.2.linkWrap}
  ATagBeforeWrap = 1
}

