// JavaScript Document
jQuery(document).ready(function() {    
	jQuery('.first-and-second-carousel').jcarousel();	
	jQuery('#third-carousel').jcarousel({
        vertical: true
    });
});

$(document).ready(function() {

			$.featureList(
				$("#tabs li a"),
				$("#output li"), {
					start_item	:	0
				}
			);

		});

<!--fade out slide show starts-->
function slideSwitch() {
    var $active = $('#slideshow IMG.active');

    if ( $active.length == 0 ) $active = $('#slideshow IMG:last');

    // use this to pull the images in the order they appear in the markup
    var $next =  $active.next().length ? $active.next()
        : $('#slideshow IMG:first');

      $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

$(function() {
    setInterval( "slideSwitch()", 2000 );
});
<!--fade out slide show code ends-->

/*$(document).ready(function() {

	// The following code creates a simple Bubble Popup opening when mouse is over on the element with ID '#dummy1'.
	$('#dummy1').SetBubblePopup({
									innerHtml: '<p><img src="http://www.maxhealthcare.in/images/accordion/news_bullet.gif" alt="" /> <a href="http://www.maxhealthcare.in/services_facilities/our_departments/mer/aha.html">BLS &amp; ACLS Courses</a><br><img src="http://www.maxhealthcare.in/images/accordion/news_bullet.gif" alt="" /> <a href="http://www.maxhealthcare.in/services_facilities/care_programmes/healthy_neighbourhood.html">Healthy Neighbourhood form</a><br><img src="http://www.maxhealthcare.in/images/accordion/news_bullet.gif" alt="" /> <a href="http://www.maxhealthcare.in/aboutus/dgca.php">DGCA Registration form</a></p>'
								});
	
});*/


	var prvId = 'page5';
		function showElement(id)
		{			
		if(prvId!='')
		{
		document.getElementById(prvId).style.display="none";
		if(document.getElementById(id).style.display=='block')
		document.getElementById(id).style.display="none";
		else
		document.getElementById(id).style.display='block';
		prvId = id;
		}
		}
	
	
	
	$(function() {
      
    var galleries = $('.ad-gallery').adGallery();
    $('#switch-effect').change(
      function() {
        galleries[0].settings.effect = $(this).val();
        return false;
      }
    );
    
  });
