
// NEED :
// -----------
//
// base.js  lib
//
// **********************************************************************************************************************************************

// target event manager
// ----------------------------
// used by object event manager
// return list of target object
// ----------------------------------
function get_targets( target_list ) {

  var target_objs = new Array();

  if ( target_list.length > 1)
    for ( var i = 0; i < target_list.length; i++ )
      target_objs.push( get_obj_by_id(target_list[i+1]) );
  else target_objs = false;

  return target_objs;
}

// **********************************************************************************************************************************************

function init_first_event() {
  //close_allbox('sub_box');
}

function mouse_click_event( author_obj ) {

  var obj_id = new String();
  obj_id = author_obj.id.substring( author_obj.id.length-4 );
  //obj_id = z_fill(obj_id);

  switch_sub_box( 'sub_box'+obj_id, 'img_ctrl_box'+obj_id  );
}

function mouse_over_event( author_obj ) {

  // target manager on event manager
  target_objs = get_targets(mouse_over_event.arguments);

  // user extra event code - add your code here
  // ----------------------------------------------------------------
  if ( target_objs ) {  }

}


function mouse_out_event( author_obj ) { }

// Extend event manager by user
// **********************************************************************************************************************************************


