//<!--





/*
			var description = new Array("Bedroom","driveway","driveway","Kitchen","Lounge","Outside on the Patio"); 
			var filename = new Array("bedroom.jpg","drive.jpg","drive1.jpg","kitchen.jpg","lounge.jpg","patio.jpg");
			var images = new Array();
			
			for(var imgCnt=0; imgCnt < filename.length; imgCnt++)
			{
					images[imgCnt] = new Image();
					images[imgCnt].src = "http://localhost/chc2/pix/photos/" + filename[imgCnt];
			}
			
			//var propertyPix = new Array(image,description, filename);
			var maxPic = filename.length - 1;
			var currPic = -1;
			
			*/
			
			
			
			
			function changePic(dir)
			{
					if(dir=='next')
					{
							currPic++;
							
							// If the current picture index is higher than the number of available pictures
							// then return it to zero to give a looping motion
							 
							if(currPic > maxPic) currPic = 0;
					}
					else if(dir=='last')
					{
							currPic--;
							
							// If the current picture index is lower than zero then return it to the maximum 
							// to give the looping action
							 
							if(currPic < 0) currPic = maxPic;
					}
					
					// Change the picture, alt description and img number
					
					document.getElementById('imgTray').src = images[currPic].src;
					document.getElementById('imgTray').alt = description[currPic];
					document.getElementById('picNo').value = currPic + 1;
					document.getElementById('noPics').value = images.length;
					document.getElementById('picDescrip').value = description[currPic];			
			}


//-->