private void doMouseOver()
	{
		mouseOver = selected;
		
		Globals.Globals.Type t = mouseOver.getType();
        int id = mouseOver.getID();
        int index=Globals.Parser.getIndexByID(t, id);            
        int nodeId = Globals.Parser.getIDByIndexAndType(t, index);
        
        if (t == Globals.Globals.Type.COMPUTER) {
        	System.out.println("Computer" + nodeId + " selected");
        	Globals.Globals.computerList.get(index).setSelected();
        	devtipComputer = new DeviceToolTipComputer(Globals.Globals.computerList.get(index));
        	devtipComputer.AddRowForComputer(Globals.Globals.computerList.get(index));
        	devtipComputer.refreshSize();
        	add(devtipComputer, 0);
        	devtipComputer.revalidate();
        }
        else if (t == Globals.Globals.Type.HUB){
        	System.out.println("Hub" + nodeId + " selected");
        	Globals.Globals.hubList.get(index).setSelected();
        } 
        else if (t == Globals.Globals.Type.SWITCH){
        	System.out.println("Switch" + nodeId + " selected");
        	Globals.Globals.switchList.get(index).setSelected();
        	devtipSwitch = new DeviceToolTipSwitch(Globals.Globals.switchList.get(index));
        	devtipSwitch.AddRowForSwitch(Globals.Globals.switchList.get(index));
        	devtipSwitch.refreshSize();
        	add(devtipSwitch, 0);
        	devtipSwitch.revalidate();
        }  
        else if (t == Globals.Globals.Type.ROUTER){
          System.out.println("Router" + nodeId + " selected");
          Globals.Globals.routerList.get(index).setSelected();
          Globals.Globals.routerList.get(index).setSelected();
          devtipRouter = new DeviceToolTipRouter(Globals.Globals.routerList.get(index));
          devtipRouter.AddRowForRouter(Globals.Globals.routerList.get(index));
          devtipRouter.refreshSize();
          add(devtipRouter, 0);
          devtipRouter.revalidate();
        }  
        else if (t == Globals.Globals.Type.LINK){
          System.out.println("Link" + nodeId + " selected");
          Globals.Globals.linkList.get(index).setSelected();
        }

    	int newX = (int)selected.getX() + _initX;
        int newY = (int)selected.getBottomRightOfIcon().getY();// + _initY;
        
        //--- Don't move the image off the screen sides
        newX = Math.max(newX, 0);
        //--- Don't move the image off top or bottom
        newY = Math.max(newY, 0);
        
        if (devtipComputer != null)
	    {
	        newX = Math.min(newX, scaleInt(getParent().getWidth()) - devtipComputer.getWidth() - selected.getWidth());
	        newY = Math.min(newY, scaleInt(getParent().getHeight()) - devtipComputer.getHeight() - selected.getHeight());
			devtipComputer.setLocation(newX, newY);
        } else if (devtipSwitch != null)
	    {
	        newX = Math.min(newX, scaleInt(getParent().getWidth()) - devtipSwitch.getWidth() - selected.getWidth());
	        newY = Math.min(newY, scaleInt(getParent().getHeight()) - devtipSwitch.getHeight() - selected.getHeight());
			devtipSwitch.setLocation(newX, newY);
        } else if (devtipRouter != null)
	    {
	        newX = Math.min(newX, scaleInt(getParent().getWidth()) - devtipRouter.getWidth() - selected.getWidth());
	        newY = Math.min(newY, scaleInt(getParent().getHeight()) - devtipRouter.getHeight() - selected.getHeight());
			devtipRouter.setLocation(newX, newY);
        }
        else
        	mouseOver = null;
		selected = null;
	}