window.addEvent('domready', function() {
     
     
    //store titles and text
    $$('.tipz').each(function(element,index) {
        var content = element.get('title').split('::');
        element.store('tip:title', content[0]);
        element.store('tip:text', content[1]);
    });
     
    //create the tooltips
    var tipz = new Tips('.tipz',{
        className: 'tipz',
        fixed: true,
        hideDelay: 50,
        showDelay: 50
    });
    

 
});

var Observer = new Class({
	NOTIFY : 'notify',		// the observation event name
 
    initialize: function( expr, mseconds){
        this.expr = expr;
		this.oldValue = this.expr();
        this.timer = this.notify.periodical(mseconds || 1000, this);
    },
    notify: function() {	// called internal for notifying listeners
		this.value = this.expr();
		if( this.oldValue!=this.value) {
			this.fireEvent( Observer.NOTIFY, [ this]);
			this.oldValue = this.value;
		}
    },
	stop:function() {
		$clear( this.timer);					
	}
});
Observer.implement( new Events);