

  /////////////////////////////////////////////////////////

  ///                                                   ///

  ///      Copyright (c) 2003 - Bulgaria, Varna         ///

  ///      ABA Ltd                             ///

  ///      http://aba.bg/                           ///

  ///                                                   ///

  /////////////////////////////////////////////////////////

   

  // Hides email-addresses from the robots.

  // Variables "string" and "alt_text" are not required.



   function bot_save_string(domain1, name1, string) {

      displayed1=(typeof(string)=="undefined") ? name1+"@"+domain1 : string

      document.write('<a' + ' st' + 'yle="co' + 'lor:' + '#FFFFFF' + '" h' + 'ref=' + '"mai' + 'lto:' + name1 + '@' + domain1 + '">' + displayed1 + '<' + '/a>' + "\n");

   }
   

   function bot_save_string2(domain1, name1, string) {

      displayed1=(typeof(string)=="undefined") ? name1+"@"+domain1 : string

      document.write('<a' + ' h' + 'ref=' + '"mai' + 'lto:' + name1 + '@' + domain1 + '">' + displayed1 + '</' + 'a>' + "\n");

   }
   

   function bot_save_map_area(domain2, name2, alt_text, coordinates) {

      displayed2=(typeof(alt_text)=="undefined") ? name2+"@"+domain2 : alt_text

      document.write('<ar' + 'ea sh' + 'ape="po' + 'ly" alt=' + '" ' + displayed2 + ' " coords="' + coordinates + '" h' + 're' + 'f="mai' + 'lt' + 'o:' + name2 + '@' + domain2 + '" />' + "\n");

   }

function addFavorite (ttt, uuu) {
      // If the browser is Internet Explorer
      if (document.all)
      {
              // Add to Favorites (Internet Explorer)
              window.external.AddFavorite(uuu,ttt)
      }
      else
      {
              // Add to Bookmarks (Mozilla Firefox)
              window.sidebar.addPanel(ttt, uuu, '');
      }
}

function setHomepage(uuu)
{
 if (document.all)
    {
        document.body.style.behavior='url(#default#homepage)';
  		document.body.setHomePage(uuu);
 
    }
    else if (window.sidebar)
    {
    if(window.netscape)
    {
         try
   {  
            netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");  
         }  
         catch(e)  
         {  
    alert("This action was aviod by your browser，if you want to enable，please enter about:config in your address line,and change the value of signed.applets.codebase_principal_support to true");  
         }
    } 
    var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components. interfaces.nsIPrefBranch);
    prefs.setCharPref('browser.startup.homepage',uuu);
 }
}
