var GameUtils = {
    imageCache: {},
    include: function(path)
    {
        if(window.wiicade) path = wiicade.path + path;
        
        document.write('<script src="' + path + '"></script>');
    },
    getImage: function(path, dontCache)
    {
        if(window.wiicade) path = wiicade.path + path;
        
        if(!dontCache && !GameUtils.imageCache[path])
        {
            GameUtils.imageCache[path] = new Image();
            GameUtils.imageCache[path].src = path;
        }
        
        return path;
    },
    flushImageCache: function()
    {
        delete(GameUtils.imageCache);
        GameUtils.imageCache = new Object();
    },
    includeStylesheet: function(path)
    {
        if(window.wiicade) path = wiicade.path + path;
        
        document.write('<link rel="stylesheet" href="' + path + '">');
    }
};

