function qtip_include() {
	jQuery(document).ready(function() {

		qtip_include_sale_images();

		jQuery('area[qtip]').each(function() {
			jQuery(this).qtip({
				content: jQuery(this).attr('qtip'),
				position: {
					corner: {
						tooltip: 'bottomLeft',
						target: 'topRight'
					},
					adjust: {
						screen: true, // qtip on-screen at all times
						mouse: true
					},
					target: 'mouse'
				},
				style: {
					border: {
						width: 1,
						radius: 20,
						color: jQuery(this).attr('qtipcolor')
					},
					width: {
						min: 440,
						max: 440
					},
					padding: 1,
					tip: true,
					background: jQuery(this).attr('qtipcolor'),
					color: '#ffffff'
				},
				show: {
					solo: true,
					effect: {
						length: 0
					},
					delay: 0
				},
				hide: {
					delay: 100,
					effect: {
						length: 0
					}
				},
				api: {
					beforeShow: function(){
						jquery_imagewrapper('tinysold');
						return true;
					}
				}
			});
		});
		jQuery('div[qtip]').each(function() {
			jQuery(this).qtip({
				content: jQuery(this).attr('qtip'),
				position: {
					corner: {
						tooltip: 'bottomLeft',
						target: 'topRight'
					},
					adjust: {
						screen: true, // qtip on-screen at all times
						mouse: true
					},
					target: 'mouse'
				},
				style: {
					border: {
						width: 1,
						radius: 15,
						color: jQuery(this).attr('qtipcolor')
					},
					padding: 1,
					tip: true,
					background: jQuery(this).attr('qtipcolor'),
					color: '#ffffff'
				},
				show: {
					solo: true,
					effect: {
						length: 0
					},
					delay: 0
				},
				hide: {
					delay: 100,
					effect: {
						length: 0
					}
				},
				api: {
					beforeShow: function(){
						jquery_imagewrapper('tinysold');
						return true;
					}
				}
			});
		});
	});
}

function qtip_include_sale_images() {
	jQuery('img').each(function() {
		var file = jQuery.url.setUrl(jQuery(this).attr('src')).attr('file');
		var name = '';
		var html = '';
		if(file == 'BORNSCHEM00626_web.gif') {
			name = 'Leverink+Assen Resultaatmakelaars';
			html = '<a href="http://www.resultaatmakelaarstwente.nl/" target="_blank">www.resultaatmakelaarstwente.nl</a>';
		}
		if(file == 'BORNSCHEM12733_web.gif') {
			name = 'ten Hag Makelaars';
			html = '<a href="http://www.tenhag.nl/" target="_blank">www.tenhag.nl</a>';
		}
		if(file == 'BORNSCHEM00625_web.gif') {
			name = 'Euverman Temmink &amp; Partners';
			html = '<a href="http://www.etpmakelaars.nl/" target="_blank">www.etpmakelaars.nl</a>';
		}
		if(file == 'BORNSCHEM00627_web.gif') {
			name = 'Weghorst makelaardij';
			html = '<a href="http://www.weghorstmakelaardij.nl/" target="_blank">www.weghorstmakelaardij.nl</a>';
		}
		if(file == 'BORNSCHEM12748_web.gif') {
			name = 'MVGM Vastgoedmanagement';
			html = '<a href="http://www.ikwilhuren.nu/" target="_blank">www.ikwilhuren.nu</a>';
		}
		if(file == 'BORNSCHEM12768_web.gif') {
			name = 'Roosdom Tijhuis';
			html = '<a href="http://www.roosdomtijhuis.nl/" target="_blank">www.roosdomtijhuis.nl</a>';
		}
		if(name == '') {
		} else {
			jQuery(this).css('cursor', 'help');
			jQuery(this).removeAttr('title');
			jQuery(this).qtip({
				content: '<div class=\'qtipcontent\'><div class=\'qtiptitle\'>'+name+'</div><div class=\'qtiptext\'>'+html+'</div>',
				position: {
					corner: {
						tooltip: 'bottomLeft',
						target: 'topLeft'
					},
					adjust: {
						screen: true, // qtip on-screen at all times
						x: 10,
						y: 5
					}
				},
				style: {
					border: {
						width: 1,
						radius: 15,
						color: '#537C1F'
					},
					padding: 1,
					tip: true,
					background: '#537C1F',
					color: '#ffffff'
				},
				show: {
					solo: true,
					effect: {
						length: 0
					},
					delay: 0
				},
				hide: {
					delay: 2000,
					effect: {
						length: 0
					},
					when: {
						event: 'mouseleave'
					}
				}
			});
		}
	});
}
