﻿// jQuery code for Sagia GCF

$(document).ready(function() {
    if ($(".equalH").length>0){
        equalHeight($(".equalH"));
        //DD_belatedPNG.fix('.side_nav');
    }
    /*if ($(".tabs input").length>0){
        newContentRevealed();
    }*/

});


function equalHeight(group) {
	var tallest = 0;
	group.each(function() {
		var thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	//group.height(tallest);
	group.css({'min-height':tallest});
	if ($.browser.msie && $.browser.version == 6.0) { group.css({'height':tallest});} 
}

function newContentRevealed(){
    $(".tabs input").click(function (e) {
        //e.preventDefault();
        alert("newContentRevealed");


        $('.equalH').delay(2000).css({'min-height': '100px'});
        

        t1=setTimeout(function () {
            equalHeight($('.equalH'));
            clearTimeout(t1);
         }, 4000);
 
        
    }); 
} 
