You can define custom events such as
mktoMunchkinFunction('function',
{ key: 'value', key2: 'value'})
It would be defined as
mktoMunchkinFunction('visitWebPage', {
url: '/MyFlashMovie/Story1', params: 'x=y&2=3'
});
Please visit Munchkin JavaScript API Calls for full reference