public void getFirstLinks(ArrayList<Integer> theCodes) throws IOException{
		 boolean linkFound =false;
	        String temp = null;
	    	String theUrl = "http://e-radio.gr/player/player.asp?sID=";
	    	Document doc;

			for(int code : theCodes){	
				linkFound=false;
	        	theUrl = "http://e-radio.gr/player/player.asp?sID="+code;

				doc = parseUrl(theUrl, 0);
				if (doc!=null){
			        Elements media = doc.select("[src]");
			        print("Fetching %s -->  ", theUrl);
			            
			        for (Element src : media){
			        	if (src.tagName().equals("iframe")==true){
			        		temp = src.attr("abs:src");
			        		if(temp.contains("playerX")==true){	
			        			linkFound=true;
			        			temp = temp.replace(" ", "%");
			        			stationLinks1.add(temp);
								break;//link found no need to check another src on this url
			        		}
			        	}else if (src.tagName().equals("embed")==true){
			        		linkFound=true;
			        		temp =  src.attr("abs:src");
			        		temp = temp.replace(" ", "%");
			        		stationLinks1.add(temp);
			        		break;//link found no need to check another src on this url
			        	}  		
			        }//end nested for 
			        if(linkFound==false) {
						print("Unprocessed, no iframe - embed tag for url: %s", theUrl);
						unProsessedLinks.add(theUrl);
						continue;		
			        }
				}else{
					print("Unprocessed, no connection for url: %s", theUrl);
					unProsessedLinks.add(theUrl);
					continue;								
				}
	        }//end outer for		
			print("Unprosessed Links: %s",  unProsessedLinks.size());
			print("Processed Links: %s", stationLinks1.size());
			//write all the links to the disk
			writeLinksToFile(linksFileName, stationLinks1);
			writeLinksToFile(unProcLinksFileName, unProsessedLinks);
	 }//end method