$(function(){
	//all hover and click logic for buttons
	$(".fg-button:not(.ui-state-disabled)")
	.hover(
		function(){ 
			$(this).addClass("ui-state-hover"); 
		},
		function(){ 
			$(this).removeClass("ui-state-hover"); 
		}
	)
	.mousedown(function(){
			$(this).parents('.fg-buttonset-single:first').find(".fg-button.ui-state-active").removeClass("ui-state-active");
			if( $(this).is('.ui-state-active.fg-button-toggleable, .fg-buttonset-multi .ui-state-active') ){ $(this).removeClass("ui-state-active"); }
			else { $(this).addClass("ui-state-active"); }	
	})
	.mouseup(function(){
		if(! $(this).is('.fg-button-toggleable, .fg-buttonset-single .fg-button,  .fg-buttonset-multi .fg-button') ){
			$(this).removeClass("ui-state-active");
		}
	});

	$("#servicesList").accordion({
		header: "h2",
		autoHeight: false
	});
	
	var theQuotes= new Array();
	 
    theQuotes[0] = '"Thanks for always being there when we need it and for always providing outstanding service as promised."<br /><br /><span class="author">Jim McNamara<br />District Manager - BDL</span>';
    theQuotes[1] = '"The Kelly Freight team always go above and beyond and are one of the reasons U.S. Logistics is successful into and out of the LAX market."<br /><br /><span class="author">Jim McNamara<br />District Manager - BDL</span>';
    theQuotes[2] = '"Kelly Freight Services is truly an extension of our company and we want you to know we appreciate all that your team does time and again without fail."<br /><br /><span class="author">Jim McNamara<br />District Manager - BDL</span>';
	theQuotes[3] = '"GREAT job by your team @ Kelly Freight Services.  WE really appreciate your excellent service and accommodation of our last-minute changes!"<br /><br /><span class="author">Gary Volante<br />Federated Group</span>';


 
    var itsRandom = Math.floor(Math.random()*theQuotes.length);
    $('.testimonial').html(theQuotes[itsRandom ]);
    $(".testimonial").fadeIn(3000);
});
