var ConfigurationData = function() {
    return {
    
        GetDisclaimerText: function() {
            var text = "CITY OF FORT COLLINS<br>GEOGRAPHIC INFORMATION SYSTEM MAP AND COMPUTER PRODUCTS<br><br>";
            text += "These map products and all underlying data were developed for use by the City of Fort Collins for its ";
            text += "internal purposes only, and were not designed or intended for general use by members of the public. The City ";
            text += "makes no representation or warranty as to its accuracy, timeliness, or completeness, and in particular, its accuracy ";
            text += "in labeling or displaying dimensions, contours, property boundaries, or placement or location of any map features ";
            text += "thereon. THE CITY OF FORT COLLINS MAKES NO WARRANTY OF MERCHANTABILITY OR WARRANTY FOR FITNESS OF USE FOR A ";
            text += "PARTICULAR PURPOSE, EXPRESSED OR IMPLIED, WITH RESPECT TO THESE MAP PRODUCTS OR THE UNDERLYING DATA. Any users ";
            text += "of these map products, map applications, or data, accepts same AS IS, WITH ALL FAULTS, and assumes all responsibility ";
            text += "for the use thereof, and further covenants and agrees to hold the City harmless from and against all damage, loss, or ";
            text += "liability arising from any use of this map product, in consideration of the City's having made this information available.<br><br>";
            text += "Independent verification of all data contained herein should be obtained by any user of these map products, or the ";
            text += "underlying data. The City disclaims, and shall not be held liable for, any and all damage, loss, or liability, ";
            text += "whether direct, indirect, or consequential, which arises or may arise from these map products or the use thereof by ";
            text += "any person or entity. ";
            return text;
        },
        
        GetDefaultBufferRadius: function() {
            return 5280;
        },
    
        GetFloodplainLayers: function () {
            return ['City Floodplains', 'FEMA Floodplains'];
        },
        
        GetMapsNodes: function (limitAccess) {
            if (limitAccess)
            {
                return [
                    new Ext.tree.TreeNode({text:'Aerial Photograph', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'Bikeway System', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'Cemeteries', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'Council Districts', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'Crime', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'Current Development Projects', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'Development Information', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'Floodplains', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'General', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'Ground Control Network', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'LETA', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'Medians and Parkways', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'Neighborhoods', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'Parcels', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'Snow Routes', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'Traffic Counts', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'Zoning Districts', cls:'maps-node', allowDrag:false})
                ];   
            }
            else
            {               
                return [
                    new Ext.tree.TreeNode({text:'Aerial Photograph', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'Bikeway System', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'Cemeteries', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'Council Districts', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'Crime', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'Current Development Projects', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'Development Information', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'Floodplains', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'General', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'Ground Control Network', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'LETA', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'Liquor Licenses', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'Medians and Parkways', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'Neighborhoods', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'Parcels', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'Snow Routes', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'Traffic Counts', cls:'maps-node', allowDrag:false}),
                    new Ext.tree.TreeNode({text:'Zoning Districts', cls:'maps-node', allowDrag:false})
                ]; 
            }
        },
        
        GetLiquorLicenseTypes: function () {
            return [ 
                    ['All License Types'],  
		            ['3.2%-Off'],
		            ['3.2%-On'],
		            ['Bed and Breakfast Permit'],
		            ['Beer and Wine'],
		            ['Brew Pub'],
		            ['Club'],
		            ['Hotel-Restaurant With Optional Premises'],
		            ['Hotel-Restaurant'],
		            ['Optional Premise'],
		            ['Retail Liquor Store'],
		            ['Tavern']
            ];
        }, 
        
        GetLiquorLicenseLayerName: function() {
            return 'Liquor Licenses';
        }, 
        
        FormatCell: function(dataArray) {
            return String.format(
                '<div class="topic"><b>{0}</b><span class="author">{1}</span></div>',
                value, record.data.author, record.id, record.data.forumid
                );
        },
        
        GetColumnFormatString: function(tableName, columnName) {
            switch (tableName)
            {
                case 'Parcels':
                    switch (columnName)
                    {
                        case 'Parcel Number':
                            var formatString = '<a href=\"#\" onclick=\\\'javascript:window.open(\"http://www.larimer.org/assessor/query/results.cfm?parcelnumber={0}\");\\\'>{0}</a>';
                            return formatString;
                        default:
                            return '';                            
                    }
                    break;
                case 'Parcel Addresses':
                    switch (columnName)
                    {
                        case 'Parcel Number':
                            var formatString = '<a href=\"#\" onclick=\\\'javascript:window.open(\"http://www.larimer.org/assessor/query/results.cfm?parcelnumber={0}\");\\\'>{0}</a>';
                            return formatString;
                        case 'CityDocs':
                            var formatString = '<a href=\"#\" onclick=\\\'javascript:window.open(\"http://citydocs.fcgov.com/?q={0}&cmd=search\");\\\'>{0}</a>';
                            return formatString;
                        default:
                            return '';                            
                    }
                    break;
                case 'Links':
                    switch (columnName)
                    {
                        case 'Parcel Number':
                            var formatString = '<a href=\"#\" onclick=\\\'javascript:window.open(\"http://www.larimer.org/assessor/query/results.cfm?parcelnumber={0}\");\\\'>{0}</a>';
                            return formatString;
                        case 'CityDocs':
                            var formatString = '<a href=\"#\" onclick=\\\'javascript:window.open(\"http://citydocs.fcgov.com/?q={0}&cmd=search\");\\\'>{0}</a>';
                            return formatString;
                        default:
                            return '';                            
                    }
                    break;
                case 'Council Districts':
                    switch (columnName)
                    {
                        case 'Mayor E-Mail':
                            var formatString = '<a href=\\\'mailto:{0}\\\'>{0}</a>';
                            return formatString;
                        case 'E-Mail':
                            var formatString = '<a href=\\\'mailto:{0}\\\'>{0}</a>';
                            return formatString;
                        default:
                            return ''; 
                    }
                    break;
                case 'Art in Public':
                    switch (columnName)
                    {
                        case 'Website':
                            var formatString = '<a href=\"#\" onclick=\\\'javascript:window.open(\"http://fcgov.com/artspublic/{0}.php\");\\\'>{0}</a>';
                            return formatString;
                        default:
                            return ''; 
                    }
                    break;
                case 'City Zoning':
                    switch (columnName)
                    {
                        case 'Code Link':
                            var formatString = '<a href=\"#\" onclick=\\\'javascript:window.open(\"http://www.colocode.com/ftcollins/landuse/article4.htm#{0}\");\\\'>{0}</a>';
                            return formatString;
                        default:
                            return ''; 
                    }
                    break;
                case 'TOD Overlay':
                    switch (columnName)
                    {
                        case 'Code Link':
                            var formatString = '<a href=\"#\" onclick=\\\'javascript:window.open(\"http://www.colocode.com/ftcollins/landuse/article3.htm#{0}\");\\\'>{0}</a>';
                            return formatString;
                        default:
                            return ''; 
                    }
                    break;
                case '2009 Offenses':
                    switch (columnName)
                    {
                        case 'Offense':
                            var formatString = '<a href=\"#\" onclick=\\\'javascript:window.open(\"http://gisims.fcgov.com/website/police/description.htm#{0}\");\\\'>{0}</a>';
                            return formatString;
                        default:
                            return ''; 
                    }
                    break;
                case '2008 Offenses':
                    switch (columnName)
                    {
                        case 'Offense':
                            var formatString = '<a href=\"#\" onclick=\\\'javascript:window.open(\"http://gisims.fcgov.com/website/police/description.htm#{0}\");\\\'>{0}</a>';
                            return formatString;
                        default:
                            return ''; 
                    }
                    break;
                case '2007 Offenses':
                    switch (columnName)
                    {
                        case 'Offense':
                            var formatString = '<a href=\"#\" onclick=\\\'javascript:window.open(\"http://gisims.fcgov.com/website/police/description.htm#{0}\");\\\'>{0}</a>';
                            return formatString;
                        default:
                            return ''; 
                    }
                    break;
                case '2006 Offenses':
                    switch (columnName)
                    {
                        case 'Offense':
                            var formatString = '<a href=\"#\" onclick=\\\'javascript:window.open(\"http://gisims.fcgov.com/website/police/description.htm#{0}\");\\\'>{0}</a>';
                            return formatString;
                        default:
                            return ''; 
                    }
                    break;
                case '2005 Offenses':
                    switch (columnName)
                    {
                        case 'Offense':
                            var formatString = '<a href=\"#\" onclick=\\\'javascript:window.open(\"http://gisims.fcgov.com/website/police/description.htm#{0}\");\\\'>{0}</a>';
                            return formatString;
                        default:
                            return ''; 
                    }
                    break;
                case 'Subdivisions':
                    switch (columnName)
                    {
                        case 'CityDocs':
                            var formatString = '<a href=\"#\" onclick=\\\'javascript:window.open(\"http://citydocs.fcgov.com/?q={0}&cmd=search\");\\\'>{0}</a>';
                            return formatString;
                        default:
                            return '';                            
                    }
                    break;
                default:
                case 'Annexations':
                    switch (columnName)
                    {
                        case 'CityDocs':
                            var formatString = '<a href=\"#\" onclick=\\\'javascript:window.open(\"http://citydocs.fcgov.com/?q={0}&cmd=search\");\\\'>{0}</a>';
                            return formatString;
                        default:
                            return '';                            
                    }
                    break;
                    return '';
            }
        }
    }
}();