function notFound() { window.location = "#/getting_started"; } //This is the main controller / routing that dictates how information is displayed. All accordion page changes must go through here by calling // window.location="#/name_of_accordion_goes_here" or equivalent function generic() { switch(this.params['page']) { case "getting_started": currentPanelDisableAfter(1); break; case "business_info" : // $("#business_info").show(); //we need to hide the content first so it doesnt show up on IE7 when the accordion loads slow. currentPanelDisableAfter(2); break; case "financial_info" : // $("#personal_info").show(); currentPanelDisableAfter(3); if($("#owner2_first_name_id").val() == ""){ $("#panel-2-heading .summary_accordion .owner-2").hide(); } else{ $("#panel-2-heading .summary_accordion .owner-2").show(); } // alert("1"); break; case "owner_info" : // $("#employment_info").show(); currentPanelDisableAfter(4); break; case "product_details" : // $("#authorized_user").show(); currentPanelDisableAfter(5); if($('input[name="annual_sale"]').value() == 'N'){ $("#panel-4-review").attr("style","display:none !important"); } break; case "review" : // $("#legal").show(); currentPanelDisableAfter(6); break; default: window.location = "#/getting_started"; } }