You have there is a constructor, not a class. That makes the inner functions to be the methods of the object, not the methods of the constructor.
That makes the token this to have different meanings, according to the scope. And there is a difference between the function declaration and the function expression.
this.setPanStyleByName = function(idName,t,r,b,l,i100)
this.setPanStyleByNode = function(o,t,r,b,l,i100)