private int GenerateY(Object obj)
    {
    	if (obj.getClass().equals(DynamicImagePanel.class))
    	{
    		int Y = ((DynamicImagePanel)obj).getY();
    		int height = ((DynamicImagePanel)obj).getHeight();
    		int finalY = (height/2) + Y;
    		return finalY;
    	}
    	else if (obj.getClass().equals(TickerPanel.class))
    	{
    		int Y = ((TickerPanel)obj).getY();
    		int height = ((TickerPanel)obj).getHeight();
    		int finalY = (height/2) + Y;
    		return finalY;
    	}
    	else if (obj.getClass().equals(ImageButton.class))
    	{
    		int Y = ((ImageButton)obj).getParent().getY();
    		int height = ((ImageButton)obj).getHeight();
    		int finalY = (height/2) + Y;
    		return finalY;
    	}
    	else {
    		System.out.println("GenerateY Error");
    		System.exit(0);
    		return 0;
    	}
    }