    (function() {

      var d = document,
          l = d.location,
          e = encodeURIComponent,
          u = e(l.href),
          t = e(d.title);

      // implied global
      socializeIt = function(where)
      {
        var url;
        if (where == 'Buzz')
        {
           url = 'http://buzz.yahoo.com/submit?submitUrl='+ u +'&t=' + t;
        }
        else if (where == 'del.icio.us')
        {
           url = 'http://del.icio.us/post?v=4&noui&jump=close&url=' + u + '&title=' + t;
        }
        else if (where == 'Facebook')
        {
           url = 'http://www.facebook.com/share.php?u='+ u +'&t=' + t;
        }
        else if (where == 'Google')
        {
           url = 'http://www.google.com/ig/adde?moduleurl=www.google.com/ig/modules/bookmarks.xml&hl=en/u='+ u +'&t=' + t;
        }
        else if (where == 'Myspace')
        {
           url = 'http://www.myspace.com/Modules/PostTo/Pages/?u='+ u +'&t=' + t;
        }
        else if (where == 'StumbleUpon')
        {
           url = 'http://www.stumbleupon.com/submit?url=' + u + '&title=' + t;
        }
        else if (where == 'Technorati')
        {
           url = 'http://technorati.com/faves/?add=' + u;
        }
        else
        {
          throw new Error ('unknown social site "' + where + '"');
        }
        window.open(url, 'sharer', 'toolbar=0,status=0,width=700,height=500,resizable=yes,scrollbars=yes');
        return false;
      };

      var sites = ['Google', 'Buzz', 'Facebook', 'Myspace', 'StumbleUpon', 'Technorati', 'del.icio.us'];

      // Note that the number of elements and order of the array of images must match that of the sites array above.
      var imgURLs = new Array();
      var iLen = sites.length;
      var i;

      for(i = 0; i < iLen; i++)
      {
         imgURLs[i] = 'images/';
      }

      //Google
      imgURLs[0] += 'google.gif';

      //Yahoo Buzz
      imgURLs[1] +='yahoobuzz1.gif';

      //Facebook
      imgURLs[2] += 'Facebook.jpg';

      //Myspace
      imgURLs[3] += 'myspace.gif';

      //StumbleUpon Image
      imgURLs[4] += 'StumbleUpon.jpg';

      //Technorati Image
      imgURLs[5] += 'Technorati.jpg';

      //Delicious Image
      imgURLs[6] += 'del.jpg';

      document.writeln('<br clear="all"><hr><table><tbody><tr><td rowspan="2" nowrap><strong>Share this page:&nbsp;</strong><br><span style="font-size:11px;"></span></td>');

      for (i=0;  i<4; i++)
      {
         var site = sites[i];
         var imgURL = imgURLs[i];
          
         document.writeln('<td><a href="#share_on_'+site+'" onClick="return socializeIt(\''+site+'\');"><img src="'+imgURL+'" alt="'+site+'" style="border:0"></a></td>');
      }
      document.writeln('</tr><tr>');
      for (i=4;  i<iLen; i++)
      {
        var site = sites[i];
        var imgURL = imgURLs[i];

        document.writeln('<td><a href="#share_on_'+site+'" onClick="return socializeIt(\''+site+'\');"><img src="'+imgURL+'" alt="'+site+'" style="border:0"></a></td>');
      }

      document.writeln('</tr></tbody></table>');
    })();

   document.writeln('<hr>');
   document.writeln('<p align="Left"><a href="solarenergyoutputandsavings.html"><img src="images/footer.jpg" alt="footer for solar energy page" width="500" height="48" border="0"></a>');
document.writeln('<BR><br><a href="http://ez1.net"><img src="images/powered-by.jpg" width="500" height="16" border="0"></a><br><br><br>');

