var resultview = {
    hasEntry : false,
    
    setResult : function(
        type, 
        title,        
        description, 
        lat, 
        lon,
        icon /*[string]*/)
    {   
        if( typeof icon != "undefined" )
        {
            $("reficon").src = icon;
        }
        Element.update($("resultTitle"), title);
        Element.update($("resultSubtitle"), description);
        Element.show($("resultDiv"));
            
        if(!this.hasEntry)
        {
            //collapsible.showPane(Collapsible.PANELS.Result,Collapsible.PANELS.Route);
            this.hasEntry = true;
        }  
        
        try
        {
            collapsible.showPane(Collapsible.PANELS.Result, true, false);
        }
        catch(e){}    
    }
};

