var ServerViewTimer = new Class({
	id:'c',
	run:true,
	refresh: (function(){
		this.load();
	}),
	options:{
		'runTime':60000,
		'url':''
	},
	initialize: function( _id, options ){
		this.id = _id;
		this.setOptions( options );
		this.setup();
	},
	setup: function(){
		//alert(1);
		this.aim = $( this.id);
		this.load( this.options.url );
	},
	load:function(){
		var ajax = new Ajax( this.options.url, {
			'method': 'get',
			'evalScripts': true,
			'onSuccess':function( _req ){
				this.afterLoad( _req );
			}.bind(this)
		});
		ajax.request();
	},
	afterLoad: function( _req ){
		this.onTimer(_req);
		if( this.run ){
			this.periodical = this.refresh.periodical( this.options.runTime, this ); 
			this.run = false;
		}
	},
	onTimer: function(_req){}
})
ServerViewTimer.implement( new Options );
