var path = "http://www.ziclon.spb.ru/nohtml/";

function cell(sh_height,did3,height,width,sh_width,k,time,res,size){

	var k = k + 1;
	   
	document.write('<td align=center width=',df['cell_size'],'>');

	if (df['shadow'] == 'on'){
		document.write('<table border=0 cellpadding=0 cellspacing=0><tr><td colspan=2>');
	}

	document.write('<a><img src="',path,'',df['did'],'/thumbs/',df['did2'],'_',(k - 1),'.',df['ext'],'" border=0 onclick="clickimg(',did3,',',k,',',height,',',width,')"><a>');
	
	if (df['shadow'] == 'on'){
		document.write('</td><td><img src="',path,'lang/pix/sh1.gif" width="6" height="7" border=0><br><img src="',path,'lang/pix/sh2.gif" width="6" height="',sh_height,'" border=0></td></tr>');
		document.write('<tr><td width="7"><img src="',path,'lang/pix/sh3.gif" width="7" height="6" border=0></td><td><img src="',path,'lang/pix/sh4.gif" width="',sh_width,'" height="6" border=0></td><td width="6"><img src="',path,'lang/pix/sh5.gif" width="6" height="6" border=0></td></tr></table>');
	}

	document.write('</td>');

	if (df['props'] == 1){
		document.write('<td align=center width=50>',time,'<br><br>',res,'<br>',size,'Kb</td>');
	}

}

function clickimg(did3,k,h,w) {

window.open(path+'fotos.php'+'?did='+df['did']+'&cat='+did3+'&id='+k+'&page='+df['page'],'','menubar=no,toolbar=no,location=no,directories=no,status=no,width='+w+',height='+h);
}

function show_pic(did, did2, did3, id, page, parent, text, ext, hsize, wsize, shadow){
document.write('<table border=0 cellpadding=0 cellspacing=0 align=center>');                    
document.write('<tr><td onclick=window.close(); valign=bottom align=right><img src="',did,'/',did2,'_',id,'.',ext,'" border=0></td></tr></table>');
}
