<!-- Beginning of JavaScript Shadow Text...
//----------------- PLEASE ATTACH THIS IF USED --------------
// Script:    text3d.js
// Author:    Raul R. Edwards
// Copyright: Software Angel, Inc. (c) May 28, 1999
// License:   GNU General Public License Version 1.2
//            as published by the Free Software Foundation
//
// Notes by Rich Parker:
// Please note that I made a few changes to some of the variables because
// there were bugs running this script with NS 4.0-4.05, this involved
// changing the SHIFT variables, they did not work on lower 4+ NS versions,
// also note that IE 5.0 will NOT CENTER the text, this bug is a known
// bug in IE 5.0.
// It maybe helpful  to use this type of calling sequence:
//  <SCRIPT LANGUAGE="JavaScript">
//  <!-- Call the 3D text --------------------
//  if ((browserName == "Netscape") && (browserVer > 3))
//     {
//      stext3d("<center><font size=7>Your 3D TEXT goes here!</font></center>",
//                "88ccff", "000000", "ddddff", 1);
//      document.write("<br>&nbsp<p>");
//     }
//  else
//     {
//       document.write("<H1><BIG><CENTER><FONT COLOR=0000FF>Your Non-NS text goes here</FONT></CENTER></BIG></H1>");
//     }
//     //-->
//  </SCRIPT>
// Note also that "browserName" & "browserVer" come from another script called
// "binfo.js", this script gets all info from browser and these variables are
// global.
// Use this type of call unless you are NOT centering the 3d text, then the
// only test needed is for browser version. Centering is a nice touch though.
// Also there maybe a need for extra 'document.write("<br>&nbsp<p>")' lines
// for IE if the text gets too close to following lines.
//-----------------------------------------------------------

var txtnum = 0;
var text3d = new Object();
var sshift = 0;
text3d.type = new Array(3);
text3d.color = new Array(3);
text3d.shift = new Array(3);

function stext3d(text, light, shade, fill, shift)
{
   if (!text)
      return;
   if (shift <= 0)
      shift = 1;
   var i = 0;
   // light
   text3d.type[i] = "light3d" + txtnum;
   text3d.color[i] = light;
   text3d.shift[i] = sshift - shift;
   i++;
   // shade
   text3d.type[i] = "shade3d" + txtnum;
   text3d.color[i] = shade;
   text3d.shift[i] = sshift + shift;
   i++;
   // fill
   text3d.type[i] = "fill3d" + txtnum;
   text3d.color[i] = fill;
   text3d.shift[i] = 0;
   i++;
   txtnum++;
   // create style tag
   document.write('<style>\n');
   document.write('div  { position:relative; }\n');
   for (i=0; i < 3; i++)
   {
      if(text3d.color[i] == "")
      {
         continue;
      }
      type = "."+text3d.type[i];
      color = text3d.color[i];
      s = text3d.shift[i];
      document.write(type+' { position:absolute; top:'+s+
                        '; left:'+s+'; color:'+color+'; }\n');
   }
   document.write('</style>\n');
   // draw text
   document.write('\n<br><div>\n');
   for(i=0; i < 3; i++)
   {
      if(text3d.color[i] == "")
      {
         continue;
      }
      type = text3d.type[i];
      document.write('<div class='+type+'>\n');
      document.write(text+'\n');
      document.write('</div>\n');
   }
   document.write('</div>\n');
}
// -- End of JavaScript code -------------- -->
