
function getbio(artist)
{
  var str;

  switch (artist) {

    case "freelink":
	str = "The featured free MP3 is Hank Hooper\'s \"That\'s My Chicken\" from the multimedia album and eBook \"Playground Fortune Teller\", available from BitWorks Music.  This Click on Hank\'s <a href=\"http://hooperville.bitworksmusic.com\" target=\"_blank\">HOOPERVILLE</a> link or check out the catalog at left for more from the new album.<p><p>Hank Hooper - \"That\'s My Chicken\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"http://www.bitworksmusic.com/features/HH4201ThatsMyChicken.mp3\">MP3</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"http://www.bitworksmusic.com/features/freestream.m3u\">Stream without download</a><br><br>";
	break;

    case "cowlink":
	str = "<b>Circle of Willis</b> is the guitar duo of David Oskardmay and Brian Preston.  They have performed most recently at the 2006 Carrboro Music Festival and expect to release an album of new material in 2007.<br><br>";
	break;

    case "fhlink":
	str = "Formed in 1985 in Chapel Hill, North Carolina, <b>Freehand</b> performed and recorded until 1990.  The album \"Thinking Out Loud\", originally recorded in 1988 and released on cassette only, was re-issued in 1997 on InEarVision, now on the Metaphoric Music label and available for download here at BitWorks Music.<p>David Bollinger - keyboards, vocals, guitar<br>Jeff Lindsey - drums<br>Robert Howerton - guitar<br>Brian Preston - bass<p>Freehand:&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"http://www.metaphoricmusic.net/fh.php\" target=\"_blank\">website</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"fhcatalog.html\" target=\"catalog\">catalog</a><br><br>";

	break;

    case "gslink":
	str = "<b>Groove Stream Attractor</b> is an electronic music band from the Chapel Hill and Durham area of North Carolina on the Studio 713 Music label.  GSA plays a mix of improvised space grooves and spontaneous ambient sounds.<p>Ted Johnson - synthesizers and guitars<br>Brian Preston - fretted and fretless basses<br>Barry Tilton - electronic drums<br>Jim Dennis - guitar synthesizers<br>Past players include: Todd Barbee (sax), Jeff Lindsey (drums), with Mark Duncan (guitars, guitar synth) and Joe Hendrix (synthesizers) appearing as guest musicians for live performances.<p>Groove Stream Attractor:&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"http://www.studio713music.com\" target=\"_blank\">website</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"gscatalog.html\" target=\"catalog\">catalog</a><br><br>";
	break;

    case "hhlink":
	str = "<b>Hank Hooper</b> is one of a rare breed of musicians.  He creates music, podcasts, and videos for kids that entertain fans young and not-so-young, an engaging original artist who brings his zany sense of humor to recordings and live performances.  Based in Alameda, California, Hank Hooper collaborated with BitWorks Music to create a multimedia masterpiece, the album download edition of his 2008 album and book, \"Playground Fortune Teller\".  The album contains 17 original tracks along with a narrated eBook, complete with hand-drawn illustrations by Hank Hooper.  <p>Hank Hooper - electric guitar, electric barritone guitar, electric fretless barritone guitar, acoustic guitar, banjo, ukelele, slide guitar, keyboard, bass, voice, computer<br>Special guests - vocals<p>Hank Hooper:&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"http://hooperville.bitworksmusic.com\" target=\"_blank\">VISIT HOOPERVILLE!</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"hhcatalog.html\" target=\"catalog\">catalog</a><br><br>";
	break;

    case "johnhendlink":
	str = "<b>Johnson - Hendrix</b> is the space synth duo of Ted Johnson and Joe Hendrix, both artists drawing on an extensive array of electronic wizardry.  Ted is the owner of <a href=\"http://www.studio713music.com\" target=\"_blank\">Studio 713 Music</a> in Chapel Hill, North Carolina.  Joe is originally from Austin, Texas, where he began his musical training on violin.  In recent years he has focused on electronic music, and his collaboration with Ted Johnson has included a series of albums recorded at <a href=\"http://www.studio713music.com\" target=\"_blank\">Studio 713</a>.  \"Space Probe\" is their first album download release at BitWorks Music.<p>Johnson - Hendrix: &nbsp;&nbsp;&nbsp;&nbsp;<a href=\"http://www.studio713music.com\" target=\"_blank\">website</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"johnhendcatalog.html\" target=\"catalog\">catalog</a><br><br>";
	break;

    case "nhlink":
	str = "<b>National Holographic</b> is an on-going collaboration between Ted Johnson (synthesizers and guitars) and Jason King (samplers and sound manipulation).  Their music is a mix of ambient soundscapes, evolving grooves, and experimental electronica with an emphasis on free-form improvisation.  Over the course of 12 CD\'s the band has recorded multi-dimensional audio images that evoke interstellar exploration, submarine voyages, African safaris, and surrealistic dream worlds.<p>National Holographic:&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"http://www.studio713music.com\" target=\"_blank\">website</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"nhcatalog.html\" target=\"catalog\">catalog</a><br><br>";
	break;

    case "onlink":
	str = "<b>Onomata</b> is an improvsational quintet who create odd structures and textures from instant ideas.  Although Todd Barbee (winds), Brian Preston (bass), and Ian Davis (percussion) started Onomata as a trio early in 1999, Rich Robeson contributed guitar from 2000 into 2002 and then Corey Sims stepped in on keyboards and trumpet in 2002.  In summer of 2004, Marc Medwin joined Onomata on keyboards.  Onomata has developed into a diverse and dynamic quintet.  Together, they have recorded hours of improvisations and played many gigs in North Carolina.  Their approach is to build cascades of sounds over relatively simple basslines and beat structures that change slowly over the course of an improvisation. Recently their sound has taken them more into funky improv areas a la Miles Davis or Weather Report.  <p>Onomata:&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"http://www.metaphoricmusic.net/on.php\" target=\"_blank\">website</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"onocatalog.html\" target=\"catalog\">catalog</a><br><br>";
	break;

    case "oqlink":
	str = "<b>Ozone Quartet</b> is an instrumental rock-fusion band based in Raleigh, North Carolina. Originally known as Cloud Nine, the group was formed in 1992 by Wayne Leechford (Chapman Stick) and Hollis Brown (electric violin). After three self-released demo recordings and numerous local and regional shows, Cloud Nine started to gain recognition as an eclectic band that was paving new ground and reintroducing the best influences in rock-fusion.  As Ozone Quartet, they released 4 CDs, including a retrospective (Cloud Nineology) and a live album.<p>Ozone Quartet:&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"http://www.ozonequartet.com\" target=\"_blank\">website</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"oqcatalog.html\" target=\"catalog\">catalog</a><br><br>";
	break;

    case "sglink":
	str = "<b>Smokin\' Granny</b>, described by one reviewer as progressive rock with a free funk infusion, produced 3 CD\'s and played live only occasionally during an eight year existence, 1995-2003.  SG combined tightly composed original pieces and free improv to forge an energetic, unpredictable sound.  \"Tarth Shooke\" is considered their strongest CD of all-instrumental oddities.<p>Todd Barbee - sax, WX-7 midi-wind controller<br>Brian Preston - fretted and fretless bass<br>David Oskardmay - acoustic guitar and effects<br>Jeffrey Damon Lindsey - drums<br>Steve Hatch - electric guitar<br>John Heitzenrater - electric guitar, bassoon (Sirius Matter)<p>Smokin\' Granny: &nbsp;&nbsp;&nbsp;&nbsp;<a href=\"http://www.metaphoricmusic.net/sg.php\" target=\"_blank\">website</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"sgcatalog.html\" target=\"catalog\">catalog</a><br><br>";
	break;

    case "tjlink":
	str = "<b>Ted Johnson</b> is the force behind <a href=\"http://www.studio713music.com\" target=\"_blank\">Studio 713 Music</a>, the label of Groove Stream Attractor, National Holographic, and other projects.  Ted has released a solo album for BitWorks Music, \"Ambient Realms\" featuring his unique mix of composed and found sounds.<p>Ted Johnson:&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"http://www.studio713music.com\" target=\"_blank\">website</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"tjcatalog.html\" target=\"catalog\">catalog</a><br><br>";
	break;

    case "uvlink":
	str = "<b>Unit Vector</b> resides in Northern Appalachia on a small mountain in Virginia near the West Virginia border.  He constructs his \"audio paintings\" from various electronic hardware, software, and found sounds.  Drawing from a wide variety of influences, UV refuses to pigeonhole himself into any one genre; rather he blends all of his memories into a complex brew; sometimes very dissonant, while at other times harmonic and pleasing to the ear.<p>Even UV doesn\'t know what direction future projects will go in, so you will have to stay tuned for that.<p>Unit Vector:&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"http://www.virb.com/unitvector\" target=\"_blank\">website</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"uvcatalog.html\" target=\"catalog\">catalog</a><br><br>";
	break;

    default:
	str = "Unknown artist";
    }  // end switch 

    return str;
}

