home *** CD-ROM | disk | FTP | other *** search
/ Mundo do CD-ROM 118 / cdrom118.iso / internet / webaroo / WebarooSetup.exe / Webaroo.msi / _CEEACFD5F7344C66A37D3D523317B3AE < prev    next >
Encoding:
Text File  |  2006-03-26  |  6.3 KB  |  277 lines

  1. function LoadSysReqPage()
  2. {
  3.     MM_preloadImages('/webaroo/e29f1fe6/images/webaroo_search_f2.gif','/webaroo/e29f1fe6/images/webaroo_contents_f2.gif','/webaroo/e29f1fe6/images/webaroo_prefs_f2.gif','/webaroo/e29f1fe6/images/webaroo_help_f2.gif');
  4.     // following lines for rounded corners script
  5.     if(!NiftyCheck())
  6.             return;
  7.     Rounded("div#leftnav","all","#FFAA44","#FFFFFF","smooth");
  8.     Rounded("div#maincontent","all","#FFAA44","#FFFFFF","smooth");
  9. }
  10.  
  11.  
  12. function LoadFaqPage()
  13. {
  14.     MM_preloadImages('/webaroo/e29f1fe6/images/webaroo_search_f2.gif','/webaroo/e29f1fe6/images/webaroo_contents_f2.gif','/webaroo/e29f1fe6/images/webaroo_prefs_f2.gif','/webaroo/e29f1fe6/images/webaroo_help_f2.gif');
  15.     // following lines for rounded corners script
  16.     if(!NiftyCheck())
  17.             return;
  18.     Rounded("div#leftnav","all","#FFAA44","#FFFFFF","smooth");
  19.     Rounded("div#maincontent","all","#FFAA44","#FFFFFF","smooth");
  20.     // initialize the DHTML History framework
  21.     dhtmlHistory.initialize();   
  22.     // add ourselves as a DHTML History listener
  23.     dhtmlHistory.addListener(GetFAQsPage);
  24.     if (dhtmlHistory.isFirstLoad()) 
  25.     {
  26.         var parts = window.location.href.split("=");
  27. //        alert(parts);
  28.         if ( parts.length == 2 )
  29.         {
  30.             ShowWebarooHelp(0, parts[1]);        
  31.         }
  32.         else 
  33.         {
  34.             ShowWebarooHelp(0,1);            
  35.         }
  36.     }
  37. }
  38.  
  39. function GetFAQsPage(newLocation, historyData) 
  40. {
  41. //    alert(newLocation);
  42.     var currentLocation = window.location.href.split("#");
  43.     if (currentLocation[0].indexOf("/help") == -1)
  44.     {
  45.         return;
  46.     }
  47.     document.title = 'Webaroo - Help';
  48.     currentLocation = window.location.href.split("=");
  49.     if(currentLocation.length >1)
  50.     {
  51.         var helpType = (parseInt(currentLocation[1]) != 0) ? currentLocation[1] : 1;
  52.         ShowWebarooHelp(0,helpType);
  53.     }
  54.     else
  55.         ShowWebarooHelp(0,1);
  56. }
  57.  
  58. // I18N issue
  59. function ShowWebarooHelp(addToHistory,helpType)
  60. {
  61.     var title = document.getElementById('subModuleTitle');
  62.     var i;
  63.     var parentid;
  64.     var HelpArray = new Array(1, 101, 102, 2, 3, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 4, 401, 402, 403, 404, 405, 406, 407, 408, 5, 6, 601, 602, 603, 604, 605, 606, 8);
  65.     var NavArray = new Array(1, 2, 3, 301, 302, 303, 4, 401, 402, 403, 5, 6, 8);
  66.     if(addToHistory)
  67.     {
  68.         dhtmlHistory.add("HelpIndex="+ helpType,"");
  69.     }
  70.     for (i=0; i < HelpArray.length ; ++i)
  71.     {
  72.         document.getElementById('Div' + HelpArray[i]).style.display="none";
  73.     }
  74.     for (i=0; i < NavArray.length ; ++i)
  75.     {
  76.         document.getElementById('Cell' + NavArray[i]).className="";
  77.     }
  78.     if (helpType == 1)
  79.     {
  80.         //title.innerHTML = "What is Webaroo?";
  81.         parentid = 1;
  82.     }
  83.     if (helpType == 101)
  84.     {
  85.         //title.innerHTML = "What is Webaroo?";
  86.         parentid = 1;
  87.     }
  88.     if (helpType == 102)
  89.     {
  90.         //title.innerHTML = "What is Webaroo?";
  91.         parentid = 1;
  92.     }
  93.     
  94.     else if (helpType == 2)
  95.     {
  96.     //    title.innerHTML = "Getting Started";
  97.         parentid = 2;
  98.     }
  99.     else if (helpType == 3)
  100.     {
  101.     //    title.innerHTML = "Laptops/Desktops";
  102.         parentid = 3;
  103.     }
  104.     else if (helpType == 301)
  105.     {
  106.     //    title.innerHTML = "Adding a Webpack";
  107.         parentid = 301;
  108.     }
  109.     else if (helpType == 302)
  110.     {
  111.     //    title.innerHTML = "Adding a Website";
  112.         parentid = 302;
  113.     }
  114.     else if (helpType == 303)
  115.     {
  116.     //    title.innerHTML = "Searching and Browsing";
  117.         parentid = 303;
  118.     }
  119.     else if (helpType == 304)
  120.     {
  121.     //    title.innerHTML = "Updating Content";
  122.         parentid = 3;
  123.     }
  124.     else if (helpType == 305)
  125.     {
  126.     //    title.innerHTML = "Removing Content";
  127.         parentid = 3;
  128.     }
  129.     else if (helpType == 306)
  130.     {
  131.     //    title.innerHTML = "Canceling an Update or Download";
  132.         parentid = 3;
  133.     }
  134.     else if (helpType == 307)
  135.     {
  136.     //    title.innerHTML = "Setting Preferences";
  137.         parentid = 3;
  138.     }
  139.     else if (helpType == 308)
  140.     {
  141.     //    title.innerHTML = "Browsing Web Packs";
  142.         parentid = 3;
  143.     }
  144.     else if (helpType == 309)
  145.     {
  146.     //    title.innerHTML = "Accesing Web Sites";
  147.         parentid = 3;
  148.     }
  149.     else if (helpType == 310)
  150.     {
  151.     //    title.innerHTML = "Configuring Proxy Servers";
  152.         parentid = 3;
  153.     }
  154.     else if (helpType == 311)
  155.     {
  156.     //    title.innerHTML = "Setting Webaroo Startup Options";
  157.         parentid = 3;
  158.     }
  159.     else if (helpType == 312)
  160.     {
  161.     //    title.innerHTML = "Setting Content Update Options";
  162.         parentid = 3;
  163.     }
  164.     else if (helpType == 313)
  165.     {
  166.     //    title.innerHTML = "Installing Webaroo";
  167.         parentid = 3;
  168.     }
  169.     else if (helpType == 314)
  170.     {
  171.     //    title.innerHTML = "Uninstalling Webaroo";
  172.         parentid = 3;
  173.     }
  174.     else if (helpType == 4)
  175.     {
  176.     //    title.innerHTML = "Mobile Devices";
  177.         parentid = 4;
  178.     }
  179.     else if (helpType == 401)
  180.     {
  181.     //    title.innerHTML = "Install Webaroo";
  182.         parentid = 401;
  183.     }
  184.     else if (helpType == 402)
  185.     {
  186.     //    title.innerHTML = "Synchronizing Content";
  187.         parentid = 402;
  188.     }
  189.     else if (helpType == 403)
  190.     {
  191.     //    title.innerHTML = "Searching and Browsing on Mobile Device";
  192.         parentid = 403;
  193.     }
  194.     else if (helpType == 404)
  195.     {
  196.     //    title.innerHTML = "Updating Content"; 
  197.         parentid = 4;
  198.     }
  199.     else if (helpType == 405)
  200.     {
  201.     //    title.innerHTML = "Browsing Web Packs";
  202.         parentid = 4;
  203.     }
  204.     else if (helpType == 406)
  205.     {
  206.     //    title.innerHTML = "Accessing Web Sites";
  207.         parentid = 4;
  208.     }
  209.     else if (helpType == 407)
  210.     {
  211.     //    title.innerHTML = "Removing Content from Mobile Device";
  212.         parentid = 4;
  213.     }
  214.     else if (helpType == 408)
  215.     {
  216.     //    title.innerHTML = "Uninstalling Webaroo from Mobile Device";
  217.         parentid = 4;
  218.     }
  219.     else if (helpType == 5)
  220.     {
  221.     //    title.innerHTML = "System Requirements";
  222.         parentid = 5;
  223.     }
  224.     else if (helpType == 6)
  225.     {
  226.     //    title.innerHTML = "Support/FAQs";
  227.         parentid = 6;
  228.     }
  229.     else if (helpType == 601)
  230.     {
  231.     //    title.innerHTML = "General";
  232.         parentid = 6;
  233.     }
  234.     else if (helpType == 602)
  235.     {
  236.     //    title.innerHTML = "Web Packs";
  237.         parentid = 6;
  238.     }
  239.     else if (helpType == 603)
  240.     {
  241.     //    title.innerHTML = "Web Sites";
  242.         parentid = 6;
  243.     }
  244.     else if (helpType == 604)
  245.     {
  246.     //    title.innerHTML = "Webaroo on Laptops/Desktops";
  247.         parentid = 6;
  248.     }
  249.     else if (helpType == 605)
  250.     {
  251.     //    title.innerHTML = "Webaroo on Mobile Devices";
  252.         parentid = 6;
  253.     }
  254.     else if (helpType == 606)
  255.     {
  256.     //    title.innerHTML = "Technical Troubleshooting.";
  257.         parentid = 6;
  258.     }    
  259.     else if (helpType == 7)
  260.     {
  261.     //    title.innerHTML = "Known Issues";
  262.         parentid = 7;
  263.     }
  264.     else if (helpType == 8)
  265.     {
  266.     //    title.innerHTML = "Known Issues";
  267.         parentid = 8;
  268.     }        
  269.             window.scroll(0,0);
  270.     document.getElementById('Cell' + parentid).className = "selected";
  271.     document.getElementById('Div' + helpType).style.display="block";
  272. }
  273.  
  274.  
  275.  
  276.  
  277.