change your for loops to
Code:
for(Count = 0; Count <= 24; Count++){



instead of all the if else use switch
Code:
switch(Number){
   case 1:
       //do case 1
   break;
   case 2: etc...



A7 can't return strings too well, you'll need to set it inside the function
Code:
str_cpy(passed_string, result);



you shouldn't be getting the name of the panel, just return it's pointer


would it not be easier for you to have just 1 image of all the cards, then use a window to display the card, rather than having them all as seperate images?

and use [ code ] [/code] tags, makes it easier to read

hope this helps