spotRadar = {
	_renderTime: function(idx) {
		var _fmt = function(a) {
			return (Math.floor(a*1000)/1000)/1000;
		};
		var idx = (typeof idx != 'undefined') ? idx : "";
		var render_time = 0;
		var ti = '';
		var iGet = '';
		for(var i = 0; i < this._time.i.length; i++) {
			ti += this._time.i[i].split('=')[0] + ' = <b>' + _fmt(this._time.i[i].split('=')[1]) + '</b> ίΕΙ<br>';
			iGet += ((iGet.length > 0) ? ',' : '') + this._time.i[i].split('=')[0] + ':' + (_fmt(this._time.i[i].split('=')[1])*1000);
			render_time += parseInt(this._time.i[i].split('=')[1]);                               
		}
		var im = new Element('img');
		im.width = '1px'; im.height = '1px';
		im.src='http://foto.radar.imgsmail.ru/update?p=foto' + idx + '&t=spot&v=' + (_fmt(render_time)*1000) + '&i=' + iGet + '&rnd=' + Math.floor(Math.random()*1000*1000) + (this.prevUrl ? '&r=' + escape(this.prevUrl) : '') + '';
		document.body.appendChild(im);
		this._time = {}; this._time.i = [];
	}
}

Object.extend(spotCreate.prototype,spotRadar);