    
$(document).ready(
  function ()
  {
    var prefixname = 'images/framework/layerbutton-ig-224';
    var leftBorderHover = 4;
    var rightBorderHover = 4;
    var topBorderHover = 4;
    var bottomBorderHover = 4;

    $('#panel5 .pillarlinks a.icon').LayerButton(
      {
        'groupID':        'panel5',
        'amountTiles':    1,
        'normal':
        {
          'imageSource':  { 'prefix': prefixname + '_', 'suffix': '.png' },
          'imageBorders': { 'right': rightBorderHover, 'left': leftBorderHover, 'top': topBorderHover, 'bottom': bottomBorderHover }
        },
        'hover':
        {
          'imageSource':  { 'prefix': prefixname +'-hover_', 'suffix': '.png' },
          'imageBorders': { 'right': rightBorderHover, 'left': leftBorderHover, 'top': topBorderHover, 'bottom': bottomBorderHover }
        }
      }
    );
    
    activateTooltip($('#panel5 .pillarlinks a'));
    
    if (debug)
    {
      updatePillarStyles(new Array('style_folder.png', 'style_folder.png'), new Array('asf', 'asf'), new Array('', ''), 'styler');
      updatePillarStyles(new Array('style_folder.png', 'style_folder.png', 'style_folder.png'), new Array('asf', 'asf', 'asf'), new Array('', '', ''), 'systemcontrol');
    }
  }
);

function updatePillarStyles(imgs, texts, links, type)
{
  var html = '';
  if (type == 'styler')
  {
    var tabindex = 620;
  }
  else
  {
    var tabindex = 670;
  }
  for (var i=0; i<texts.length; i++)
  {
    if (texts[i])
    {
      html += '<tr valign="top">' +
          '<td align="center" class="withspacer">' +
            '<a class="icon" id="' + (type + i) + '" onclick="call(\'' + links[i] + '\');" tabindex="' + (tabindex + (i * 10)) + '"><table cellpadding="0" cellspacing="0"><tr valign="middle"><td width="26" align="right"><div style="width: 16px; height: 16px; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src=\'images/tab5/' + imgs[i] + '\');"></div></td><td><span class="title">' + texts[i] + '</span></td></tr></table></a>' +
          '</td>' +
        '</tr>';
    }
  }
  $('#panel5 .settings.' + type + ' table').html(html);
  var prefixname = 'images/framework/layerbutton-ig-224';
  var leftBorderHover = 4;
  var rightBorderHover = 4;
  var topBorderHover = 4;
  var bottomBorderHover = 4;
  $('#panel5 .settings.' + type + ' table a').LayerButton(
    {
      'groupID':        'panel5' + type,
      'amountTiles':    '3h',
      'normal':
      {
        'imageSource':  { 'prefix': prefixname + '_', 'suffix': '.png' },
        'imageBorders': { 'right': rightBorderHover, 'left': leftBorderHover, 'top': topBorderHover, 'bottom': bottomBorderHover }
      },
      'hover':
      {
        'imageSource':  { 'prefix': prefixname + '-hover_', 'suffix': '.png' },
        'imageBorders': { 'right': rightBorderHover, 'left': leftBorderHover, 'top': topBorderHover, 'bottom': bottomBorderHover }
      }
    }
  );
}
