<?php if ($__is_viewing_self || !IsHiddenObject('equip_pet')) { ?> <div id="inv_pet" style="display: none"> <?php MakeHideToggleButton('equip_pet'); ?> <select cur-pet="0" onchange="$('#pet_' + $(this).attr('cur-pet')).css('display', 'none'); $(this).attr('cur-pet', $(this).val()); $('#pet_' + $(this).attr('cur-pet')).css('display', '');"> <option value="0">Pet 1</option> <option value="1">Pet 2</option> <option value="2">Pet 3</option> </select> <?php $pets = Pet::LoadPets($internal_id, CURRENT_LOCALE); $inv_pos_offx = 136; $inv_pos_offy = 115; for ($i = 0; $i < 3; $i++) { $pet = $pets[$i]; $isfound = $pet !== null; ?> <div class="pet" style="display: <?php echo $i == 0 ? 'block' : 'none'; ?> ;" id="pet_<?php echo $i; ?> "> <span class="top-col lt"><?php echo $isfound ? $pet->name : '';