function reloadButtonHoverEffect() {
	jQuery('.button').hover(function() {
		jQuery(this).addClass('ui-state-hover');
	}, function() {
		jQuery(this).removeClass('ui-state-hover');
	}).mousedown(function() {
		jQuery(this).addClass('ui-state-active');
	}).mouseup(function() {
		jQuery(this).removeClass('ui-state-active');
	});
}

if (typeof jQuery != 'undefined') {
	jQuery(document).ready(function() {
		reloadButtonHoverEffect();
	});

	jQuery.ajaxSetup( {
		cache : false
	});
}

function reloadToolTipEffect() {
	$('a.lwinfo[href]').each(function() {
		$(this).qtip( {
			content : {
				url : $(this).attr('href'),
				data : {
					q : $(this).text()
				}
			},
		style: { 
			      width: 280,
			      padding: 5,
			      textAlign: 'left',
			      border: {
			         width: 1,
			         radius: 5
			      },
			      tip: 'topLeft'
			   }

		});

	});
}

$(document).ready(function() {
	reloadToolTipEffect();
});
