/* begin slide code section */

var global_max_sld_indx = 17;
var global_sld_indx = 0;
var global_sld_timer;

function load_image(img, src, alt, width, height)
{
  img.src = src;
  img.alt = alt;
  img.title = alt;
  img.width = width;
  img.height = height;
}

/*
  img_path = 'file:///C:/Documents%20and%20Settings/Karin%20Hacker/My%20Documents/shillelagh%20law/public_html/images/';
  img_path = 'http://www.shillelaghlaw.com/images/';
*/
function change_slide(new_sld_indx)
{
  img_path = 'http://www.shillelaghlaw.com/images/';
  sld_img = document.images['slideshow_image'];
  sld_capt_cell = document.getElementById('slide_caption_cell');
  switch (new_sld_indx){
    case 0:
      load_image(sld_img, img_path + 'sld_1999Shillelagh.jpg', 'A picture of the original Shillelagh at Wentzville, MO in 1999.', 288, 400);
      sld_capt_cell.innerHTML = 'The original Shillelagh at the Greater St Louis Renaissance Faire in 1999. Picture by John Hacker.';
      break;
    case 1:
      load_image(sld_img, img_path + 'sld_1999Stlouis.jpg', 'A picture of Shillelagh Law at Wentzville, MO in 1999.', 582, 400);
      sld_capt_cell.innerHTML = 'Karin playing her 16" goat skin bodhran, Jennie, Sarah playing her transverse flute, and Kristin, at the Greater St Louis Renaissance Faire in 1999. Picture by John Hacker.';
      break;
    case 2:
      load_image(sld_img, img_path + 'sld_1999Wesoverway.jpg', 'A picture of Shillelagh Law at Bonner Springs, KS in 1999.', 533, 400);
      sld_capt_cell.innerHTML = 'Karin playing her 16" goat skinned bodhran, Sarah playing her goat skin tambourine, and Kristin singing in a performance on the Westover Way stage at the Kansas City Renaissance Festival in 1999. Picture by John Hacker.';
      break;
    case 3:
      load_image(sld_img, img_path + 'sld_2000Bridgewater.jpg', 'A picture of Shillelagh Law at Baxter Springs, KS in 2000.', 290,  400);
      sld_capt_cell.innerHTML = 'Karin at the back, then Kristin holding the Shillelagh, Sarah, and Jennie at the Bridgewater Renaissance Faire in 2000. Picture by John Hacker.';
      break;
    case 4:
      load_image(sld_img, img_path + 'sld_2001Bridgewater.jpg', 'A picture of Shillelagh Law at Baxter Springs, KS in 2001.', 498, 400);
      sld_capt_cell.innerHTML = 'Karin and Sarah at the Bridgewater Renaissance Faire in 2001.';
      break;
    case 5:
      load_image(sld_img, img_path + 'sld_20041016Dunwoodiedell.jpg', 'A picture of Shillelagh Law at Bonner Springs, KS in 2004.', 536, 400);
      sld_capt_cell.innerHTML = 'Kristin, Karin holding A. J., Jennie, and Sarah on the Dunwoodie Dell stage at the Kansas City Renaissance Festival in 2004. Picture by John Hacker.';
      break;
    case 6:
      load_image(sld_img, img_path + 'sld_20041016Wagon.jpg', 'A picture of Shillelagh Law at Bonner Springs, KS in 2004.', 626, 400);
      sld_capt_cell.innerHTML = 'Karin, A. J., and Kristin traveling between sets at the Kansas City Renaissance Festival in 2004. Picture by John Hacker.';
      break;
    case 7:
      load_image(sld_img, img_path + 'sld_20051016Dunwoodiedell1.jpg', 'A picture of Shillelagh Law at Bonner Springs, KS in 2005.', 533, 400);
      sld_capt_cell.innerHTML = 'Karin, Jennie, Kristin holding A. J., and Sarah, on the Dunwoodie Dell stage at the Kansas City Renaissance Festival in 2005. Picture by John Hacker.';
      break;
    case 8:
      load_image(sld_img, img_path + 'sld_20051016Dunwoodiedell2.jpg', 'A picture of Shillelagh Law at Bonner Springs, KS in 2005.', 533, 400);
      sld_capt_cell.innerHTML = 'Jennie and Kristin on the Dunwoodie Dell stage at the Kansas City Renaissance Festival in 2005. Picture by John Hacker.';
      break;
    case 9:
      load_image(sld_img, img_path + 'sld_20051016Gina.jpg', 'A picture of a former member of Shillelagh Law at Bonner Springs, KS in 2005.', 300, 400);
      sld_capt_cell.innerHTML = 'Gina DeBarthe and her sons watch a Shillelagh Law performance at the Kansas City Renaissance Festival in 2005. Picture by John Hacker.';
      break;
    case 10:
      load_image(sld_img, img_path + 'sld_20051016Postperformance.jpg', 'A picture of former and curent Shillelagh Law members at Bonner Springs, KS in 2005.', 533, 400);
      sld_capt_cell.innerHTML = 'A. J. threatens his nanny Kailey while Kristin and Jennie talk to Gina DeBarthe after a performance at the Kansas City Renaissance Festival in 2005. Picture by John Hacker.';
      break;
    case 11:
      load_image(sld_img, img_path + 'sld_20051016Parade.jpg', 'A picture of Shillelagh Law at Bonner Springs, KS in 2005.', 533, 400);
      sld_capt_cell.innerHTML = 'Kristin, Karin, and Mark the harpist during a parade at the Kansas City Renaissance Festival in 2005. Picture by John Hacker.';
      break;
    case 12:
      load_image(sld_img, img_path + 'sld_20051016Royalpavillion.jpg', 'A picture of Shillelagh Law at Bonner Springs, KS in 2005.', 533, 400);
      sld_capt_cell.innerHTML = 'Karin, Jennie, Kristin, and Sarah on the Royal Pavilion stage at the Kansas City Renaissance Festival in 2005. Picture by John Hacker.';
      break;
    case 13:
      load_image(sld_img, img_path + 'sld_20051016Westoverway.jpg', 'A picture of Shillelagh Law at Bonner Springs, KS in 2005.', 533, 400);
      sld_capt_cell.innerHTML = 'Karin, Jennie, Kristin, and Sarah in a performance on the Westover Way stage at the Kansas City Renaissance Festival in 2005. Picture by John Hacker.';
      break;
    case 14:
      load_image(sld_img, img_path + 'sld_20051016Wagon.jpg', 'A picture of Shillelagh Law at Bonner Springs, KS in 2005.', 533, 400);
      sld_capt_cell.innerHTML = 'A. J. hanging out in his wagon between shows at the Kansas City Renaissance Festival in 2005. Picture by John Hacker.';
      break;
    case 15:
      load_image(sld_img, img_path + 'sld_200606GSRLFJohnRatcliff.jpg', 'A picture of Shillelagh Law at Wentzville, MO in 2006.', 583, 400);
      sld_capt_cell.innerHTML = 'Jennie, Kristin, and Sarah in Greater St Louis Renaissance Faire in 2006. Picture by John Ratcliff.';
      break;
    case 16:
      load_image(sld_img, img_path + 'sld_200609SLPFJohnRatcliff.jpg', 'A picture of Shillelagh Law at Wentzville, MO in 2006.', 533, 400);
      sld_capt_cell.innerHTML = 'Karin, Sarah, A. J., Kristin and Jennie at the St. Louis Pirate Festival in 2006. Picture by John Ratcliff.';
      break;
    case 17:
      load_image(sld_img, img_path + 'sld_20061015RoyalPavillion.jpg', 'A picture of Shillelagh Law at Bonner Springs, KS in 2006.', 602, 400);
      sld_capt_cell.innerHTML = 'Karin, Jennie, Kristin, Sarah and A. J. in a performance on the Royal Pavillion stage at the Kansas City Renaissance Festival in 2006. Picture by John Hacker.';
      break;
    default:
      load_image(sld_img, img_path + 'sld_1999Shillelagh.jpg', 'A picture of the original Shillelagh at Wentzville, MO in 1999.', 288, 400);
      sld_capt_cell.innerHTML = 'The original Shillelagh at the Greater St Louis Renaissance Faire in 1999. Picture by John Hacker.';
      break;
  }
}

