// Copyright (C) 2009 A K York. All rights reserved.

var sBrowser = window.navigator.appName;
var sPlatform = window.navigator.platform;

if ( sPlatform.indexOf('Win32') != -1 )
{ // Windows
  if ( sBrowser.indexOf('Microsoft') != -1 && window.external )
  { document.write('favorites. Just click <a href="#" onClick="window.external.AddFavorite(');
    document.write(String.fromCharCode(39));
    document.write('http://www.signal-strength.net');
    document.write(String.fromCharCode(39,44,39));
    document.write('Signal Strength - Escape into the music');
    document.write(String.fromCharCode(39));
    document.write('); return false;">here</a>...');
  }
  else
  { document.write('bookmarks.');
    if ( sBrowser.indexOf('Netscape') != -1 )
    { document.write(' Just press Control-D.');
    }
    else if ( sBrowser.indexOf('Opera') != -1 )
    { document.write(' Just press Control-D.');
    }
  }
}
else if ( sPlatform.indexOf('Mac') != -1 )
{ // Macintosh
  if ( sBrowser.indexOf('Microsoft') != -1 )
  { document.write("favorites. Just select 'Add Page to Favorites' from the Favorites menu (or press Command-D).");
  }
  else
  { document.write('bookmarks.');
    if ( sBrowser.indexOf('Netscape') != -1 )
    { document.write(' Just press Command-D.');
    }
    else if ( sBrowser.indexOf('Opera') != -1 )
    { document.write(' Just press Command-D.');
    }
  }
}
else
{ // other platforms
  if ( sBrowser.indexOf('Microsoft') != -1 )
  { document.write("favorites. Just select 'Add Page to Favorites' from the Favorites menu.");
  }
  else
  { document.write('bookmarks.');
    if ( sBrowser.indexOf('Netscape') != -1 )
    { document.write(' Just press Control-D.');
    }
    else if ( sBrowser.indexOf('Opera') != -1 )
    { document.write(' Just press Control-D.');
    }
  }
}
