function man_gos_summary_init() {
  
  var MODULE_URL = null;
  $('script').map(function(i) { 
    if (this.src.match(/man_gos_summary_init\.js(\?.*)?$/)) {
      MODULE_URL = this.src.replace(/\/man_gos_summary_init\.js(\?.*)?$/, '');
    }
  });  
  
  $("*[sancho_entity_type='ManGosSummary']").each(function(i) {  
    ////////////////////// START TOOLTIP ///////////////////////  
    $('#camargue_tooltip').unbind('mouseup');
  	$(this).bind('mouseup', function(e) { 
      //this one line will disable the right mouse click menu  
      if(!e.ctrlKey) $(document)[0].oncontextmenu = function() {return false;}       
      var rightclick;
      if (!e) var e = window.event;
      if (e.which) rightclick = (e.which == 3);
      else if (e.button) rightclick = (e.button == 2);
      if (rightclick) {
      	Camargue.Tooltip.hide(); 
        Camargue.Tooltip.keepVisible = true;
        Camargue.Tooltip.empty();     
        ///////////// START ACTIONS //////////////      
      	var credits = 'module: _ link_list _ v.0.3 _ vendor: _ <a href="http://www.manadv.com">man</a> _ last update: _ 07-01-09';
        Camargue.Tooltip.addBlockTitle('Manage summary');  
      	var params = '';          
        params += 'sancho_entity_id=0';           
        params += '&sancho_page_area_name=content_main';
        params += '&summary_id=' + $(this).attr('sancho_entity_id');                 
        Camargue.Tooltip.addLink('Add entry', MODULE_URL + '/edit_entry.php' + '?' + params, credits, {type: 'add', modalWidth: 550, modalHeight: 480, modalName: 'man_gos_summary_edit_entry'}); 
                	                                          
				///////////// END ACTIONS ///////////////
      	Camargue.Tooltip.show(e);
        e.stopPropagation();
      }            
    });
    $('*').click(function(){
    	Camargue.Tooltip.hide(); 
    });    
    //////////////////////// END TOOLTIP //////////////////////////   
	});  

  
  
  
  
  
  $("*[sancho_entity_type='ManGosSummaryEntry']").each(function(i) {  
    ////////////////////// START TOOLTIP ////////////////////////  
    $('#camargue_tooltip').unbind('mouseup');
  	$(this).bind('mouseup', function(e) { 
      //this one line will disable the right mouse click menu  
      if(!e.ctrlKey) $(document)[0].oncontextmenu = function() {return false;}       
      var rightclick;
      if (!e) var e = window.event;
      if (e.which) rightclick = (e.which == 3);
      else if (e.button) rightclick = (e.button == 2);
      if (rightclick) {
      	Camargue.Tooltip.hide(); 
        Camargue.Tooltip.keepVisible = true;
        Camargue.Tooltip.empty();      
        ///////////// START ACTIONS //////////////      
      	var credits = 'module: _ link_list _ v.0.3 _ vendor: _ <a href="http://www.manadv.com">man</a> _ last update: _ 07-01-09';
      	var params = '';        
        params += 'sancho_page_area_name=content_main';    
        params += '&summary_id=' + $(this).parents("*[sancho_entity_type='ManGosSummary']").attr('sancho_entity_id'); 				                       	
      	params += '&sancho_entity_id=' + $(this).attr('sancho_entity_id');        	                       
        Camargue.Tooltip.addBlockTitle('Manage entry');  
        Camargue.Tooltip.addLink('Edit entry', MODULE_URL + '/edit_entry.php' + '?' + params, credits, {type: 'edit', modalWidth: 550, modalHeight: 480, modalName: 'man_gos_summary_edit_entry'}); 
        Camargue.Tooltip.addLink('Remove entry', MODULE_URL + '/remove_entry.php' + '?' + params, credits, {type: 'delete', modalWidth: 450, modalHeight: 110, modalName: 'man_gos_summary_remove_entry'});         
			               
		///////////// END ACTIONS ///////////////
      	Camargue.Tooltip.show(e);
        e.stopPropagation();
      }            
    });
    $('*').click(function(){
    	Camargue.Tooltip.hide(); 
    });    
    //////////////////////// END TOOLTIP //////////////////////////              
	}); 

  
} 

  
