(function($){

/* the next line is an example of how you can override default options globally (currently commented out) ... */
 // $.fn.cluetip.defaults.tracking = true;
// $.fn.cluetip.defaults.debug = true;
$(document).ready(function() {

 // $.cluetip.setup({insertionType: 'insertBefore', insertionElement: 'div:first'});
 
//default theme
  $('a.basic').cluetip({
   showTitle: false, 
    ajaxCache: true,     
    leftOffset: 25, 
    width: 175,
    
    // can pass in standard $.ajax() parameters, not including error, complete, success, and url
    ajaxSettings: {   
                      dataType: 'html'
                         }


  
  });
  
    $('a.faq').cluetip({
	showTitle: false, 
	local:true, 
	hideLocal: true, 
	positionBy:      'fixed',
	topOffset:        25,   
	leftOffset: -205, 
	width: 200,
    	sticky: false,
//	positionBy:      'fixed',
//	mouseOutClose:    true, 
//	closeText:  '[close]',
	activation: 'hover',
//	closePosition: 'bottom',
	cursor: 'pointer',
  fx: {             
	open:       'fadeIn', // can be 'show' or 'slideDown' or 'fadeIn'
	openSpeed:  '2'    }
       

  
  });




  $('a.load-local').cluetip({
	  local:true, 
	  hideLocal: true, 
	     showTitle: false, 
	  arrows: false, 
	sticky: true,
	    ajaxCache: false,  
	  closePosition: 'bottom',
	activation: 'hover',
	closeText:  '[close]',
	mouseOutClose:    true, 
	positionBy:      'fixed',
	topOffset:        25,   
	leftOffset:       -205,
	width: 200,
	cursor: 'pointer',
	  
  
onShow : function () { //this bit closes the cluetip when you click the [x] to erase a search
$('a.x').click( function () {
$('#cluetip-close').click();
return false;
});

//onShow : function () { //this bit closes the cluetip when you click the [x] to erase a search
//	$('a.SaveSearch').click( function () {
//	$('#cluetip-close').click();
//	return false;
//	});
//	});

$(function() {
   $('div.s').hover( function(){
      $(this).css('background-color', '#ffffff');
 },
 function(){
   $(this).css('background-color', '#b8c9a0');
  });
});




},
  

  
   fx: {             
	open:       'fadeIn', // can be 'show' or 'slideDown' or 'fadeIn'
	openSpeed:  '2'    }
       
 });


});
  



})(jQuery);
