/* ************ GLOBAL JAVASCRIPT FUNCTIONS ******************* */
// Add a class target_blank links.
$(document).ready(function(){  
    $("a[href*='http://']:not([href*='"+location.hostname+"'])")
    .attr("target","_blank")
    .addClass("external");  
});
// FAQ DROP DOWNS   
$(document).ready(function() {
	$('dl.faq dd').hide();
	$('dl.faq dt').click(function() {
          $(this).toggleClass('faq_close').next().slideToggle(800);
		  return false;
        });
      });
// FORM VALIDATION
$(document).ready(function() {
	  $('#inquire').validate();
		
 });
$(document).ready(function() { 
				
var options = { 
	target:    '#alert'
	}; 
	$('#inquire').ajaxForm(options); 
	}); 
										
	$.fn.clearForm = function() {
	return this.each(function() {
		var type = this.type, tag = this.tagName.toLowerCase();
		if (tag == 'form')
			return $(':input',this).clearForm();
		if (type == 'text' || type == 'password' || tag == 'textarea')
			this.value = '';
		else if (type == 'checkbox' || type == 'radio')
			this.checked = false;
		else if (tag == 'select')
			this.selectedIndex = -1;
		});
	}; 
/* ROTATING HEADER IMAGES  */

$(document).ready(function() {
	$('#rotation').cycle()
	$('#quote_group').cycle()
	});

