function img_zoom(file)
{
	date=file.split('|');
	if (!date[0]) return false;
	file=date[0];
	if (date[1])
		opis=date[1];
	else
		opis='';
	bg = new Layer('bglayer');
	bg.fullScreen();
	im = new Layer('imglayer',true);
	bg.object.onclick=function ()
	{
		bg.remove();
		im.remove();
	}
	im.object.onclick=function ()
	{
		bg.remove();
		im.remove();
	}

	div=document.createElement('div')
	div.className='imglayeropis';
	div.innerHTML=opis;
	img=document.createElement('img');
	img.onload=function()
	{
		if (opis!='') im.object.appendChild(div);
		im.show();
	}
	im.object.appendChild(img);
	img.src=file;
}


/*
function img_zoom(file)
{
	date=file.split('|');
	if (!date[0]) return false;
	file=date[0];
	if (date[1])
		opis=date[1];
	else
		opis='';
	bg = new Layer('bglayer');
	bg.fullScreen();
	im = new Layer('imglayer',true);
	bg.object.onclick=function ()
	{
		bg.remove();
		im.remove();
	}
	im.object.onclick=function ()
	{
		bg.remove();
		im.remove();
	}

	div=document.createElement('div')
	div.className='imglayeropis';
	div.innerHTML=opis;
	img=document.createElement('img');
	img.src=file;
	img.onload=function()
	{
		im.object.appendChild(img);
		if (opis!='') im.object.appendChild(div);
		im.show();
	}
}*/

