home *** CD-ROM | disk | FTP | other *** search
- ////////////////////////////////////////////////////////////////////////////////////////////
- //
- // PRODUCT: Norton Internet Security/Symantec Desktop Firewall
- //
- // NAME: iw-Navigation.js (Javascript file for iw-Navigation.HTM)
- //
- // Copyright (c) 2002 by Symantec Corporation. All rights reserved.
- //
- ////////////////////////////////////////////////////////////////////////////////////////////
-
- function OnKeyDownHandler(oTabbedFrom)
- {
- var VK_TAB = 9;
-
- if (oTabbedFrom.id == BackB)
- {
- if (window.event.keyCode == VK_TAB && (window.event.shiftKey))
- {
- window.parent.frames("contents",0).focus();
- return;
-
- }
- return;
- }
-
- if (oTabbedFrom.id == NextB)
- {
- if (window.event.keyCode == VK_TAB && (window.event.shiftKey))
- {
- if(BackB.disabled == true)
- {
- // Go To Conent Page
- window.parent.frames("contents",0).focus();
- return;
- }
- }
- return;
- }
-
- // the close button doesn't call this handler, but we can leave this code just in case it's added
- if (oTabbedFrom.id == CloseB)
- {
- if (window.event.keyCode == VK_TAB && (window.event.shiftKey != true))
- {
- window.parent.frames("contents",0).focus();
- }
- return;
- }
- }
-
- function OnLoad()
- {
- BackB.disabled = true;
- BackB.style.display = "";
-
- NextB.disabled = false;
- NextB.style.display = "";
-
- FinishB.disabled = true;
- FinishB.style.display = "none";
-
- CloseB.disabled = false;
- CloseB.style.display = "";
-
- NextB.focus();
-
- parent.window.g_bDoneLoadingIWNavigation = true;
- }
-
- function SetContent(paneNew)
- {
- if(paneNew == null)
- {
- CloseWizard();
- }
- else
- {
- SetHighlight(paneNew);
- window.parent.frames("main",0).navigate(paneNew.m_htm);
- window.parent.frames("contents",0).setNavigationItem(false);
-
- window.parent.g_paneCurrent = paneNew;
-
- SetWizardButtons();
- }
- }
-
-
- function SetWizardButtons()
- {
- var paneCurrent = window.parent.g_paneCurrent;
-
- BackB.style.display = "";
- CloseB.style.display = "";
-
- CloseB.disabled = false;
-
- if(paneCurrent.m_paneNext == null)
- {
- CloseB.disabled = true;
-
- BackB.disabled = false;
-
- NextB.disabled = true;
- NextB.style.display = "none";
- FinishB.disabled = false;
- FinishB.style.display = "";
- }
- else if(paneCurrent.m_panePrevious == null)
- {
- BackB.disabled = true;
-
- NextB.disabled = false;
- NextB.style.display = "";
- FinishB.disabled = true;
- FinishB.style.display = "none";
- }
- else
- {
- BackB.disabled = false;
-
- NextB.disabled = false;
- NextB.style.display = "";
- FinishB.disabled = true;
- FinishB.style.display = "none";
- }
- }
-
- function SetHighlight(pPane)
- {
- // Set all the colors to white
- var Contents = window.parent.frames("contents",0);
-
- Contents.IntroductionRow.bgColor ="transparent";
- Contents.HomeNetworkingRow.bgColor ="transparent";
- Contents.InternetAccessControlRow.bgColor ="transparent";
- Contents.PrivacyControlRow.bgColor ="transparent";
- Contents.PasswordRow.bgColor ="transparent";
- Contents.ParentalControlRow.bgColor ="transparent";
- Contents.FinishRow.bgColor ="transparent";
-
- pPane.m_Row.bgColor ="#cee3ff"; // Set the color
- }
-
- function BackB_OnClick()
- {
- var paneCurrent = window.parent.g_paneCurrent;
-
- if(paneCurrent.m_panePrevious == null)
- {
- return;
- }
-
- var panePrevious = paneCurrent.m_panePrevious;
-
- SetContent(panePrevious);
-
- if (BackB.disabled)
- {
- NextB.focus();
- }
- else
- {
- BackB.focus();
- }
- }
-
- function NextB_OnClick()
- {
- var paneCurrent = window.parent.g_paneCurrent;
- if(paneCurrent.m_sTitle == "Finished")
- {
- return;
- }
- else
- {
- if(paneCurrent.m_paneNext == null)
- {
- return;
- }
- var paneNext = paneCurrent.m_paneNext;
-
- SetContent(paneNext);
-
- if(NextB.disabled)
- {
- FinishB.focus();
- }
- else
- {
- NextB.focus();
- }
- }
- }
-
- function CloseB_OnClick()
- {
- CloseWizard();
- }
-