function GraphMenu(graphHandler){
    
    this.graphHandler = graphHandler;

    this.menuItemsOneFid = ['Bid','Ask','Spot','Volatilidad'];
    this.menuItemsTwoFid = ['Bid/Spot','Bid/Volatilidad','Spot/Volatilidad'];
    
    this.recordsCallbackMethod = "$$OnClickRecordItem";
    
    this.addMenuOneFid = true;
    this.addMenuTwoFid = true;
    
    this.addAllMenuGraph = function(){
	    if(this.addMenuOneFid)
	        this.addMenuGraphOneFidItems();
	    if(this.addMenuTwoFid)
	        this.addMenuGraphTwoFidItems();
    }
    
    this.addMenuGraphOneFidItems = function(){
        this.addMenuGraphItems(this.menuItemsOneFid);
        this.addMenuGraphSeparator();
    }
    
    this.enableMenuGraphOneFidItems = function(enabled){
        this.enableMenuGraphItems(this.menuItemsOneFid,enabled);
    }
    
    this.removeMenuGraphOneFidItems = function(){
        this.removeMenuGraphItems(this.menuItemsOneFid);
        this.removeMenuGraphSeparator();
    }
    
    this.addMenuGraphTwoFidItems = function(){
        this.addMenuGraphItems(this.menuItemsTwoFid);
        this.addMenuGraphSeparator();
    }
    
    this.enableMenuGraphTwoFidItems = function(enabled){
        this.enableMenuGraphItems(this.menuItemsTwoFid,enabled);
    }
    
    this.removeMenuGraphTwoFidItems = function(){
        this.removeMenuGraphItems(this.menuItemsTwoFid);
        this.removeMenuGraphSeparator();
    }
    
    this.addRecordItem = function(r,active){
        graphHandler.addCheckboxMenuItem(r,active,true,this.recordsCallbackMethod);
    }
    
    this.removeRecordItem = function(r){
        graphHandler.removeMenuItem(r);
    }
    
    
    this.addMenuGraphItems = function(array){
        for ( var i = 0;i< array.length;i++ ){
            graphHandler.addMenuItem(array[i],true);
        }
    }
    
    this.enableMenuGraphItems = function(array,enabled){
        for ( var i = 0;i< array.length;i++ ){
            graphHandler.enableMenuItem(array[i],enabled);
        }    
    }
    
    this.removeMenuGraphItems = function(array){
        for ( var i = 0;i< array.length;i++ ){
            graphHandler.removeMenuItem(array[i]);
        }
    }
    
    this.addMenuGraphSeparator = function(){
        graphHandler.addMenuItem('-',true);
    }
    
    this.removeMenuGraphSeparator = function(){
        graphHandler.removeMenuItem('-');
    }
}