there's no point in having 2 programs for this,
ok, im really am sorry, i can tell im beginning to get annoying
and you're not being annoying
you need to create unique functions for what you're trying to do
so in your credits functions you still have all the definitions you need, but youu just need to set which TEXT and PANEL visible depending on what you're doing
so you can put all your PANELs and TEXT in a seperate scripts like you have, then have a function that toggles what you need
so on buttonclick of creditbutton3 have toggle show_credits()
then
function show_credits() set(opening_txt, SHOW);
etc... hope this helps