﻿$(document).ready
(
    function()
    {
        SetupPage()
    }
)

function SetupPage()
{
    var maxHeight = 0;
    
    $('.footer-image-holder div:lt(2)').css('margin-right','10px');//add right margin if more than one button showing to ensure spacing
   $('.banner').innerfade({timeout:6500,containerheight:'120px',speed:3100});
    
    //find the div with the most height and then set the others to be the same height
    $('.footer-image-holder div').each( function()
                                        {
                                            if($(this).height() > maxHeight)
                                            {
                                                maxHeight = $(this).height();
                                            }
                                        }
                                      );
    $('.footer-image-holder div').css({'height':maxHeight});//finally, set the height        
    
    $('.banner img').css('visibility','visible');
}
