

// Author: Susan L. Bolander, Webworks7 (www.webworks7.com), except where otherwise noted
// Date: February 2005


var affiliateWin = null;

function affiliateUp(theURL,winName)
{
  affiliateWin = window.open(theURL,winName);

// This if statement checks to see if the broswer supports the focus method

  if(affiliateWin.focus)
  {
    affiliateWin.focus();
  }
}



// --------- Prevent this site from being framed ----------------

if(window != top)
{
  if(history.length==0)
  {
    top.location = self.location
  }
  else
  {
    window.open(location.href);
    history.go(-1);
  }
}

// ---------------- Random image in top-right position  --------------

// random number is chosen prior to loading the page so the caption will be available

var PhotosAlt = new Array();

PhotosAlt[0] = 'Photo of Brendan Taaffe playing the fiddle - Copyright Maurice Gunning'
PhotosAlt[1] = 'Photo of Brendan Taaffe playing the fiddle - Copyright Maurice Gunning'
PhotosAlt[2] = 'Photo of Brendan Taaffe playing the fiddle - Copyright Maurice Gunning'
PhotosAlt[3] = 'Photo of Brendan Taaffe playing the accordion - Copyright Maurice Gunning'
PhotosAlt[4] = 'Photo of Brendan Taaffe playing the accordion - Copyright Maurice Gunning'
PhotosAlt[5] = 'Photo of Brendan Taaffe playing the fiddle in an Irish pub - Photo credit: Padraic Taaffe'
PhotosAlt[6] = 'Photo of Brendan Taaffe playing the fiddle'
PhotosAlt[7] = 'Photo of Brendan Taaffe playing the guitar'
PhotosAlt[8] = 'Photo of Brendan Taaffe and Magic Foot'
PhotosAlt[9] = 'Photo of Brendan Taaffe as a young child'
PhotosAlt[10] = 'Photo of Brendan and a young fan'
PhotosAlt[11] = 'Photo of Brendan Taaffe and three friends'
PhotosAlt[12] = 'Photo of Brendan Taaffe singing with a friend'
PhotosAlt[13] = 'Photo of Brendan Taaffe'
PhotosAlt[14] = 'Photo of Brendan Taaffe playing the guitar'
PhotosAlt[15] = 'Photo of Brendan Taaffe sitting on a rock'
PhotosAlt[16] = 'Photo of Brendan Taaffe playing the fiddle'
PhotosAlt[17] = 'Photo of Brendan Taaffe with a guitar'


n = Math.round(Math.random() * (PhotosAlt.length-1));

var caption = PhotosAlt[n]

// Photo is chosen after loading the page so references to the image will be valid

function pickPhoto()

{

var Photos = new Array();

Photos[0] = 'brendan_taaffe_3.jpg'
Photos[1] = 'brendan_taaffe_4.jpg'
Photos[2] = 'brendan_taaffe_6.jpg'
Photos[3] = 'brendan_taaffe_1.jpg'
Photos[4] = 'brendan_taaffe_2.jpg'
Photos[5] = 'molloys_home.jpg'
Photos[6] = 'home_fiddle_2.jpg'
Photos[7] = 'guitar_home.jpg'
Photos[8] = 'home_magic_foot.jpg'
Photos[9] = 'brendan_taaffe_12.jpg'
Photos[10] = 'home_pointing.jpg'
Photos[11] = 'home_four_friends.jpg'
Photos[12] = 'home_singing.jpg'
Photos[13] = 'home_smile.jpg'
Photos[14] = 'home_guitar_2.jpg'
Photos[15] = 'home_rock.jpg'
Photos[16] = 'home_fiddle.jpg'
Photos[17] = 'home_guitar.jpg'



document.images.randomphoto.src=Photos[n];
document.images.randomphoto.alt=PhotosAlt[n];

}
