home *** CD-ROM | disk | FTP | other *** search
Wrap
//////////////////////////////////////////////////////////////////////////////////////////// // // PRODUCT: Norton Internet Security/Symantec Desktop Firewall // // NAME: navigation_pane.js (Javascript file for navigation_pane.HTM) // // Copyright (c) 2001 by Symantec Corporation. All rights reserved. // //////////////////////////////////////////////////////////////////////////////////////////// var NISFE = 1; var NISNOAD = 2 var NIS = 3; var NPF = 4; var SDF = 5; var startHeadingPane = new WizardPane(window.startHeading, window.startHeadingH, window.startHeading, window.startHeadingH, "Welcome", "iw-Intro.htm", null, null); var configHeadingPane = new WizardPane(window.configHeading, window.configHeadingH, window.configHeading, window.configHeadingH, "Personal Firewall", "iw-AboutSecurity.htm", null, null); var PersonalFirewallPane = new WizardPane(window.PersonalFirewall, window.PersonalFirewallH, window.configHeading, window.configHeadingH, "Personal Firewall", "iw-AboutSecurity.htm", null, null); var PrivacyControlPane = new WizardPane(window.PrivacyControl, window.PrivacyControlH, window.configHeading, window.configHeadingH, "Privacy Control", "iw-AboutPrivacyControl.htm", null, null); var ParentalControlPane = new WizardPane(window.ParentalControl, window.ParentalControlH, window.configHeading, window.configHeadingH, "Parental Control", "iw-AboutParentalControl.htm", null, null); var InternetAccessControlPane = new WizardPane(window.InternetAccessControl, window.InternetAccessControlH, window.configHeading, window.configHeadingH, "Application Control", "iw-AboutIAC.htm", null, null); var HomeNetworkingPane = new WizardPane(window.HomeNetworking, window.HomeNetworkingH, window.configHeading, window.configHeadingH, "Internet Zone Control", "iw-AboutHomeNet.htm", null, null); var NortonAntiVirusPane = new WizardPane(window.NortonAntiVirus, window.NortonAntiVirusH, window.configHeading, window.configHeadingH, "Norton AntiVirus", "iw-AboutNAV.htm", null, null); var InNortonAntiVirusPane = new WizardPane(window.NortonAntiVirus, window.NortonAntiVirusH, window.configHeading, window.configHeadingH, "In Norton AntiVirus", "iw-NAV.htm", null, null); var AdBlockingPane = new WizardPane(window.AdBlocking, window.AdBlockingH, window.configHeading, window.configHeadingH, "Ad Blocking", "iw-AboutAdBlocking.htm", null, null); var InAdBlockingPane = new WizardPane(window.AdBlocking, window.AdBlockingH, window.configHeading, window.configHeadingH, "Ad Blocking", "iw-AdBlocking.htm", null, null); var learnHeadingPane = new WizardPane(window.learnHeading, window.learnHeadingH, window.learnHeading, window.learnHeadingH, "Internet Status", "iw-AboutStatus.htm", null, null); var InternetStatusPane = new WizardPane(window.InternetStatus, window.InternetStatusH, window.learnHeading, window.learnHeadingH, "Internet Status", "iw-AboutStatus.htm", null, null); var AlertTrackerPane = new WizardPane(window.AlertTracker, window.AlertTrackerH, window.learnHeading, window.learnHeadingH, "Alert Tracker", "iw-AboutAlertTracker.htm", null, null); var LiveUpdatePane = new WizardPane(window.LiveUpdate, window.LiveUpdateH, window.learnHeading, window.learnHeadingH, "Live Update", "iw-AboutLiveUpdate.htm", null, null); var finishedHeadingPane = new WizardPane(window.finishedHeading, window.finishedHeadingH, window.finishedHeading, window.finishedHeadingH, "Finished", "iw-Summary.htm", null, null); function JumpToStart() { event.cancelBubble = true; event.returnValue = false; window.parent.frames("bottom",0).SetContent(startHeadingPane) } function JumpToPF() { event.cancelBubble = true; event.returnValue = false; window.parent.frames("bottom",0).SetContent(PersonalFirewallPane) } function JumpToIS() { event.cancelBubble = true; event.returnValue = false; window.parent.frames("bottom",0).SetContent(InternetStatusPane) } function JumpToHere(invoker) { event.cancelBubble = true; event.returnValue = false; var pCurrentPane = FindPane(invoker.outerText); window.parent.frames("bottom",0).SetContent(pCurrentPane); } // Pane Object function WizardPane(sID, shID, sHeading, sHLHeading, sTitle, shtm, pPreviousLink, pNextLink) { this.m_ID = sID; // ID for non-HighLighted Pane 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_pPreviousLink = pPreviousLink; // Pointer to Previous Pane this.m_pNextLink = pNextLink; // Pointer to Next Pane } // Return a pointer to the current Pane function FindPane(sPaneID) { switch(sPaneID) { case "Start Here": return window.startHeadingPane; break; case "Personal Firewall": return window.PersonalFirewallPane; break; case "Privacy Control": return window.PrivacyControlPane; break; case "Parental Control": return window.ParentalControlPane; break; case "Application Control": return window.InternetAccessControlPane; break; case "Internet Zone Control": return window.HomeNetworkingPane; break; case "Norton AntiVirus": return window.NortonAntiVirusPane; break; case "In Norton AntiVirus": return window.InNortonAntiVirusPane; case "Ad Blocking": return window.AdBlockingPane; break; case "In Ad Blocking": return window.InAdBlockingPane; break; case "Internet Status": return window.InternetStatusPane; break; case "Alert Tracker": return window.AlertTrackerPane; break; case "LiveUpdate": return window.LiveUpdatePane; break; case "Finished": return window.finishedHeadingPane; break; } } function SetProductType(iProductType) { var bNAVInstalled = IntroHelper.NAV_bPresent; switch (iProductType) { case NISFE: // Next Link startHeadingPane.m_pNextLink = PersonalFirewallPane; PersonalFirewallPane.m_pNextLink = PrivacyControlPane; PrivacyControlPane.m_pNextLink = ParentalControlPane; ParentalControlPane.m_pNextLink = InternetAccessControlPane; InternetAccessControlPane.m_pNextLink = HomeNetworkingPane; if (bNAVInstalled == true) { HomeNetworkingPane.m_pNextLink = NortonAntiVirusPane; NortonAntiVirusPane.m_pNextLink = AdBlockingPane; InNortonAntiVirusPane.m_pNextLink = AdBlockingPane; } else { HomeNetworkingPane.m_pNextLink = AdBlockingPane; NortonAntiVirusPane.m_bPageOn = false; NortonAntiVirusPane.m_ID.style.display="none"; NortonAntiVirusBR.style.display="none"; NortonAntiVirusTab.style.display="none"; } AdBlockingPane.m_pNextLink = InternetStatusPane; InAdBlockingPane.m_pNextLink = InternetStatusPane; InternetStatusPane.m_pNextLink = AlertTrackerPane; AlertTrackerPane.m_pNextLink = LiveUpdatePane; LiveUpdatePane.m_pNextLink = finishedHeadingPane; finishedHeadingPane.m_pNextLink = null; // Back Link startHeadingPane.m_pPreviousLink = null; PersonalFirewallPane.m_pPreviousLink = startHeadingPane PrivacyControlPane.m_pPreviousLink = PersonalFirewallPane; ParentalControlPane.m_pPreviousLink = PrivacyControlPane; InternetAccessControlPane.m_pPreviousLink = ParentalControlPane; HomeNetworkingPane.m_pPreviousLink = InternetAccessControlPane; if (bNAVInstalled == true) { NortonAntiVirusPane.m_pPreviousLink = HomeNetworkingPane; InNortonAntiVirusPane.m_pPreviousLink = NortonAntiVirusPane; AdBlockingPane.m_pPreviousLink = NortonAntiVirusPane; } else { AdBlockingPane.m_pPreviousLink = HomeNetworkingPane; NortonAntiVirusPane.m_bPageOn = false; NortonAntiVirusPane.m_ID.style.display="none"; NortonAntiVirusBR.style.display="none"; NortonAntiVirusTab.style.display="none"; } InAdBlockingPane.m_pPreviousLink = AdBlockingPane; InternetStatusPane.m_pPreviousLink = AdBlockingPane; AlertTrackerPane.m_pPreviousLink = InternetStatusPane; LiveUpdatePane.m_pPreviousLink = AlertTrackerPane; finishedHeadingPane.m_pPreviousLink = LiveUpdatePane; break; case NISNOAD: // Remove AdBlocking AdBlockingPane.m_bPageOn = false; AdBlockingPane.m_ID.style.display = "none"; AdBlockingBR.style.display="none"; AdBlockingTab.style.display="none"; // Next Link startHeadingPane.m_pNextLink = PersonalFirewallPane; PersonalFirewallPane.m_pNextLink = PrivacyControlPane; PrivacyControlPane.m_pNextLink = ParentalControlPane; ParentalControlPane.m_pNextLink = InternetAccessControlPane; InternetAccessControlPane.m_pNextLink = HomeNetworkingPane; if (bNAVInstalled == true) { HomeNetworkingPane.m_pNextLink = NortonAntiVirusPane; NortonAntiVirusPane.m_pNextLink = InternetStatusPane; InNortonAntiVirusPane.m_pNextLink = InternetStatusPane; } else { HomeNetworkingPane.m_pNextLink = InternetStatusPane; NortonAntiVirusPane.m_bPageOn = false; NortonAntiVirusPane.m_ID.style.display="none"; NortonAntiVirusBR.style.display="none"; NortonAntiVirusTab.style.display="none"; } InternetStatusPane.m_pNextLink = AlertTrackerPane; AlertTrackerPane.m_pNextLink = LiveUpdatePane; LiveUpdatePane.m_pNextLink = finishedHeadingPane; finishedHeadingPane.m_pNextLink = null; // Back Link startHeadingPane.m_pPreviousLink = null; PersonalFirewallPane.m_pPreviousLink = startHeadingPane PrivacyControlPane.m_pPreviousLink = PersonalFirewallPane; ParentalControlPane.m_pPreviousLink = PrivacyControlPane; InternetAccessControlPane.m_pPreviousLink = ParentalControlPane; InternetAccessControlPane.m_pPreviousLink = PrivacyControlPane; HomeNetworkingPane.m_pPreviousLink = InternetAccessControlPane; if (bNAVInstalled == true) { NortonAntiVirusPane.m_pPreviousLink = HomeNetworkingPane; InNortonAntiVirusPane.m_pPreviousLink = NortonAntiVirusPane; InternetStatusPane.m_pPreviousLink = NortonAntiVirusPane; } else { InternetStatusPane.m_pPreviousLink = HomeNetworkingPane; NortonAntiVirusPane.m_bPageOn = false; NortonAntiVirusPane.m_ID.style.display="none"; NortonAntiVirusBR.style.display="none"; NortonAntiVirusTab.style.display="none"; } AlertTrackerPane.m_pPreviousLink = InternetStatusPane; LiveUpdatePane.m_pPreviousLink = AlertTrackerPane; finishedHeadingPane.m_pPreviousLink = LiveUpdatePane; break; case NIS: // Remove Parental Control ParentalControlPane.m_bPageOn = false; ParentalControlPane.m_ID.style.display="none"; ParentalControlBR.style.display="none"; ParentalControlTab.style.display="none"; // Next Link startHeadingPane.m_pNextLink = PersonalFirewallPane; PersonalFirewallPane.m_pNextLink = PrivacyControlPane; PrivacyControlPane.m_pNextLink = InternetAccessControlPane; InternetAccessControlPane.m_pNextLink = HomeNetworkingPane; if (bNAVInstalled == true) { HomeNetworkingPane.m_pNextLink = NortonAntiVirusPane; NortonAntiVirusPane.m_pNextLink = AdBlockingPane; InNortonAntiVirusPane.m_pNextLink = AdBlockingPane; } else { HomeNetworkingPane.m_pNextLink = AdBlockingPane; NortonAntiVirusPane.m_bPageOn = false; NortonAntiVirusPane.m_ID.style.display="none"; NortonAntiVirusBR.style.display="none"; NortonAntiVirusTab.style.display="none"; } AdBlockingPane.m_pNextLink = InternetStatusPane; InAdBlockingPane.m_pNextLink = AdBlockingPane; InternetStatusPane.m_pNextLink = AlertTrackerPane; AlertTrackerPane.m_pNextLink = LiveUpdatePane; LiveUpdatePane.m_pNextLink = finishedHeadingPane; finishedHeadingPane.m_pNextLink = null; // Back Link startHeadingPane.m_pPreviousLink = null; PersonalFirewallPane.m_pPreviousLink = startHeadingPane PrivacyControlPane.m_pPreviousLink = PersonalFirewallPane; InternetAccessControlPane.m_pPreviousLink = PrivacyControlPane; HomeNetworkingPane.m_pPreviousLink = InternetAccessControlPane; if (bNAVInstalled == true) { NortonAntiVirusPane.m_pPreviousLink = HomeNetworkingPane; InNortonAntiVirusPane.m_pPreviousLink = NortonAntiVirusPane; AdBlockingPane.m_pPreviousLink = NortonAntiVirusPane; } else { AdBlockingPane.m_pPreviousLink = HomeNetworkingPane; NortonAntiVirusPane.m_bPageOn = false; NortonAntiVirusPane.m_ID.style.display="none"; NortonAntiVirusBR.style.display="none"; NortonAntiVirusTab.style.display="none"; } InAdBlockingPane.m_pPreviousLink = AdBlockingPane; InternetStatusPane.m_pPreviousLink = AdBlockingPane; AlertTrackerPane.m_pPreviousLink = InternetStatusPane; LiveUpdatePane.m_pPreviousLink = AlertTrackerPane; finishedHeadingPane.m_pPreviousLink = LiveUpdatePane; break; case NPF: // Remove Privacy Control, Norton AntiVirus, AdBlocking, Parental Control, NortonAntiVirusPane.m_bPageOn = false; AdBlockingPane.m_bPageOn = false; ParentalControlPane.m_bPageOn = false; NortonAntiVirusPane.m_ID.style.display="none"; NortonAntiVirusBR.style.display="none"; NortonAntiVirusTab.style.display="none"; AdBlockingPane.m_ID.style.display="none"; AdBlockingBR.style.display="none"; AdBlockingTab.style.display="none"; ParentalControlPane.m_ID.style.display="none"; ParentalControlBR.style.display="none"; ParentalControlTab.style.display="none"; // Next Link startHeadingPane.m_pNextLink = PersonalFirewallPane; PersonalFirewallPane.m_pNextLink = PrivacyControlPane; PrivacyControlPane.m_pNextLink = InternetAccessControlPane; InternetAccessControlPane.m_pNextLink = HomeNetworkingPane; HomeNetworkingPane.m_pNextLink = InternetStatusPane; InternetStatusPane.m_pNextLink = AlertTrackerPane; AlertTrackerPane.m_pNextLink = LiveUpdatePane; LiveUpdatePane.m_pNextLink = finishedHeadingPane; finishedHeadingPane.m_pNextLink = null; // Back Link startHeadingPane.m_pPreviousLink = null; PersonalFirewallPane.m_pPreviousLink = startHeadingPane PrivacyControlPane.m_pPreviousLink = PersonalFirewallPane; InternetAccessControlPane.m_pPreviousLink = PrivacyControlPane; HomeNetworkingPane.m_pPreviousLink = InternetAccessControlPane; InternetStatusPane.m_pPreviousLink = HomeNetworkingPane; AlertTrackerPane.m_pPreviousLink = InternetStatusPane; LiveUpdatePane.m_pPreviousLink = AlertTrackerPane; finishedHeadingPane.m_pPreviousLink = LiveUpdatePane; break; case SDF: // Remove Privacy Control, Norton AntiVirus, AdBlocking, Parental Control, NortonAntiVirusPane.m_bPageOn = false; AdBlockingPane.m_bPageOn = false; ParentalControlPane.m_bPageOn = false; NortonAntiVirusPane.m_ID.style.display="none"; NortonAntiVirusBR.style.display="none"; NortonAntiVirusTab.style.display="none"; AdBlockingPane.m_ID.style.display="none"; AdBlockingBR.style.display="none"; AdBlockingTab.style.display="none"; ParentalControlPane.m_ID.style.display="none"; ParentalControlBR.style.display="none"; ParentalControlTab.style.display="none"; // Next Link startHeadingPane.m_pNextLink = PersonalFirewallPane; PersonalFirewallPane.m_pNextLink = PrivacyControlPane; PrivacyControlPane.m_pNextLink = InternetAccessControlPane; InternetAccessControlPane.m_pNextLink = HomeNetworkingPane; HomeNetworkingPane.m_pNextLink = InternetStatusPane; InternetStatusPane.m_pNextLink = AlertTrackerPane; AlertTrackerPane.m_pNextLink = LiveUpdatePane; LiveUpdatePane.m_pNextLink = finishedHeadingPane; finishedHeadingPane.m_pNextLink = null; // Back Link startHeadingPane.m_pPreviousLink = null; PersonalFirewallPane.m_pPreviousLink = startHeadingPane PrivacyControlPane.m_pPreviousLink = PersonalFirewallPane; InternetAccessControlPane.m_pPreviousLink = PrivacyControlPane; HomeNetworkingPane.m_pPreviousLink = InternetAccessControlPane; InternetStatusPane.m_pPreviousLink = HomeNetworkingPane; AlertTrackerPane.m_pPreviousLink = InternetStatusPane; LiveUpdatePane.m_pPreviousLink = AlertTrackerPane; finishedHeadingPane.m_pPreviousLink = LiveUpdatePane; break; } } function OnLoad() { 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; } SetProductType(iProductType); } function OnFocus() { if(startHeadingH.style.display == "") startHeadingH.focus(); else startHeading.focus(); } function OnKeyPressHandler() { // Last Control Tab over to the <back, next, close> button. var VK_ESCAPE = 27; if (window.event.keyCode == VK_ESCAPE) { // Escape key.. We want to exit out of the wizard.. parent.window.navigate("res://closeme.xyz"); } } function OnTabOver() { // Last Control Tab over to the <back, next, close> button. var VK_TAB = 9; // For Reverse Tab we want to tab back to previous pane if (window.event.keyCode == VK_TAB && (window.event.shiftKey)) { // Go To Conent Page window.parent.frames("bottom",0).focus(); return; } }