/*******************************************

  real-time image swapping function and initialization scripts

*********************************************/

/**
 ** NOTE: getbio must be defined for steupRollover to work
 **/

function rolloverInit() 
{
/**
  var blogwin = document.getElementById("blogpanel");
  if (blogwin) {
    blogwin.innerHTML += " rolloverInit";
  }
**/

  for (var i=0; i < document.links.length; i++) {
    var linkobj = document.links[i];
    if (linkobj.className) {
      var imgobj = document.getElementById(linkobj.className);
      if (imgobj) {
        setupRollover(linkobj, imgobj);
      }
    }
  }

}  // rolloverInit

function setupRollover(link, image) {
   link.imgToChange = image;
   link.onmouseover = rollOver;
   link.overImage = new Image();
   if (link.id) {
     link.overImage.src = "pics/" + link.id + "_on.jpg";

     if (! link.overImage.src) { 
       // if not found, try GIF
       link.overImage.src = "pics/" + link.id + "_on.gif";
     }

     link.biotext = getbio(link.id);
   }

}

function rollOver() {
   this.imgToChange.src = this.overImage.src;
   var bio =  document.getElementById('biocontent');
   if (bio) {
     bio.innerHTML = this.biotext;
   }
}

function setiFrame() {
  document.getElementById("catalog").contentWindow.document.location.href = 
    this.href;
  return false;
}

function initFrames() {
  for (var i=0; i < document.links.length; i++) {
    if (document.links[i].className == "centercontentPic") {
      document.links[i].target = "catalog";
      document.links[i].onclick = setiFrame;
    }
  }
}

function initAll() {

  var metamsg = document.getElementById("metamsg");
  if (metamsg) {
    metamsg.innerHTML = "<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loading artist profiles...";
  }

  rolloverInit();
  initFrames();

  if (metamsg) {
    metamsg.innerHTML = "";     
  }
}


