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

  1. function LoadAboutPage()
  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.     // initialize the DHTML History framework
  10.     dhtmlHistory.initialize();   
  11.     // add ourselves as a DHTML History listener
  12.     dhtmlHistory.addListener(GetAboutPage);
  13.     if (dhtmlHistory.isFirstLoad()) 
  14.     {
  15.         var parts = window.location.href.split("=");
  16.         if ( parts.length == 2 )
  17.         {
  18.             ShowWebarooAbout(0, parts[1]);        
  19.         }
  20.         else 
  21.         {
  22.             ShowWebarooAbout(0,1);            
  23.         }
  24.     }
  25. }
  26.  
  27. function GetAboutPage(newLocation, historyData) 
  28. {
  29.     var currentLocation = window.location.href.split("#");
  30.     if (currentLocation[0].indexOf("/siteowners") == -1)
  31.     {
  32.         return;
  33.     }
  34.     document.title = 'Webaroo - Copyright Information';
  35.     currentLocation = window.location.href.split("=");
  36.     if(currentLocation.length >1)
  37.     {
  38.         var helpType = (parseInt(currentLocation[1]) != 0) ? currentLocation[1] : 1;
  39.         ShowWebarooAbout(0,helpType);
  40.     }
  41.     else
  42.         ShowWebarooAbout(0,1);
  43. }
  44.  
  45. // I18N issue
  46. function ShowWebarooAbout(addToHistory,helpType)
  47. {
  48. //    var title = document.getElementById('subModuleTitle');
  49.     var i;
  50.     var HelpArray = new Array(1, 2, 3, 4);
  51.     var NavArray = new Array(1, 2, 3, 4);
  52.     if(addToHistory)
  53.     {
  54.         dhtmlHistory.add("HelpIndex="+ helpType,"");
  55.     }
  56.     for (i=0; i < HelpArray.length ; ++i)
  57.     {
  58.         document.getElementById('Div' + HelpArray[i]).style.display="none";
  59.     }
  60.     for (i=0; i < NavArray.length ; ++i)
  61.     {
  62.         document.getElementById('Cell' + NavArray[i]).className="";
  63.     }
  64.     document.getElementById('Cell' + helpType).className = "selected";
  65.     document.getElementById('Div' + helpType).style.display="block";
  66. }
  67.  
  68.  
  69.