var imagelistgs = [
  ['img/gs/The-Grace-Suite-Bed-B&B-Shrewsbury.jpg','Double ensuite bed - B&B Shrewsbury'],
  ['img/gs/The-Grace-Suite-TV-B&B-Shrewsbury.jpg','Double ensuite TV - B&B Shrewsbury'],
  ['img/gs/The-Grace-Suite-Dresser-B&B-Shrewsbury.jpg','Double ensuite dressing table - B&B Shrewsbury'],
  ['img/gs/The-Grace-Suite-Ensuite-B&B-Shrewsbury.jpg','Double ensuite bathroom - B&B Shrewsbury']
];
var imagelistgr = [
  ['img/gr/The-Green-Room-Superking-B&B-Shrewsbury.jpg','Superking ensuite bed - B&B Shrewsbury'],
  ['img/gr/The-Green-Room-Twin-Beds-B&B-Shrewsbury.jpg','Twin ensuite beds - B&B Shrewsbury'],
  ['img/gr/The-Green-Room-Ensuite-B&B-Shrewsbury.jpg','Ensuite shower - B&B Shrewsbury'],
  ['img/gr/The-Green-Room-Shower-B&B-Shrewsbury.jpg','Ensuite bathroom - B&B Shrewsbury']
];
var imagelistps = [
  ['img/ps/The-Penthouse-Suite-Kingsize-Bed-B&B-Shrewsbury.jpg','Kingsize ensuite bed - B&B Shrewsbury'],
  ['img/ps/The-Penthouse-Suite-Armchair-B&B-Shrewsbury.jpg','Kingsize ensuite armchair - B&B Shrewsbury'],
  ['img/ps/The-Penthouse-Suite-Bath-B&B-Shrewsbury.jpg','Kingsize ensuite bath - B&B Shrewsbury'],
  ['img/ps/The-Penthouse-Suite-Ensuite-Bathroom-B&B-Shrewsbury.jpg','Kingsize ensuite bathroom - B&B Shrewsbury']
];
var imagelistpr = [
  ['img/pr/The-Primrose-Room-Superking-B&B-Shrewsbury.jpg','Superking ensuite bed - B&B Shrewsbury'],
  ['img/pr/The-Primrose-Room-Twin-Beds-B&B-Shrewsbury.jpg','Twin ensuite bed - B&B Shrewsbury'],
  ['img/pr/The-Primrose-Room-Wardrobe-B&B-Shrewsbury.jpg','Twin ensuite wardrobe - B&B Shrewsbury'],
  ['img/pr/The-Primrose-Room-Private-Bathroom-B&B-Shrewsbury.jpg','Twin private bathroom - B&B Shrewsbury']
];
function setimagegs(imgPtr) {
  document.getElementById('gs').src=imagelistgs[imgPtr][0];
  document.getElementById('gs').alt=imagelistgs[imgPtr][1];}
function setimagegr(imgptr) {
  imgptr = imgptr;
  document.getElementById('gr').src=imagelistgr[imgptr][0];
  document.getElementById('gr').alt=imagelistgr[imgptr][1];}
function setimagepr(imgptr) {
  imgptr = imgptr;
  document.getElementById('pr').src=imagelistpr[imgptr][0];
  document.getElementById('pr').alt=imagelistpr[imgptr][1];}
function setimageps(imgptr) {
  imgptr = imgptr;
  document.getElementById('ps').src=imagelistps[imgptr][0];
  document.getElementById('ps').alt=imagelistps[imgptr][1];}

function initimagesgs() {
  var str = '';
  for (var i=0; i<imagelistgs.length; i++) {
    str =  '<img src="'+imagelistgs[i][0]+'" alt="'+imagelistgs[i][1]+'"'; 
    str += ' height="38" width="50" style="cursor:hand;padding:2px;border:1px solid #989898;margin-bottom:5px;margin-right:3px;margin-top:3px;background-color:#fafaf8;"';
    str += ' onmouseover="setimagegs('+i+')"';		// remove this line to stop mouse hover change
    str += '>';
    document.write(str);
  }
}
function initimagesgr() {
  var str = '';
  for (var i=0; i<imagelistgr.length; i++) {
    str =  '<img src="'+imagelistgr[i][0]+'" alt="'+imagelistgr[i][1]+'"'; 
    str += ' height="38" width="50" style="cursor:hand;padding:2px;border:1px solid #989898;margin-bottom:5px;margin-right:3px;margin-top:3px;background-color:#fafaf8;"';
    str += ' onmouseover="setimagegr('+i+')"';		// remove this line to stop mouse hover change
    str += '>';
    document.write(str);
  }
}
function initimagespr() {
  var str = '';
  for (var i=0; i<imagelistpr.length; i++) {
    str =  '<img src="'+imagelistpr[i][0]+'" alt="'+imagelistpr[i][1]+'"'; 
    str += ' height="38" width="50" style="cursor:hand;padding:2px;border:1px solid #989898;margin-bottom:5px;margin-right:3px;margin-top:3px;background-color:#fafaf8;"';
    str += ' onmouseover="setimagepr('+i+')"';		// remove this line to stop mouse hover change
    str += '>';
    document.write(str);
  }
}
function initimagesps() {
  var str = '';
  for (var i=0; i<imagelistps.length; i++) {
    str =  '<img src="'+imagelistps[i][0]+'" alt="'+imagelistps[i][1]+'"'; 
    str += ' height="38" width="50" style="cursor:hand;padding:2px;border:1px solid #989898;margin-bottom:5px;margin-right:3px;margin-top:3px;background-color:#fafaf8;"';
    str += ' onmouseover="setimageps('+i+')"';		// remove this line to stop mouse hover change
    str += '>';
    document.write(str);
  }
}

