var mozilla =document.getElementById && !document.all;
var ie =document.all;

function addevent( id, event, callback)
{
  if( ie)
      document.getElementById( id).attachEvent( 'on'+ event, callback);
  else if( mozilla)
      document.getElementById( id).addEventListener( event, callback, true);
  else
    {
      // XXX: fallback???
    }
}

function display( id, dpy)
{
  var elem =document.getElementById( id);
  elem.style.display =dpy;
}

function init( )
{
  addevent( 'anch_1', 'mouseover', function () { display( 'house', 'block'); } );
  addevent( 'anch_1', 'mouseout', function () { display( 'house', 'none'); } );

  addevent( 'anch_2', 'mouseover', function () { display( 'kesis', 'block'); } );
  addevent( 'anch_2', 'mouseout', function () { display( 'kesis', 'none'); } );

  addevent( 'anch_3', 'mouseover', function () { display( 'immobile', 'block'); } );
  addevent( 'anch_3', 'mouseout', function () { display( 'immobile', 'none'); } );

  addevent( 'anch_5', 'mouseover', function () { display( 'duuni', 'block'); } );
  addevent( 'anch_5', 'mouseout', function () { display( 'duuni', 'none'); } );


  addevent( 'anch_4', 'mouseover', function () { display( 'q', 'block'); } );
  addevent( 'anch_4', 'mouseout', function () { display( 'q', 'none'); } );

addevent( 'anch_6', 'mouseover', function () { display( 'cv', 'block'); } );
  addevent( 'anch_6', 'mouseout', function () { display( 'cv', 'none'); } );
  addevent( 'anch_6', 'click', function () {
      foowin =window.open( 'cv.html', 'cv', 'height=512,width=512,left=100,top=100,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes');
    } );


}

