if ( PetitionFrame.petitionType == "guild" ) then StaticPopup_Show("RENAME_GUILD"); elseif ( PetitionFrame.petitionType == "arena" ) then StaticPopup_Show("RENAME_ARENA_TEAM"); end
self:RegisterEvent("PETITION_SHOW"); self:RegisterEvent("PETITION_CLOSED");
if (event == "PETITION_SHOW") then ShowUIPanel(PetitionFrame); if ( not PetitionFrame:IsShown() ) then ClosePetition(); return; end

PetitionFrame_Update(self); elseif (event == "PETITION_CLOSED") then HideUIPanel(PetitionFrame); end
PlaySound("igQuestListOpen");
PlaySound("igQuestListClose"); ClosePetition();