// Create the tooltips only on document load
$(document).ready(function() 
{

var liElems = $(".containsDescription");
$.each(liElems, function(){

	var liElem = $(this);
	var id = liElem.attr('id');
	
	
   liElem.qtip(
   {
      //content: { text: false },
      content: {
			url: './includes/news_content.php',
			//data: { id: 5 },
			data: { id: $(this).attr('id') },
			method: 'get'
			},
			
      show: { 
      		delay: 0,
      		when: { event: 'click' }
      		 },
	  hide: {
      		when: { event: 'unfocus' }
      		},
     style: { 
      		name: "cream",
      		width: { min: 350, max: 400 },
      		//width: { 300 },
      		border: { width: 1, radius: 2, color: '#DECA7E' },
      		title: { 'color': '#303030', 'background-color': '#f5f5b5' }
      	}
      		
   });
	

});


});
