<!--
// Blues DeVille javascript code
// All original content copyright (C) 2002-2004 by Blues DeVille.  All rights reserved

var RunCursorTrailer = false; // Run our cursor trailer in the right frame?
var ShowCube = true;         // Show our spinning cube in the left frame?
var ShowLogo = false;         // Show our logo instead of the cube in the left frame?

// Obfuscate email addresses so that spammers can't harvest them from our site: 
function printemail(email)
{
  document.write('<a href="mailto:' + email +'@' + 'blu' + 'esde' + 'vill' + 'e.net">');
  document.write( email + '@' + 'blu' + 'esde' + 'vill' + 'e.net' + '</a>');
}

// Show our site links in the left frame:
function WriteLinks(RightFrameLink)
{
  document.write("<p align='center'>");
  document.write("<a href='" + RightFrameLink +"#Home' target='mainFrame'>Home</a><br>");
  document.write("<a href='about.html' target='mainFrame'>About the Band</a><br>");
  document.write("<a href='engagements.html' target='mainFrame'>Engagements</a><br>");
  document.write("<a href='booking.html' target='mainFrame'>Booking Contact</a><br>");
  document.write("<a href='listen.html' target='mainFrame'>Listen to the Band</a><br>");
  document.write("<a href='cd.html' target='mainFrame'>CD's for Sale</a><br>");
  document.write("<a href='pictures.html' target='mainFrame'>Pictures</a><br>");
  document.write("<a href='links.html' target='mainFrame'>Links</a><br>");
  document.write("<a href='http://htmlgear.tripod.com/guest/control.guest?u=thebluesdeville&amp;i=1&amp;a=view' target='mainFrame'>Guestbook</a><br>");
  document.write("<a href='lee.html' target='mainFrame'>Lee Costley</a><br>");
  document.write("<a href='jimmy.html' target='mainFrame'>Jimmy Lynn</a><br>");
  document.write("<a href='kent.html' target='mainFrame'>Kent Moler</a><br>");
  document.write("<a href='keith.html' target='mainFrame'>Keith Nash</a><br>");
  document.write("<a href='stevie.html' target='mainFrame'>Stevie Sowell</a><br>");
  document.write("<a href='angela.html' target='mainFrame'>Angela Wood</a><br>");
  document.write("</p>");
}

// Show the spinning cube, or logo, or nothing - depending on values of 'ShowCube' and 'ShowLogo' above:
function ShowSpinningCube()
{
  if (ShowCube)
    {
    document.write("<applet code='image3dcube.class' width='180' height='190'>");
    document.write("<param name='background' value='000000'>");
    document.write("<param name='shadowcolor' value='000000'>");
    document.write("<param name='textcolor' value='000000'>");
    document.write("<param name='spotlight' value='no'>");
    document.write("<param name='showlightbutton' value='no'>");
    document.write("<param name='sleeptime' value='2'>");
    document.write("<param name='target' value='_self'>");
    document.write("<param name='anglestep' value='1'>");
    document.write("<param name='mouseresponse' value='1'>");
    document.write("<param name='zoomspeed' value='1'>");
    document.write("<param name='image0' value='leec.jpg'>");
    document.write("<param name='image1' value='keithc.jpg'>");
    document.write("<param name='image2' value='angelac.jpg'>");
    document.write("<param name='image3' value='kentc.jpg'>");
    document.write("<param name='image4' value='jimmyc.jpg'>");
    document.write("<param name='image5' value='stevec.jpg'>");
    document.write("<param name='url0' value=''>");
    document.write("<param name='url1' value=''>");
    document.write("<param name='url2' value=''>");
    document.write("<param name='url3' value=''>");
    document.write("<param name='url4' value=''>");
    document.write("<param name='url5' value=''>");
    document.write("</applet>");
  
    document.write("<br>");
    }
  else
    {
    if (ShowLogo)
      {
      document.write("<p><img src='bluesdev.jpg' alt='Blues DeVille'><p><br>");
      }
    }
}

// Cursor Trailor Text- By Peter Gehrig (http://www.24fun.ch/)
// Modified slightly by Keith Nash...

var i,x,y;
var step=20;
var flag=0;

// Your snappy message. Important: the space at the end of the sentence!!!
var message="Blues DeVille ";

message=message.split("");

var xpos=new Array();

for (i=0;i<=message.length-1;i++)
  {
  xpos[i]=-50;
  }

var ypos=new Array();
for (i=0;i<=message.length-1;i++)
  {
  ypos[i]=-50;
  }

function handlerMM(e)
{
  x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX;
  y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY;
  flag=1;
}

function makesnake() 
{
  if (RunCursorTrailer)
    {
    if (flag==1 && document.all)
      {
      for (i=message.length-1; i>=1; i--)
        {
        xpos[i]=xpos[i-1]+step;
        ypos[i]=ypos[i-1];
        }
      xpos[0]=x+step;
      ypos[0]=y;
              
      for (i=0; i<message.length-1; i++)
        {
        var thisspan = eval("span"+(i)+".style");
        thisspan.posLeft=xpos[i];
        thisspan.posTop=ypos[i];
        }
      }
    else if (flag==1 && document.layers)
      {
      for (i=message.length-1; i>=1; i--)
        {
        xpos[i]=xpos[i-1]+step;
        ypos[i]=ypos[i-1];
        }
      xpos[0]=x+step;
      ypos[0]=y;
              
      for (i=0; i<message.length-1; i++)
        {
        var thisspan = eval("document.span"+i);
        thisspan.left=xpos[i];
        thisspan.top=ypos[i];
        }
      }
  
    var timer=setTimeout("makesnake()",30);
    }
}

function StartTextCursor()
{
  if (RunCursorTrailer)
    {
    for (i=0;i<=message.length-1;i++) {
      document.write("<span id='span"+i+"' class='spanstyle'>")
          document.write(message[i])
      document.write("</span>")
      }
  
    if (document.layers){
      document.captureEvents(Event.MOUSEMOVE);
      }
    document.onmousemove = handlerMM;
    }
}

// -->
