var ShowTip = new Class({
	options:{
		'showTime':1000
	},
	initialize: function( options ){
		this.setOptions( options );
	},
	show:function( _id, _divId , _y){
		var div = $( _divId );
		var bn = $( _id );
		if( bn.clicked == 1 ){
		
		}else{
			bn.clicked = 1;
			div.setStyles({
				'display': '',
				'opacity': 0,
				'position':'absolute',
				'left':bn.getLeft(),
				'top':bn.getTop().toInt()+_y
			});
			var fx = this.getFx( _divId );
			fx.start({
				'opacity': [0, 1]
			}).chain(function() {
				bn.clicked = 0
			});
		}
	},
	getFx:function(_divId){
		var fx = new Fx.Styles( $( _divId ), {duration:this.options.showTime, wait:false } );
		return fx;
	},
	hidden:function( _divId ){
		var div = $( _divId );
		var fx = this.getFx( _divId );
		fx.start({
			'opacity': [1, 0]
		});
	}
});
ShowTip.implement( new Options );
