# Menu objects:
temp.menu1 = HMENU
temp.menu1.stdWrap.offsetWrap = {$menu1.offset}
temp.menu1.wrap =<table border="0" cellpadding="0" cellspacing="0" width="100%">|</table>
temp.menu1.1 = TMENU
temp.menu1.1.NO {
  allWrap = <tr>|</tr>
  allWrap {
    addParams.bgColor = {$menu1.bgColor}
    preCObject = TEXT
    preCObject.if.directReturn = {$menu1.topLine} || {$menu1.lineThickness}  |*||*| 
    preCObject.value = <tr bgcolor="{$menu1.lineColor}"><td colspan="4"><img src="clear.gif" width="1" height="{$menu1.lineThickness}" alt="" /></td></tr>
    postCObject = TEXT
    postCObject.if.directReturn = 0 |*||*| {$menu1.bottomLine}
    postCObject.value = <tr bgcolor="{$menu1.lineColor}"><td colspan="4"><img src="clear.gif" width="1" height="{$menu1.lineThickness}" alt="" /></td></tr>
  }

  beforeImg = {$menu1.file.bullet_left}
  beforeROImg = {$menu1.file.bullet_left_RO}
  RO = {$menu1.file.bullet_left_RO}{$menu1.file.bullet_right_RO}
  beforeWrap = <td>|</td><td width="99%">
  ATagParams = class="menuitems1"
  stdWrap2.wrapAlign= {$menu1.align}
  afterImg = {$menu1.file.bullet_right}
  afterROImg = {$menu1.file.bullet_right_RO}
  afterWrap = </td><td>| </td><td><img src="clear.gif" width="1" height="{$menu1.itemHeight}" alt="" /></td>
}
temp.menu1.1.ACT < temp.menu1.1.NO
temp.menu1.1.ACT = {$menu1.ACT}
temp.menu1.1.ACT {
  allWrap.addParams.bgColor = {$menu1.ACT.bgColor}
  beforeImg = {$menu1.ACT.file.bullet_left}
  afterImg = {$menu1.ACT.file.bullet_right}
  ATagParams = class="menuitems1ACT"
}


# EXACT(!) copy of menu1; additions: entryLevel = 1, ATagParams = ...
temp.menu2 = HMENU
temp.menu2.entryLevel = 1
temp.menu2.stdWrap.offsetWrap = {$menu2.offset}
temp.menu2.wrap =<table border="0" cellpadding="0" cellspacing="0" width="100%">|</table>
temp.menu2.1 = TMENU
temp.menu2.1.NO {
  allWrap = <tr>|</tr>
  allWrap {
    addParams.bgColor = {$menu2.bgColor}
    preCObject = TEXT
    preCObject.if.directReturn = {$menu2.topLine} || {$menu2.lineThickness}  |*||*| 
    preCObject.value = <tr bgcolor="{$menu2.lineColor}"><td colspan="4"><img src="clear.gif" width="1" height="{$menu2.lineThickness}" alt="" /></td></tr>
    postCObject = TEXT
    postCObject.if.directReturn = 0 |*||*| {$menu2.bottomLine}
    postCObject.value = <tr bgcolor="{$menu2.lineColor}"><td colspan="4"><img src="clear.gif" width="1" height="{$menu2.lineThickness}" alt="" /></td></tr>
  }

  beforeImg = {$menu2.file.bullet_left}
  beforeROImg = {$menu2.file.bullet_left_RO}
  RO = {$menu2.file.bullet_left_RO}{$menu2.file.bullet_right_RO}
  beforeWrap = <td>|</td><td width="99%">
  ATagParams = class="menuitems2"
  stdWrap2.wrapAlign= {$menu2.align}
  afterImg = {$menu2.file.bullet_right}
  afterROImg = {$menu2.file.bullet_right_RO}
  afterWrap = </td><td>| </td><td><img src="clear.gif" width="1" height="{$menu2.itemHeight}" alt="" /></td>
}
temp.menu2.1.ACT < temp.menu2.1.NO
temp.menu2.1.ACT = {$menu2.ACT}
temp.menu2.1.ACT {
  allWrap.addParams.bgColor = {$menu2.ACT.bgColor}
  beforeImg = {$menu2.ACT.file.bullet_left}
  afterImg = {$menu2.ACT.file.bullet_right}
  ATagParams = class="menuitems2ACT"
}




