home *** CD-ROM | disk | FTP | other *** search
/ Mundo do CD-ROM 118 / cdrom118.iso / internet / webaroo / WebarooSetup.exe / Webaroo.msi / _300AA9F541354DEB9A0A3D979FC7971A < prev    next >
Encoding:
Text File  |  2006-03-07  |  2.6 KB  |  97 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 LoadAboutPage()
  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(GetAboutPage);
  24.     if (dhtmlHistory.isFirstLoad()) 
  25.     {
  26.         ShowWebarooAbout(0,1);
  27.     }
  28. }
  29.  
  30. function GetAboutPage(newLocation, historyData) 
  31. {
  32.     var currentLocation = window.location.href.split("#");
  33.     if (currentLocation[0].indexOf("/webaroo/e29f1fe6/about") == -1)
  34.     {
  35.         return;
  36.     }
  37.     document.title = 'Webaroo - About The Company';
  38.     currentLocation = window.location.href.split("=");
  39.     if(currentLocation.length >1)
  40.     {
  41.         var helpType = (parseInt(currentLocation[1]) != 0) ? currentLocation[1] : 1;
  42.         ShowWebarooHelp(0,helpType);
  43.     }
  44.     else
  45.         ShowWebarooAbout(0,1);
  46. }
  47.  
  48. // I18N issue
  49. function ShowWebarooAbout(addToHistory,helpType)
  50. {
  51. //    var title = document.getElementById('subModuleTitle');
  52.     var i;
  53.     var parentid;
  54.     var HelpArray = new Array(1, 2, 3, 4, 5);
  55.     var NavArray = new Array(1, 2, 3, 4, 5);
  56.     if(addToHistory)
  57.     {
  58.         dhtmlHistory.add("HelpIndex="+ helpType,"");
  59.     }
  60.     for (i=0; i < HelpArray.length ; ++i)
  61.     {
  62.         document.getElementById('Div' + HelpArray[i]).style.display="none";
  63.     }
  64.     for (i=0; i < NavArray.length ; ++i)
  65.     {
  66.         document.getElementById('Cell' + NavArray[i]).className="";
  67.     }
  68.     if (helpType == 1)
  69.     {
  70.     //    title.innerHTML = "";
  71.         parentid = 1;
  72.     }
  73.     else if (helpType == 2)
  74.     {
  75.         //title.innerHTML = "";
  76.         parentid = 2;
  77.     }
  78.     else if (helpType == 3)
  79.     {
  80.         //title.innerHTML = "";
  81.         parentid = 3;
  82.     }
  83.     else if (helpType == 4)
  84.     {
  85.     //    title.innerHTML = "Credits";
  86.         parentid = 4;
  87.     }
  88.     else if (helpType == 5)
  89.     {
  90.         //title.innerHTML = "Copyright Information";
  91.         parentid = 5;
  92.     }
  93.     document.getElementById('Cell' + parentid).className = "selected";
  94.     document.getElementById('Div' + helpType).style.display="block";
  95. }
  96.  
  97.