<!--

//--[ Массив картинок шаблона ]-------------------------------------------------
    var imgfile=new Array(
      'logo.gif',      // 0
      'topbg.gif',     // 1
      '1x1.gif',       // 2
      'gb.gif',        // 3
      'map.gif',       // 4
      'find.gif',      // 5
      'line.gif',      // 6
      'url.gif',       // 7
      'fileatt.gif',   // 8
      'auth.gif');     // 9

//--[ Массив глобальных ссылок ]------------------------------------------------
    var links=new Array(
      'gb',
      'map',
      '/abit30.nsf/section/sitesearch.html',
      'http://www.univer.omsk.su/',
      '?OpenDatabase&login');

//--[ Глобальные переменные ]---------------------------------------------------
    var firstbar = 0;

//--[ Функция возвращает URL для картинки из массива ]--------------------------
function imgURL(n)
 {
  return '/'+DBName+'/files/' + imgfile[n] + '/$FILE/' + imgfile[n];
 }

//--[ Функция возвращает URL для переданного имени картинки ]-------------------
function picURL(n)
 {
  return '/'+DBName+'/files/' + n + '/$FILE/' + n;
 }

//--[ Процедура вывода хтмл кода от <body> до начала большого столбца ]---------
function BeginPage(logoURL)
 {
  document.write('<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">');
  document.write(' <tr>');
  document.write('  <td width="130" valign="top"><form method="post" action="'+'/'+DBName+links[4]+'">');
  document.write('   <table border="0" cellpadding="0" cellspacing="0">');
  document.write('    <tr><td><a href="'+logoURL+'"><img src="'+imgURL(0)+'" width="130" height="60" border="0" align="top" alt="Логотип ОмГУ"></a></td></tr>');
  document.write('    <tr><td><img src="'+imgURL(2)+'" width="1" height="10"></td></tr>');
  document.write('    <tr><td align="left"><img src="'+imgURL(2)+'" width="15" height="1"><input type="image" src="'+imgURL(9)+'" width="93" height="16" border="0" alt="Авторизация"></td></tr>');
//  document.write('    <tr><td align="left"><img src="'+imgURL(2)+'" width="15" height="16"></td></tr>');
//  document.write('    <tr><td align="left"><img src="'+imgURL(2)+'" width="15" height="1"><a href="'+links[0]+'"><img src="'+imgURL(3)+'" width="102" height="16" border="0" alt="Гостевая книга"></a></td></tr>');
//  document.write('    <tr><td align="left"><img src="'+imgURL(2)+'" width="16" height="1"><a href="'+links[1]+'"><img src="'+imgURL(4)+'" width="86" height="16" border="0" alt="Карта портала"></a></td></tr>');
//  document.write('    <tr><td><img src="'+imgURL(2)+'" width="1" height="10"></td></tr>');
  document.write('    <tr><td align="left"><img src="'+imgURL(2)+'" width="16" height="1"><a href="'+links[2]+'"><img src="'+imgURL(5)+'" width="46" height="16" border="0" alt="Поиск"></a></td></tr>');

  document.write('    <tr><td><img src="'+imgURL(2)+'" width="1" height="10"></td></tr>');
  document.write('    <tr><td align="center"><img src="'+imgURL(6)+'" width="108" height="2"></td></tr>');
  document.write('   </table></form> ');
  document.write('  </td>');
  document.write('  <td width="14"><img src="'+imgURL(2)+'" width="14" height="1" border="0" alt="10x1"></td>');
  document.write('  <td width="100%" valign="top"><img src="'+imgURL(2)+'" width="1" height="10" border="0" alt="10x1"><br>');
  document.write('   <table border="0" cellpadding="0" cellspacing="0" width="100%" height="98%">');
  document.write('    <tr><td>');

 }


