<!--
front1 = new Image(180, 140) ;
front1.src = "images/percylounge.jpg" ;
front2 = new Image(180, 140) ;
front2.src = "images/percykitchen.jpg" ;
front3 = new Image(180, 140) ;
front3.src = "images/percybed.jpg" ;
front4 = new Image(180, 140) ;
front4.src = "images/percybed2.jpg" ;
 
currentlyShowing = 4 ;
 
//flip to the picture defined by the passed number
function percyflipPic( num ) {
 if ( num == '1' ) {
  document.images.frontpic.src = front1.src ;
  currentlyShowing = 1 ;
 }
 else if ( num == '2' ) {
  document.images.frontpic.src = front2.src ;
  currentlyShowing = 2 ;
 }
 else if ( num == '3' ) {
  document.images.frontpic.src = front3.src ;
  currentlyShowing = 3 ;
 }
 else if ( num == '4' ) {
  document.images.frontpic.src = front4.src ;
  currentlyShowing = 4 ;
 }
}
 
//show the big version of the currently displaying image
function bigPic() {
 if ( currentlyShowing == '1' ) {
  window.open('percylounge.html','Fully Fitted Kitchen','width=720,height=560');
 }
 else if ( currentlyShowing == '2' ) {
  window.open('percykitchen.html','Shower & Bathroom','width=720,height=560');
 }
 else if ( currentlyShowing == '3' ) {
  window.open('percybed.html','Lounge','width=720,height=560');
 }
 else if ( currentlyShowing == '4' ) {
  window.open('percybed2.html','Lounge','width=720,height=560');
 }
}
// -->