function showInfo() {
	if (document.getElementById('feature').childNodes[0].style.display == 'none') {
		if (($.browser.msie) && $.browser.version == '7.0') {
			$("div#feature div.info-data").show();
		} else {
			$("div#feature div.info-data").slideDown("slow");
		}
	} else if (typeof(window['hideInfoTimer']) == 'number') {
		clearHideTimer();
	}
}
function hideInfo() {
	hideInfoTimer = window.setTimeout(actuallyHideInfo,100);
}

function actuallyHideInfo() {
		if (($.browser.msie) && $.browser.version == '7.0') {
			$("div#feature div.info-data").hide();
		} else {
			$("div#feature div.info-data").slideUp("slow");
		}
}

function clearHideTimer() {
	window.clearTimeout(hideInfoTimer);
	hideInfoTimer = null;
}

$(document).ready(function(){
  $("div#feature div.info-data").hide();
  if (document.getElementById('feature')) {
    if (document.getElementById('feature').childNodes.length > 0) {
      $("div#feature").bind("mouseover",showInfo).bind("mouseout",hideInfo).bind("mousemove",showInfo);
      $("div#feature *").bind("mouseover",clearHideTimer);
    }
  }
  $('.imageGallery a').lightBox();
});
