function OnLoad()
{
strona('ofirmie');
} 
var req = null;
/* 
function strona(cel) {
$('loader').style.display = 'block';
var req = mint.Request();
req.AddParam("parametr",cel);
req.OnSuccess = function () {
$('loader').style.display = 'none';
}
req.Send('../tresc.php','tresc_ajax');
}
 */

function ShowContent() {
   $("tresc_ajax").innerHTML = req.responseText;
	mint.fx.Fade("tresc_ajax", 100, 10, 500);
 
}

function strona(cel) {
//	$('loader').style.display = 'block';
		$('loader').style.visibility = 'visible';
   req = mint.Request();
   req.AddParam("parametr",cel);
	
   req.OnSuccess = function() {
//	$('loader').style.display = 'none';
	$('loader').style.visibility = 'hidden';
      mint.fx.Fade("tresc_ajax", 0, 10, 500, null, ShowContent);
   }
   
   req.Send("../tresc.php")
} 
