function man_giuntios_catalog_focus_init() {
  
  var MODULE_URL = null;
  $('script').map(function(i) { 
    if (this.src.match(/man_giuntios_catalog_focus_init\.js(\?.*)?$/)) {
      MODULE_URL = this.src.replace(/\/man_giuntios_catalog_focus_init\.js(\?.*)?$/, '');
    }
  });  

  $("*[sancho_entity_type='ManGiuntiOsCatalogFocus']").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();  
        var params = '';        
        params += 'sancho_entity_id=' + $(this).attr('sancho_entity_id');
        params += '&sancho_content_slot_id=' + $(this).parent().attr('sancho_entity_id');      
        params += '&sancho_page_area_name=' + $(this).parent().parent().attr('id'); 
        ///////////// START ACTIONS //////////////
        var credits = 'module: _ product focus _ v.0.1 _ vendor: _ <a href="http://www.manadv.com">man</a> _ last update: _ 30-12-09';
        Camargue.Tooltip.addBlockTitle('Product focus');  
        if ($(this).parent().parent().attr('id')!='content_sidebar'){
        	Camargue.Tooltip.addLink('Edit', MODULE_URL + '/edit.php' + '?' + params, credits, {type: 'edit', modalWidth: 550, modalHeight: 110, modalName: 'man_giuntios_catalog_focus_edit'});
        } 
        Camargue.Tooltip.addLink('Remove', MODULE_URL + '/remove.php' + '?' + params, credits, {type: 'delete', modalWidth: 450, modalHeight: 110, modalName: 'man_giuntios_catalog_focus_remove'}); 
		///////////// END ACTIONS ///////////////
      	Camargue.Tooltip.show(e);
      }            
    });
    $('*').click(function(){
    	Camargue.Tooltip.hide(); 
    });    
    //////////////////////// END TOOLTIP //////////////////////////                  
	});
  
  
  
  
  /////////////////////////// HOMEPAGE //////////////////////////////
	// box_novita_01
  if (!$("#box_novita_01").find("*[sancho_entity_type='ManGiuntiOsCatalogFocus']").length) {
    var MODULE_URL = null;
    $('script').map(function(i) { 
      if (this.src.match(/man_giuntios_catalog_focus_init\.js(\?.*)?$/)) {
        MODULE_URL = this.src.replace(/\/man_giuntios_catalog_focus_init\.js(\?.*)?$/, '');
      }
    });
    $("#box_novita_01").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: _ product focus _ v.0.1 _ vendor: _ <a href="http://www.manadv.com">man</a> _ last update: _ 30-12-09';
          Camargue.Tooltip.addBlockTitle('Product focus');  
        	Camargue.Tooltip.addLink('Add', '/SANCHO_MODULES/man/man_giuntios_catalog/dashboard.php?mode=browse&target_type=focus&sancho_page_id=' + Sancho.curPageId + '&sancho_page_area_name=box_novita_01', credits, {type: 'add', modalWidth: 800, modalHeight: 500, modalName: 'man_giuntios_catalog'});
    ///////////// END ACTIONS ///////////////
        	Camargue.Tooltip.show(e);
        }            
      });
      $('*').click(function(){
      	Camargue.Tooltip.hide(); 
      });    
      //////////////////////// END TOOLTIP //////////////////////////                  
   });
	}   
	
	// box_promozioni_01
  if (!$("#box_promozioni_01").find("*[sancho_entity_type='ManGiuntiOsCatalogFocus']").length) {
    var MODULE_URL = null;
    $('script').map(function(i) { 
      if (this.src.match(/man_giuntios_catalog_focus_init\.js(\?.*)?$/)) {
        MODULE_URL = this.src.replace(/\/man_giuntios_catalog_focus_init\.js(\?.*)?$/, '');
      }
    });
    $("#box_promozioni_01").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: _ product focus _ v.0.1 _ vendor: _ <a href="http://www.manadv.com">man</a> _ last update: _ 30-12-09';
          Camargue.Tooltip.addBlockTitle('Product focus');  
        	Camargue.Tooltip.addLink('Add', '/SANCHO_MODULES/man/man_giuntios_catalog/dashboard.php?mode=browse&target_type=focus&sancho_page_id=' + Sancho.curPageId + '&sancho_page_area_name=box_promozioni_01', credits, {type: 'add', modalWidth: 800, modalHeight: 500, modalName: 'man_giuntios_catalog'});
    ///////////// END ACTIONS ///////////////
        	Camargue.Tooltip.show(e);
        }            
      });
      $('*').click(function(){
      	Camargue.Tooltip.hide(); 
      });    
      //////////////////////// END TOOLTIP //////////////////////////                  
   });
	}   
	
	
	// box_focuson_01
  if (!$("#box_focuson_01").find("*[sancho_entity_type='ManGiuntiOsCatalogFocus']").length) {
    var MODULE_URL = null;
    $('script').map(function(i) { 
      if (this.src.match(/man_giuntios_catalog_focus_init\.js(\?.*)?$/)) {
        MODULE_URL = this.src.replace(/\/man_giuntios_catalog_focus_init\.js(\?.*)?$/, '');
      }
    });
    $("#box_focuson_01").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: _ product focus _ v.0.1 _ vendor: _ <a href="http://www.manadv.com">man</a> _ last update: _ 30-12-09';
          Camargue.Tooltip.addBlockTitle('Product focus');  
        	Camargue.Tooltip.addLink('Add', '/SANCHO_MODULES/man/man_giuntios_catalog/dashboard.php?mode=browse&target_type=focus&sancho_page_id=' + Sancho.curPageId + '&sancho_page_area_name=box_focuson_01', credits, {type: 'add', modalWidth: 800, modalHeight: 500, modalName: 'man_giuntios_catalog'});
    ///////////// END ACTIONS ///////////////
        	Camargue.Tooltip.show(e);
        }            
      });
      $('*').click(function(){
      	Camargue.Tooltip.hide(); 
      });    
      //////////////////////// END TOOLTIP //////////////////////////                  
   });
	}   
	
	
	
	
	
	
	
} 
