/* SOGIMIG: qTip - ToolTip for jQuery */
// qTipTopLeft (topLeft)
// qTipTopRight (topRight)
// qTipBottomLeft (bottomLeft)
// qTipBottomRight (bottomRight)
// qTipPlusinfo (topLeft - personalizado)
$(document).ready(function() 
{
	
	try {
		$('a.qTipTopLeft[tooltip]').each(function()
		{
			$(this).qtip({
				content: $(this).attr('tooltip'),
				position: {
					corner: {
						tooltip: 'bottomRight',
						target: 'topLeft'
					}
				},
				style: 'dark'
			});
		});
	} catch(err) {}

	try {
	$('a.qTipTopRight[tooltip]').each(function()
	{
		$(this).qtip({
			content: $(this).attr('tooltip'),
			position: {
				corner: {
					tooltip: 'bottomLeft',
					target: 'topRight'
				}
			},
			style: 'dark'
		});
	});
	} catch(err) {}

	try {
	$('a.qTipBottomLeft[tooltip]').each(function()
	{
		$(this).qtip({
			content: $(this).attr('tooltip'),
			position: {
				corner: {
					tooltip: 'topRight',
					target: 'bottomLeft'
				}
			},
			style: 'dark'
		});
	});
	} catch(err) {}

	try {
	$('a.qTipBottomRight[tooltip]').each(function()
	{
		$(this).qtip({
			content: $(this).attr('tooltip'),
			position: {
				corner: {
					tooltip: 'topLeft',
					target: 'bottomRight'
				}
			},
			style: 'dark'
		});
	});
	} catch(err) {}

	try {
	// personalizados
	$('a.qTipPlusinfo[tooltip]').each(function()
	{
		$(this).qtip({
			content: '<div class="qTipClass"><strong>Plusinfo</strong><br />Agência de Comunicação Digital<br />55 (31) 3463-8282<br />atendimento@plusinfo.com.br<br />www.plusinfo.com.br</div>',
			position: {
				corner: {
					tooltip: 'bottomRight',
					target: 'topLeft'
				}
			},
			style: 'dark'
		});
	});
	} catch(err) {}
	
});