# Page object

page = PAGE
page.typeNum = 0
page.bodyTag < styles.content.bodyTag
page.bodyTagMargins=0
page.bgImg = {$page.file.bgImg}
page.headerData.20 = TEXT
page.headerData.20.value (
  <style type="text/css">
  /*<![CDATA[*/
  .menuitems1 {     {$menu1.NO.itemStyle} }
  .menuitems2 {          {$menu2.NO.itemStyle}  }
  .menuitems1ACT {     {$menu1.ACT.itemStyle} }
  .menuitems2ACT {          {$menu2.ACT.itemStyle}  }

   A.menuitems1:link { text-decoration: {$menu1.textDecor}; color: {$menu1.NO.itemLinkColor};}
   A.menuitems1:visited {text-decoration: {$menu1.textDecor}; color: {$menu1.NO.itemLinkColor};}     
   A.menuitems1:active {text-decoration: {$menu1.hoverTextDecor}; color: {$menu1.NO.itemLinkColorRO};}     
   A.menuitems1:hover {text-decoration: {$menu1.hoverTextDecor}; color: {$menu1.NO.itemLinkColorRO};}

   A.menuitems1ACT:link {text-decoration: {$menu1.textDecor}; color: {$menu1.ACT.itemLinkColor};}    
   A.menuitems1ACT:visited {text-decoration: {$menu1.textDecor}; color: {$menu1.ACT.itemLinkColor};}     
   A.menuitems1ACT:active {text-decoration: {$menu1.hoverTextDecor}; color: {$menu1.ACT.itemLinkColorRO};}     
   A.menuitems1ACT:hover {text-decoration: {$menu1.hoverTextDecor}; color: {$menu1.ACT.itemLinkColorRO};}

   A.menuitems2:link { text-decoration: {$menu2.textDecor}; color: {$menu2.NO.itemLinkColor};}
   A.menuitems2:visited {text-decoration: {$menu2.textDecor}; color: {$menu2.NO.itemLinkColor};}     
   A.menuitems2:active {text-decoration: {$menu2.hoverTextDecor}; color: {$menu2.NO.itemLinkColorRO};}     
   A.menuitems2:hover {text-decoration: {$menu2.hoverTextDecor}; color: {$menu2.NO.itemLinkColorRO};}

   A.menuitems2ACT:link {text-decoration: {$menu2.textDecor}; color: {$menu2.ACT.itemLinkColor};}    
   A.menuitems2ACT:visited {text-decoration: {$menu2.textDecor}; color: {$menu2.ACT.itemLinkColor};}     
   A.menuitems2ACT:active {text-decoration: {$menu2.hoverTextDecor}; color: {$menu2.ACT.itemLinkColorRO};}     
   A.menuitems2ACT:hover {text-decoration: {$menu2.hoverTextDecor}; color: {$menu2.ACT.itemLinkColorRO};}
   /*]]>*/
  </style>
)

page.stdWrap {
  offsetWrap = {$page.offset}
  offsetWrap.stdWrap.wrapAlign = {$page.align}
  offsetWrap.tdParams = valign="top"
}

# Starting big table:
page.10 = HTML
page.10.value = <table border="0" cellpadding="0" cellspacing="0" width="1">
page.10.value {
  addParams._offset = -1
  addParams.bgColor = {$page.bgColors.wholeTableBgColor}
  addParams.background = {$page.file.wholeTableBgImg}
}

# Menu column start:
page.13 = HTML
page.13.value = <tr><td valign="top">
page.13.value {
  if.directReturn = {$menuCol.enable}
  addParams._offset = -1
  addParams.bgColor = {$page.bgColors.menuBgColor}
  addParams.background = {$page.file.menuBgImg}
}

page.15.stdWrap.if.directReturn = {$menuCol.enable}
page.15 = COA
page.15 {
  10 = IMAGE
  10.file = {$page.file.logoImg}
  10.stdWrap.offsetWrap = 0,0
  10.stdWrap.required=1
  10.stdWrap.typolink.parameter.data = leveluid : 0

  20 < temp.menu1

  29 = LOAD_REGISTER
  29.maxImageWidth = {$menuCol.maxImageWidth}
  29.textStyle_face = {$menuCol.textStyle_face}
  29.textStyle_size = {$menuCol.textStyle_size}
  29.textStyle_color = {$menuCol.textStyle_color}
  29.defaultHeaderType = {$menuCol.defaultHeaderType}
  29.pageColor = {$page.bgColors.menuBgColor}
  30 < styles.content.{$menuCol.borderContent}
  30.stdWrap.offsetWrap = {$menuCol.offset}
  31 = RESTORE_REGISTER
}


