private void setupActionListeners() {


		openBookListener = new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent arg0) {
				mainMenuShowing=false;

				frame.requestFocusInWindow();
				layers.setVisible(true);
				String chosenBook = mainMenuPanel.getChosenBook();
				if(chosenBook!=null)
				{
					setVisible(false);
					XMLParser parser = new XMLParser(chosenBook);
					collection = parser.getCollection();
					slideList = collection.get(0);
					//System.out.println("book = "+chosenBook);
					bookMainPanelSetUp();
					mainMenuPanel.setVisible(false);
				}
			}
		};




		previousSlideListener = new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent arg0) {
				frame.requestFocusInWindow();
				showPreviousSlide();
			}
		};


		nextSlideListener = new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent arg0) {
				frame.requestFocusInWindow();
				showNextSlide();
			}
		};


		cursorTimerTask =	new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				layers.setCursor (blankCursor);
				mainMenuPanel.setCursor(blankCursor);

			}
		};

		resizingTimerTask = new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				if(slidePanel!=null && !mainMenuShowing){
					resizeMainPanel();
				}
				if(mainMenuShowing){
					resizeMainMenu();
				}
			}
		};

		layersMouseListener =	new MouseAdapter(){
			@Override
			public void mouseMoved(MouseEvent e1){
				layers.setCursor(swordCursor);
				borderListenerProcess(e1,false,false,false);
				mouseMovedOnSlide();

			}
		};


		mainMenuMouseListener = new MouseAdapter() {
			@Override
			public void mouseMoved(MouseEvent e) {
				mainMenuPanel.setCursor(swordCursor);
				if(cursorTimer.isRunning()){
					cursorTimer.stop();
				}
				cursorTimer.start();
			}
		};



	}