var $j = jQuery.noConflict();

$j(document).ready(function() {
	$j('#menu ul li ul').hide(); 
	$j("#menu ul li.current_page_ancestor ul").show()
	$j("#menu ul li.current_page_item ul").show()
	$j('#menu ul li:not(.current_page_ancestor):not(.current_page_item)').hover(function() {
			if ( $j.browser.msie ) {
				if(parseInt($j.browser.version, 10)<9) {
					$j(this).find('ul').show();
				} else {
					$j(this).find('ul').slideDown('slow');
				}
			} else {
				$j(this).find('ul').slideDown('slow');
			}
		},
		function() {
		  $j(this).find('ul').hide();
	});
	
	// Increase Font Size
	$j(".increaseFont").click(function(){
		$j('.automatic').css('font-size', '13pt');
		$j('.automatic').css('line-height', '1.3em');
	});
	// Decrease Font Size
	$j(".decreaseFont").click(function(){
		$j('.automatic').css('font-size', '10pt');
		$j('.automatic').css('line-height', '1.4em');
	});
	
	$j(".lawyer-item img").hover(function() {
			$j(this).fadeTo( '40', '0.6');
		}, 
		function() {
			$j(this).fadeTo( '40', '1');
	});
});
