//no conflict jquery (UNCOMMENT IF ALSO USING MOOLTOOLS OR OTHER CONFLICTING LIBRARY)
//jQuery.noConflict();

//header help button
$(function(){
	$('a#locationsDirections').click(function(){$('#slide-panel').slideToggle(); return false;});
	$('#slide-panel').css('display', 'none');
	//
	$('a#eventListButton').click(function(){$('#eventListDisplay').slideToggle(); return false;});
	$('#eventListDisplay').css('display', 'none');
});// JavaScript Document



// Clear input text and darken color on a form field
function clearAndColor(el) {
	//grab the current fields value and set a variable
	if (el.defaultValue==el.value) el.value = "";
	//Change the form fields text color
	if (el.style) el.style.color = "#333";

}
//Replace the default text
function reText(el){
	//Change the form fields text color
	if (el.style) el.style.color = "#6e5938";
	if (el.value== "") el.value = el.defaultValue;
}

//---------------------------------------------------------------------------------------------
//tooltips
//---------------------------------------------------------------------------------------------

//Search bar buttons
//---------------------------------------------------------------------------------------------
/*
$('a#casebutton').qtip({
   content: 'Do i have a case?',
   show: 'mouseover',
   hide: 'mouseout',
   style: { name: 'cream', tip: true },
   position: {
      corner: {
         target: 'mouse',
         tooltip: 'bottomLeft'
      }
   }
});

$('a#insbutton').qtip({
   content: 'Resources on how to handle your insurance law case from the insurance law team',
   show: 'mouseover',
   hide: 'mouseout',
   style: { name: 'cream', tip: true },
   position: {
      corner: {
         target: 'mouse',
         tooltip: 'bottomLeft'
      }
   }
});

$('a#helpartbutton').qtip({
   content: 'Read helpful articles written to aid in your decisions',
   show: 'mouseover',
   hide: 'mouseout',
   style: { name: 'cream', tip: true },
   position: {
      corner: {
         target: 'mouse',
         tooltip: 'bottomLeft'
      }
   }
});

//Help button
$('a#needhelp').qtip({
   content: 'Click to Reveal Help Options',
   show: 'mouseover',
   hide: 'mouseout',
   style: { name: 'cream', tip: true },
   position: {
      corner: {
         target: 'bottomRight',
         tooltip: 'topRight'
      }
   }
});

//Replace all titles with qtips
$('a.tip[title]').qtip({ 
						
	style: { name: 'blue', tip: true },
	position: {
    	corner: {
       		target: 'rightTop',
         	tooltip: 'bottomRight'
    	}
   } 
})*/
// end tooltips --------------------------------------------------------------------------------