/* award tooltip (common)

Company : Vente-privee.com
Project : VP4 (Front)
Support : Javascript (compatible 1.3.2)

Version : V 0.1
Date : 18 01 2010
Author : Maud CLAIR

*/

// Create the tooltips only on document load
$(document).ready(function() 
{

	$('#footerAwards .tooltip').each(function()
	{
		 if($(this).find('span.info').length){
			$(this).hover(function() 
				{
					$(this).children('span.info').css('display','none');
				}
			); //neutralisation du style si javascript activé
		
			$(this).qtip({
				content: $(this).children('span.info').html(),// Set the tooltip content to the current corner
				position: {
					corner: {
						tooltip: 'bottomLeft', // Use the corner...
						target: 'topRight' // ...and opposite corner
					},
					adjust: { x: -8, y: 20 }
				},//fin position
				style: {
					width: { max: 200 },
					background:'#FEF7FA',
					border: {
						width: 1,
						radius: 0,
						color:'#F3B9D0'
					},
					padding: 5,
					color:'#725E62',
					fontSize:'10px',
					tip: { // Now an object instead of a string
						 corner: 'leftBottom', // We declare our corner within the object using the corner sub-option
						 color:'transparent',
						 size: {
							x: 8, // Be careful that the x and y values refer to coordinates on screen, not height or width.
							y : 20 // Depending on which corner your tooltip is at, x and y could mean either height or width!
						 }//fin size
					}// fin tip
				}//fin style
						
			
			}); 
		} //fin if $(this).find('span.info').length
	});
	
});
