questia.Package( "questiatheme.subscribe" ); questiatheme.subscribe.planSelectedListener = function(evt) { var selectedPlanId = evt.message; var planPanel = document.getElementById('planPanel'+selectedPlanId); if ( planPanel ) { var footer = coreweb.common.getElementByClass( planPanel, 'standardPanelFooter' ); if ( footer ) { footer.style.backgroundImage="url(/questia_theme/retail/subscribe/images/plan_footer_selected.gif)"; } } else { return; } for(var i=0; i < questia.Dictionary.subscribe.plans.length; i++) { var planId = questia.Dictionary.subscribe.plans[i]; if ( selectedPlanId != planId ) { planPanel = document.getElementById('planPanel'+planId); var footer = coreweb.common.getElementByClass( planPanel, 'standardPanelFooter' ); if ( footer ) { footer.style.backgroundImage="url(/questia_theme/retail/subscribe/images/plan_footer.gif)"; } } } } questia.Events.register( 'subscribe.plan.selected', '*', questiatheme.subscribe.planSelectedListener);