var nTabIndex = 0;
var nTabMax = 0;

var g_x = {Mouse: null};
var g_Chg = {Mouse: false, Data: null};
g_Types = {Mouse: ["All", "List", "Tree", "Tabs", "Browser"]};

function InitMouseOptions()
{
	LoadLang2(fso.BuildPath(fso.GetParentFolderName(api.GetModuleFileName(null)), "addons\\mouse\\lang\\" + te.Data.Conf_Lang + ".xml"));
	ApplyLang(document);
	document.title = GetText("Mouse");
	LoadX("Mouse");
}

function SetMouseOptions()
{
	ConfirmX();
	SaveX("Mouse");
	window.close();
}

function AddMouse(o)
{
	document.F.elements["MouseMouse"].value += o.title;
	ChangeX("Mouse");
}

function SetRadio(o)
{
	var ar = o.id.split("=");
	document.F.elements[ar[0]].value = ar[1];
}

function ShowLocation()
{
	showModelessDialog("../../script/location.html?id=mouse&show=6&index=6", dialogArguments, 'dialogWidth: 640px; dialogHeight: 480px; resizable: yes; status: 0;');
}
