$(document).ready(function(){
  // Dropdown nav  
  $('#nav-main ul').superfish({ 
        delay:       1000,                            // one second delay on mouseout 
        animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
        speed:       'fast',                          // faster animation speed 
        autoArrows:  false,                           // disable generation of arrow mark-up 
        dropShadows: false                            // disable drop shadows 
    });
  
  // Adds and removes search text
  $('#header #site-search input[type="text"]').addClass('watermark');
  $('#header #site-search input[type="text"]').focus(function(){
    $(this).filter(function(){
      return $(this).val() === '' || $(this).val() === 'Search';
    }).removeClass('watermark').addClass('text').val('');
  }).blur(function(){
    $(this).filter(function(){
      return $(this).val() === '';
    }).removeClass('text').addClass('watermark').val('Search');
  });
  
  // Cycle the home tabs
  $('#promo-tabs-container') 
    .after('<ul id="promo-tabs-selectors">') 
    .cycle({ 
    cleartype:  1, 
    cleartypeNoBg: true,
    timeout: 8000, 
    effect: 'fade',
    speed: 500,
    pause: true,
    pager:  '#promo-tabs-selectors',
    pagerEvent:   'click',
    pagerAnchorBuilder: function(idx, slide) { 
        return '<li class="' + jQuery(slide).attr("id") + ' "><a href="#"><span class="wrap">' + jQuery(slide).find("div.tab-text").html() + '</span><span class="extra"></span></a></li>'; 
    }
  });
  $('#promo ul').hover(function(){
    $('#promo-tabs-container').cycle("pause");
    }, function(){
    $('#promo-tabs-container').cycle("resume");
  });
  
    // go to the current slide's link
  $('#promo-tabs-container div.promo-image').click( 
    function() {
      window.location = $(this).find('a.more-info').attr('href');
  });
});


$(document).ready(function() { 



jQuery(function(){ 
  jQuery('#physician-scroller-listing').cycle({
      fx:      'scrollHorz',
      timeout:  0,
    speed: 500,
    cleartypeNoBg: true,
      prev:    '.physician-scroller-prev',
      next:    '.physician-scroller-next'
  });
});

  
    })
  
$(document).ready(function() { 
  
  $(".physician-scroller-image[title]").tooltip({ tipClass: "physician-tooltip" });


$(".nav-sub ul li a:contains('Locations')").tooltip({ position: "bottom center",tip:"locations-tooltip" });

});

