//  This document contains your WayStation commands. 
// 
//  New commands can be added in the following format:
//  TRIGGER: ['DESCRIPTION',  'URL'],
//  
//  One command per line. Only put them in the indicated
//  section below.
//  
//  Command URLs can contain the following replacement tokens:
//  %s - This token is replaced by any search terms 
//       provided when the command is run.
//  %r - Replaced by the url of the page you were
//       on when the command was run.
//  
//  If you'd like to set a default search term for a command, put
//  it in brackets next to the %s token, like so:  %s[DEFAULT]
//  The default value will be used if no search term is provided.
//  For example, you can put your zip code into the 'wx' command.
//  
//  The trigger set below as your DefaultCommand will be used
//  for any untriggered search. For instance if your DefaultCommand
//  is equal to 'g' then you can do a Google search by entering
//  a search term without needing the 'g' trigger.

var DefaultCommand = 'g';

addCommands({
//  __________ YOUR COMMANDS GO BELOW THIS LINE ________________


am: ['Amazon Search', 'http://www.amazon.com/exec/obidos/external-search?mode=blended&keyword=%s'],
flk: ['Flickr Search', 'http://flickr.com/search/?q=%s'],
g: ['Google Search', 'http://www.google.com/search?q=%s'],
gim: ['Google Image Search', 'http://images.google.com/images?q=%s'],
gm: ['Google Maps Search', 'http://www.google.com/maps?q=%s'],
gma: ['Gmail Search', 'http://gmail.google.com/gmail?search=query&q=%s&view=tl&fs=1'],
imdb: ['IMDB Search', 'http://www.imdb.com/find?s=all&q=%s'],
ip: ['IP Address', 'http://www.whatismyip.org/'],
tr: ['Translate the current page', 'http://translate.google.com/translate?u=%r&hl=en&ie=UTF8&sl=auto&sl=auto&tl=en&tl=en'],
v: ['Vimeo Search', 'http://vimeo.com/videos/search:%s'],
wp: ['Wikipedia Search', 'http://en.wikipedia.org/?search=%s'],
wx: ['Weather.com Search', 'http://www.weather.com/weather/local/%s[55555]'],
yn: ['Run a YubNub command', 'http://yubnub.org/parser/parse?command=%s'],
yt: ['YouTube Search', 'http://www.youtube.com/results.php?search_query=%s'],
yw: ['Run a Yeah Way command', 'http://yeahway.com/parser/run.php?query=%s'],


//  _________ Your commands belong ABOVE this line_______________
// The commands below (ls, help) probably shouldn't be changed.
ls: ['List your WayStation Commands', window.location.href.replace(window.location.search,'')],
help: ['Get help with WayStation', 'http://yeahway.com/waystation/help.html']
});