function Head(title,SiteURL)
 {
  document.write('<!-- Заголовок -->');
  document.write('   <table border="0" cellpadding="0" cellspacing="0" width="100%" background="'+imgURL(1)+'">');
  document.write('    <tr><td>');
  document.write('   <table border="0" cellpadding="0" cellspacing="0" width="100%" background="'+imgURL(2)+'">');
  document.write('    <tr>');
  document.write('     <td width="1"><img src="'+imgURL(2)+'" width="10" height="32"></td>');
  document.write('     <td width="400" valign="bottom"><font class="title">'+title+'</font></td>');
  document.write('     <td><img src="'+imgURL(2)+'" width="1" height="1"></td>');
  document.write('     <td width="138" valign="top" align="right"><a href="'+SiteURL+'"><img src="'+imgURL(7)+'" width="145" height="23" border="0" align="top" alt="Главный урл портала '+SiteURL+'"></a></td>');
  document.write('    </tr>');
  document.write('    <tr>');
  document.write('     <td width="1"><img src="'+imgURL(2)+'" width="1" height="1"></td>');
  document.write('     <td width="400"><img src="'+imgURL(2)+'" width="400" height="1"></td>');
  document.write('    </tr>');
  document.write('   </table> ');
  document.write('    </td></tr>');
  document.write('   </table> ');
  document.write('<!-- Заголовок -->');
 }

function Spec1()
 {
  document.write('<!---------------------------------------------------------------------------->');
  document.write('     </td>');
  document.write('    </tr>');
  document.write('    <tr>');
  document.write('     <td height="100%" valign="top">');
  document.write('<!---------------------------------------------------------------------------->');
 }

function Spec2()
 {
  document.write('<!---------------------------------------------------------------------------->');
  document.write('     </td>');
  document.write('    </tr>');
  document.write('    <tr>');
  document.write('     <td>');
  document.write('<!---------------------------------------------------------------------------->');
 }

function Spec3()
 {
  document.write('<!---------------------------------------------------------------------------->');
  document.write('     </td></tr></table> ');
  document.write('<!---------------------------------------------------------------------------->');
 }

function EndPage()
 {
  document.write('  </td>');
  document.write('  <td width="10"><img src="'+imgURL(2)+'" width="10" height="1" border="0" alt="10x1"></td>');
  document.write(' </tr>');
  document.write(' </table> ');
 }

function BottomHead(date, email)
 {
  document.write('<!-- Емайл приёмной комиссии -->');
  document.write('   <table border="0" cellpadding="0" cellspacing="0" width="100%">');

  document.write('    <tr>');
  document.write('      <td><img src="'+imgURL(2)+'" width="1" height="20"></td>');
  document.write('    </tr>');
  document.write('    <tr>');
  document.write('      <td bgcolor="#f19cb2"><img src="'+imgURL(2)+'" width="1" height="2"></td>');
  document.write('    </tr>');
  document.write('    <tr>');
  document.write('      <td>');
  document.write('<table border="0" width="100%" cellpadding="0" cellspacing="10">');
  document.write(' <tr>');
  document.write('<td align="center">');
  document.write('<font class="rtext">За дополнительной информацией можно обращаться по e-mail: <A href="mailto:abit@univer.omsk.su">abit@univer.omsk.su</A>');
  document.write('</font>');
  document.write('</td>');
  document.write('</tr>');
  document.write('</table>');
  document.write('</td>');
  document.write('    </tr>');


//  document.write('    <tr>');
//  document.write('      <td><img src="'+imgURL(2)+'" width="1" height="20"></td>');
//  document.write('    </tr>');

  document.write('    <tr>');
  document.write('      <td bgcolor="#f19cb2"><img src="'+imgURL(2)+'" width="1" height="2"></td>');
  document.write('    </tr>');
  document.write('    <tr>');
  document.write('      <td>');
  document.write('<center>');
  document.write('<table border="0" width="100%">');
  document.write(' <tr>');
  document.write('  <td align="left">');
  document.write('<font size="1" face="Times New Roman">Web site создан 11 ноября 1996 года.<br>');
  document.write('Copyright &copy; 1996 Омский государственный университет<br></font>');
  document.write('</td>');
  document.write('<td align="right">');
  document.write('<font size="1" face="Times New Roman">По вопросам портала обращаться к <A href="mailto:'+email+'">webmaster`у</A>.&nbsp;&nbsp;&nbsp;<br>');
  document.write('Страничка последний раз была изменена: '+date+'.&nbsp;&nbsp;&nbsp;<br></font>');
  document.write('</td>');
  document.write('</tr>');
  document.write('</table>');
  document.write('</center>');
  document.write('</td>');
  document.write('    </tr>');
  document.write('   </table> ');
  document.write('<!-- Нижняя шапочка -->');
 }

