home *** CD-ROM | disk | FTP | other *** search
- ///////////////////////////////////////////////////////////////////////////////////////////
- //
- // PRODUCT: Norton Internet Security/Symantec Desktop Firewall
- //
- // NAME: navigation_pane.js (Javascript file for navigation_pane.HTM)
- //
- // Copyright (c) 2002 by Symantec Corporation. All rights reserved.
- //
- ////////////////////////////////////////////////////////////////////////////////////////////
-
- var NISFE = 1;
- var NISNOAD = 2
- var NIS = 3;
- var NPF = 4;
- var NISPRO = 5;
- var SDF = 6;
-
-
- var NOT_PRESENT =0;
- var PRESENT = 1;
- var PRESENT_FAKE=2;
-
- var g_IntroductionPane;
- var g_HomeNetworkingPane;
- var g_InternetAccessControlPane;
- var g_PrivacyControlPane;
- var g_PasswordPane;
- var g_ParentalControlPane;
- var g_FinishPane;
-
-
-
- // ******************************************************************************************************** //
- function JumpToHere(sPaneName)
- {
- // Set all the row backgrounds to transparent
- IntroductionRow.bgColor ="transparent";
- HomeNetworkingRow.bgColor ="transparent";
- InternetAccessControlRow.bgColor ="transparent";
- PrivacyControlRow.bgColor ="transparent";
- PasswordRow.bgColor ="transparent";
- ParentalControlRow.bgColor ="transparent";
- FinishRow.bgColor ="transparent";
-
- switch(sPaneName)
- {
- case "Introduction":
- window.parent.g_paneCurrent = g_IntroductionPane;
- break;
- case "HomeNetworking":
- window.parent.g_paneCurrent = g_HomeNetworkingPane;
- break;
- case "InternetAccessControl":
- window.parent.g_paneCurrent = g_InternetAccessControlPane;
- break;
- case "PrivacyControl":
- window.parent.g_paneCurrent = g_PrivacyControlPane;
- break;
- case "Password":
- window.parent.g_paneCurrent = g_PasswordPane;
- break;
- case "ParentalControl":
- window.parent.g_paneCurrent = g_ParentalControlPane;
- break;
- case "Finish":
- window.parent.g_paneCurrent = g_FinishPane;
- break;
- }
-
- parent.window.frames("main",0).navigate(window.parent.g_paneCurrent.m_htm);
- window.parent.g_paneCurrent.m_Row.bgColor = "#cee3ff";
-
- CallSetWizardButtons();
- }
-
- // Pane Object
- function WizardPane(sID, sRow, shID, sHeading, sHLHeading, sTitle, sHTM, panePrevious, paneNext, Span)
- {
- this.m_ID = sID; // ID for non-HighLighted Pane
- this.m_Row = sRow; // ID for Highlighted
- this.m_hID = shID; // ID for Highlighted
- this.m_Heading = sHeading; // Heading for this Pane
- this.m_HLHeading = sHLHeading; // Highlighed Heading for this Pane
- this.m_sTitle = sTitle; // Title of the (Pane) Web Page
- this.m_htm = sHTM; // WebPage Link
- this.m_bPageOn = true; // bool switch to determine if Page exist
- this.m_panePrevious = panePrevious; // Previous Pane
- this.m_paneNext = paneNext; // Next Pane
- this.m_Span = Span;
-
- }
-
- // Return a pointer to the current Pane
- function FindPane(sPaneID)
- {
- switch(sPaneID)
- {
- case "Introduction":
- return g_IntroductionPane;
- break;
- case "Home Networking":
- return g_HomeNetworkingPane;
- break;
- case "Program Scan":
- return g_InternetAccessControlPane;
- break;
- case "Privacy Control":
- return g_PrivacyControlPane;
- break;
- case "Password":
- return g_PasswordPane;
- break;
- case "Parental Control":
- return g_ParentalControlPane;
- break;
- case "Productivity Control":
- return g_ParentalControlPane;
- break;
- case "Finished":
- return g_FinishPane;
- break;
- }
- }
-
- function SetProductType()
- {
- var iProudctType = NISFE;
- var sProductType = WrapNisum.ProductType;
- switch (sProductType)
- {
- case "PT_SDF":
- iProductType = SDF;
- break
-
- case "PT_NPF":
- iProductType = NPF
- break
-
- case "PT_NOAD":
- iProductType = NISNOAD
- break
-
- case "PT_FE":
- iProductType = NISFE
- break
-
- case "PT_PE":
- iProductType = NIS
- break;
-
- case "PT_PRO":
- iProductType = NISPRO
- break;
-
- }
-
- switch (iProductType)
- {
- case NISPRO:
- case NISNOAD: // No Ad Blocking is now the same in Security Assistant since we took out the page
- case NISFE: // NIS with Parental Control Enabled
-
- // Next Link
- g_IntroductionPane.m_paneNext = g_HomeNetworkingPane;
- g_HomeNetworkingPane.m_paneNext = g_InternetAccessControlPane;
- g_InternetAccessControlPane.m_paneNext = g_PrivacyControlPane;
- g_PrivacyControlPane.m_paneNext = g_PasswordPane;
- g_PasswordPane.m_paneNext = g_ParentalControlPane;
- g_ParentalControlPane.m_paneNext = g_FinishPane;
- g_FinishPane.m_paneNext = null;
-
- // Back Link
- g_IntroductionPane.m_panePrevious = null;
- g_HomeNetworkingPane.m_panePrevious = g_IntroductionPane;
- g_InternetAccessControlPane.m_panePrevious = g_HomeNetworkingPane;
- g_PrivacyControlPane.m_panePrevious = g_InternetAccessControlPane;
- g_PasswordPane.m_panePrevious = g_PrivacyControlPane;
- g_ParentalControlPane.m_panePrevious = g_PasswordPane;
- g_FinishPane.m_panePrevious = g_ParentalControlPane;
-
- break;
-
- case NIS: // NPF Security Assistant should look the same as NIS
- case NPF:
- case SDF:
- // Remove Privacy Control, Norton AntiVirus, AdBlocking, Parental Control,
- // SDF will have to decide what pages they wanna keep cuz I sure don't know
- // Right now just make it look like NIS
-
- // Next Link
- g_IntroductionPane.m_paneNext = g_HomeNetworkingPane;
- g_HomeNetworkingPane.m_paneNext = g_InternetAccessControlPane;
- g_InternetAccessControlPane.m_paneNext = g_PrivacyControlPane;
- g_PrivacyControlPane.m_paneNext = g_PasswordPane;
- g_PasswordPane.m_paneNext = g_FinishPane;
- g_FinishPane.m_paneNext = null;
- // Parental Control Page goes away
-
- // Back Link
- g_IntroductionPane.m_panePrevious = null;
- g_HomeNetworkingPane.m_panePrevious = g_IntroductionPane;
- g_InternetAccessControlPane.m_panePrevious = g_HomeNetworkingPane;
- g_PrivacyControlPane.m_panePrevious = g_InternetAccessControlPane;
- g_PasswordPane.m_panePrevious = g_PrivacyControlPane;
- g_FinishPane.m_panePrevious = g_PasswordPane;
-
- // Parental Control Page goes away
- g_ParentalControlPane.m_bPageOn = false;
- g_ParentalControlPane.m_Row.style.display = "none";
-
- break;
- }
-
- }
-
- function OnLoad()
- {
- g_IntroductionPane = new WizardPane(window.Introduction, window.IntroductionRow, window.IntroductionH, window.configHeading, window.configHeadingH,
- "Introduction", "iw-Intro.htm", null, null, window.IntroductionSpan);
-
- g_HomeNetworkingPane = new WizardPane(window.HomeNetworking, window.HomeNetworkingRow, window.HomeNetworkingH, window.configHeading, window.configHeadingH,
- "HomeNetworking", "iw-AboutHomeNet.htm", null, null, window.HomeNetworkingSpan);
-
- g_InternetAccessControlPane = new WizardPane(window.InternetAccessControl, window.InternetAccessControlRow, window.InternetAccessControlH, window.configHeading, window.configHeadingH,
- "ProgramControl", "iw-AboutIAC.htm", null, null, window.InternetAccessControlSpan);
-
- g_PrivacyControlPane = new WizardPane(window.PrivacyControl, window.PrivacyControlRow, window.PrivacyControlH, window.configHeading, window.configHeadingH,
- "PrivacyControl", "iw-AboutPrivacyControl.htm", null, null, window.PrivacyControlSpan);
-
- g_PasswordPane = new WizardPane(window.Password, window.PasswordRow, window.PasswordH, window.configHeading, window.configHeadingH,
- "Password", "iw-AboutPassword.htm", null, null, window.PasswordSpan);
-
- g_ParentalControlPane = new WizardPane(window.ParentalControl, window.ParentalControlRow, window.ParentalControlH, window.configHeading, window.configHeadingH,
- "ParentalControl", "iw-AboutParentalControl.htm", null, null, window.ParentalControlSpan);
-
- g_FinishPane = new WizardPane(window.finishedHeading, window.FinishRow, window.finishedHeadingH, window.finishedHeading, window.finishedHeadingH,
- "Finished", "iw-Summary.htm", null, null, window.FinishSpan);
-
- SetProductType();
-
- JumpToHere('Introduction');
- setNavigationItem(false);
- }
-
- function Table_OnKeyDown()
- {
- // Last Control Tab over to the <back, next, close> button.
- var VK_UP = 38;
- var VK_DOWN = 40;
-
- if(VK_UP == event.keyCode)
- {
- if(window.parent.g_paneCurrent.m_panePrevious != null)
- {
- parent.window.frames("main",0).navigate(window.parent.g_paneCurrent.m_panePrevious.m_htm);
- parent.window.m_paneCurrent = window.parent.g_paneCurrent.m_panePrevious;
- setNavigationItem(true);
- }
- }
-
- if(VK_DOWN == event.keyCode)
- {
- if(window.parent.g_paneCurrent.m_paneNext != null)
- {
- parent.window.frames("main",0).navigate(window.parent.g_paneCurrent.m_paneNext.m_htm);
- parent.window.m_paneCurrent = window.parent.g_paneCurrent.m_paneNext;
- setNavigationItem(true);
- }
- }
- }
-
-
- function setNavigationItem(bSetFocus)
- {
- IntroductionSpan.tabIndex = "-1";
- HomeNetworkingSpan.tabIndex = "-1";
- InternetAccessControlSpan.tabIndex = "-1";
- PrivacyControlSpan.tabIndex = "-1";
- PasswordSpan.tabIndex = "-1";
- ParentalControlSpan.tabIndex = "-1";
- FinishSpan.tabIndex = "-1";
-
- window.parent.g_paneCurrent.m_Span.tabIndex = 1;
-
- if(bSetFocus)
- {
- window.parent.g_paneCurrent.m_Span.focus();
- }
-
- }
-