
// CHANGE ALL TITLE TOOLTIPS (NOT USED)

/*$('*[title]').each(function() {
   $(this).qtip({ 
	  content: $(this).attr('title'),
	  position: {
	  target: 'mouse',
		 adjust: {
			screen: true,
			x: 15,
			y: 5
		},
		 corner: {
			target: 'rightMiddle',
			tooltip: 'leftMiddle'
		 }
	  },
	  style: {
		 fontSize: 11,
		 padding: '2px 8px',
		 textAlign: 'left',
		 lineHeight: 1.5,
		 //fontWeight: 'bold',
		 border: {
				 width: 1,
				 radius: 4
			  },
		 //tip: 'bottomLeft',
		 name: 'cream'
	 }
   })
   .attr('title', '');
});*/


// SIMPLE HOVER HELP POPUPS

$('span.help').each(function () {
    $(this).qtip({
        content: $(this).attr('title'),
        position: {
            adjust: {
                screen: false,
                x: 2,
                y: 8
            },
            corner: {
                target: 'topRight',
                tooltip: 'bottomLeft'
            }
        },
        //show: 'click',
        hide: 'mouseout',
        style: {
            title: { 'font-size': 11, padding: '6px 6px', lineHeight: 1.5 },
            fontSize: 11,
            padding: '6px 8px',
            textAlign: 'left',
            lineHeight: 1.5,
            fontWeight: 'normal',
            border: {
                width: 5,
                radius: 4
            },
            tip: 'bottomLeft',
            name: 'cream'
        }
    })
   .attr('title', '');
});


// INFORMATION POPUPS WHEN USER CLICKS ON i

$('span.info').each(function () {
    $(this).qtip({
        content: {
            text: $(this).html(),
            title: {
                text: jQuery(this).attr('title')
            }
        },
        position: {
            corner: {
                target: 'leftMiddle',
                tooltip: 'rightMiddle'
            },
            adjust: {
                screen: false,
                x: -5,
                y: 0
            }
        },
        show: 'click',
        hide: 'unfocus',
        style: {
            title: { 'font-size': 14, padding: '6px 8px', lineHeight: 1.5 },
            fontSize: 12,
            textAlign: 'left',
            lineHeight: 1.5,
            fontWeight: 'normal',
            border: {
                width: 5,
                radius: 4
            },
            tip: {
                corner: 'rightMiddle'
            },
            name: 'cream',
            width: {
                max: 350,
                min: 350
            },
            padding: '6px 8px'
        }
    })
   //.attr('title', '');
});

// Input Box ToolTips

$('input.qtip').each(function () {
    $(this).qtip({
        content: {
            text: $(this).attr('title')
        },
        position: {
            corner: {
                target: 'rightMiddle',
                tooltip: 'leftMiddle'
            },
            adjust: {
                screen: false,
                x: -5,
                y: 0
            }
        },
        show: 'focus',
        hide: 'blur',
        style: {
            title: { 'font-size': 14, padding: '6px 8px', lineHeight: 1.5 },
            fontSize: 12,
            textAlign: 'left',
            lineHeight: 1.5,
            fontWeight: 'normal',
            border: {
                width: 3,
                radius: 4
            },
            tip: {
                corner: 'leftMiddle'
            },
            name: 'red',
            width: {
            /* max: 350,
            min: 350*/
        },
        padding: '6px 8px'
    }
})
   .attr('title', '');
});
