
function topVideoReload(a) {

	var a_href = a.href;
	var time_period = a_href.substr(a_href.lastIndexOf('=')+1);
	var url = '/js/index/top/'+time_period+'/';

	var cache_div_id = 'loaded_id_'+time_period;
	var cache_obj = $(cache_div_id);

	if(1 && cache_obj && cache_obj.innerHTML) {
		$('index_main_movie').setHTML(cache_obj.innerHTML);
		return false;
	}

	var ajax_options = {
		method: (1) ? 'get' : 'post',
		onRequest: function() {
		},
		onComplete: function(response) {
			var div = new Element('DIV', { 'class' : 'hidden', 'id' : cache_div_id });
			div.setHTML(response);
			
			document.body.appendChild(div);
			//this.onFailure(null);
			//$('index_main_movie').setHTML(response);
		},
		onSuccess: function(responseText, responseXML) {
			//this.onFailure(null);
			new Tips($$('#top_vitems_list .Tips'), {
				className: 'tool'
			});
			if(window.UserProfile) UserProfile.initBoxPattern($('index_main_movie'));
		},
		onFailure: function(instance) {
		},
		onException: function(headerName, value) {
		},
		onCancel: function() {
			this.onFailure(null);
		},
		update: $('index_main_movie'),
		evalScripts: true,
		evalResponse: false,
		data: Object.toQueryString({DEBUG_MODE: 0, rand:Math.random()})
	};
	new Ajax(url, ajax_options).request();
	return false;
}