function cell(sh_height, sh_width, k, time, res, size, file){

	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 href="',df['parent'],'?did=',df['did'],'&id=',k,'&page=',df['page'],'" OnMouseOver="window.status=\'',df['text'],' ',k,'\'; return true" onfocus="this.blur()">');

	// if renaming is off, insert filename
	if (file != 0){
		document.write('<img src="',df['did'],'/thumbs/',file,'.',df['ext'],'" border=0></a>');
	}
	else {
		document.write('<img src="',df['did'],'/thumbs/',df['did'],'_',(k - 1),'.',df['ext'],'" border=0></a>');
	}

	if (df['shadow'] == 'on'){
		document.write('</td><td><img src="lang/pix/sh1.gif" width="6" height="7" border=0><br><img src="lang/pix/sh2.gif" width="6" height="',sh_height,'" border=0></td></tr>');
		document.write('<tr><td width="7"><img src="lang/pix/sh3.gif" width="7" height="6" border=0></td><td><img src="lang/pix/sh4.gif" width="',sh_width,'" height="6" border=0></td><td width="6"><img src="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 show_pic(did, id, page, parent, text, ext, hsize, wsize, shadow, file){

	document.write('<table border=0 cellpadding=0 cellspacing=0>');
	document.write('<tr><td colspan=2 valign=bottom align=right><a href="',parent,'?did=',did,'&page=',page,'" OnMouseOver="window.status=\'',text,'\'; return true" onfocus="this.blur()" title="',text,'">');

	// if renaming is off, insert filename
	if (file != ''){
		document.write('<img src="',did,'/',file,'.',ext,'" border=0></a></td>');
	}
	else {
		document.write('<img src="',did,'/',did,'_',id,'.',ext,'" border=0></a></td>');
	}

	if (shadow == 'on'){
		document.write('<td><img src="lang/pix/sh1.gif" width="6" height="7" border=0><br><img src="lang/pix/sh2.gif" width="6" height="',hsize,'" border=0></td>');
	}

	document.write('</tr>');

	if (shadow == 'on'){
		document.write('<tr><td><img src="lang/pix/sh3.gif" width="7" height="6" border=0></td><td><img src="lang/pix/sh4.gif" width="',wsize,'" height="6" border=0></td><td><img src="lang/pix/sh5.gif" width="6" height="6" border=0></td></tr>');

	document.write('</table>');
	}

}