/**
 * @file
 * JavaScript file for bhh theme effects.
 */
jQuery(function($) {
  $(document).ready(function() {
    $("a.lightbox").lightBox({
      imageLoading:			Drupal.settings.basePath + Drupal.settings.themePath + '/images/lightbox-ico-loading.gif',		// (string) Path and the name of the loading icon
			imageBtnPrev:			Drupal.settings.basePath + Drupal.settings.themePath + '/images/lightbox-btn-prev.gif',			// (string) Path and the name of the prev button image
			imageBtnNext:			Drupal.settings.basePath + Drupal.settings.themePath + '/images/lightbox-btn-next.gif',			// (string) Path and the name of the next button image
			imageBtnClose:		Drupal.settings.basePath + Drupal.settings.themePath + '/images/lightbox-btn-close.gif',		// (string) Path and the name of the close btn
			imageBlank:				Drupal.settings.basePath + Drupal.settings.themePath + '/images/lightbox-blank.gif',			// (string) Path and the name of a blank image (one pixel)
    });
    setTimeout('checkHeight()', 100);
  });
});

function checkHeight() {
  jQuery(function($) {
    if ($("#sidebar-first").height() < $("#main").height()) {
      $("#sidebar-first").css('height', $("#main").height());
    }
  });
}