});
}]);
// Replaces spaces with underscores to find proper files
function convertToWikiConformId(orig) {
return orig.replaceAll(' ', '_');
}
function initGirl() {
var loadingDivs = $(event.target).closest('.tdoll_chibi,.chibiAnimationContainer');
loadingDivs.addClass("loading");
var tdollId = convertToWikiConformId(currentDiv.data("tdollId").replace(" ", "_");
loadingDivs.attr('data-tdoll-costume', costumeSuffix);
var dormVariant = loadingDivs.find('.chibiDormSwitcher input').is(':checked');
var tdollChibiDivCostume = tdollChibiDiv.attr('data-tdoll-costume') || "";
var tdollId = convertToWikiConformId(currentDiv.data("tdollId").replace(" ", "_");
loadGirl(chibiAnimationBaseview, tdollId, tdollChibiDivCostume, futureEnabledState, girlLoadedHandler, requestedScale);
};
currentDiv.append(screencapLink);
var tdollId = convertToWikiConformId(currentDiv.data("tdollId").replace(" ", "_");
loadGirl(chibiAnimationBaseview, tdollId, "", false, girlLoadedHandler, requestedScale);