<!--   
	
	var products = Array();
	var theimage = Array();
	
	function swapImage(id, source, num) {

		if (source == 'radio') {
			// get the position of the . in the id)
			var extPos = id.lastIndexOf('.');
			// get the filename without the extension
			var fileId = id.substr(0,extPos);
			document.getElementById('fullimage').src = '../pics/'+id;
			document.getElementById("colour"+num+"_"+fileId).selected = true;
		}
		if (source == 'select') {
			// get the position of the _ in the id (this will be after 'full')
			var prefixPos = id.lastIndexOf('_')+1;
			// get the value after the underscore (after 'full_')
			var fileName = id.substr(prefixPos);
			// need to add the full_ and .jpg back onto the filename
			document.getElementById('fullimage').src = '../pics/full_'+fileName+'.jpg';
			document.getElementById("colour"+num).checked = true;
		}
	}
	
	
// -->