function halt_slides()
{
  clearTimeout(global_sld_timer)
}

function random_slide()
{
  halt_slides()
  var rand_img = Math.floor(Math.random() * (global_max_sld_indx + 1));
  change_slide(rand_img)
}

function loop_ordered_slides()
{
  change_slide(global_sld_indx)
  global_sld_indx = global_sld_indx+1
  if (global_sld_indx > global_max_sld_indx)
  {
    global_sld_indx = 0
  }
  global_sld_timer = setTimeout("loop_ordered_slides()", 8000)
}

function click_ordered_slides()
{
  halt_slides()
  loop_ordered_slides()
}

function loop_random_slides()
{
  random_slide()
  global_sld_timer = setTimeout("loop_random_slides()", 8000)
}

function click_random_slides()
{
  halt_slides()
  loop_random_slides()
}

function build_slide_table()
{
  document.writeln('<table id="slide_tbl" style="text-align: center;" border="0" cellpadding="2" cellspacing="2">');
  document.writeln('<tr align="center">');
  document.writeln('<td><img name="slideshow_image" src="2005kcrf.jpg" alt="A picture of Shillelagh Law in Bonner Springs, KS in 2005." title="A picture of Shillelagh Law in Bonner Springs, KS in 2005." width=170 height=139 align=bottom border=0 /></td>');
  document.writeln('</tr>');
  document.writeln('<tr align="center">');
  document.writeln('<td id="slide_caption_cell">Karin playing the bodhran, Jennie, Kristin holding A. J., and Sarah.</td>');
  document.writeln('</tr>');
  document.writeln('<tr align="center">');
  document.writeln('<td><input type="button" onclick="click_random_slides()" value="Show random slide show">');
  document.writeln('<input type="button" onclick="click_ordered_slides()" value="Show slide show">');
  document.writeln('<input type="button" onclick="random_slide()" value="Show a random slide">');
  document.writeln('<input type="button" onclick="halt_slides()" value="Stop slide show"></td>');
  document.writeln('</tr>');
  document.writeln('</table>');
  random_slide();
}

