









var Cards = function()
{
    var faceCards = new Object();
    
        
        
            
                faceCards['MOONS.4'] = "/somnium/images/moons4.jpg";
            
            
            
        
    
        
        
            
                faceCards['CUPS.7'] = "/somnium/images/cups7.jpg";
            
            
            
        
    
        
        
            
                faceCards['MOONS.5'] = "/somnium/images/moons5.jpg";
            
            
            
        
    
        
        
            
                faceCards['CUPS.5'] = "/somnium/images/cups5.jpg";
            
            
            
        
    
        
        
            
                faceCards['CUPS.6'] = "/somnium/images/cups6.jpg";
            
            
            
        
    
        
        
            
                faceCards['TOWERS.4'] = "/somnium/images/towers4.jpg";
            
            
            
        
    
        
        
            
                faceCards['PENTACLES.6'] = "/somnium/images/pentacles6.jpg";
            
            
            
        
    
        
        
            
                faceCards['ANGELS.3'] = "/somnium/images/angels3.jpg";
            
            
            
        
    
        
        
            
                faceCards['TOWERS.5'] = "/somnium/images/towers5.jpg";
            
            
            
        
    
        
        
            
                faceCards['PENTACLES.7'] = "/somnium/images/pentacles7.jpg";
            
            
            
        
    
        
        
            
                faceCards['TOWERS.3'] = "/somnium/images/towers3.jpg";
            
            
            
        
    
        
        
            
                faceCards['ANGELS.4'] = "/somnium/images/angels4.jpg";
            
            
            
        
    
        
        
            
                faceCards['MOONS.3'] = "/somnium/images/moons3.jpg";
            
            
            
        
    
        
        
            
                faceCards['ANGELS.5'] = "/somnium/images/angels5.jpg";
            
            
            
        
    
        
        
            
                faceCards['DEMONS.4'] = "/somnium/images/demons4.jpg";
            
            
            
        
    
        
        
            
                faceCards['TOWERS.7'] = "/somnium/images/towers7.jpg";
            
            
            
        
    
        
        
            
                faceCards['ANGELS.6'] = "/somnium/images/angels6.jpg";
            
            
            
        
    
        
        
            
                faceCards['DEMONS.5'] = "/somnium/images/demons5.jpg";
            
            
            
        
    
        
        
            
                faceCards['TOWERS.6'] = "/somnium/images/towers6.jpg";
            
            
            
        
    
        
        
            
            
            
                var foolCardUrl = "/somnium/images/fool.jpg";
            
        
    
        
        
            
                faceCards['MOONS.6'] = "/somnium/images/moons6.jpg";
            
            
            
        
    
        
        
            
                faceCards['ANGELS.7'] = "/somnium/images/angels7.jpg";
            
            
            
        
    
        
        
            
                faceCards['SWORDS.5'] = "/somnium/images/swords5.jpg";
            
            
            
        
    
        
        
            
                faceCards['SUNS.3'] = "/somnium/images/suns3.jpg";
            
            
            
        
    
        
        
            
                faceCards['SUNS.4'] = "/somnium/images/suns4.jpg";
            
            
            
        
    
        
        
            
                faceCards['MOONS.7'] = "/somnium/images/moons7.jpg";
            
            
            
        
    
        
        
            
                faceCards['SWORDS.3'] = "/somnium/images/swords3.jpg";
            
            
            
        
    
        
        
            
                faceCards['DEMONS.3'] = "/somnium/images/demons3.jpg";
            
            
            
        
    
        
        
            
                faceCards['SWORDS.4'] = "/somnium/images/swords4.jpg";
            
            
            
        
    
        
        
            
                faceCards['SWORDS.7'] = "/somnium/images/swords7.jpg";
            
            
            
        
    
        
        
            
            
                var deathCardUrl = "/somnium/images/death.jpg";
            
            
        
    
        
        
            
                faceCards['DRAGONS.3'] = "/somnium/images/dragons3.jpg";
            
            
            
        
    
        
        
            
                faceCards['SUNS.5'] = "/somnium/images/suns5.jpg";
            
            
            
        
    
        
        
            
                faceCards['SWORDS.6'] = "/somnium/images/swords6.jpg";
            
            
            
        
    
        
        
            
                faceCards['SUNS.6'] = "/somnium/images/suns6.jpg";
            
            
            
        
    
        
        
            
                faceCards['DRAGONS.5'] = "/somnium/images/dragons5.jpg";
            
            
            
        
    
        
        
            
                faceCards['SUNS.7'] = "/somnium/images/suns7.jpg";
            
            
            
        
    
        
        
            
                faceCards['WANDS.3'] = "/somnium/images/wands3.jpg";
            
            
            
        
    
        
        
            
                faceCards['DEMONS.6'] = "/somnium/images/demons6.jpg";
            
            
            
        
    
        
        
            
                faceCards['DRAGONS.4'] = "/somnium/images/dragons4.jpg";
            
            
            
        
    
        
        
            
                faceCards['DEMONS.7'] = "/somnium/images/demons7.jpg";
            
            
            
        
    
        
        
            
                faceCards['WANDS.4'] = "/somnium/images/wands4.jpg";
            
            
            
        
    
        
        
            
                faceCards['PENTACLES.3'] = "/somnium/images/pentacles3.jpg";
            
            
            
        
    
        
        
            
                faceCards['DRAGONS.7'] = "/somnium/images/dragons7.jpg";
            
            
            
        
    
        
        
            
                faceCards['WANDS.5'] = "/somnium/images/wands5.jpg";
            
            
            
        
    
        
        
            
                faceCards['WANDS.7'] = "/somnium/images/wands7.jpg";
            
            
            
        
    
        
        
            
                faceCards['DRAGONS.6'] = "/somnium/images/dragons6.jpg";
            
            
            
        
    
        
        
            
                faceCards['WANDS.6'] = "/somnium/images/wands6.jpg";
            
            
            
        
    
        
        
            
                faceCards['PENTACLES.5'] = "/somnium/images/pentacles5.jpg";
            
            
            
        
    
        
        
            
                faceCards['CUPS.3'] = "/somnium/images/cups3.jpg";
            
            
            
        
    
        
        
            
                faceCards['PENTACLES.4'] = "/somnium/images/pentacles4.jpg";
            
            
            
        
    
        
        
            
                faceCards['CUPS.4'] = "/somnium/images/cups4.jpg";
            
            
            
        
    

    return {
        getFoolCardUrl : function() {
            return foolCardUrl;
        },
        getDeathCardUrl : function() {
            return deathCardUrl;
        },
        getFaceCardUrl : function(suit, value) {
            var key = suit + "." + value;
            return faceCards[key];
        },
        getCardUrl : function(card) {
            if (card.name == "Fool")
            {
                return foolCardUrl;
            }
            else if (card.name == "Death")
            {
                return deathCardUrl;
            }
            else
            {
                var key = card.suit + "." + card.faceValue;
                return faceCards[key];
            }
        }
    };
}();
