$(document).ready(function(){

	$('#nav').superfish({
		dropShadows: false,
		onInit: function(){
			$('li:has(ul)>a:first-child span.sf-sub-indicator',this).each(function(key, a) {
				var $a = $(a);
				$a.html($.trim($a.html()));
			});
		}
	});

	$('#cycle').cycle({
		fx: 'fade',
		speed: '2000'
	});
	
	$("#tabs").tabs();	

//	$('dl.gallery-item a').attr('rel','gallery');
//	$('dl.gallery-item a[rel="gallery"]').fancybox();

	$('#doctors_v2').flash({
		swf: '/wp-content/themes/bb/files/doctors_v2.swf',
		width: 650,
		height: 935,
		wmode: 'transparent',
		flashvars: {

		}
	});

//	$("#form").validate({
//		rules: {
//			field: {
//			  required: true,
//			  email: true,
//			  number: true
//			}
//		}
//	});

	$('a.top').click(function(){
	     $('html, body').animate({scrollTop: '0px'}, 300);
	     return false;
	});

	$("#recent-posts li:last-child").addClass("last");	
	
});
