$(function()
{
  $('#top-nav li:last-child').addClass('last');

  $('#content div.view-content>div:last-child').addClass('node-last');

//  $('#mainmenu ul li a strong').dropShadow({left: 10, top: 20, color: '#B65E15', opacity: 1, blur: 0});

//  applyShadow(document.getElementById('nice-menu-2').getElementsByTagName('li')[0], '#aaa', 1);

  $('#mainmenu ul li a strong').each(function(idx)
  {
    el = $(this);

    val = el.text();

    el.css({
      position: 'relative',
      zIndex: 1
    });

    newEl = $('<span>'+val+'</span>');

    newEl.css(
    {
      color: '#B65E15',
      position: 'absolute',
      marginTop: '1px',
      left: '1px',
      zIndex: '-1',
      top: '0',
      left: '0',
    });

    el.append(newEl);
  });

});

/*
<strong style="position: relative; z-index: 1;">
  Organizujemy
  <span style="color: black; position: absolute; z-index: -1; left: 1px; margin-top: 1px;">
    Organizujemy
  </span>
</strong>

function applyShadow(targetElement, shadowColor, shadowOffset)
{
  if (typeof(targetElement) != 'object') {
    targetElement = document.getElementById(targetElement);
  }
  var value = targetElement.firstChild.nodeValue;
  targetElement.style.position = 'relative';
  targetElement.style.zIndex = 1;

  var newEl = document.createElement('span');
  newEl.appendChild(document.createTextNode(value));
  newEl.className = 'shadowed';
  newEl.style.color = shadowColor;
  newEl.style.position = 'absolute';
  newEl.style.left = shadowOffset + 'px';
  newEl.style.top = shadowOffset + 'px';
  newEl.style.zIndex = -1;

  targetElement.appendChild(newEl);
}
*/