# Main column start:
page.20 = HTML
page.20.value = </td><td valign="top">

page.25 = COA
page.25 {
  10 = HTML
  10.value = <table border="0" cellpadding="0" cellspacing="0">

    # Setting top image, if any
  11 = COA
  11.stdWrap.if.directReturn = {$page.file.topImg}
  11.10=HTML
  11.10.value = <tr><td colspan="4">
  11.15 = IMAGE
  11.15.file = {$page.file.topImg}
  11.15.file.import = uploads/media/
  11.15.file.import.data = levelmedia : -1, slide
  11.15.file.import.listNum=0
  11.20 = HTML
  11.20.value = </td></tr>

    # Setting topimage to content distance, if any
  13 = COA
  13.stdWrap.if.directReturn = {$page.topImgToContentDist}
  13.10=HTML
  13.10.value = <tr><td colspan="4">
  13.15 = CLEARGIF
  13.15.height = {$page.topImgToContentDist}
  13.20 = HTML
  13.20.value = </td></tr>


    # starting row for normal and right content 
  14 = HTML
  14.value = <tr><td>

    # margin
  15 = CLEARGIF
  15.width = {$page.contentMarginLeft}
  15.height = {$pageCol.page.height}

    # Normal content column
  20 = HTML
  20.value = </td><td valign="top">
  20.value.addParams._offset = -1
  20.value.addParams.bgColor = {$page.bgColors.normalBgColor}
  20.value.addParams.background = {$page.file.normalBgImg}

  25 = COA 
  25.stdWrap.offsetWrap = {$pageCol.page.contentOffset}
  25.5 = CLEARGIF
  25.5.width = {$pageCol.page.width}
  25.7 <  styles.content.editPanelPage
  25.9 = LOAD_REGISTER
  25.9.maxImageWidth = {$pageCol.maxImageWidth}
  25.9.pageColor = {$page.bgColors.normalBgColor}
  25.10 < styles.content.get
  25.11 = RESTORE_REGISTER
  25.20  < styles.content.lastUpdate
  25.30 < styles.content.typo3_powered

    # right margin
  30 = HTML
  30.value = </td><td valign="top">

  35 = CLEARGIF
  35.width = {$page.contentMarginRight}

    # right content column
  40 = HTML
  40.value = </td><td valign="top">
  40.value.addParams._offset = -1
  40.value.addParams.bgColor = {$page.bgColors.rightBgColor}
  40.value.addParams.background = {$page.file.rightBgImg}

  43 = IMAGE
  43.file = {$page.file.marginLogoImg}
  43.stdWrap.wrap = |<br />
  43.stdWrap.offsetWrap = 0,0
  43.stdWrap.required=1
  43.stdWrap.if.directReturn = {$rightCol.enable}

  45 = COA 
  45.stdWrap.if.directReturn = {$rightCol.enable}
  45.stdWrap.offsetWrap = {$rightCol.offset}
  45.5 = CLEARGIF
  45.5.width = {$rightCol.maxImageWidth}
  45.7 < temp.menu2
  45.9 = LOAD_REGISTER
  45.9.maxImageWidth = {$rightCol.maxImageWidth}
  45.9.textStyle_face = {$rightCol.textStyle_face}
  45.9.textStyle_size = {$rightCol.textStyle_size}
  45.9.textStyle_color = {$rightCol.textStyle_color}
  45.9.defaultHeaderType = {$rightCol.defaultHeaderType}
  45.9.pageColor = {$page.bgColors.rightBgColor}
  45.10 < styles.content.{$rightCol.borderContent}
  45.10.select.pidInList = {$rightCol.getNewsPid}
  45.11 = RESTORE_REGISTER

    # end
  50 = HTML
  50.value = </td></tr></table>
}

# end
page.30 = HTML
page.30.value = </td></tr></table><br />



# Configuration
config.extTarget = _blank
config.compensateFieldWidth = 0.7

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