function SectionProc(title,url,icon,desc)
 {
  document.write('   <table border="0" cellpadding="0" cellspacing="0" width="100%">');
  document.write('    <tr>');
  document.write('      <td colspan="3">');
  document.write('   <table border="0" cellpadding="0" cellspacing="0" width="100%">');
  document.write('    <tr>');
  document.write('      <td width="46"><img src="'+icon+'" width="40" height="40" align="right"></td>');
  document.write('      <td width="100%"><a href="'+url+'"><font class="rtitle">'+title+'</font></a></td>');
  document.write('    </tr>');
  document.write('   </table> ');
  document.write('      </td>');
  document.write('    </tr>');
  document.write('    <tr>');
  document.write('      <td width="8"><img src="'+imgURL(2)+'" width="8" height="1"></td>');
  document.write('      <td width="100%">');
  document.write('        <font class="rtext">'+desc+'</font>');
  document.write('      </td>');
  document.write('      <td width="8"><img src="'+imgURL(2)+'" width="8" height="1"></td>');
  document.write('    </tr>');
  document.write('   </table>');

 }


function PageAnnounce(title, url, pic, time)
 {
  document.write('   <p align=left> <img src="'+pic+'" border=0><font size=2><a href="'+url+'">'+title+'</a></font>&nbsp;<font size=1> ['+time+']</font><br>');
 }

function MiniBox()
 {
  document.write('   <table border="0" cellpadding="0" cellspacing="0" width="170">');
  document.write('    <tr>');
  document.write('      <td colspan="3" bgcolor="#b40834">');
  document.write('   <!-- -->');
  document.write('   <table border="0" cellpadding="0" cellspacing="0" width="170">');
  document.write('    <tr>');
  document.write('      <td width="100%"><font class="btitle"> &nbsp; Авторизация</font></td>');
  document.write('      <td><img src="http://localhost/y.gif" width="30" height="22" align="right"></td>');
  document.write('    </tr>');
  document.write('   </table> ');
  document.write('   <!-- -->');
  document.write('      </td>');
  document.write('    </tr>');
  document.write('    <tr>');
  document.write('      <td bgcolor="#FDF7F9"><img src="'+imgURL(2)+'" width="8" height="1"></td>');
  document.write('      <td bgcolor="#FDF7F9"><img src="'+imgURL(2)+'" width="152" height="4"></td>');
  document.write('      <td bgcolor="#FDF7F9"><img src="'+imgURL(2)+'" width="8" height="1"></td>');
  document.write('    </tr>');
  document.write('    <tr>');
  document.write('      <td bgcolor="#FDF7F9" width="8"></td>');
  document.write('      <td bgcolor="#FDF7F9" width="152"><font class="btext">&nbsp; &nbsp;  Будьте понятнее и проще. Ведь каждому известно, что с точки зрения банальной эрудиции не всякий локально селектированный индивидуум способен игнорировать тенденции потенциальных эмоций и паритетно аллоцировать амбивалентные кванты логистики, экстрагируемой с учетом антропоморфности эвристического генезиса.</font></td>');
  document.write('      <td bgcolor="#FDF7F9" width="8"></td>');
  document.write('    </tr>');
  document.write('    <tr>');
  document.write('      <td bgcolor="#FDF7F9" colspan="3"><img src="'+imgURL(2)+'" width="1" height="4"></td>');
  document.write('    </tr>');
  document.write('    <tr>');
  document.write('      <td bgcolor="#b40834" colspan="3"><img src="'+imgURL(2)+'" width="1" height="2"></td>');
  document.write('    </tr>');
  document.write('   </table> ');
  document.write('   <img src="'+imgURL(2)+'" width="1" height="8"><br>');
 }

