//<script language="JavaScript">
<!--
  var MAX = 1;
  var img = new MakeArray (MAX);
  function MakeArray(n) {
    for( var i = 0; i < n; i++) {
      this['i'+i] = 0;
    }
    this.maxlen = n ;
    this.len = 0;
    return this;
  }
  function Images ( org, swap ) {
    if( document.images ) {
      this.org = new Image();
      this.org.src = org;
      this.swap = new Image();
      this.swap.src = swap;
    }
  }             
  function Add( name, id ) {
    img[id] = new Images( 'img/'+name + ".gif", 'img/'+name + "_dn.gif" ) ;
  }
  function enter( id ) {
    if( document.images ) {
      document.images[id].src = img[id].swap.src ;
    }
  }
  function out( id ) {
    if( document.images ) {
      document.images[id].src = img[id].org.src ;
    }
  }

function openLicense ( image, w, h )
{
	w = ( w ) ? w : '100';
	h = ( h ) ? h : '100';

	var wo = window.open( '', '_blank', 'width=' + w + ', height=' + h + ', resizable=1, scrollbars=0, menubar=0, titlebar=0, statusbar=0, directories=0' );
	wo.document.write( '<html>\n<head>\n<title>Сертификат</title>\n</head>\n' );
	wo.document.write( '<body bgcolor="#000066" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">\n' );
	wo.document.write( '<A href="javascript:void(0);" onClick="window.close(  );">' );
	wo.document.write( '<IMG src="/img/' + image + '" width="' + w + '" height="' + h + '" hspace="0" vspace="0" border="0">' );
	wo.document.write( '</A>' );
	wo.document.write( '</body>\n' );
	wo.document.write( '</html>\n' );
	wo.focus();
}

  Add( "main", "i0" ) ;
  Add( "news", "i1" ) ;
//  Add( "about", "i2" ) ;
  Add( "objct", "i3" ) ;
  Add( "partn", "i4" ) ;
  Add( "donyck", "i5" ) ;
  Add( "remrk", "i6" ) ;
  Add( "contc", "i7" ) ;
  Add( "vacancy", "i9" ) ;
  Add( "email", "i8" ) ;
// -->
//</script>
