function show_amount_options() {
	document.write('<input type="hidden" name="amount" id="amount" value="25" />');
  document.write('<label for="amt"><input type="radio" value="25" name="amt" id="25" onclick="update_amount(this);"/>$25</label><br/>');
  document.write('<label for="amt"><input type="radio" value="50" name="amt" id="50" onclick="update_amount(this);"/>$50</label><br/>');
  document.write('<label for="amt"><input type="radio" value="100" name="amt" id="100" onclick="update_amount(this);"/>$100</label><br/>');
  document.write('<label for="amt"><input type="radio" value="200" name="amt" id="200" onclick="update_amount(this);"/>$200</label><br/>');
  document.write('<label for="amt"><input type="radio" value="" name="amt" onclick="update_amount(this);"/>Other:&nbsp;</label>');
  document.write('<input type="text" value="" name="other" id="other" size="10" onchange="update_other_amount(this);"/><br/><br/>');
}

function update_amount(amt) {
	amt_control_value = amt.value;
	
	if (amt_control_value > 0) {
		document.getElementById('other').value = '';
		document.getElementById('amount').value = amt_control_value;
	}
}

function update_other_amount(amt) {
	amt_other = amt.value;

	if (amt_other >= 1) {
		document.getElementById('amount').value = amt_other;
	}
}

function load_video(title, video, width, height, autoplay, controller, loop, file_size) {
	var url 		= 'load_video.aspx?';
	var params	= 'video=' + video + '&width=' + width + '&height=' + height + '&autoplay=' + autoplay + '&controller=' + controller + '&loop=' + loop;
	var target  = 'video_box';

	//alert(url + '\n' + params + '\n' + target);
	/*new Ajax.Request(url+params, { 
                                    method: 'get',
                                    onSuccess: function(xhr) {
                                        $('video_box').update(xhr.responseText);
																				$('busy').hide();
                                    },
                                    onFailure: function(xhr) {
																				$('notice').update(xhr.responseText);
																				$('notice').show();
																				$('busy').hide();
                                    },
																		onLoading: $('busy').show()
                                  });*/
  document.getElementById('video_frame').src = url + params
	document.getElementById('video_caption').innerHTML = 'Now Viewing:&nbsp;';
	document.getElementById('video_title').innerHTML = title;
	document.getElementById('download_file').innerHTML = 'Medium (' + file_size + ')';
	document.getElementById('download_file').href = video;
	$('video_options').show();

}

