improved compatability with firefox. Added automatic tree scaling to fit container div