/*$.fn.qtip.styles.tsusa{
   border: {
      width: 10,
      radius: 6,
      color: '#65657F'
   }, 
   background: 'white',
   color: 'red'
}
style: { name: 'tsusa' }*/
$.fn.qtip.styles.tsusa = { // Last part is the name of the style
   style: { 
		  width: 400,
		  padding: 0,
		  background: '#e4e4e4',
		  color: 'black',
		  textAlign: 'center',
		  border: {
			 width: 7,
			 radius: 5,
			 color: '#65657F'
		  }
   }
}
$(document).ready(function(){	
	$('.prototipper').each(function(){
		$(this).qtip({
		   content: qTipContent(this),
		   position:{
			   adjust:{
				   screen: true
			   }
		   },
		   style: { 
				  width: 500,
				  padding: 0,
				  background: '#e4e4e4',
				  color: 'black',
				  textAlign: 'left',
				  border: {
					 width: 7,
					 radius: 5,
					 color: '#65657F'
				  },
		  name: 'tsusa'
		   }
		});
	});
});


function qTipContent(div){
	var html;
	html = '<div style="background-color:#65657F; color:#fff; text-align:center">' + $(div).attr('title') + '</div>';
	html += '<div style="padding:5px;">'+$(div).attr('alt')+'</div>';
	return html;
}