// Create the tooltips only when document ready
$(document).ready(function() {
	// Use the each() method to gain access to each elements attributes
		$('#map div img').each(function() {
			$(this).qtip( {
				content : $(this).attr('alt'), // Use the ALT attribute of the area map
				position : {
					corner : {
						target : 'topMiddle',
						tooltip : 'bottomMiddle'
					}
				},
				style : {
					background : '#3D6266',
					color : 'white',
					textAlign : 'center',
					border : {
						width : 4,
						radius : 0,
						color : '#3D6266'
					},
					tip : true
				// Apply a tip at the default tooltip corner
				}
			});
		});
	});
