private void downloadPictures(int indexOfPicture)
	{
		try
		{
			File picturesDir = null;
			URL aURL = new URL("http://www.cc.kyoto-su.ac.jp/~atsushi/Programs/CSV2HTML/PrimeMinisters/"+url+"0"+indexOfPicture+".jpg");

			InputStream inputStream = aURL.openStream();

			if(url == "images/")
			{
				picturesDir = new File(IO.directoryOfPages(),"images");
				if(picturesDir.exists());
				else picturesDir.mkdirs();
			}
			else if(url == "thumbnails/")
			{
				picturesDir = new File(IO.directoryOfPages(),"thumbnails");
				if(picturesDir.exists());
				else picturesDir.mkdirs();
			}
			File aFile = new File(picturesDir,"0"+indexOfPicture+".jpg");
			FileOutputStream outputStream = new FileOutputStream(aFile,false);

			byte[] bytes = new byte[512];
			int b;
			while((b = inputStream.read(bytes)) != -1)
			{
				outputStream.write(bytes,0,b);
			}
			outputStream.close();
			inputStream.close();
		}
		catch (FileNotFoundException e) {e.printStackTrace();}
		catch (MalformedURLException e) {e.printStackTrace();}
		catch (IOException e) {e.printStackTrace();}
		catch (Exception e) {e.printStackTrace();}
	}