Photo = new function()
{
    var id = "photo-open";
    var queue = new Array();
    
    this.open = function(src)
    {
        document.getElementById(id).src = src;
    }
    
    this.Cache = new function()
	{
	    this.add = function(src)
	    {
	        queue.push(src);
	    }
	    
	    this.load = function() {
	        for (var i, k = 0; k < queue.length; ++k) {
	            i = new Image();
	            i.src = queue[k];
	        }
	    }
	}
}
