 $(document).ready(function() {
		$('img.rollover').hover(function() {   this.src = this.src.replace("_off.jpg","_over.jpg");  }, function() {  this.src = this.src.replace("_over.jpg","_off.jpg"); });
		$('#menu .nav').hover(function() {
			$('.subnav').hide();							
			$(this).children('.subnav').show();							
		},function() {
			$('.subnav').hide();
		});
		$('.sidenav a.active').prepend("&gt; ").css({marginLeft: -12});
		$("ul.tabs").tabs("div.panes > div");
		$("#calendar").calendarWidget();
		$("#disclaimer").hide().mouseout(function() {
												  $(this).fadeOut();
												  });
		$("#disclaim").toggle(function() {
				 $("#disclaimer").fadeIn(); },
			 function() {
				 $("#disclaimer").fadeOut(); });	
		$("#sideform").validator();
		$("#search").blur(function() { if(this.value=='') { this.value='Search KSN'; }});
		$("#search").focus(function() { if(this.value=='Search KSN') { this.value=''; }});
		$(".scrollable > div.items").children("div").hide();
		$(".scrollable > div.items > div:first-child").show();
		$(".scrollable > #actions > .prev, .scrollable > #actions > .next").hide();
		$(".scrollable > div.items").each(function(i) {
			 if ($(this).children("div").length > 1) {
				$(this).parent().children("#actions").children(".next").show();
			 }
		});		
		$(".scrollable > #actions > .next").click(function() {
				 $(".scrollable > div > div:visible").hide().next().show();
				 $(this).parent().children(".prev").show();
				  if ($(this).parent().parent().children("div").children("div:last-child").is(":visible")) {
			 		$(this).parent().children(".next").hide();
				 }
													   });
	$(".scrollable > #actions > .prev").click(function() {
				 $(".scrollable > div > div:visible").hide().prev().show();
				 $(this).parent().children(".next").show();
				 if ($(this).parent().parent().children("div").children("div:first-child").is(":visible")) {
			 		$(this).parent().children(".prev").hide();
				 }
													   });
  
  	   $(".video").hide(); 
  
  	   $(".videothumb img").click(function() {
	   		$(".videothumb").hide();
	   		$(".video").show(); 
  	   });
	
		$('a[href^=mailto:]').not('a[href^=mailto:?]').click(function() {
				return confirm('While KOVITZ SHIFRIN NESBIT provides this e-mail link to make it easier to contact our attorneys, sending us e-mail does not create an attorney-client relationship. The sending of confidential information by e-mail is strongly discouraged. In no event should you send us confidential information until you speak with one of our attorneys and receive authorization to send that information to us. If you are not currently a client of KOVITZ SHIFRIN NESBIT, your e-mail is not privileged and may be disclosed to other persons.\n\nBy clicking OK below, you are agreeing to the terms of this web site.\n\n');
											 });
//		$('a').not('#menu a, .printshare a, #sidenav a, .admincontent a').attr('target','_blank');



});
