// REVERT 
/* The TimerBlockHeight and MatchBlockHeight functions match up the height of page elements by adding space padding to the bottom of the the shorter element  */
function TimerBlockHeight() {
    var list = document.matchlist;
    var max = 0;
	
    for (i = 0; i < list.length; i++) {
		var elem = document.getElementById(list[i]);
	//	var elemff = (elem.id + ".cbMrgnBtmSM");
	//	alert(elemff);
		if (elem) {
	        if (max < elem.offsetHeight) {
    	        max = elem.offsetHeight;
        	}
		}
    }
	
	for (i = 0; i < list.length; i++) {
        var name = list[i];
        var elem = document.getElementById(name);
		if (elem) {
        	var offheight = elem.offsetHeight;
        	var diff = max - offheight;
        	if (diff > 0) {
            	elem.style.paddingBottom = diff + 'px';
        	}
		}
    }
}

function MatchBlockHeight() {
    if (document.getElementById) {
        list = new Array();
        for (i = 0; i < arguments.length; i++) {
            list[i] = arguments[i];
        }
        document.matchlist = list;
        setTimeout("TimerBlockHeight()", 10);
    }
}

/* The TimerBlockHeight2 and MatchBlockHeight2 functions match up the height of page elements by adding space padding to the top of the the shorter element  */
function TimerBlockHeight2() {
    var list = document.matchlist;
    var max = 0;
    for (i = 0; i < list.length; i++) {
        var elem = document.getElementById(list[i]);
		if (elem) {
        	if (max < elem.offsetHeight) {
            	max = elem.offsetHeight;
        	}
		}
    }
    for (i = 0; i < list.length; i++) {
        var name = list[i];
        var elem = document.getElementById(name);
		if (elem) {
        	var offheight = elem.offsetHeight;
        	var diff = max - offheight;
        	if (diff > 0) {
            	elem.style.paddingTop = ""+diff+"px";
        	}
		}
    }
}

function MatchBlockHeight2() {
    if (document.getElementById) {
        list = new Array();
        for (i = 0; i < arguments.length; i++) {
            list[i] = arguments[i];
        }
        document.matchlist = list;
        setTimeout("TimerBlockHeight2()", 10);
    }
}

function TimerBlockHeightTop() {
    var list = document.matchlist;
    var max = 0;
    for (i = 0; i < list.length; i++) {
        var elem = document.getElementById(list[i]);
		if (elem) {
        	if (max < elem.offsetHeight) {
            	max = elem.offsetHeight;
        	}
		}
    }
    for (i = 0; i < list.length; i++) {
        var name = list[i];
        var elem = document.getElementById(name);
		if (elem) {
        	var offheight = elem.offsetHeight;
        	var diff = max - offheight;
        	if (diff > 0) {
            	elem.style.paddingTop = ""+diff+"px";
        	}
		}
	}
}

function MatchBlockHeightTop() {
    if (document.getElementById) {
        list = new Array();
        for (i = 0; i < arguments.length; i++) {
            list[i] = arguments[i];
        }
        document.matchlist = list;
        setTimeout("TimerBlockHeightTop()", 10);
    }
}


