/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

var newscalendar = {}

newscalendar.tipSetup = function(
	width,
	backgroundColor,
	borderColor,
	borderWidth,
	radius,
	padding,
	spikeLength,
	spikeGirth,
	shadow,
	shadowBlur,
	shadowOffsetX,
	shadowOffsetY,
	positions,
	fadeSpeed) {

	newscalendar.tip = {

		width : width,
		backgroundColor : backgroundColor,
		borderColor : borderColor,
		borderWidth : borderWidth,
		radius : radius,
		padding : padding,
		spikeLength : spikeLength,
		spikeGirth : spikeGirth,
		shadow: shadow,
		shadowBlur: shadowBlur,
		shadowOffsetX: shadowOffsetX,
		shadowOffsetY: shadowOffsetY,
		positions: positions,
		fadeSpeed : fadeSpeed
	}

}

newscalendar.addToolTipSelectorClass = function( element, className ) {
    jQuery( element ).addClass( className );
}

newscalendar.removeToolTipSelectorClass = function( element, className ) {
    jQuery( element ).removeClass( className );
}

newscalendar.processToolTip = function( toolTipID ) {

	try {
		jQuery( '#idMenu' + toolTipID ).bubbletip(jQuery('#toolTipIdMenu' + toolTipID), {
			positionAtElement:jQuery('#idMenu' + toolTipID),
			/*offsetTop: -232,*/
			offsetLeft: 0,
			deltaPosition: 0,
			animationDuration: 100,
			delayShow: 0,
			delayHide: 250,
			calculateOnShow: true
		});

	} catch( e ) {}
}
