

function cAddScript() {    
    
    this.load = function(sType){    
        this.s = document.createElement('script'); 
        this.s.type = 'text/javascript'; 
        this.s.src = this.getSrc(sType);
        document.getElementsByTagName('head')[0].appendChild(this.s);    
        
        this.s.onload = function(){oGeoStart.displayControls();};
        this.s.onreadystatechange = function(){oGeoStart.displayControls();};
    };
    
    
    this.getSrc = function(sType){
        switch ( sType ) {
            case 'small':
                return sBaseUrl+'GeoStart/classes/controls/minicontrols.js';
            default:
                return sBaseUrl+'GeoStart/classes/controls/greycontrols_historical.js';
        }
    }
}