function writeme(imgIndex){
 var picname;
 var proDescrip;
 var proName;
 switch(imgIndex)
        {
        case 0:   proDescrip="Our standard, Single Tube, is a highly sensitive dual pressure scope is available in a choice of head sizes:<BR><BR>Adult 50mm (2in.)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>$195.00+GST</b><br>Peadiatric 38mm (1.5in.)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>$195.00+GST</b><br>Neonatal 25mm (1in.)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>$195.00+GST</b><br>Classic <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>$220.00+GST</b><br><br><br>These scopes have the ability to detect heart sounds equivalent to other makes of cardiac models, with an operating frequency range of 20 – 35 kHz.<br><br><P>The head, tubing and binaural assembly, filters external noises whilst amplifying heart/lung sounds without the need for batteries or electronics.</P><P>Easy to use and lightweight (the adult scope weighs only 125gms/5 oz) the scopes are available in a wide choice of head designs and tubing colours."; break
        case 1:   proDescrip="<P>The Double Tube has the same highly sensitive dual pressure attributes as the Single Tube Ultrascope and operates within the frequency range of 20 – 35 kHz, with a clarity equivalent to comparative cardiac stethoscopes.</P><P>It comprises of twin binaural tubing, making it ideal for the hearing impaired practitioner.</P><P>Available in Adult and Paediatric size heads, but offered in our full range of designs and tubing colours.</P>"; break
        case 2:   proDescrip="<P>The duo has the same high qualities as our standard Single Tube Ultrascope, but is supplied with a choice of two interchangeable heads.</P><P>These can be chosen with any combination of our head sizes – Adult, Paediatric or neonatal.</P><P>Adult and paediatric heads can be supplied in any of our 29 head designs and with a choice of tubing colours. <p>You can own our Duo Stethoscope for<br><br><b> $ 310.00+GST</b></p> (neonatal is only available in colours only). "; break
        case 3:   proDescrip="<P>The Trio is a three head version of the Duo. This allows greater flexibility for the clinician when treating both adults and children as this style can be supplied with one of each of our three head sizes – Adult, Paediatric and neonatal.</P><P>However, if preferred all three heads can be supplied in the same size or in any other combination.<p>You can own our Trio Stethoscope for<br><br><b> $ 415.00+GST</b></p>"; break
        case 4:   proDescrip="<P>This scope is ideal for the teacher/student or doctor/patient combination, allowing them to share and experience the same heart/lung sounds with superb clarity. This head also can be used for the hearing impaired. .</P><P>With its dual output head design, the scope is offered in our full choice of head designs and can be supplied in matching or complimentary tubing colours, although only available with Adult and Paediatric head."; break
        default:    proDescrip="Sorry!<br><br>No product Description available.<p>under construction";         
        }
 var aryImages = new Array(5);  // incrase this value..read below
  // Pictures:   To add a new picture add a new element to array and increse the declaration on top
  aryImages[0] = "images/single-tube-stethoscope.jpg";
  aryImages[1] = "images/double-tube-stethoscope.jpg";
  aryImages[2] = "images/duo-stethoscope.jpg";
  aryImages[3] = "images/trio-stethoscope.jpg";
  aryImages[4] = "images/teaching-stethoscope.jpg";
  
 var aryProName = new Array(5);
   aryProName[0] = "Single Tube Stethoscope.";
   aryProName[1] = "Double Tube Stethoscope.";
   aryProName[2] = "Duo Stethoscope.";
   aryProName[3] = "Trio Stethoscope.";
   aryProName[4] = "Teaching Stethoscope.";
   
  for (i=0; i < aryImages.length; i++) {
    var preload = new Image();
    preload.src = aryImages[i];
  }
 picname=aryImages[imgIndex];
 proName=aryProName[imgIndex]; 
 writeConsole(' ');
function writeConsole(content) {
 top.consoleRef=window.open('','myconsole',
  'width=520,height=375'
   +',menubar=0'
   +',toolbar=0'
   +',status=0'
   +',scrollbars=0'
   +',resizable=0')
   
 top.consoleRef.document.writeln('<html><head><title>Gallery -</title><link rel=StyleSheet href=style/styles.css type=text/css></head><body background=images/tablebg.gif onLoad=self.focus()><table border=0 cellpadding=0 cellspacing=0 width=500><tr>'
 +'<td width=6></td><td width=484 colspan=3><p align=center><font size=3><b>'
 + proName
 +'</b></font><br><br></p></td><td width=1></td></tr><tr><td width=6></td> <td width=257></td><td width=28></td><td width=199></td><td width=1></td></tr><tr><td width=6></td><td width=257 rowspan=12><img src='
 + picname
 +' border=0 width=258 height=316></td><td width=28></td><td width=199 rowspan=10 valign=top align=left>'
 +'<div  id=text class=scrollbar><table border=0 cellpadding=0 cellspacing=0 width=180 height=275><tr><td>'
 + proDescrip
 +'</div></td></tr></table></td><td width=1></td></tr><tr><td width=6></td><td width=28></td> <td width=1></td></tr><tr><td width=6></td><td width=28></td><td width=1></td></tr><tr><td width=6></td><td width=28></td>'
 +'<td width=1></td></tr><tr><td width=6></td><td width=28></td><td width=1></td></tr><tr><td width=6></td><td width=28></td><td width=1></td></tr><tr><td width=6></td><td width=28></td><td width=1></td></tr><tr>'
 +'<td width=6></td><td width=28></td><td width=1></td></tr><tr><td width=6></td><td width=28></td><td width=1></td></tr><tr><td width=6></td><td width=28></td><td width=1></td></tr><tr><td width=6></td><td width=28></td>'
 +'<td width=199></td><td width=1></td></tr><tr><td width=6></td><td width=28></td><td width=199 align=center><img border=0 src=images/closebutton.jpg width=160 height=23 onclick=javascript:parent.close()></td><td width=1></td></tr><tr>'
 +'<td width=6></td><td width=257></td><td width=28></td><td width=199></td><td width=1></td></tr></table></body></html>')
 }
}