/* end slide code section */


/*
  a script to load the shillelagh law reverb nation player
*/
function insert_song(auto_play)
{
    player_src = 'http://cache.reverbnation.com/widgets/swf/15/widgetPlayer.swf?emailPlaylist=artist_80611&backgroundcolor=EEEEEE&font_color=000000&posted_by=artist_80611&shuffle=true&autoPlay=' + auto_play
    document.writeln ('<h4>You can listen to Shillelagh Law&rsquo;s music here!</h4>');
    document.writeln ('<img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.11NXC/bT*xJmx*PTEyNTM*MjUwMzE1MTUmcHQ9MTI1MzQyNTAzOTAwMCZwPTI3MDgxJmQ9bXVzaWNfcGxheWVyX2ZpcnN*X2dlbiZnPTEmb2Y9MA==.gif" />');
    document.writeln ('<embed type="application/x-shockwave-flash"  src="' + player_src + '" height="228" width="434" />');
    document.writeln ('<br/><a href="http://www.reverbnation.com/c./a4/15/80611/Artist/80611/Artist/link">');
    document.writeln ('<img alt="Shillelagh%20Law" border="0" height="19" src="http://cache.reverbnation.com/widgets/content/15/footer.png" width="434" /></a>');
    document.writeln ('<br/><img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://www.reverbnation.com/widgets/trk/15/artist_80611/artist_80611/t.gif"/>');
    document.writeln ('<a href="http://www.quantcast.com/p-05---xoNhTXVc" target="_blank">');
    document.writeln ('<img src="http://pixel.quantserve.com/pixel/p-05---xoNhTXVc.gif" style="display: none" border="0" height="1" width="1" alt="Quantcast"/></a>');
}


/*
  Scripts to build email links
*/
function insert_email(subject_line, element_name)
{
    if (subject_line == '') {
        subject_line == 'A%20note%20from%20shillelalaw.com'
    }
    if (element_name == '') {
        element_name == 'hire_us'
    }
    document.writeln ('<a href="mailto:band@shillelaghlaw.com?subject=' + subject_line + '" name="' + element_name + '">here.</a>');
}


function insert_note_email()
{
    insert_email('A%20note%20from%20shillelalaw.com', 'note_to_us');
}


function insert_bug_email()
{
    insert_email('A%bug%20note%20from%20shillelalaw.com', 'bug_note');
}


