$(document).ready(function(){
			
			//Setup main menu
			$('#menu-wrapper > ul > li').hover(
				function(){
					$('.submenu',this).show();
				},
				function(){
					$('.submenu',this).hide();
				}
			);
			
			//Setup hero image rotation
			if( $('#feature-image li').size() > 1 )
				$('#feature-image').cycle({ fx:'fade',timeout:8000 });
			
			//Setup header search
			var searchDefault = 'Search our site...';
			$('#header form input.text').val(searchDefault).click(function(){
				if( $(this).val() == searchDefault )
					$(this).val('');
			}).blur(function(){
				if( $(this).val() == '')
					$(this).val(searchDefault);
			});
			
			//Setup email disclaimers
			$('a[href^=mailto]').click(function(){
				return confirm('By clicking "OK" you understand that no attorney-client relationship will be formed by sending an e-mail and that you should not transmit confidential information. If you are contacting us about potential representation, please limit the initial message to your name, the names of the other persons or entities involved, and a brief description of the type of case or matter. By clicking "OK" you further agree that our review of any information you transmit to us will not preclude our firm from representing a party directly adverse to you and from using this information, even if the information is confidential.');
			});
			
			//Setup sidebar slideshow
			$('#slideshow').height( $('#slideshow').height() + 80 );
			$('#slideshow p').text( $('#slideshow-slides li:first img').attr('alt') );
			$('#slideshow-slides').cycle({
				fx:'fade',
				timeout:8000,
				pager:'#slideshow-links',
				pagerAnchorBuilder:function(idx,elem){
					return '<li><a href="javascript:void(0);">' + (idx+1) + '</a></li>';
				},
				before:function(currSlideElement,nextSlideElement,options,forwardFlag){
					$('#slideshow p').slideUp('fast');
				},
				after:function(currSlideElement,nextSlideElement,options,forwardFlag){
					$('#slideshow p').text( $('#slideshow-slides li:visible img').attr('alt') ).slideDown('fast');
				}
			});
			
			//Setup passion slideshow
			$('#art-slideshow-slides').cycle({
				fx:'fade',
				timeout:8000,
				pager:'#art-slideshow-links',
				pagerAnchorBuilder:function(idx,elem){
					return '<li><a href="javascript:void(0);">' + (idx+1) + '</a></li>';
				},
				before:function(currSlideElement,nextSlideElement,options,forwardFlag){
					$('#art-slideshow p').slideUp('fast');
				},
				after:function(currSlideElement,nextSlideElement,options,forwardFlag){
					$('#art-slideshow p').text( $('#art-slideshow-slides li:visible img').attr('alt') ).slideDown('fast');
				}
			});
			$('#slideshow p').text( $('#art-slideshow-slides li:first img').attr('alt') );
			
		});