function show_buttons(selector)
{
  $(selector).each(function(){
    var timeout = 0;
    var obj = this;

    $(this).mouseover(function(){
      clearTimeout(timeout);
      $(obj).find('.buttons').show();
    });

    $(this).mouseout(function(){
      timeout = setTimeout(function(){$(obj).find('.buttons').hide();}, 200);
    });
  });
}


function lightbox_thumbnail(selector, txtImage, txtOf)
{
  if(!txtImage)
    txtImage = 'Image';
    
  if(!txtOf)
    txtOf = 'of';

  $(selector).each(function(){
    $(this).find('a').lightBox({
      overlayBgColor : 'transparent',
      overlayOpacity : 0,
      imageLoading : '/img/lightbox/load.gif',
      imageBtnClose : '/img/lightbox/close.gif',
      imageBtnPrev : '/img/lightbox/prev.gif',
      imageBtnNext : '/img/lightbox/next.gif',
      containerBorderSize : 10,
      containerResizeSpeed : 400,
      txtImage : txtImage,
      txtOf : txtOf,
      imageBlank : '/img/lightbox/blank.gif',
      keyToClose : 'c',
      keyToPrev : 'p',
      keyToNext : 'n'
    });
  });  
}
