var imagelistde = [
  ['img/de/The-Grace-Suite-Bed-B&B-Shrewsbury.jpg','Double ensuite bed - B&B Shrewsbury'],
  ['img/de/The-Grace-Suite-TV-B&B-Shrewsbury.jpg','Double ensuite TV - B&B Shrewsbury'],
  ['img/de/The-Grace-Suite-Dresser-B&B-Shrewsbury.jpg','Double ensuite dressing table - B&B Shrewsbury'],
  ['img/de/The-Grace-Suite-Ensuite-B&B-Shrewsbury.jpg','Double ensuite bathroom - B&B Shrewsbury']
];
var imagelistte = [
  ['img/te/The-Green-Room-Twin-Beds-B&B-Shrewsbury.jpg','Twin ensuite beds - B&B Shrewsbury'],
  ['img/te/The-Green-Room-Ensuite-B&B-Shrewsbury.jpg','Twin ensuite shower - B&B Shrewsbury'],
  ['img/te/The-Green-Room-Shower-B&B-Shrewsbury.jpg','Twin ensuite bathroom - B&B Shrewsbury']
];
var imagelisttesd = [
  ['img/tesd/The-Green-Room-Superking-B&B-Shrewsbury.jpg','Superking ensuite bed - B&B Shrewsbury'],
  ['img/tesd/The-Green-Room-Ensuite-B&B-Shrewsbury.jpg','Superking ensuite bathroom - B&B Shrewsbury'],
  ['img/tesd/The-Green-Room-Superking-Bed-B&B-Shrewsbury.jpg','Superking ensuite bed - B&B Shrewsbury'],
  ['img/tesd/The-Green-Room-Shower-B&B-Shrewsbury.jpg','Superking ensuite shower - B&B Shrewsbury']
];
var imagelistke = [
  ['img/ke/The-Penthouse-Suite-Kingsize-Bed-B&B-Shrewsbury.jpg','Kingsize ensuite bed - B&B Shrewsbury'],
  ['img/ke/The-Penthouse-Suite-Armchair-B&B-Shrewsbury.jpg','Kingsize ensuite armchair - B&B Shrewsbury'],
  ['img/ke/The-Penthouse-Suite-TV-B&B-Shrewsbury.jpg','Kingsize ensuite TV - B&B Shrewsbury'],
  ['img/ke/The-Penthouse-Suite-Bath-B&B-Shrewsbury.jpg','Kingsize ensuite bath - B&B Shrewsbury'],
  ['img/ke/The-Penthouse-Suite-Ensuite-Bathroom-B&B-Shrewsbury.jpg','Kingsize ensuite bathroom - B&B Shrewsbury']
];
var imagelisttps = [
  ['img/tps/The-Primrose-Room-Twin-Beds-B&B-Shrewsbury.jpg','Twin ensuite bed - B&B Shrewsbury'],
  ['img/tps/The-Primrose-Room-Superking-B&B-Shrewsbury.jpg','Superking ensuite bed - B&B Shrewsbury'],
  ['img/tps/The-Primrose-Room-Wardrobe-B&B-Shrewsbury.jpg','Twin ensuite wardrobe - B&B Shrewsbury'],
  ['img/tps/The-Primrose-Room-Private-Bathroom-B&B-Shrewsbury.jpg','Twin private bathroom - B&B Shrewsbury']
];
function setimagede(imgPtr) {
  document.getElementById('de').src=imagelistde[imgPtr][0];
  document.getElementById('de').alt=imagelistde[imgPtr][1];}
function setimagete(imgptr) {
  imgptr = imgptr;
  document.getElementById('te').src=imagelistte[imgptr][0];
  document.getElementById('te').alt=imagelistte[imgptr][1];}
function setimagetesd(imgptr) {
  imgptr = imgptr;
  document.getElementById('tesd').src=imagelisttesd[imgptr][0];
  document.getElementById('tesd').alt=imagelisttesd[imgptr][1];}
function setimageke(imgptr) {
  imgptr = imgptr;
  document.getElementById('ke').src=imagelistke[imgptr][0];
  document.getElementById('ke').alt=imagelistke[imgptr][1];}
function setimagetps(imgptr) {
  imgptr = imgptr;
  document.getElementById('tps').src=imagelisttps[imgptr][0];
  document.getElementById('tps').alt=imagelisttps[imgptr][1];}

function initimagesde() {
  var str = '';
  for (var i=0; i<imagelistde.length; i++) {
    str =  '<img src="'+imagelistde[i][0]+'" alt="'+imagelistde[i][1]+'"'; 
    str += ' height="38" width="50" style="padding:3px;border:1px solid #5f5f5f;margin-bottom:5px;margin-right:3px;margin-top:5px;background-color:#fafaf8;"';
    str += ' onclick="setimagede('+i+')"';		// remove this line to stop mouse hover change
    str += '>';
    document.write(str);
  }
}
function initimageste() {
  var str = '';
  for (var i=0; i<imagelistte.length; i++) {
    str =  '<img src="'+imagelistte[i][0]+'" alt="'+imagelistte[i][1]+'"'; 
    str += ' height="38" width="50" style="padding:3px;border:1px solid #5f5f5f;margin-bottom:5px;margin-right:3px;margin-top:5px;background-color:#fafaf8;"';
    str += ' onclick="setimagete('+i+')"';		// remove this line to stop mouse hover change
    str += '>';
    document.write(str);
  }
}
function initimagestesd() {
  var str = '';
  for (var i=0; i<imagelisttesd.length; i++) {
    str =  '<img src="'+imagelisttesd[i][0]+'" alt="'+imagelisttesd[i][1]+'"'; 
    str += ' height="38" width="50" style="padding:3px;border:1px solid #5f5f5f;margin-bottom:5px;margin-right:3px;margin-top:5px;background-color:#fafaf8;"';
    str += ' onclick="setimagetesd('+i+')"';		// remove this line to stop mouse hover change
    str += '>';
    document.write(str);
  }
}
function initimageske() {
  var str = '';
  for (var i=0; i<imagelistke.length; i++) {
    str =  '<img src="'+imagelistke[i][0]+'" alt="'+imagelistke[i][1]+'"'; 
    str += ' height="38" width="50" style="padding:3px;border:1px solid #5f5f5f;margin-bottom:5px;margin-right:3px;margin-top:5px;background-color:#fafaf8;"';
    str += ' onclick="setimageke('+i+')"';		// remove this line to stop mouse hover change
    str += '>';
    document.write(str);
  }
}
function initimagestps() {
  var str = '';
  for (var i=0; i<imagelisttps.length; i++) {
    str =  '<img src="'+imagelisttps[i][0]+'" alt="'+imagelisttps[i][1]+'"'; 
    str += ' height="38" width="50" style="padding:3px;border:1px solid #5f5f5f;margin-bottom:5px;margin-right:3px;margin-top:5px;background-color:#fafaf8;"';
    str += ' onclick="setimagetps('+i+')"';		// remove this line to stop mouse hover change
    str += '>';
    document.write(str);
  }
}
