var loader = new Class({
    Implements: [Events,Options],
    options: {
		url:'localhost',
		type:'ajax',
		onComplete: Class.empty
    },
    initialize: function(options){
        //...
        this.setOptions(options); 
    },
    load:function(){
    	if(this.options.type=='ajax'){
			this.ajax.bind(this);
		}else{
			this.iframe.bind(this);
		}
		this.fireEvent("onComplete", [this.options.url, this.options.type], 50);
	},
	remove:function(){
		
	},
    iframe: function(){
		
	},
	ajax: function(){
		
	}
});

