var FavoriteShow = new Class({
	
	Implements: [Options, Events],
    estates: [],
    options: {
    },
    initialize: function(options) {
        this.setOptions(options);

	var estateCookie = Cookie.read(this.options.cookie);
    	if (estateCookie) {
        	this.estates = estateCookie.split(',');
    	}

	this.moveDestination = $$(this.options.trida)[0];
	this.moveSpan = new Element('span', {'text' : this.estates.length});
	
	if(this.estates.length > 0) {
		this.moveSpan.inject(this.moveDestination, 'top');
	}	

}
});