/*
  Script to embed the Snocap MyStore
*/
function insert_mystore()
{
    document.writeln ('<h4>You can buy Shillelagh Law&rsquo;s music here!</h4>');
    document.writeln ('<embed src="http://void.snocap.com/s/T3-31324-DY3QN32SPH-8/"');
    document.writeln ('style="background: transparent url(http://void.snocap.com/b/T3-31324-DY3QN32SPH-8/) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"');
    document.writeln ('height="300" width="425"></embed>');
    document.writeln ('<noembed>Sorry, you have to have Flash installed and enabled to buy music.</noembed>');
}

/*
  Script to embed the ReverbNation Tune Widget
*/
function insert_tunewidget()
{
    document.writeln ('<h4>Here is our show schedule:</h4>');
    document.writeln ('<img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEyNTM*MTgyODQyNjUmcHQ9MTI1MzQxODI5MjU*NiZwPTI3MDgxJmQ9dHVuZVdpZGdldCZnPTImbz1jM2UxYmQ4ZjBlNmE*MGI*YmJiNTRlY2FkMjgyYTJhNCZvZj*w.gif" />');
    document.writeln ('<embed type="application/x-shockwave-flash" src="http://cache.reverbnation.com/widgets/swf/19/tuneWidget.swf?twID=artist_80611&posted_by=artist_80611&shuffle=&autoPlay=&blogBuzz=" height="415" width="434"/>');
    document.writeln ('<br/><a href="http://www.reverbnation.com/c./a4/19/80611/Artist/0/User/link">');
    document.writeln ('<img alt="Shillelagh%20Law" border="0" height="19" src="http://cache.reverbnation.com/widgets/content/19/footer.png" width="434" />');
    document.writeln ('</a><img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://www.reverbnation.com/widgets/trk/19/artist_80611/artist_80611/t.gif"/>');
    document.writeln ('<a href="http://www.quantcast.com/p-05---xoNhTXVc" target="_blank">');
    document.writeln ('<img src="http://pixel.quantserve.com/pixel/p-05---xoNhTXVc.gif" style="display: none" border="0" height="1" width="1" alt="Quantcast"/></a>');
}

/*
  function to insert the ReverbNation map schedule widget
*/
function insert_map_schedule()
{
    document.writeln ('<h4>This is our show schedule:</h4>');
    document.writeln ('<img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEyNTM*MjA1MzkwNjImcHQ9MTI1MzQyMDU*NDg3NSZwPTI3MDgxJmQ9YXJ*aXN*X3Nob3dtYXAmZz*yJm89YzNlMWJkOGYwZTZhNDBiNGJiYjU*ZWNhZDI4MmEyYTQmb2Y9MA==.gif" />');
    document.writeln ('<embed type="application/x-shockwave-flash" src="http://cache.reverbnation.com/widgets/swf/12/schedule.swf?bandId=artist_80611&backgroundcolor=EEEEEE&font_color=000000&view=&posted_by=artist_80611" height="538" width="434" />');
    document.writeln ('<br/><a href="http://www.reverbnation.com/c./a4/12/80611/Artist/0/User/link">');
    document.writeln ('<img alt="Shillelagh%20Law" border="0" height="19" src="http://cache.reverbnation.com/widgets/content/12/footer.png" width="434" /></a>');
    document.writeln ('<br/><img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://www.reverbnation.com/widgets/trk/12/artist_80611/artist_80611/t.gif"/>');
    document.writeln ('<a href="http://www.quantcast.com/p-05---xoNhTXVc" target="_blank">');
    document.writeln ('<img src="http://pixel.quantserve.com/pixel/p-05---xoNhTXVc.gif" style="display: none" border="0" height="1" width="1" alt="Quantcast"/></a>');
}

