#!/bin/sh

TYPE=$1

LL="${LANG%%_*}"
LL="${LL%%.*}"
LL="${LL%%@*}"
CC="${LANG##*_}"
CC="${CC%%.*}"
CC="${CC%%@*}"

unknown () {
  echo "Unknown link $TYPE"
  exit 1
}

openlink () {
  if [ "$TYPE" = "$1" -a "$2" != "hide" ]; then
    CODE=$(yahoo-get-id)
    if echo $2 | grep -e '\([?&]\)fr=[^&]*'; then
      # replace code
      url=$(echo $2 | sed "s/\([?&]\)fr=[^&]*/\1fr=$CODE/")
    elif echo $2 | grep -e '?'; then
      # append code
      url="$2&fr=$CODE"
    else
      # append code
      url="$2?fr=$CODE"
    fi
    gnome-open $url
    exit 0
  fi
}

home () {
  if [ "$TYPE" = "home" ]; then
    unknown
  fi
}

search () {
  # Don't always use given URL.  Preferred database of these links is the
  # browser's yahoo search link.
  if [ -e "/usr/lib/firefox-addons/searchplugins/yahoo.xml" ]; then
    URL=$(grep 'SearchForm' "/usr/lib/firefox-addons/searchplugins/yahoo.xml" | sed "s|<SearchForm>\(.*\)</SearchForm>|\1|")
    openlink search $URL
  else
    openlink search $1
  fi
}

mail () {
  openlink mail $1
}

travel () {
  openlink travel $1
}

maps () {
  openlink maps $1
}

news () {
  openlink news $1
}

weather () {
  openlink weather $1
}

