echo "<img src=\"images/country_flags/".str_replace ( ")" , "" , substr ( strstr ( $key , "(" ) , 1 ) ).".png\" width=\"20\" height=\"13\" alt=\"\" /> ";
echo "<img src=\"images/country_flags/".str_replace ( ")" , "" , substr ( strrchr ( $key , "(" ) , 1 ) ).".png\" width=\"20\" height=\"13\" alt=\"\" /> ";