@SuppressWarnings("static-access")
private void showDocument(Document doc) {
	StringBuffer content = new StringBuffer();
	Node node = doc.getChildNodes().item(0);
	newFirmNode firmNode = new newFirmNode(node);
	
	content.append("Название фирмы \n");

    List<officeNode> offices = firmNode.getOffices();
    //инициализация окон приложения
    RedirectPanel = new Redirect();

    SecondPageDisplay = new SecondPageDisplay();
    FirstPageDisplay = new FirstPageDisplay(SecondPageDisplay, container,offices);

    RedirectSecondPage = new SecondPageDisplay();
    RedirectFirstPage = new FirstPageDisplay(RedirectSecondPage,RedirectPanel.GetCont(),offices);

   
	RedirectSecondPage.set(RedirectFirstPage,RedirectPanel.GetCont());
	RedirectFirstPage.Layout(0);

	SecondPageDisplay.set(FirstPageDisplay, container);
	FirstPageDisplay.Layout(0);
	
	Phone = new Phone();
    Phone.CreatePhone();
    validate();
    

    //загрузка данных для подписей "истории звонков"
	for (int i = 0; i < offices.size(); i++) {
		officeNode officeNode = offices.get(i);
   	    List<positionNode> position = officeNode.getPosition();
	    for (int j=0; j < position.size();j++) {
	    	positionNode positionNode = position.get(j);
	    	List<infoNode> info = positionNode.getInfo();
	        List<String> newList = new ArrayList<String>();
			String name = info.get(0).getName(); 
            String number = info.get(1).getNumber(); 
            String photo = info.get(2).getPhoto(); 
            newList.add(name);
            newList.add(photo);
            Phone.numbers.put(number, newList);
            j+=1;
	    }
	}

 }