//Specialities Drop Down Function
$(document).ready(function(){
$('a.bar1').mouseover(function(){
$('div.bar').show();
});

$('a.bar1').mouseout(function(){
$('a.bar1').addClass('dis');
$('div.bar').hide();
$('a.bar1').removeClass('dis');
});

$('div.bar').mouseover(function(){
$('div.bar').show();
$('a.bar1').addClass('dis');
});

$('div.bar').mouseout(function(){
$('div.bar').hide();
$('a.dis').removeClass('dis');

});
});
//Till here

//About Us Drop Down Function
$(document).ready(function(){
$('a.about1').mouseover(function(){
$('div.about').show();
});

$('a.about1').mouseout(function(){
$('a.about1').addClass('dis');
$('div.about').hide();
$('a.about1').removeClass('dis');
});

$('div.about').mouseover(function(){
$('div.about').show();
$('a.about1').addClass('dis');
});

$('div.about').mouseout(function(){
$('div.about').hide();
$('a.dis').removeClass('dis');

});
});
//Till here


//Contact Us Drop Down Function
$(document).ready(function(){
$('a.contac1').mouseover(function(){
$('div.contac').show();
$('a.contac1').addClass('diis').css("color","#fff");
});

$('a.contac1').mouseout(function(){
$('a.contac1').addClass('diis');
$('div.contac').hide();
$('a.contac1').removeClass('diis').css("color","#333");
});

$('div.contac').mouseover(function(){
$('div.contac').show();
$('a.contac1').addClass('diis').css("color","#fff");
//$('a.contac1').css("color","#fff");
});

$('div.contac').mouseout(function(){
$('div.contac').hide();
$('a.diis').removeClass('diis');
$('a.contac1').css("color","#333");



});
});
//Till here


//for Patients & Services Drop Down Function
$(document).ready(function(){
$('a.patient1').mouseover(function(){
$('div.patient').show();
});

$('a.patient1').mouseout(function(){
$('a.patient1').addClass('dis');
$('div.patient').hide();
$('a.patient1').removeClass('dis');
});

$('div.patient').mouseover(function(){
$('div.patient').show();
$('a.patient1').addClass('dis');
});

$('div.patient').mouseout(function(){
$('div.patient').hide();
$('a.dis').removeClass('dis');

});
});
//Till here

//for Contact Us Drop Down Function
$(document).ready(function(){
$('a.con').mouseover(function(){
$('div.contactus').show();
$('a.con').addClass('diis');
$('a.con').css("color","#fff");

});

$('a.con').mouseout(function(){
$('a.con').addClass('diis');
$('div.contactus').hide();
$('a.con').removeClass('diis');
$('a.con').css("color","#333");
});

$('div.contactus').mouseover(function(){
$('div.contactus').show();
$('a.con').addClass('diis');
$('a.con').css("color","#fff");
});

$('div.contactus').mouseout(function(){
$('div.contactus').hide();
$('a.diis').removeClass('diis');
$('a.con').css("color","#333");

});
});
//Till here


/*** 
    Simple jQuery Slideshow Script
    Released by Jon Raasch (jonraasch.com) under FreeBSD license: free to use or modify, not responsible for anything, etc.  Please link out to me if you like it :)
***/

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');

    // uncomment the 3 lines below to pull the images in random order
    
    // var $sibs  = $active.siblings();
    // var rndNum = Math.floor(Math.random() * $sibs.length );
    // var $next  = $( $sibs[ rndNum ] );


    $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()", 4000 );
});

