// JavaScript Document

//header image swap

$(document).ready(function(){
	
	 
//	$('#header a img, #underbanner a img').mouseover(function(){
	//		$(this).stop().animate({
//				"opacity": "0",
//				}, 500);
//	});
	
//		$('#header a img, #underbanner a img').mouseout(function(){
//			$(this).stop().animate({
//				"opacity": "1",
//				}, 500);
//	});
	
	
// overlay fancybox calls	
	
	$("a.specialty").fancybox({
		overlayOpacity: .7,
		overlayColor: "#000",
		scrolling   : 'no'
			
	});
	

		$(function(){
			$('#slides').slides({
				preload: true,
				generateNextPrev: true
			});
		});




$('#banner').jqFancyTransitions({ 

width: 953,
height: 290,
position: 'top',
direction: 'random'


 });



//	$("div#specialties").mouseover(function(){
//		
//		$("#specialties-dropdown").css("height", "250px").stop().animate({
//				"opacity": "1",
//				}, 500);
//	});
	
//	$(".dropdown-container").mouseout(function(){
//		$("#specialties-dropdown").stop().animate({
//				"opacity": "0",
//				}, 500).css("height", "50px");
//	});



//$("#banner").cycle({
 // 	fx:    'zoom',
	//sync:  false,
 // 	delay: -2000
// });

$("#specialties_link").mouseover(function(){
	
	$("#specialties-dropdown").css("display", "block");
	
});
	
$("#specialties_link").mouseout(function(){
	
	$("#specialties-dropdown").css("display", "none");
	
});



		
});

