/*

'ЦБС «Лефортово»'


'Информация о наших филиалах'
'Планы мероприятий'
 'Годовой план'
'Март'
 'Апрель'

*/
var cnt;
function OnImClick(im)
{
	s2=im.src.substring(im.src.lastIndexOf('/')+1,im.src.indexOf('_small'));
	window.open('photo.htm?im='+s2, '', 'copyhistory=0, directories=0, location=0, menubar=0, scrollbars=no, status=0, toolbar=0, width='+(screen.availWidth-50)+', height='+(screen.availHeight-50)+', resizable=yes').moveTo(10, 10);; 
}
function OnImIn(im)
{
	im.width=58;
	im.height=37;
}
function OnImOut(im)
{
	im.width=60;
	im.height=39;
}
function InitMenu()
{
  mCells=new Array();
  cnt=6;
  for(i=0;i<cnt;i++)
  {
  	mCells[i]=new Object
  }
  mCells[0].name='1 биография'
  mCells[0].href='page1.htm'
  mCells[1].name='2 фото'
  mCells[1].href='page2.htm'
  mCells[2].name='3 афиша'
  mCells[2].href='page3.htm'
  mCells[3].name='4 пресса'
  mCells[3].href='page4.htm'
  mCells[4].name='5 аудио-видео'
  mCells[4].href='page5.htm'
  mCells[5].name='6 nota bene'
  mCells[5].href='page6.htm'
}
function WriteAvt()
{
document.write('<hr color="#C43B2B" size="1"><table border="0" cellpadding="0" style="border-collapse: collapse" width="100%"><tr><td align="center" width="33%" rowspan="2" nowrap><img border="0" src="img/f1.jpg" width="54" height="54"><br>')
document.write('      <a href="mailto:mwoz@rambler.ru" fprolloverstyle="text-decoration: underline; vertical-align: baseline; " dynamicanimation="fpAnimformatRolloverFP1" onmouseover="rollIn(this)" onmouseout="rollOut(this)" language="Javascript1.2" ><font color="#FFB79C"  size="1">')
document.write('      Михаил Вознесенский</font></a><br>')
document.write('&nbsp;</td><td align="center" width="33%" colspan="2" nowrap><font color="#FFB79C" size="2">')
document.write('      Web-дизайн</font></td><td align="center" width="33%" rowspan="2" nowrap><font color="#FFB79C" size="1"><img border="0" src="img/f2.jpg" width="54" height="54"><br>')
document.write('        <a href="mailto:tdk_music@pochtamt.ru" fprolloverstyle="text-decoration: underline; vertical-align: baseline; " dynamicanimation="fpAnimformatRolloverFP1" onmouseover="rollIn(this)" onmouseout="rollOut(this)"><font color="#FFB79C"  size="1">')
document.write('      Татьяна Королева</font></a></font><br>')
document.write('&nbsp;</td></tr><tr><td align="center" width="17%" nowrap valign="top"><font size="1" color="#FFB79C">')
document.write('        &lt;-программирование</font></td><td align="right" width="16%" nowrap valign="top"><font color="#FFB79C"  size="1">')
document.write('        креатив-&gt;</font></td></tr></table><hr color="#C43B2B" size="1"><p align=center>&nbsp;</p>')
}
function WriteMenu(pos)
{
	str=''
	if(pos==1)str='<hr color="#C43B2B" size="1">'
	str+='<table border="0" cellpadding="0" style="border-collapse: collapse" width="100%" height="40" ><tr>'
	for(i=0;i<cnt;i++)
	{
		if(mCells[i].name!=thisName)
		{
			str+='<td width="'
			str+=100/cnt+'%" align="center" bgcolor="#000000" nowrap><a href="'
			str+=mCells[i].href+'" fprolloverstyle="text-decoration: underline; vertical-align: super; font-weight: bold"  dynamicanimation="fpAnimformatRolloverFP1" onmouseover="rollIn(this)" onmouseout="rollOut(this)" language="Javascript1.2" >'
			str+=mCells[i].name+'</a></td>'
		}
	}
	str+='</tr></table>';
	if(pos==2)str+='<hr color="#C43B2B" size="1"><br>'

	
	document.write(str);
}

function preLoadBackgrounds(){
  for(i=0;i<arguments.length;i++){
    this[i]=new Image()
    this[i].src=arguments[i]
  }
  return this
}

InitMenu()