// Tooltips

jQuery.noConflict();
jQuery(document).ready(function () {
    jQuery("div[url].qTipEl").each(function(){
		var self = this;
		
		jQuery(self).qtip({
			content: {
				url : jQuery(self).attr("url")
			},
			style: { 
     			padding: 5,
				width: 280,
     			background: '#EAEAEA',
     			color: 'black',
     			textAlign: 'center',
     			border: {
     				width: 7,
     				radius: 5,
     				color: '#E60D2E'
     			},
				tip: 'leftMiddle',
      			name: 'cream'
			},
			position: {
     			corner: {
        			target: 'rightMiddle',
        			tooltip: 'leftMiddle'
      			}
   			},
			show : 'click',
			hide: 'unfocus'			
		});
	});
	
	jQuery("div[url].qTipLogin").each(function(){
		var self = this;
		
		jQuery(self).qtip({
			content: {
				url : jQuery(self).attr("url")
			},
			style: { 
     			padding: 5,
				width: 360,
     			background: '#FFFED5',
     			color: 'black',
     			textAlign: 'center',
     			border: {
     				width: 7,
     				radius: 5,
     				color: '#FFFED5'
     			},
				tip: 'topRight',
      			name: 'cream'
			},
			position: {
     			corner: {
        			target: 'bottomMiddle',
        			tooltip: 'topRight'
      			}
   			},
			show : "mouseover",
			hide: 'unfocus'			
		});
	});
	
	jQuery("div[url].qTipCalc").each(function(){
		var self = this;
		
		jQuery(self).qtip({
			content: {
				url : jQuery(self).attr("url")
			},
			style: { 
     			padding: 5,
				width: 402,
     			background: '#CC0000',
     			color: 'black',
     			textAlign: 'center',
     			border: {
     				width: 7,
     				radius: 5,
     				color: '#CC0000'
     			},
				tip: 'bottomLeft',
      			name: 'cream'
			},
			position: {
     			corner: {
        			target: 'topLeft',
        			tooltip: 'bottomLeft'
      			}
   			},
			show : "click",
			hide: 'unfocus'			
		});
	});
	
	jQuery("div[url].qTipCalc2").each(function(){
		var self = this;
		
		jQuery(self).qtip({
			content: {
				url : jQuery(self).attr("url")
			},
			style: { 
     			padding: 5,
				width: 570,
     			background: '#CC0000',
     			color: 'black',
     			textAlign: 'center',
     			border: {
     				width: 7,
     				radius: 5,
     				color: '#CC0000'
     			},
				tip: 'bottomLeft',
      			name: 'cream'
			},
			position: {
     			corner: {
        			target: 'topLeft',
        			tooltip: 'bottomLeft'
      			}
   			},
			show : "mouseover",
			hide: 'unfocus'			
		});
	});
		
		
	jQuery("#bt_login").click(function(){
            var lgArea = jQuery("#wLogin");
            if (lgArea.css('visibility') != 'hidden')
	        	lgArea.css('visibility', 'hidden');
	        else
	        	lgArea.css('visibility', 'visible');

	}); 
	
});
