home *** CD-ROM | disk | FTP | other *** search
- function Body_OnLoad()
- {
- SSWorld = GetControl("LeftPane", "SSWorld");
-
- if (SSWorld != null)
- {
- Language.value = SSWorld.LocalCCName;
- LanguageSection.style.display = SSWorld.MultilingualImage ? "" : "none";
-
- if (SSWorld.CDImageSupport)
- {
- SourcePath.value = SSWorld.DataPath;
- SourcePathSection.style.display = "";
- }
-
- if (SSWorld.FlyoverEnabled == true)
- TooltipsOn.click();
- else
- TooltipsOff.click();
-
- TooltipsSection.style.display = "";
-
- CustomInstall.checked = SSWorld.CustomInstallEnabled;
- CustomInstallSection.style.display = "";
- }
- }
-
- function TooltipsOn_OnClick()
- {
- SSWorld = GetControl("LeftPane", "SSWorld");
-
- if (SSWorld != null)
- {
- TooltipsOff.src = "..\\images\\radio1.gif";
- TooltipsOn.src = "..\\images\\radio2.gif";
-
- if (!SSWorld.FlyoverEnabled)
- SSWorld.FlyoverEnabled = true;
- }
- }
-
- function TooltipsOff_OnClick()
- {
- SSWorld = GetControl("LeftPane", "SSWorld");
-
- if (SSWorld != null)
- {
- TooltipsOn.src = "..\\images\\radio1.gif";
- TooltipsOff.src = "..\\images\\radio2.gif";
-
- if (SSWorld.FlyoverEnabled)
- SSWorld.FlyoverEnabled = false;
- }
- }
-
- function CustomInstall_OnClick()
- {
- SSWorld = GetControl("LeftPane", "SSWorld");
-
- if (SSWorld != null)
- SSWorld.CustomInstallEnabled = CustomInstall.checked;
- }
-
- function BrowseButton_Click()
- {
- SSWorld = GetControl("LeftPane", "SSWorld");
-
- if (SSWorld != null)
- {
- SourcePath.value = SSWorld.BrowseForExistingImage();
- LanguageSection.style.display = SSWorld.MultilingualImage ? "" : "none";
-
- if (Language.value != SSWorld.LocalCCName)
- window.external.Reload();
- }
- }
-
- function ChangeButton_Click()
- {
- SSWorld = GetControl("LeftPane", "SSWorld");
-
- if (SSWorld != null)
- if (Language.value != SSWorld.BrowseForLanguage())
- window.external.Reload();
- }
-
- function ExitButton_Click()
- {
- Exit();
- }