#!/bin/bash

# Script: Visit the MicroAPL web site
#

URL="http://www.microapl.co.uk/apl"

# Launch user's default browser if possible 
if [ -n "$BROWSER" ]; then
    $BROWSER $URL
    
# Otherwise try common browsers we might find
else
    type -t konqueror > /dev/null
    if [ $? -eq 0 ]; then
        konqueror $URL
    else
        type -t mozilla > /dev/null
        if [ $? -eq 0 ]; then
            mozilla $URL
        else
            type -t galeon > /dev/null
            if [ $? -eq 0 ]; then
                galeon $URL
            else
                type -t netscape > /dev/null
                if [ $? -eq 0 ]; then
                    netscape $URL
                fi
            fi
        fi
    fi
fi

