// jQuery slider tooltips
(function($) {
$(function() {
	$('span.slidertip').each(function() {
		var title = $(this).attr('title');
		$(this).attr('title', '').append('<div>' + title + '</div>');
		var width = $(this).find('div').width();
		var height = $(this).find('div').height();
		$(this).hover(
			function() {
				$(this).find('div')
					.clearQueue()
					.animate({width: width + 15, height: height + 15}, 200).show(200)
					.animate({width: width, height: height}, 200);
			},
			function() {
				$(this).find('div')
					.animate({width: width + 5, height: height + 5}, 150)
					.animate({width: 'hide', height: 'hide'}, 150);
			}
		)
	});
});
})(jQuery);

// jQuery poshytip tooltips
function PoshyTip(id) {
	$(id).poshytip({
		liveEvents: true,
		className: 'tip-white',
		bgImageFrameSize: 10
	});
}

// jQuery checkbox
function CheckBox(id, clas) {
	if ($(id).prop('checked')) {
		$(clas).prop('checked', true);
	} else {
		$(clas).prop('checked', false);
	}
}
