var TnpiTooltips = new Class({
	
	initialize : function() {
		this.cl = '.tnpi-tiny-event-feed';
	},
	
	setSelectorClass : function(cl) {
		this.cl = cl;
	},
	
	addEvents : function() {
		
		oTnpiTooltips.selectorclass = this.cl;
		
		(function($) {
			$(function(){
				
				$(oTnpiTooltips.selectorclass).qtip({
					content: this.alt,
					show: { 
						delay : 0,
						length : 10,
						when : { event : 'mouseover' }
					},
					hide: { 
						delay : 0,
						length : 10,
						when : { event : 'mouseout' }
					},
					style: {
						background: '#617C97',
						color: '#fff',
						textAlign: 'left',
						fontFamily: '"lucida grande", tahoma, verdana, arial, sans-serif;',
						fontSize: '11px',
						padding: '2px',
						paddingLeft: '4px',
						paddingRight: '4px',
						paddingBottom: '4px',
						border: {
							width : 1,
							radius : 3,
							color : '#617C97'
						},
						tip : 'leftMiddle'
					},
					position: {
						corner : {
							target: 'rightMiddle',
							tooltip: 'leftMiddle'
						}
					}
				});
			});
		})(jQuery);
	}
	
});

var TnpiSidebarTooltips = new Class({
	
	initialize : function() {
		this.cl = '.tnpi-tiny-sidebar';
	},
	
	setSelectorClass : function(cl) {
		this.cl = cl;
	},
	
	addEvents : function() {
		
		oTnpiSidebarTooltips.selectorclass = this.cl;
		
		(function($) {
			$(function(){
				
				$(oTnpiSidebarTooltips.selectorclass).qtip({
					content: this.alt,
					show: { 
						delay : 0,
						length : 10,
						when : { event : 'mouseover' }
					},
					hide: { 
						delay : 0,
						length : 10,
						when : { event : 'mouseout' }
					},
					style: {
						background: '#617C97',
						color: '#fff',
						textAlign: 'left',
						fontFamily: '"lucida grande", tahoma, verdana, arial, sans-serif;',
						fontSize: '11px',
						padding: '2px',
						paddingLeft: '4px',
						paddingRight: '4px',
						paddingBottom: '4px',
						border: {
							width : 1,
							radius : 3,
							color : '#617C97'
						},
						tip : 'topRight'
					},
					position: {
						corner : {
							target: 'leftBottom',
							tooltip: 'topRight'
						}
					}
				});
			});
		})(jQuery);
	}
	
});
