function ADOptions_Toggle()
	if(AntiDazeOptionsFrame:IsVisible()) then
		AntiDazeOptionsFrame:Hide();
	else
		AntiDazeOptionsFrame:Show();
	end
end

function ADOptions_OnLoad()
	UIPanelWindows['AntiDazeOptionsFrame'] = {area = 'center', pushable = 0};
end


function ADOptions_OnShow()
end

function ADOptions_Init()
	if (ADOptions == nil) then
		ADOptions = {};
		ADOptions.ADtoggle = 1;
		ADOptions.ADCCheet = 1;
		ADOptions.ADCPack = 1;
    ADOptions.ADCPackPets = 0;
	elseif (ADOptions.ADtoggle == nil) then
		ADOptions.ADtoggle = 1;
	elseif (ADOptions.ADCCheet == nil) then
		ADOptions.ADCCheet = 1;
	elseif (ADOptions.ADCPack == nil) then
		ADOptions.ADCPack = 1;
  elseif (ADOptions.ADCPackPets == nil) then
		ADOptions.ADCPackPets = 0;
	end
	AntiDazeOptionsFrameADtoggle:SetChecked(ADOptions.ADtoggle);
	AntiDazeOptionsFrameADCCheet:SetChecked(ADOptions.ADCCheet);
  AntiDazeOptionsFrameADCPack:SetChecked(ADOptions.ADCPack);
  AntiDazeOptionsFrameADCPackPets:SetChecked(ADOptions.ADCPackPets)
end

function ADOptions_OnHide()
	if(MYADDONS_ACTIVE_OPTIONSFRAME == this) then
		ShowUIPanel(myAddOnsFrame);
	end
end
