// File to define qTip tooltips -- see different class selectors for different position versions
$(document).ready(function(){
	
	//normal -- above link
	$('#latest_images li, a.form_tip, .rs_link, .prw_link, .qtip').each(function() {

		$(this).qtip({
			position: {
				target: 'mouse',
				corner: {
	         		tooltip: 'bottomRight'
				}
				},	
				style: {
					border: {
						radius: 5
					},
					tip: 'bottomRight',
					name: 'light'
				},
				show: { delay: 50 }		       
		    });
	});
	
	//low -- underneath link
	$('.qtip_low').each(function() {

		$(this).qtip({
			position: {
				target: 'mouse',
				corner: {
	         		tooltip: 'topRight'
				}
				},	
				style: {
					border: {
						radius: 5
					},
					tip: 'topRight',
					name: 'light'
				},
				show: { delay: 50 }		       
		    });
	});
	
	//low and wide!
	$('.qtip_low_wide').each(function() {

		$(this).qtip({
			position: {
				target: 'mouse',
				corner: {
	         		tooltip: 'topRight'
				}
				},	
				style: {
					border: {
						radius: 5
					},
					width: 400,
					tip: 'topRight',
					name: 'light'
				},
				show: { delay: 50 }		       
		    });
	});
	
	//low and right!
	$('.qtip_low_right').each(function() {

		$(this).qtip({
			position: {
				target: 'mouse',
				corner: {
	         		tooltip: 'topLeft'
				}
				},	
				style: {
					border: {
						radius: 5
					},
					tip: 'topLeft',
					name: 'light'
				},
				show: { delay: 50 }		       
		    });
	});
	
	$('.qtip_low_right_wide').each(function() {

		$(this).qtip({
			position: {
				target: 'mouse',
				corner: {
	         		tooltip: 'topLeft'
				}
				},	
				style: {
					border: {
						radius: 5
					},
					width: 280,
					tip: 'topLeft',
					name: 'light'
				},
				show: { delay: 50 }		       
		    });
	});
	
	
});	
