$(document).ready(function(){
    
    // jQuery.fn.hover() runs arg1 on mouseover, arg2 on mouseout. We play at
    // frame1 or frame2 depending on which of the two div's triggered this event.
    $('#homePromoW div.hptext').hover(function(e) { $(this).find('h2').addClass('hover'); },
                                      function(e) { $(this).find('h2').removeClass('hover'); });

    $('#homePromoW h2').hoverClass('hover');

    $('#homePromoW div.hptext').bind('click', function() { document.location.href = $(this).find('h2 > a').attr('href') } );
});

