?> </td> </tr> <tr> <td class="kuadesc"> <?php //FIXME: move to js folder ?> <script type="text/javascript"> <!-- function switch_avatar_category(gallery) { if (gallery == "") return; var url = "<?php echo CKunenaLink::GetMyProfileUrl(intval($this->user->id), 'edit', false, '&gallery=_GALLERY_'); ?> "; var urlreg = new RegExp("_GALLERY_","g"); location.href=url.replace(urlreg,gallery); } // --> </script> <?php $kid = 0; foreach ($this->galleryimg as $avatarimg) { ?> <span> <label for="kavatar<?php echo $kid;