# ****************************
# Definition of the menus
# ****************************

temp.topMenu = HMENU
temp.topMenu {
  1 < styles.gmenu.first
  1.target = frameset2
}

temp.topSubmenu = HMENU
temp.topSubmenu {
  entryLevel = 1
  1 < styles.gmenu.first
  1.target = page
}

temp.bottomSubmenu = HMENU
temp.bottomSubmenu {
  special = directory
  special.value = {$bottomMenuPid}
  1 < styles.gmenu.first
  1.target = page
}


# ****************************
# Definition of the framesets
# ****************************

frameset = PAGE
frameset2 = PAGE
page = PAGE
bottom = PAGE
top = PAGE
back = PAGE

frameset.typeNum = 0
frameset2.typeNum = 5
page.typeNum = 1
bottom.typeNum = 2
top.typeNum = 3
back.typeNum = 4

frameset.frameSet.cols = *,{$frame.pageW},*
frameset.frameSet.params = {$_stdFramesetParams}
frameset.frameSet.1 = FRAME
frameset.frameSet.1.obj = back
frameset.frameSet.1.params = {$_stdFrameParams} scrolling="no"
frameset.frameSet.3 < frameset.frameSet.1
frameset.frameSet.2 = FRAMESET
frameset.frameSet.2 {
  params = {$_stdFramesetParams}
  rows = *,{$frame.pageH},{$frame.bottomH},*
  1 = FRAME
  1.obj = back
  1.params = {$_stdFrameParams} scrolling="no"

  2 = FRAME
  2.obj = frameset2
  2.params = {$_stdFrameParams} scrolling="no"
  
  3 = FRAME
  3.obj = bottom
  3.params = {$_stdFrameParams} scrolling="no"

  4 < .1
}

frameset2.frameSet {
  params = {$_stdFramesetParams}
  rows = {$frame.menuH},*

  1 = FRAME
  1.obj = top
  1.params = {$_stdFrameParams} scrolling="no"

  2 = FRAME
  2.obj = page
  2.params = {$_stdFrameParams} scrolling="auto" 
}


# ****************************
# Definition of the pages
# ****************************

back.bodyTag = <body bgcolor="{$bgCol.outer}">
back.bgImg = {$file.bgImg_outer}


top.bodyTag = <body bgcolor="{$bgCol.top}">
top.bodyTagMargins = 0
top.bgImg = {$file.bgImg_top}
top {
  wrap = <table border="0" cellspacing="2" cellpadding="0"> | </table>
  10 = IMAGE
  10.file = {$file.toplogo}
  10.wrap = <tr><td><img src="clear.gif" width="{$leftMarginTop}" height="1" alt="" /></td><td>|</td></tr>
  20 < temp.topMenu
  20.wrap = <tr><td></td><td>|</td></tr>
  30 = TEXT
  30.value = <tr><td></td><td bgcolor="{$sepLineColor}">{$_clear}</td></tr>
  40 < temp.topSubmenu
  40.wrap = <tr><td></td><td>|</td></tr>
}


bottom.bodyTag = <body bgcolor="{$bgCol.bottom}">
bottom.bodyTagMargins = 0
bottom.bgImg = {$file.bgImg_bottom}
bottom {
  wrap = <div align="right"><table border="0" cellspacing="2" cellpadding="0" align="right"> | </table></div>
  40 < temp.bottomSubmenu
  40.wrap = <tr><td></td><td>|</td></tr>
}

page.bodyTag < styles.content.bodyTag
page.bodyTagMargins = 0
page.bgImg = {$file.bgImg_page}
page.10 = CTABLE
page.10 {
  offset = 20,20
  tableParams = border="0" cellspacing="0" cellpadding="0" width="400"
  cWidth = {$width.content}
  cMargins = 0,0,{$width.gap},0
  c.5 < styles.content.editPanelPage
  c.10 < styles.insertContent
  c.20  < styles.content.lastUpdate
  c.30  < styles.content.typo3_powered
  c.TDParams = valign="top"

  rm.9 = LOAD_REGISTER
  rm.9.maxImageWidth = {$rightCol.maxImageWidth}
  rm.9.textStyle_face = {$rightCol.textStyle_face}
  rm.9.textStyle_size = {$rightCol.textStyle_size}
  rm.9.textStyle_color = {$rightCol.textStyle_color}
  rm.9.defaultHeaderType = {$rightCol.defaultHeaderType}

  rm.10 < styles.content.{$rightCol.borderContent}
  rm.20 = CLEARGIF
  rm.20.width={$width.rightCol}
  rm.30 = RESTORE_REGISTER
  rm.TDParams = valign="top"
}


page.config.admPanel = 1
config.intTarget = {$PAGE_TARGET}
page.headerData.999 < plugin.meta
frameset.headerData.999 < plugin.meta


