function productOptionChange() {
	var v = jQuery('#version').val();

	var vd = versionData['product_'+v];

	if (!vd) {
		vd = {price:0,rrp:0,availability:Array()};
	}
	
	var price = vd.price;
	var rrp = vd.rrp;
	var	av = vd.availability;

	if (price > 0) {
		if (rrp > 0) {
			jQuery('#price').html('<span style="text-decoration:line-through; color:#666666;">&nbsp;&pound;'+rrp+'&nbsp;</span>&nbsp;&nbsp;&pound;'+price);
		} else {
			jQuery('#price').html('&pound;'+price);
		}
		jQuery('#addbutton').show();
		jQuery('#participant').show();
		jQuery('#noproduct').hide();
	} else {
		jQuery('#price').html('&pound;POA');
		jQuery('#addbutton').hide();
		jQuery('#participant').hide();
		jQuery('#noproduct').show();
	}

	options = '';
	if (av.length > 0) {
		for (i=0; i<av.length; i++) {
			options += '<option value="'+av[i][0]+'">'+av[i][1]+'</option>';
		}
		jQuery('#date')[0].disabled = false;
	} else {
		options = '<option>No dates available</option>';
		jQuery('#date')[0].disabled = true;
		jQuery('#addbutton').hide();
		jQuery('#participant').hide();
		jQuery('#noproduct').show();
	}
	jQuery('#date').html(options);

}
