	function hover(el,color,cursor) {

      firstColor='yellow';
      secondColor='blue';

		if (!el.contains(event.fromElement)) {

              if (color==1) {
			el.style.background = firstColor;
			el.style.cursor = 'hand';
                  }
              else {
			el.style.background = secondColor;
			el.style.cursor = 'hand';
                  }
		}
	}
	
	function unhover(el,color) {

      firstColor='#F1EEEE';
      secondColor='#000099';

		if (!el.contains(event.toElement)) {

              if (color==1) {
			el.style.background = firstColor;
                  }
              else {
			el.style.background = secondColor;
                  }
		}
	}
	

	function mouseclick(el) {
		if (event.srcElement.tagName=='TD')
			el.children.tags('A')[0].click();
	}
	
	function mouseclick2(target) {
         self.location.href=target;
      }

  function setsmiley(which){
  document.newmessage.message.value = document.newmessage.message.value + which;
  document.newmessage.message.focus();
  }

  function setsmiley2(which){
  document.newmessage2.message.value = document.newmessage2.message.value + which;
  document.newmessage2.message.focus();
  }


  function writemail(){
document.write('<a href="mailto:aeroclub%40list%2E%72%75">aeroclub'+'@'+'list.ru</a>');
  }

<!-- Photogallery script (c) 2002 Sergey Kuzmin -->

function MakeWindow(img){

fotodir='images';
fotoname=img;
start=1;
w=(screen.Width-400)/2;
h=(screen.Height-260)/2;
agent = navigator.appName;
if (agent == "Microsoft Internet Explorer") {
window1 = window.open('','myWindow','scrollbars=no,location=no,status=no,width=400,height=260,screenX='+w+',screenY='+h+',top='+h+',left='+w+'');
window1.focus();
window1.document.write('<html><head><'+'m'+'eta http-equiv="Content-Type" content="text/html; charset=windows-1251">');
window1.document.write('<script language="JavaScript">function click(){window.close()};function cl(){document.onmousedown=click;}'+'</'+'script>');
window1.document.write('<title>??????????</title></head>');
window1.document.write('<BODY marginwidth=0 marginheight=0 leftmargin=0 topmargin=0>');
window1.document.write('<p><font color="Silver" size=6 face="Tahoma,Arial,Helvetica"><b><br>');
window1.document.write('&nbsp;&nbsp;???<br>&nbsp;&nbsp;??????????...</p>');
window1.document.write('<p style="position:absolute; left:0px;top:0px">');
window1.document.write('<img src="'+fotodir+'/'+img);
window1.document.write('" width="400" height="260" border="0" alt="" onload="cl()">');
window1.document.write('</a></body></html>');
}
else
{
imgname=fotodir+'/'+fotoname;
window1 = window.open(imgname,'myWindow','scrollbars=no,status=no,width=415,height=275,screenX='+w+',screenY='+h+',top='+h+',left='+w+'');
}

}

function openWindow(banner) {

    if (!window.window1) {
        // has not yet been defined
        MakeWindow (banner);
         }
    else {
        // has been defined
        if (!window1.closed) {
          // still open
            window1.close();
            MakeWindow (banner);
             }
    else {
         MakeWindow (banner);
         }
    }
}