# Big table of possible specialized links:
case "$LL" in
  'ar')
    home http://ar.intl.dell.yahoo.com
    search http://uk.search.yahoo.com/web?fr=sfp-dellia
    mail "https://login.yahoo.com/config/mail?.intl=uk&.src=ym"
    travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
    maps http://uk.maps.yahoo.com/broadband
    news http://uk.news.yahoo.com/
    weather http://uk.weather.yahoo.com
    ;;
  'cs')
    home http://cs.intl.dell.yahoo.com
    search http://uk.search.yahoo.com/web?fr=sfp-dellia
    mail "https://login.yahoo.com/config/mail?.intl=uk&.src=ym"
    travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
    maps hide
    news http://uk.news.yahoo.com
    weather http://weather.yahoo.com/forecast/EZXX0012.html
    ;;
  'hr')
    home http://hr.intl.dell.yahoo.com
    search http://uk.search.yahoo.com/web?fr=sfp-dellia
    mail "https://login.yahoo.com/config/mail?.intl=uk&.src=ym"
    travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
    maps hide
    news http://uk.news.yahoo.com
    weather http://weather.yahoo.com/forecast/HRXX0005.html
    ;;
  'da')
    home http://da.intl.dell.yahoo.com
    search http://uk.search.yahoo.com/web?fr=sfp-dellia
    mail "https://login.yahoo.com/config/mail?.intl=da"
    travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
    maps hide
    news http://uk.news.yahoo.com
    weather http://weather.yahoo.com/forecast/DAXX0008_f.html
    ;;
  'nl')
    home http://nl.intl.dell.yahoo.com
    search http://nl.search.yahoo.com/web?fr=sfp-dellia
    mail "https://login.yahoo.com/config/mail?.intl=nl"
    travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
    maps hide
    news http://uk.news.yahoo.com
    weather http://weather.yahoo.com/forecast/NLXX0002_f.html
    ;;
  'de')
    home http://de.intl.dell.yahoo.com
    search http://de.search.yahoo.com/web?fr=sfp-dellia
    mail "https://login.yahoo.com/config/mail?.intl=de&.src=ym"
    travel http://de.reisen.yahoo.com/
    maps http://de.routenplaner.yahoo.com/broadband
    news http://de.news.yahoo.com
    weather http://de.weather.yahoo.com/
    ;;
  'el')
    home http://el.intl.dell.yahoo.com
    search http://uk.search.yahoo.com/web?fr=sfp-dellia
    mail "https://login.yahoo.com/config/mail?.intl=uk&.src=ym"
    travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
    maps hide
    news http://uk.news.yahoo.com
    weather http://weather.yahoo.com/regional/GRXX.html
    ;;
  'en')
    case "$CC" in
      'UK')
        home http://en.uk.dell.yahoo.com
        search http://uk.search.yahoo.com/web?fr=sfp-dellia
        mail "https://login.yahoo.com/config/mail?.intl=uk&.src=ym"
        travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
        maps http://uk.maps.yahoo.com/broadband
        news http://uk.news.yahoo.com/
        weather http://uk.weather.yahoo.com
        ;;
      'GI')
        home http://en.gi.dell.yahoo.com
        search http://uk.search.yahoo.com/web?fr=sfp-dellia
        mail "https://login.yahoo.com/config/mail?.intl=uk&.src=ym"
        travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
        maps hide
        news http://uk.news.yahoo.com/
        weather http://weather.yahoo.com/forecast/SPXX0088.html
        ;;
      'IE')
        home http://en.ie.dell.yahoo.com
        search http://uk.search.yahoo.com/web?fr=sfp-dellia
        mail "https://login.yahoo.com/config/mail?.intl=uk&.src=ym"
        travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
        maps http://uk.maps.yahoo.com/broadband
        news http://uk.news.yahoo.com/
        weather http://weather.yahoo.com/forecast/EIXX0014.html
        ;;
      'ZA')
        home http://en.za.dell.yahoo.com
        search http://uk.search.yahoo.com/web?fr=sfp-dellia
        mail "https://login.yahoo.com/config/mail?.intl=uk&.src=ym"
        travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
        maps hide
        news http://uk.news.yahoo.com/
        weather http://weather.yahoo.com/forecast/SFXX0010.html
        ;;
      'AU')
        home http://en.au.dell.yahoo.com
        search http://au.search.yahoo.com/web?fr=sfp-dellia
        mail "https://login.yahoo.com/config/login_verify2?.intl=au&.src=ym"
        travel http://au.travel.yahoo.com/
        maps http://au.maps.search.yahoo.com/search/maps/
        news http://au.news.yahoo.com
        weather http://au.weather.yahoo.com
        ;;
      'NZ')
        home http://en.nz.dell.yahoo.com
        search http://au.search.yahoo.com/web?fr=sfp-dellia
        mail "https://login.yahoo.com/config/login_verify2?.intl=au&.src=ym"
        travel http://nz.travel.yahoo.com/
        maps hide
        news http://nz.news.yahoo.com
        weather http://nz.weather.yahoo.com/
        ;;
      'CA')
        home http://en.ca.dell.yahoo.com
        search http://ca.search.yahoo.com/web?fr=sfp-dellia
        mail "https://login.yahoo.com/config/login_verify2?.intl=ca&.src=ym"
        travel http://ca.travel.yahoo.com/
        maps "http://ca.maps.yahoo.com/#lon=-99.18457&lat=58.355631&mag=14"
        news http://ca.news.yahoo.com
        weather http://ca.weather.yahoo.com/regional/CAXX.html?Canada
        ;;
      'IR')
        home http://en.uk.dell.yahoo.com
        search http://uk.search.yahoo.com/web?fr=sfp-dellia
        mail "https://login.yahoo.com/config/mail?.intl=uk&.src=ym"
        travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
        maps http://uk.maps.yahoo.com/broadband
        news http://uk.news.yahoo.com/
        weather http://uk.weather.yahoo.com
        ;;
      'IN')
        home http://en.in.dell.yahoo.com
        search http://in.search.yahoo.com/web?fr=sfp-dellia
        mail "https://login.yahoo.com/config/login_verify2?.intl=in&.src=ym"
        travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
        maps "http://in.maps.yahoo.com/#?lat=20.5916521&lon=78.0468750&z=13"
        news http://in.news.yahoo.com
        weather http://in.weather.yahoo.com/INXX/INXX0038/index_c.php
        ;;
      'SG')
        home http://en.sg.dell.yahoo.com
        search http://sg.search.yahoo.com/web?fr=sfp-dellia
        mail "https://login.yahoo.com/config/login_verify2?.intl=sg&.src=ym"
        travel http://sg.travel.yahoo.com/
        maps hide
        news http://sg.news.yahoo.com
        weather http://sg.weather.yahoo.com/
        ;;
      'BN')
        home http://en.uk.dell.yahoo.com
        search http://uk.search.yahoo.com/web?fr=sfp-dellia
        mail "https://login.yahoo.com/config/mail?.intl=uk&.src=ym"
        travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
        maps http://uk.maps.yahoo.com/broadband
        news http://uk.news.yahoo.com/
        weather http://uk.weather.yahoo.com
        ;;
      'ID')
        home http://en.id.dell.yahoo.com
        search http://id.search.yahoo.com/web?fr=sfp-dellia
        mail "https://login.yahoo.com/config/login_verify2?.intl=id&.src=ym"
        travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
        maps hide
        news http://id.yahoo.com
        weather http://weather.yahoo.com/regional/IDXX.html
        ;;
      'MY')
        home http://en.my.dell.yahoo.com
        search http://my.search.yahoo.com/web?fr=sfp-dellia
        mail "https://login.yahoo.com/config/login_verify2?.intl=my&.src=ym"
        travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
        maps hide
        news http://malaysia.news.yahoo.com/
        weather http://weather.yahoo.com/regional/MYXX.html
        ;;
      'PH')
        home http://en.ph.dell.yahoo.com
        search http://ph.search.yahoo.com/web?fr=sfp-dellia
        mail "https://login.yahoo.com/config/login_verify2?.intl=ph&.src=ym"
        travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
        maps hide
        news http://ph.news.yahoo.com/
        weather http://weather.yahoo.com/forecast/RPXX0017.html
        ;;
      'TH')
        home http://en.th.dell.yahoo.com
        search http://th.search.yahoo.com/web?fr=sfp-dellia
        mail "https://login.yahoo.com/config/login_verify2?.intl=th&.src=ym"
        travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
        maps hide
        news http://th.yahoo.com/
        weather http://weather.yahoo.com/forecast/THXX0002_c.html
        ;;
      'VN')
        home http://en.vn.dell.yahoo.com
        search http://vn.search.yahoo.com/web?fr=sfp-dellia
        mail "https://login.yahoo.com/config/login_verify2?.intl=vn&.src=ym"
        travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
        maps hide
        news http://vn.yahoo.com/
        weather http://weather.yahoo.com/forecast/VMXX0006_f.html
        ;;
      *)
        home http://en.us.dell.yahoo.com
        search http://search.yahoo.com/web?fr=sfp-dellia
        mail "http://mail.yahoo.com"
        travel "http://travel.yahoo.com/"
        maps http://maps.yahoo.com
        news http://news.yahoo.com
        weather http://weather.yahoo.com
        ;;
    esac
    ;;
  'fi')
    home http://fi.intl.dell.yahoo.com
    search http://fi.search.yahoo.com/web?fr=sfp-dellia
    mail "https://login.yahoo.com/config/login_verify2?.intl=fi&.src=ym"
    travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
    maps hide
    news http://uk.news.yahoo.com/
    weather http://weather.yahoo.com/forecast/FIXX0002_f.html
    ;;
  'fr')
    case "$CC" in
      'CA')
        home http://fr.ca.dell.yahoo.com
        search http://qc.search.yahoo.com/web?fr=sfp-dellia
        mail "https://login.yahoo.com/config/login_verify2?.intl=ca&.src=ym"
        travel http://ca.travel.yahoo.com/
        maps "http://cf.maps.yahoo.com/#mvt=m&trf=0&lon=-71.263504&lat=46.841407&mag=8"
        news http://cf.news.yahoo.com
        weather "http://cf.weather.yahoo.com/forecast/CAXX0301.html?Montr%C3%A9al,%20QC"
        ;;
      *)
        home http://fr.fr.dell.yahoo.com
        search http://fr.search.yahoo.com/web?fr=sfp-dellia
        mail "https://login.yahoo.com/config/login_verify2?.intl=fr&.src=ym"
        travel http://fr.voyage.yahoo.com/
        maps http://fr.maps.yahoo.com/
        news http://fr.news.yahoo.com
        weather http://fr.weather.yahoo.com/Europe/France/Villes/
        ;;
    esac
    ;;
  'he')
    home http://he.intl.dell.yahoo.com
    search http://uk.search.yahoo.com/web?fr=sfp-dellia
    mail "https://login.yahoo.com/config/mail?.intl=uk&.src=ym"
    travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
    maps hide
    news http://news.yahoo.com
    weather http://weather.yahoo.com/forecast/ISXX0010_f.html
    ;;
  'hu')
    home http://hu.intl.dell.yahoo.com
    search http://uk.search.yahoo.com/web?fr=sfp-dellia
    mail "https://login.yahoo.com/config/mail?.intl=uk&.src=ym"
    travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
    maps hide
    news http://uk.news.yahoo.com/
    weather http://weather.yahoo.com/forecast/HUXX0002.html
    ;;
  'it')
    home http://it.intl.dell.yahoo.com
    search http://it.search.yahoo.com/web?fr=sfp-dellia
    mail "https://login.yahoo.com/config/login_verify2?.intl=it&.src=ym"
    travel http://it.viaggi.yahoo.com/
    maps http://it.mappe.yahoo.net/tcolnew/index_yahoo.html
    news http://it.news.yahoo.com
    weather http://it.weather.yahoo.com/Mediterraneo/Italia/index.html
    ;;
  'ja')
    home http://ja.intl.dell.yahoo.com
    search http://search.yahoo.co.jp/web?fr=sfp-dellia
    mail "https://login.yahoo.co.jp/config/login_verify2?.src=ym"
    travel http://travel.yahoo.co.jp/
    maps http://maps.yahoo.co.jp/
    news http://headlines.yahoo.co.jp/hl
    weather http://weather.yahoo.co.jp/weather/
    ;;
  'ko')
    home http://ko.intl.dell.yahoo.com
    search http://kr.search.yahoo.com/web?fr=sfp-dellia
    mail "https://login.yahoo.com/config/login_verify2?.intl=kr&.lg=kr&.src=ym"
    travel http://kr.travel.yahoo.com/
    maps http://kr.gugi.yahoo.com/ymap/
    news http://kr.news.yahoo.com
    weather http://kr.weather.yahoo.com/
    ;;
  'ms')
    case "$CC" in
      'ID')
        home http://ms.id.dell.yahoo.com
        search http://id.search.yahoo.com/web?fr=sfp-dellia
        mail "https://login.yahoo.com/config/login_verify2?.intl=id&.src=ym"
        travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
        maps hide
        news http://id.yahoo.com
        weather http://weather.yahoo.com/regional/IDXX.html
        ;;
      *)
        home http://ms.my.dell.yahoo.com
        search http://my.search.yahoo.com/web?fr=sfp-dellia
        mail "https://login.yahoo.com/config/login_verify2?.intl=my&.src=ym"
        travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
        maps hide
        news http://malaysia.news.yahoo.com/
        weather http://weather.yahoo.com/regional/MYXX.html
        ;;
    esac
    ;;
  'no')
    home http://no.intl.dell.yahoo.com
    search http://no.search.yahoo.com/web?fr=sfp-dellia
    mail "https://login.yahoo.com/config/mail?.intl=no"
    travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
    maps hide
    news http://uk.news.yahoo.com/
    weather http://weather.yahoo.com/forecast/NOXX0029_f.html
    ;;
  'pl')
    home http://pl.intl.dell.yahoo.com
    search http://uk.search.yahoo.com/web?fr=sfp-dellia
    mail "https://login.yahoo.com/config/mail?.intl=uk&.src=ym"
    travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
    maps hide
    news http://uk.news.yahoo.com/
    weather http://weather.yahoo.com/forecast/PLXX0028_f.html
    ;;
  'pt')
    home http://pt.intl.dell.yahoo.com
    search http://br.search.yahoo.com/web?fr=sfp-dellia
    mail "https://login.yahoo.com/config/login_verify2?.intl=br&.src=ym"
    travel http://yahooviagens.submarino.com.br/viagens/default.aspx
    maps http://mapas.yahoo.maplink2.com.br/
    news http://br.news.yahoo.com/
    weather http://weather.yahoo.com/forecast/BRXX0232.html
    ;;
  'ru')
    home http://ru.intl.dell.yahoo.com
    search http://ru.search.yahoo.com/web?fr=sfp-dellia
    mail "https://login.yahoo.com/config/login_verify2?.intl=ru&.src=ym"
    travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
    maps hide
    news http://uk.news.yahoo.com/
    weather http://weather.yahoo.com/forecast/RSXX0063.html
    ;;
  'zh')
    case "$CC" in
      'HK')
        home http://zh.hk.dell.yahoo.com
        search http://hk.search.yahoo.com/web?fr=sfp-dellia
        mail "https://login.yahoo.com/config/login?.intl=tw&.src=ym&.done=https://tw.login.yahoo.com/cgi-bin/kcookie.cgi/mail/http%3a//edit.tpe.yahoo.com/config/mail%3f.intl=tw"
        travel http://hk.travel.yahoo.com/
        maps hide
        news http://hk.news.yahoo.com
        weather http://hk.weather.yahoo.com/
        ;;
      'TW')
        home http://zh.tw.dell.yahoo.com
        search http://tw.search.yahoo.com/web?fr=sfp-dellia
        mail "https://login.yahoo.com/config/login?.intl=tw&.src=ym&.done=https://tw.login.yahoo.com/cgi-bin/kcookie.cgi/mail/http%3a//edit.tpe.yahoo.com/config/mail%3f.intl=tw"
        travel http://hk.travel.yahoo.com/
        maps "http://tw.maps.yahoo.com/#lat%0123.438049100368605%02lon%01121.13525390625%02z%0110%02pos%01%02pok%010%02mrt%010%02pos1%01%02lat1%010%02lon1%010%02pos2%01%02lat2%010%02lon2%010%02shop%01%02sok%010%02sp%010%02slat%010%02slon%010%02rcate%010%02rok%010%02rlat%010%02rlon%010%02lok%010%02llat%010%02llon%010%02mtab%011%02pr%010%02up%010"
        news http://tw.news.yahoo.com
        weather http://tw.weather.yahoo.com/
        ;;
      *)
        home http://zh.cn.dell.yahoo.com
        search "http://www.yahoo.cn/?fr=dellia&p="
        mail "https://login.yahoo.com/config/login_verify2?.intl=cn&.src=ym"
        travel http://travel.cn.yahoo.com/
        maps hide
        news http://news.cn.yahoo.com/
        weather http://weather.cn.yahoo.com/
        ;;
    esac
    ;;
  'es')
    case "$CC" in
      'AR')
        home http://es.ar.dell.yahoo.com
        search http://ar.search.yahoo.com/web?fr=sfp-dellia
        mail "https://login.yahoo.com/config/login_verify2?.intl=ar&.src=ym"
        maps hide
        news http://ar.news.yahoo.com/
        weather http://ar.weather.yahoo.com/america_del_sur/argentina/
        ;;
      'MX')
        home http://es.mx.dell.yahoo.com
        search http://mx.search.yahoo.com/web?fr=sfp-dellia
        mail "https://login.yahoo.com/config/login_verify2?.intl=mx&.src=ym"
        maps hide
        news http://mx.news.yahoo.com/
        weather http://mx.weather.yahoo.com/america_del_norte/mexico/
        ;;
      'US')
        home http://es.us.dell.yahoo.com
        search http://espanol.search.yahoo.com/web?fr=sfp-dellia
        mail "https://login.yahoo.com/config/login_verify2?.intl=e1&.src=ym"
        maps "http://espanol.maps.yahoo.com/#lon=-97.866211&lat=38.925229&mag=14"
        news http://espanol.news.yahoo.com/
        weather http://tiempo.espanol.yahoo.com/
        ;;
      *)
        home http://es.es.dell.yahoo.com
        search http://es.search.yahoo.com/web?fr=sfp-dellia
        mail "https://login.yahoo.com/config/mail?.intl=es&.src=ym"
        maps hide
        news http://es.news.yahoo.com
        weather http://weather.yahoo.com/forecast/SPXX0050_f.html
        ;;
    esac
    ;;
  'sv')
    home http://sv.intl.dell.yahoo.com
    search http://uk.search.yahoo.com/web?fr=sfp-dellia
    mail "https://login.yahoo.com/config/mail?.intl=uk&.src=ym"
    travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
    maps hide
    news http://uk.news.yahoo.com/
    weather http://weather.yahoo.com/regional/SWXX.html
    ;;
  'th')
    home http://th.intl.dell.yahoo.com
    search http://th.search.yahoo.com/web?fr=sfp-dellia
    mail "https://login.yahoo.com/config/login_verify2?.intl=th&.src=ym"
    travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
    maps hide
    news http://th.yahoo.com/
    weather http://weather.yahoo.com/forecast/THXX0002_c.html
    ;;
  'tr')
    home http://tr.intl.dell.yahoo.com
    search http://uk.search.yahoo.com/web?fr=sfp-dellia
    mail "https://login.yahoo.com/config/login_verify2?.intl=uk&.src=ym"
    travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
    maps hide
    news http://uk.news.yahoo.com/
    weather http://weather.yahoo.com/forecast/TUXX0014.html
    ;;
  'vi')
    home http://vi.intl.dell.yahoo.com
    search http://vn.search.yahoo.com/web?fr=sfp-dellia
    mail "https://login.yahoo.com/config/login_verify2?.intl=vn&.src=ym"
    travel "http://uk.travel.yahoo.com/;_ylc=X3oDMTE5MGRqZDdoBF9TAzI3MTYxNDkEc2VjA2ZwLXRyb3VnaARzbGsDc3Bpcml0LWZpeGVk"
    maps hide
    news http://vn.yahoo.com/
    weather http://weather.yahoo.com/forecast/VMXX0006_f.html
    ;;
  *)
    home http://en.us.dell.yahoo.com
    search http://search.yahoo.com/web?fr=sfp-dellia
    mail http://mail.yahoo.com
    travel http://travel.yahoo.com/
    maps http://maps.yahoo.com
    news http://news.yahoo.com
    weather http://weather.yahoo.com
    ;;
esac

unknown
