
function tooltipInit() 
{
	var tipCheck = $$('.navWrap');
	if( tipCheck != null) {
	    ibmTooltips = new toolTips();
	}
}


var toolTips = new Class({
	
	initialize: function(element, options) {
		this.options = Object.extend({
			tipOverCssClass:'toolTipOver',
			tipUnderCssClass:'toolTipUnder',
			tipMediumCssClass:'toolTipMedium',
			tipLargeCssClass:'toolTipLarge',
			tipRightCssClass:'toolTipRight',			
			tipOverOffsets:{'x': 0, 'y': -40},
			tipRightOffsets:{'x': 111, 'y': 0},
			tipMediumOffsets:{'x': 20, 'y': -53},
			tipLargeOffsets:{'x': 20, 'y': -70},
			tipUnderOffsets:{'x': -130, 'y': 10}
		}, options || {});
		
		var tipSearchCut
		var tipIbmdk
		var tipProfile
		var tipContact
		var tipSearch
		var tipFaq
		var tipTellAFriend
		var tipLogin

		this.addTipRight('.tipSearchCut',this.tipSearchCut)
		this.addTipOver('.tipIbmdk',this.tipIbmdk)
		this.addTipMedium('.tipProfile',this.tipProfile)
		this.addTipLarge('.tipTellAFriend',this.tipTellAFriend)
		this.addTipOver('.tipContact',this.tipContact)
		this.addTipOver('.tipSearch',this.tipSearch)
		this.addTipOver('.tipFaq',this.tipFaq)
		this.addTipUnder('.tipLogin',this.tipLogin)
	},
	
	addTipOver: function(title,obj){
        obj = new Tips($$(title), {
	        fixed: true,
	        className: this.options.tipOverCssClass,
	        offsets:  this.options.tipOverOffsets
        }); 
	},
	
	addTipLarge: function(title,obj){
        obj = new Tips($$(title), {
	        fixed: true,
	        className: this.options.tipLargeCssClass,
	        offsets:  this.options.tipLargeOffsets
        }); 
	},
	
	addTipMedium: function(title,obj){
        obj = new Tips($$(title), {
	        fixed: true,
	        className: this.options.tipMediumCssClass,
	        offsets:  this.options.tipMediumOffsets
        }); 
	},
	
	
	addTipUnder: function(title,obj){
        obj = new Tips($$(title), {
	        fixed: true,
	        className: this.options.tipUnderCssClass,
	        offsets:  this.options.tipUnderOffsets
        });
	},
	
	
	addTipRight: function(title,obj){
        obj = new Tips($$(title), {
	        fixed: true,
	        className: this.options.tipRightCssClass,
	        offsets:  this.options.tipRightOffsets
        });
	}
	
	
});
