function equalHeight(group) {
    tallest = 0;
    group.each(function() {
        thisHeight = $(this).height();
        if(thisHeight > tallest) {
            tallest = thisHeight;
        }
    });
    //-- ek, aug 6, 2010
    //group.height(tallest);
    group.css('min-height',tallest+'px');
    //-- end ek
}

$(document).ready(function() {

	$.ifixpng('/gfx/x.gif');
 	$('img[src$=.png],#header h1').ifixpng();

	equalHeight($("div.cols div.eq"));

	$('#homeprogramlist').click(function () {
		if ($("#homeprograms").is(":hidden")) {
			$("#homeprograms").slideDown(800,function(){
				$("#homeprogramlist").text('hide the list');
			});
		} else {
			$("#homeprograms").slideUp(800,function(){
				$("#homeprogramlist").text('see the full list');
				$("#homeprograms ul").removeClass('highlight');
			});
		}
		return false;
	});    

	$("#homeprograms ul").hover(function() {
	
		$("#homeprograms ul").removeClass('highlight');
		$(this).addClass('highlight');
	});


  $('#gallerydiv').jqm({ajax: '@href', trigger: 'a.gallery', overlay : '70'});
  
  $('A.lightbox').fancybox({
    'titlePosition' : 'over',
    'transitionIn'	:	'elastic',
    'transitionOut'	:	'elastic',
    'overlayOpacity' : 0.6
  });

});


