var FlyingCircusShell = {};


var emoticons = [
    ':)', ':(', ':D', ':O',
    '^_^', ':P', ';)', '...'];

/**
 * Set the shell C{emoticon} node to a random value from C{emoticons}.
 */
FlyingCircusShell.setEmoticon = function setEmoticon() {
    var emoticonNode = document.getElementById('emoticon');
    while (emoticonNode.hasChildNodes()) {
        emoticonNode.removeChild(emoticonNode.firstChild);
    }
    var emoticon = emoticons[Math.floor(Math.random() * emoticons.length)];
    emoticonNode.appendChild(document.createTextNode(emoticon));
};
