var Livehelp = function(data){
    var info = new Array();
    this.init = function(data){
        if (!data){
            return ;
        }
        
        info['talk'] = new Array();
        if(data['accountType']){
            jQuery.each(data['accountType'],function(index,value){
                var _tmp = new Array();
                _tmp['accountType']= data['accountType'][index];
                _tmp['account']= data['account'][index];
                _tmp['name']= data['name'][index];
                _tmp['label']= data['label'][index];
                info['talk'].push(_tmp);
            });
        }
        
        info['telephone'] = data['telephone'];
        
        info['other'] = new Array();
        if(data['title']){
            jQuery.each(data['title'],function(index,value){
                var _tmp = new Array();
                _tmp['title']= data['title'][index];
                _tmp['url']= data['url'][index];
                info['other'].push(_tmp);
            });
        }
    };
    
    this.getInfo = function(type){
        return info[type];
    }
    this.init(data);
};

