// flashcard_play_video($flashcard, $subquestion->questiontext, $autoplay, false, 'bell_q');
    flashcard_play_video($flashcard, "{$back}videofile/{$subquestion->id}", $autoplay, false, 'bell_q');
} elseif ($flashcard->questionsmediatype == FLASHCARD_MEDIA_IMAGE_AND_SOUND) {
    // list($image, $sound) = split('@', $subquestion->questiontext);
    // flashcard_print_image($flashcard, $image);
    flashcard_print_image($flashcard, "{$back}imagefile/{$subquestion->id}");
    echo "<br/>";
    // flashcard_play_sound($flashcard, $sound, $autoplay, false, 'bell_q');
    flashcard_play_sound($flashcard, "{$back}soundfile/{$subquestion->id}", $autoplay, false, 'bell_q');
} else {
    echo format_text($subquestion->questiontext, FORMAT_HTML);
}
?>
        </div>
        <div id="answerdiv" style="display:none;background-repeat:no-repeat;background-image:url(<?php 
echo flashcard_print_custom_url($flashcard, 'customfront', 0);
?>
)" class="flashcard-answer" onclick="javascript:togglecard()">
            <?php 
if ($flashcard->answersmediatype == FLASHCARD_MEDIA_IMAGE) {
    // flashcard_print_image($flashcard, $subquestion->answertext);
    flashcard_print_image($flashcard, "{$front}imagefile/{$subquestion->id}");
} elseif ($flashcard->answersmediatype == FLASHCARD_MEDIA_SOUND) {
    // flashcard_play_sound($flashcard, $subquestion->answertext, $autoplay, false, 'bell_a');
    flashcard_play_sound($flashcard, "{$front}soundfile/{$subquestion->id}", $autoplay, false, 'bell_a');
} elseif ($flashcard->answersmediatype == FLASHCARD_MEDIA_VIDEO) {
    // flashcard_play_video($flashcard, $subquestion->answertext, $autoplay, false, 'bell_a');
    flashcard_play_video($flashcard, "{$front}videofile/{$subquestion->id}", $autoplay, false, 'bell_a');
} elseif ($flashcard->answersmediatype == FLASHCARD_MEDIA_IMAGE_AND_SOUND) {
    // list($image, $sound) = split('@', $subquestion->answertext);
    // flashcard_print_image($flashcard, $image);
        flashcard_print_image($flashcard, "{$back}imagefile/{$subquestion->id}");
        echo "<br/>";
        flashcard_play_sound($flashcard, "{$back}soundfile/{$subquestion->id}", $autoplay, false, "bell_b{$i}");
    } else {
        echo format_text($subquestion->questiontext, FORMAT_HTML);
    }
    ?>
                    </td>
                </tr>
            </table>
            </div>
            </center>
            <center>
<?php 
    echo "<div id=\"b{$i}\" ";
    echo 'class="flashcard-answer" style="display:none;background-repeat:no-repeat;background-image:url(' . flashcard_print_custom_url($flashcard, 'customfront', 0) . ')" ';
    echo " onclick=\"javascript:clicked('b', '{$i}')\">";
    ?>
    		<table width="100%" height="100%">
    		    <tr>
    		        <td align="center" valign="center" style="">
    		            <?php 
    if ($flashcard->answersmediatype == FLASHCARD_MEDIA_IMAGE) {
        flashcard_print_image($flashcard, "{$front}imagefile/{$subquestion->id}");
    } elseif ($flashcard->answersmediatype == FLASHCARD_MEDIA_SOUND) {
        flashcard_play_sound($flashcard, "{$front}soundfile/{$subquestion->id}", 'false', false, "bell_f{$i}");
    } elseif ($flashcard->answersmediatype == FLASHCARD_MEDIA_VIDEO) {
        flashcard_play_video($flashcard, "{$front}videofile/{$subquestion->id}", $autoplay, false, "bell_f{$i}");
    } elseif ($flashcard->answersmediatype == FLASHCARD_MEDIA_IMAGE_AND_SOUND) {
        flashcard_print_image($flashcard, "{$front}imagefile/{$subquestion->id}");
        echo "<br/>";