function showContactPane(pan_id)
{
	var pan_obj = uh_get_object(pan_id);
	//pan_obj.style.position = 'absolute';
	pan_obj.style.visibility = 'visible';
	pan_obj.style.display = 'block';
	//pan_obj.style.top = (pan_obj.offsetTop + 20 )+ "px";
	//pan_obj.style.left = "700px";
}

function hideContactPane(pan_id)
{
	var pan_obj = uh_get_object(pan_id);
	//pan_obj.style.position = 'relative';
	pan_obj.style.visibility = 'hidden';
	//pan_obj.style.display = 'none';
	//pan_obj.style.left = null;
	//pan_obj.style.top = null;
	//pan_obj.style.left = "500px";
}

function finishUploadingPic(obj_id)
{
	// Hide progress bar
	showItem(obj_id);
	hideProgress();}

function showNewPhoto(obj_id, gal_id, photo_id, lid)
{
	var pic_obj = uh_get_object( obj_id );
	var descr_obj = uh_get_object( obj_id + "_descr" );

  	if( AJAX != null )
	{
		//alert( 'AJAX is ok' );
		var process_fn = function(res)
		{
			//alert(' RESPONSE IN CALLBACK: ' + res);

			res = (res.split("\r\n")).join(" ");

			//alert(' NEW: ' + res );

			eval( 'var responce_data = ' + res );

			//Sleep(3000);

			//alert("try");

   			pic_obj.src = responce_data.photoinfo.src;
   			pic_obj.width = responce_data.photoinfo.w;
   			pic_obj.height = responce_data.photoinfo.h;
   			//alert("do");
   			pic_obj.alt = responce_data.photoinfo.alt;
   			descr_obj.innerHTML = responce_data.photoinfo.descr;

   			//alert("end");
		};

		showProgress();
		hideItem(obj_id);

		//alert("start");

  		//var old_link = uh_get_object( 'photolink' + photoind );
  		//var new_link = uh_get_object( 'photolink' + photo_id );

  		//new_link.className = "dbl8u_sel";
  		//old_link.className = "dbl8u";

		photoind = photo_id;

		AJAX.SendRequest('GET', 'rcom=uh_com_photo&id=' + gal_id + '&photoind=' + photo_id +'&lang_id=' + lid , process_fn, null);
	}
}