// JavaScript Document

// Define your contents array
var contents = [
	'prodotti.php',
	'tecnologia.php'
];

$("#menu li.submenu a").each(function(i) // Notice the 'i' argument
{
   $(this).qtip({
      content: {
		  url: contents[i] // Use the current 'i' value to grab the content for this particular tooltip
      },
 	  style: {
		  width: 250,
		  padding: 0,
		  /*textAlign: 'center',*/
		  background: '#fff',
		  border: {
			  width: 2,
			  radius: 0,
			  color: '#bc1818'
		  },
		  /*tip: 'topMiddle',*/
		  name: 'light' // Inherit the rest of the attributes from the preset dark style
 	  },
	  position: {
		  corner: {
			  target: 'bottomLeft',
			  tooltip: 'topLeft'
		  },
		  adjust: {
			  y: -5,
			  x: -2
		  }
	  },
	  hide: {
		  when: 'mouseout',
		  fixed: true
	  }
   });
});