function BoxObjectProc(title, icon, body)
 {
  if (firstbar != 0) {
  document.write('</font></td>');
  document.write('      <td bgcolor="#FDF7F9" width="8"><img src="'+imgURL(2)+'" width="8" height="1"></td>');
  document.write('    </tr>');
  document.write('    <tr>');
  document.write('      <td bgcolor="#FDF7F9" colspan="3"><img src="'+imgURL(2)+'" width="1" height="4"></td>');
  document.write('    </tr>');
  document.write('    <tr>');
  document.write('      <td bgcolor="#b40834" colspan="3"><img src="'+imgURL(2)+'" width="1" height="2"></td>');
  document.write('    </tr>');
  document.write('   </table> ');
  document.write('   <img src="'+imgURL(2)+'" width="1" height="8"><br>');
   }
  document.write('   <table border="0" cellpadding="0" cellspacing="0" width="170">');
  document.write('    <tr>');
  document.write('      <td colspan="3" bgcolor="#b40834">');
  document.write('   <!-- -->');
  document.write('   <table border="0" cellpadding="0" cellspacing="0" width="170">');
  document.write('    <tr>');
  document.write('      <td width="100%"><font class="btitle">'+title+'</font></td>');
  document.write('      <td><img src="'+icon+'" width="30" height="22" align="right"></td>');
  document.write('    </tr>');
  document.write('   </table> ');
  document.write('   <!-- -->');
  document.write('      </td>');
  document.write('    </tr>');
  document.write('    <tr>');
  document.write('      <td bgcolor="#FDF7F9"><img src="'+imgURL(2)+'" width="8" height="1"></td>');
  document.write('      <td bgcolor="#FDF7F9"><img src="'+imgURL(2)+'" width="152" height="4"></td>');
  document.write('      <td bgcolor="#FDF7F9"><img src="'+imgURL(2)+'" width="8" height="1"></td>');
  document.write('    </tr>');
  document.write('    <tr>');
  document.write('      <td bgcolor="#FDF7F9" width="8"><img src="'+imgURL(2)+'" width="8" height="1"></td>');
  document.write('      <td bgcolor="#FDF7F9" width="152"><font class="btext">'+body);
  firstbar = 1;

 }

function EndBarColumn()
 {
  document.write('</font></td>');
  document.write('      <td bgcolor="#FDF7F9" width="8"></td>');
  document.write('    </tr>');
  document.write('    <tr>');
  document.write('      <td bgcolor="#FDF7F9" colspan="3"><img src="'+imgURL(2)+'" width="1" height="4"></td>');
  document.write('    </tr>');
  document.write('    <tr>');
  document.write('      <td bgcolor="#b40834" colspan="3"><img src="'+imgURL(2)+'" width="1" height="2"></td>');
  document.write('    </tr>');
  document.write('   </table> ');
  document.write('   <img src="'+imgURL(2)+'" width="1" height="8"><br>');
 }

function BeginContent()
 {
  document.write('   <table border="0" cellpadding="0" cellspacing="0" width="100%">');
  document.write('    <tr>');
  document.write('     <td valign="top" width="100%"><img src="'+imgURL(2)+'" width="1" height="15"><br>');
 }

function AddColContent()
 {
  document.write('     </td>');
  document.write('     <td width="170" valign="top">');
 }

function EndContent()
 {
  document.write('     </td>');
  document.write('    </tr>');
  document.write('    <tr>');
  document.write('     <td width="450"><img src="'+imgURL(2)+'" width="450"  height="1"></td>');
  document.write('    </tr>');
  document.write('   </table> ');
 }

function EndContent1()
 {
  document.write('');
 }

function AttachAnnounceBegin(title)
 {
  document.write('   <table border="0" cellpadding="0" cellspacing="0" width="100%">');
  document.write('    <tr>');
  document.write('      <td><img src="'+imgURL(2)+'" width="1" height="20"></td>');
  document.write('    </tr>');
  document.write('    <tr>');
  document.write('      <td bgcolor="#f19cb2"><img src="'+imgURL(2)+'" width="1" height="2"></td>');
  document.write('    </tr>');
  document.write('    <tr>');
  document.write('      <td>');
  document.write('  <table border="0" width="100%">');
  document.write('   <tr>');
  document.write('    <td align="left">');
  document.write('      <font class="attachinfo">'+title+'</font>');
  document.write('    </td>');
  document.write('   </tr>');
  document.write('   <tr>');
  document.write('    <td>');
  document.write('     <table border="0" width="100%" cellpadding="2" cellspacing="3">');
  document.write('      <tr>');
 }

function Attach(url, fname)
 {
  document.write(' <td align="center"><a href="'+url+'" class="attachlink"><img src="'+imgURL(8)+'" width="23" border="0" height="32" alt="'+fname+'"><br>'+fname+'</a></td>');
 }

function AttachAnnounceEnd()
 {
  document.write('       <td width=100%>&nbsp;</td>');
  document.write('      </tr>');
  document.write('     </table>');
  document.write('    </td>');
  document.write('   </tr>');
  document.write('  </table>');
  document.write(' </td>');
  document.write('</tr>');
  document.write('</table>'); 
 }

//-->
