inum=1;

function ResStart(_name,_href,_file) {
document.write('<table border="1" cellspacing="0" cellpadding="5" width="100%"><tr valign="top"><td height="20" colspan="2" bgcolor="'+color_back+'"><a href="'+_href+'"><b>'+_name+'</b></a></td></tr>');
document.write('<tr valign="top"><td width="130" height="70" align="center" valign="middle"><a href="'+_href+'"><img src="/cnt/res/'+_file+'" border="1"></a></td><td width="100%"><p class="textjf">');
}

function ResEnd() {
document.write('</p></td></tr></table>');
}

function SetFooter(_responsible,_date) {
headerWinEmpty(color_main);
document.write('<div class="textsmb" align="right">Ответственный за содержание страницы: <b>'+_responsible+'</b></div>');
document.write('<hr>');
document.write('<div class="textsmb" align="right">Последние обновление: <b>'+_date+'</b></div>');
footerWinEmpty();
}

function ResourceDef(_href,_name,_file) {
document.write('<table border="1" cellspacing="0" cellpadding="5" width="100%">');
//document.write('<td width="130" height="70" align="center" valign="middle"><a href="'+_href+'"><img src="/cnt/res/'+_file+'" border="1"></a></td>');

if (_file != 0)
	document.write('<td width="100%" height="70" bgcolor="'+color_back+'">  <a href="'+_href+'"><img src="/cnt/res/'+_file+'" align="right" border="0">   <a href="'+_href+'"><b>'+_name+'</b></a></td>');

		else
			document.write('<td width="100%" height="70" bgcolor="'+color_back+'"><a href="'+_href+'"><b>'+_name+'</b></a></td>');

document.write('</table>');
}

function SlideImages() {	inum++;
	if (inum>15) {inum=1};	slideshow.src="/img/slide/"+inum+".gif";}

function StartSlide() {
	setInterval("SlideImages()",2000);
}