$(document).ready(function() {
	$(function(){ $("label").inFieldLabels();
	$("img.btnrollover").hover(
	function(){
		this.src = this.src.replace("_off","_on");},
		function(){
			this.src = this.src.replace("_on","_off");
			});
	}
)});

$(document).ready(function(){

	 $("#panel-children,#panel-parents,#panel-professionals").addClass("hidden")
    $(".children-slide").bind("mouseenter",function(){
     $("#panel-children").removeClass("hidden")
     $("#panel-parents,#panel-professionals").addClass("hidden")
    });
   
    $(".parents-slide").bind("mouseenter",function(){
     $("#panel-parents").removeClass("hidden");
     $("#panel-children,#panel-professionals").addClass("hidden")
    });
   
    $(".professionals-slide").bind("mouseenter",function(){
     $("#panel-professionals").removeClass("hidden");
     $("#panel-children,#panel-parents").addClass("hidden")
    });
   
    $("#callouts").bind("mouseleave",function(){
     $("#panel-children,#panel-parents,#panel-professionals").addClass("hidden")
    });

  });
	$(function(){
			$('#slider1').anythingSlider({
				startStopped    : false, // If autoPlay is on, this can force it to start stopped
				buildArrows     : true,      // If true, builds the forwards and backwards buttons
	    	buildNavigation     : false,
				toggleControls      : true, 
				autoPlayLocked  : true,  // If true, user changing slides will not stop the slideshow
				delay           : 6000,
				easing          : "swing",
				resumeDelay     : 10000 // Resume slideshow after user interaction, only if autoplayLocked is true (in milliseconds).
			});

		});
		//for calendar fancybox
		$(document).ready(function() {
			$(".various3").fancybox({
				'autoScale'			: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'autoDimensions' : true,
				'width' : 790,
				'type'				: 'iframe'
			});
		});
		$(document).ready(function(){
      $(".NuContentCalDateLink").each(function(){
			  $($(this).parent().get(0)).addClass("calEventBox");
				$(this).addClass("various3");
      })
    })
