var aListArray = new Array();
var iArrayLength;

/*
title: Family feature list and view system button horizontal alignment script
author: Dan DeRose
company: Bose Corporation
requires: Prototype 1.5.0
last updated: 5/7/2008
description: Calculates the correct margin and sets the list elements to align the view system buttons horizontally underneath
*/
function alignButtons() {
    iArrayLength = aListArray.length;
    for (i=0; i < iArrayLength; i = i+4) {
        var sHeight = (Math.abs(aListArray[i+1] - aListArray[i+3]) + 8) + 'px';
        if (aListArray[i+1] > aListArray[i+3]) {
            aListArray[i+2].setStyle({
                marginBottom: sHeight
            });
        }
        else if(aListArray[i+1] < aListArray[i+3]) {
            aListArray[i].setStyle({
                marginBottom: sHeight
            });
        }
    }
}

new PeriodicalExecuter( function(alignButtons_pe) {  
	if ($('footer')){		
		alignButtons_pe.stop();
        alignButtons();
		navExtend('content_inner');
	}
}, .1);