/*
  function to insert the ReverbNation schedule widget with no map
*/
function insert_schedule()
{
    document.writeln ('<h4>This is our show schedule:</h4>');
    document.writeln ('<img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEyNTM*MjU4ODYzMTImcHQ9MTI1MzQyNTg5Mjc2NSZwPTI3MDgxJmQ9YXJ*aXN*X3Nob3dzX2ZpcnN*X2dlbiZnPTEmbz1jM2UxYmQ4ZjBlNmE*MGI*YmJiNTRlY2FkMjgyYTJhNCZvZj*w.gif" />');
    document.writeln ('<embed type="application/x-shockwave-flash" src="http://cache.reverbnation.com/widgets/swf/10/schedule.swf?bandId=artist_80611&backgroundcolor=EEEEEE&font_color=000000&view=smart&posted_by=artist_80611" height="247" width="434" />');
    document.writeln ('<br/><a href="http://www.reverbnation.com/c./a4/10/80611/Artist/80611/Artist/link">');
    document.writeln ('<img alt="Shillelagh%20Law" border="0" height="19" src="http://cache.reverbnation.com/widgets/content/10/footer.png" width="434" /></a>');
    document.writeln ('<br/><img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://www.reverbnation.com/widgets/trk/10/artist_80611/artist_80611/t.gif"/>');
    document.writeln ('<a href="http://www.quantcast.com/p-05---xoNhTXVc" target="_blank">');
    document.writeln ('<img src="http://pixel.quantserve.com/pixel/p-05---xoNhTXVc.gif" style="display: none" border="0" height="1" width="1" alt="Quantcast"/></a>');
}

/*
  function to insert the ReverbNation fan collector widget
*/
function insert_fancollector()
{
    document.writeln ('<img src="http://cache.reverbnation.com/widgets/buffer.gif" height="4" />');
    document.writeln ('<br/><embed type="application/x-shockwave-flash" src="http://www.reverbnation.com/widgets/artist/fancollector.swf?page_object_id=artist_80611&backgroundcolor=EEEEEE&font_color=000000&posted_by=artist_80611" height="100" width="434" />');
    document.writeln ('<br/><a href="http://www.reverbnation.com/c./a4/11/80611/Artist/80611/Artist/link">');
    document.writeln ('<img alt="Shillelagh%20Law" border="0" height="19" src="http://www.reverbnation.com/data_public/resource/image/11/fr_footer.gif" width="434" /></a>');
    document.writeln ('<br/><img src="http://cache.reverbnation.com/widgets/buffer.gif" height="4" />');
    document.writeln ('<a href="http://www.quantcast.com/p-05---xoNhTXVc" target="_blank">');
    document.writeln ('<img src="http://pixel.quantserve.com/pixel/p-05---xoNhTXVc.gif" style="display: none" border="0" height="1" width="1" alt="Quantcast"/></a>');
    document.writeln ('<img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://counters.gigya.com/wildfire/CIMP/bT*xJmx*PTEyMTIzMDQ2NDkxODcmcHQ9MTIxMjMwNDY1NTIwMyZwPTI3MDgxJmQ9ZmFuJTVGY29sbGVjdG9yJTVGZmlyc3QlNUZnZW4mbj*mZz*x.jpg" />');
}

/*
  function to insert the ReverbNation street team collector widget
*/
function insert_streetteamcollector()
{
    document.writeln ('<img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEyNTM*MjExODk4NDMmcHQ9MTI1MzQyMTIwMDQ2OCZwPTI3MDgxJmQ9ZmFuX2NvbGxlY3Rvcl9maXJzdF9nZW4mZz*xJm89YzNlMWJkOGYwZTZhNDBiNGJiYjU*ZWNhZDI4MmEyYTQmb2Y9MA==.gif" />');
    document.writeln ('<embed type="application/x-shockwave-flash" src="http://cache.reverbnation.com/widgets/swf/11/fancollector.swf?page_object_id=artist_80611&backgroundcolor=EEEEEE&font_color=000000&posted_by=artist_80611&street_team=true" height="100" width="434" />');
    document.writeln ('<br/><a href="http://www.reverbnation.com/c./a4/11/80611/Artist/80611/Artist/link?street_team=true">');
    document.writeln ('<img alt="Shillelagh%20Law" border="0" height="19" src="http://cache.reverbnation.com/widgets/content/11/footer.png" width="434" /></a>');
    document.writeln ('<br/><img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://www.reverbnation.com/widgets/trk/11/artist_80611/artist_80611/t.gif"/>');
    document.writeln ('<a href="http://www.quantcast.com/p-05---xoNhTXVc" target="_blank">');
    document.writeln ('<img src="http://pixel.quantserve.com/pixel/p-05---xoNhTXVc.gif" style="display: none" border="0" height="1" width="1" alt="Quantcast"/></a>');
}
