/**
*   handle icons. Added to help handle errors in groups etc.
*
**/
function cIconManager(){
    /**
    *   Get icon
    **/
    this.get = function(iId, sColor) {
        
        if( typeof(this.oIcons[iId]) == "object" ) {
    
            return this.oIcons[iId];
    
        } else if( iId.indexOf("poi") > -1 ){
            var oIcon           = new GIcon(this.oBaseIcon);
            oIcon.image         = sBaseUrl + "GeoStart/images/poi_icon.png";
            oIcon.sg_titel      = "Bezienswaardigheid";
            return oIcon;
        } else if ( iId.indexOf("route_start") > -1 ) {
            var oIcon           = new GIcon(this.oBaseIcon);
            oIcon.iconSize      = new GSize(10, 10);
            oIcon.iconAnchor    = new GPoint(5, 5);
            oIcon.image         = sBaseUrl + "GeoStart/images/route_start.png";
            oIcon.sg_titel      = "Start van de route";
            return oIcon;
        } else if ( iId.indexOf("route_end") > -1) {
            var oIcon           = new GIcon(this.oBaseIcon);
            oIcon.iconSize      = new GSize(10, 10);
            oIcon.iconAnchor    = new GPoint(5, 5);
            oIcon.image         = sBaseUrl + "GeoStart/images/route_end.png";
            oIcon.sg_titel      = "Einde van de route";
            return oIcon;
        } else if ( iId == 'route' ) {
            var oIcon           = new GIcon(this.oBaseIcon);
            oIcon.iconSize      = new GSize(15, 15);
            oIcon.iconAnchor    = new GPoint(8, 8);
            oIcon.infoWindowAnchor  = new GPoint(8, 8);
            oIcon.image         = sBaseUrl + "icon/" + sColor + "/trans/dot.gif.png";
            oIcon.sg_titel      = "Bezienswaardigheid";
            return oIcon;               
        } else {
            return new GIcon(this.oBaseIcon);
        }
    }
}
