$(document).ready(function() { 

$('td#tip-global').qtip({
         content: 'Admins can create triggers, automations, macros and views that are available to all agents and admins.',
  		 show: 'mouseover',
  		 hide: 'mouseout',
  		 style: { 
     		 name: 'cream',
     		 tip: 'topLeft'
   		 },
   		 position: { adjust: { x: -50, y: -25 } }                 
});

$('td#tip-personal').qtip({
         content: 'Agents and admins can create triggers, automations, macros and views that are only available to themselves.',
  		 show: 'mouseover',
  		 hide: 'mouseout',
  		 style: { 
     		 name: 'cream',
     		 tip: 'topLeft'
   		 },
   		 position: { adjust: { x: -50, y: -25 } }                  
});

$('td#tip-group').qtip({
         content: 'Admins can create triggers, automations, macros and views that are available to agents and admins in a specific group. ',
  		 show: 'mouseover',
  		 hide: 'mouseout',
  		 style: { 
     		 name: 'cream',
     		 tip: 'topLeft'
   		 },
   		 position: { adjust: { x: -50, y: -25 } }                   
});

$('span#tip-agent').qtip({
         content: 'Help desk operator.  Receives and resolves tickets from end-users',
  		 show: 'mouseover',
  		 hide: 'mouseout',
  		 style: { 
     		 name: 'cream',
     		 tip: 'topLeft'
   		 },
   		 position: { adjust: { x: -15, y: 0 } }                   
});

// HOME PAGE CAROUSEL
	
  $('.zfeatures').cycle({
    fx: 'fade',
    timeout: 10000,
    speed: 600,
    sync: 0,
    pager: '.zfeature-controls',
    cleartypeNoBg: true,
    cleartype: true,
    pauseOnPagerHover: true,
    pause: true
  });
	
// Fancyzooms!
	
	$('a.video_wrapper').fancyZoom({directory: 'img'}); // no need for trailing slash
    $('a.image_wrapper').fancyZoom({width:900, height: 600});
	$('a.image_wrapper').append('<em></em>');
	$('.plus a').fancyZoom({width: 500, height: 320});

});
