$(document).ready(function() {

	//Default Action
	$(".tabcontent").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".tabcontent:first").show(); //Show first tab content
	
	//On Click Event
	$("ul.tabs li").click(function() {
		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tabcontent").hide(); //Hide all tab content
		var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active content
		return false;
	});

});
$(document).ready(function() {

	$('.attorneythumb img').hover(function() {
		$(this).animate({ opacity : "0.7" }, 200);            
	}, function() {
		$(this).animate({ opacity : "1.0" }, 200);
	});
	
});
/*
$(function(){
	$(".attorneythumb").tipTip({maxWidth: "auto", defaultPosition: "top", edgeOffset: 1, delay: 0 });
});
$(function () {
	$('input#attorney_search').quicksearch('a.attorneythumb', {
		'loader': 'img.attorneysearch'
	}
	);
});
*/

$(document).ready(function() {

	$('.practiceattorneylink').hover(function() {
		$(this).animate({ marginRight : "20px" }, 150);            
	}, function() {
		$(this).animate({ marginRight : "40px" }, 150);
	});

	$('.attorneyextra').hover(function() {
		$(this).animate({ marginLeft : "20px" }, 150);            
	}, function() {
		$(this).animate({ marginLeft : "40px" }, 150);
	});

	$('.rightlink').hover(function() {
		$(this).animate({ borderLeftWidth : "6px" }, 150);            
	}, function() {
		$(this).animate({ borderLeftWidth : "0px" }, 150);
	});
	
});
