  color_main = '#E9EFF6';
  color_sel = '#FFFFFF';

var newwinopened = null;


function newWin(s,w,h,l,t)
{
  if (typeof(w)=='string') { w1 = w } else { w1 = '770' };
  if (typeof(h)=='string') { h1 = h } else { h1 = '470' };
  if (typeof(l)=='string') { l1 = l } else { l1 = '20' };
  if (typeof(t)=='string') { t1 = t } else { t1 = '20' };

  if (newwinopened!=null) {newwinopened.close()}; 
  newwinopened = window.open(s,'new','width='+w1+',height='+h1+',top='+t1+',left='+l1+',status=0,toolbar=0,menubar=0,scrollbars=1,resizable=1,location=0,directories=0');

};


function pictWin(s,w,h,l,t)
{
 if (typeof(w)=='string') { w1 = w } else { w1 = '700' };
  if (typeof(h)=='string') { h1 = h } else { h1 = '470' };
  if (typeof(l)=='string') { l1 = l } else { l1 = '20' };
  if (typeof(t)=='string') { t1 = t } else { t1 = '20' };

  if (newwinopened!=null) {newwinopened.close()}; 
  newwinopened = window.open(s,'new','width='+w1+',height='+h1+',top='+t1+',left='+l1+',status=0,toolbar=0,menubar=0,scrollbars=0,resizable=1,location=0,directories=0');

};

function showPict(s,w,h)
{
  var x=50;
  var y=50;
  
  var corr = 20;
  
  var newImg = new Image();
  newImg.src = s;
  w = w + corr;
  h = h+corr;

  x = (screen.availWidth-w)*0.5;
  y = (screen.availHeight-h)*0.5;
   
  if (newwinopened!=null) {newwinopened.close()}; 
  newwinopened = window.open(s,'new','width='+w+',height='+h+',top='+y+',left='+x+',status=0,toolbar=0,menubar=0,scrollbars=0,resizable=1,location=0,directories=0');

};


function showPict0(s)
{
  var w=770;
  var h=470;
  var x=50;
  var y=50;
  
  var corr = 20;
  
  var newImg = new Image();
  newImg.src = s;
  
  w = newImg.width+corr;
  h = newImg.height+corr;
  
  x = (screen.availWidth-w)*0.5;
  y = (screen.availHeight-h)*0.5;
   
  if (newwinopened!=null) {newwinopened.close()}; 
  newwinopened = window.open(s,'new','width='+w+',height='+h+',top='+y+',left='+x+',status=0,toolbar=0,menubar=0,scrollbars=0,resizable=1,location=0,directories=0');

};


function headerPhoto(n)
{
  for (i=1; i<=n; i++) 
  { document.write('<img src="Images/Photo_Thumbs/lichachev' + i + '.jpg" width="42" height="60" align="absmiddle"> ') 
  }
};


function putHeaderPhotos()
{
  if (screen.availWidth<1024) { n=3 } else { n=8};
  headerPhoto(n)
};



function spacer(n,dir)
{ 
  if (screen.Width>=1024) 
    { document.write('<img src="' + dir + 'Images/Pixel.gif" width="' + n + '" height="1" align="absmiddle">') }

};

