/* global theme (base on blue theme) */

(function ($) {
	$.fn.themedQtip = function(){	
		return this.qtip({
			style: { 
			    border: {
			        width: 2,
			        radius: 5
			   	},
			   	width: { min: 200, 
			   			 max: 450
			   	},
			   	name: 'light',
				tip: true
			},				
			position: {
				adjust: { 
			   		screen: true
				}
			},			
			show: {
				effect: {
					type: 'fade',
					length: 300
				}
			},				
			hide: {
				fixed: true,
				delay: 650,
				effect: {
					type: 'fade',
					length: 300
				}
			}
		});	
	};

	$.fn.themedErrorQtip = function(){	
		return this.qtip({
			style: { 
			    border: {
			        width: 2,
			        radius: 5,
			    	color: '#C33114'
			   	},
			   	width: { min: 200,
			   			 max: 450
			   	},
			   	name: 'light',
				tip: true
			},				
			position: {
				adjust: { 
			   		screen: true
				}
			},				
			show: {
				effect: {
					type: 'fade',
					length: 300
				}
			},				
			hide: {
				effect: {
					type: 'fade',
					length: 300
				}
			}
		});
	};
})(jQuery);
	
jQuery(document).ready(function($) {
	jQuery(".helplink").themedQtip();
	jQuery(".errorIndicator").themedErrorQtip();
});
