jQuery.noConflict();
jQuery('document').ready(function(){
	filter_tooltip_qtip = { 
			position: {my: 'top left', at: 'bottom right'},
			style: {classes: 'ui-tooltip-rounded ui-tooltip-shadow'}
		};
	
	jQuery("img.filter_tooltip[alt~='General']").qtip( jQuery.extend({}, filter_tooltip_qtip, {
			content: 'Filter the current item selection by general features such as price, color and manufacturer'
		})
	);
	
	/* Quickship Blurbs */
	jQuery("img.quickship_searchresults").qtip( jQuery.extend({}, filter_tooltip_qtip, {
			content: 'Quick ship items leave our warehouse in 24-48 hours'
		})
	);
	
	jQuery("img.quickship_productpage").each(function(){
		jQuery(this).qtip({
			content: { 
				text: '<img class="right" src="http://www.designerappliances.com/skin/frontend/appliances/default/images/quickship-small.gif" alt="" title="Quick Ship" width="28" height="18" /> <h2>Quick Ship</h2><div class="clear">&nbsp;</div>Items labeled as <b>Quick Ship</b> will ship within three business days from our warehouse in New Jersey. Actual delivery times will vary based on your location and shipping service used. If you are ordering multiple items and not all items qualify for Quick Ship, the order will ship when all items have been allocated.',
				title: {
					text: '',
					button: true
				} 
			},
			position: {
				at: 'bottom center', // Position the tooltip above the link
				my: 'top center',
				viewport: $(window), // Keep the tooltip on-screen at all times
				effect: false // Disable positioning animation
			},
			show: {
				event: 'click',
				solo: true // Only show one tooltip at a time
			},
			hide: 'unfocus',
			style: {
				classes: 'ui-tooltip-quickship ui-tooltip-light ui-tooltip-shadow'
			}	
		})
		.click(function(event) { event.preventDefault(); });
	});
	
	jQuery("img.free_shipping").each(function(){
		jQuery(this).qtip({
			content: { 
				text: '<h2>What is Free Standard Delivery?</h2>This fully insured service typically covers curbside delivery (or doorman drop). Once your order leaves our warehouse, you will receive a tracking number as well as the contact information for your shipper. This information enables you to track your package at your convenience. The shipping company will call in advance to arrange a date and time for your delivery appointment. If you require product to be brought inside your home please consider our "In-Home Delivery" option. Please take advantage of our comprehensive website and read our pre-purchasing tips section if you have any questions.',
				title: {
					text: '',
					button: true
				} 
			},
			position: {
				at: 'bottom center', // Position the tooltip above the link
				my: 'top center',
				viewport: $(window), // Keep the tooltip on-screen at all times
				effect: false // Disable positioning animation
			},
			show: {
				event: 'click',
				solo: true // Only show one tooltip at a time
			},
			hide: 'unfocus',
			style: {
				classes: 'ui-tooltip-quickship ui-tooltip-light ui-tooltip-shadow'
			}	
		})
		.click(function(event) { event.preventDefault(); });
	});
	
	jQuery("img.standard_delivery").each(function(){
		jQuery(this).qtip({
			content: { 
				text: '<h2>What is Standard Delivery?</h2>This fully insured service typically covers curbside delivery (or doorman drop). Once your order leaves our warehouse, you will receive a tracking number as well as the contact information for your shipper. This information enables you to track your package at your convenience. The shipping company will call in advance to arrange a date and time for your delivery appointment. If you require product to be brought inside your home please consider our "In-Home Delivery" option. Please take advantage of our comprehensive website and read our pre-purchasing tips section if you have any questions.',
				title: {
					text: '',
					button: true
				} 
			},
			position: {
				at: 'bottom center', // Position the tooltip above the link
				my: 'top center',
				viewport: $(window), // Keep the tooltip on-screen at all times
				effect: false // Disable positioning animation
			},
			show: {
				event: 'click',
				solo: true // Only show one tooltip at a time
			},
			hide: 'unfocus',
			style: {
				classes: 'ui-tooltip-quickship ui-tooltip-light ui-tooltip-shadow'
			}	
		})
		.click(function(event) { event.preventDefault(); });
	});
	
	jQuery("img.in_home_delivery").each(function(){
		
		jQuery(this).qtip({
			content: { 
				text: '<h2>What is In-Home Delivery?</h2>Our courteous delivery professionals will bring the item inside your home (threshold-plus). Fully insured In-Home Delivery allows you to schedule a delivery appointment that works with your schedule during normal business hours, guaranteeing the ability to inspect your order at the time of delivery. (Buildings without elevators with stair wells up or down will be accessed a per flight surcharge by our shipper. Please contact us for a quote).  You can take advantage of our comprehensive website and read our pre-purchasing tips section if you have any questions.',
				title: {
					text: '',
					button: true
				} 
			},
			position: {
				at: 'bottom center', // Position the tooltip above the link
				my: 'top center',
				viewport: $(window), // Keep the tooltip on-screen at all times
				effect: false // Disable positioning animation
			},
			show: {
				event: 'click',
				solo: true // Only show one tooltip at a time
			},
			hide: 'unfocus',
			style: {
				classes: 'ui-tooltip-quickship ui-tooltip-light ui-tooltip-shadow'
			}	
		})
		.click(function(event) { event.preventDefault(); });
	});
});

/*
jQuery('document').ready({
	//jQuery('img').qtip({ content: 'Long hand notation' });
	alert('test');
});

*/

/*
	alert('test');
	jQuery("img").qtip({
		   content: 'Short hand notation'
		});
	alert('test2');
	*/





//var filter_tooltip_qtip = { position: {my: 'top left', at: 'bottom right'},  style: {classes: 'ui-tooltip-rounded ui-tooltip-shadow'}};

/*
jQuery(".filter_tooltip:contains('General')").qtip( jQuery.extend({}, filter_tooltip_qtip, {
		content: 'I <3 rounded corners!'
	});
*/
/*
jQuery("img.filter_tooltip").qtip({
	content: 'I <3 rounded corners!'
});
*/

