failat 21

echo "*n*n*e[1;32m ____________________________________________________________________"
echo " *e[43m                                                                    *e[0m"
echo " *e[0;32;43m                  Welcome to MagicWB v2.0: PREVIEW*e[1m                  *e[0m"
echo " *e[1;4;43m                                                                    *e[0m"
echo "*n*n*n The following picture snapshot will show you how your Workbench is"
echo " going to look like if you use *e[32mMagicWB 2.0*e[0m...*n"


if exists sys:utilities/multiview
  echo noline " Do you have the AGA-Chipset or any graphics board? "
  set > NIL: AGA ?
  if $AGA eq "ja"
    skip ShowAGA
  endif
  if $AGA eq "j"
    skip ShowAGA
  endif
  if $AGA eq "y"
    skip ShowAGA
  endif
  if $AGA eq "yes"
    skip ShowAGA
  endif
  skip Continue

  lab ShowAGA
  sys:prefs/palette ClickForColors use
  sys:utilities/multiview Preview
  sys:prefs/palette envarc:sys/palette.prefs use
  skip end

  lab continue
  sys:prefs/palette xen-icons/prefs/env-archive/sys/palette.ilbm use
  sys:utilities/multiview Preview
  sys:prefs/palette envarc:sys/palette.prefs use
else
  wait 5
  if exists sys:utilities/display
    sys:utilities/display Preview
  else
    echo "*n Sorry, I couldn't find neither 'Multiview' nor 'Display' to display"
    echo " the preview picture. Please use your own display utility to view the"
    echo " picture 'Preview' in the MagicWB directory."
    wait 15
    skip endend
  endif
endif

lab end
echo "*n*n So? Do you like it? Then install *e[32mMagicWB*e[0m immediately...*n"

lab endend
wait 3
quit
