Added other Program Pages

Added other program pages by using countryid and city in URL. Moved
functions to functions.php.