jQuery(document).ready(function(){
	$('#searchform :input[type=text]').addClass('srch_top_npt');
	$('#searchform :input[type=submit]').addClass('srch_top_sbmt');
	$('#searchform').removeAttr('role');
	$('#mainContent #searchform').removeAttr('role');
	$(".scrollable").scrollable({
		vertical:false,
		loop:true,
	 	interval:10000,
		speed: 600, 
        size: 1,
		activeClass: 'active',
        navi: 'ul.tabs'
	});
	
	$('#insuranceSlide').cycle();
	
	/* Mega Box Menu */
	var megaConfig = {/*interval: 100, sensitivity: 4,*/ over: addMega, timeout: 100,	out: removeMega};
	$("li.mega").hoverIntent(megaConfig);
	
	function addMega(){  
	   	$(this).addClass("hovering"); 
   		}  
	function removeMega(){  
	   $(this).removeClass("hovering"); 
		} 
		
	
	$('.ourStaff').bind({
  		mouseover: function() {
    		$('.mStaff').css({'background-position':'-103px -48px'});
  		},
  		mouseout: function() {
    		$('.mStaff').css({'background-position':'-103px top'});
 		 }
	});
	
	$('.OurServices').bind({
  		mouseover: function() {
    		$('.mServices').css({'background-position':'-208px -48px'});
  		},
  		mouseout: function() {
    		$('.mServices').css({'background-position':'-208px top'});
 		 }
	});

	$('.trainCenter').bind({
  		mouseover: function() {
			$('.mTraining').css({'background-position':'-809px -48px'});
  		},
  		mouseout: function() {
    		$('.mTraining').css({'background-position':'-809px top'});
 		 }
	});
// Homepage Cycle
	 $("#tabWel").hover(
      function () {$(this).addClass("tab1")
	  ;},function () {
        $(this).removeClass("tab1");
      });
	 $("#tabspsyc").hover(
      function () {$(this).addClass("tab2")
	  ;},function () {
        $(this).removeClass("tab2");
      });
	 $("#tabsneu").hover(
      function () {$(this).addClass("tab3")
	  ;},function () {
        $(this).removeClass("tab3");
      });
	 $("#tabscoun").hover(
      function () {$(this).addClass("tab4")
	  ;},function () {
        $(this).removeClass("tab4");
      }); 
	 $("#tabsemp").hover(
      function () {$(this).addClass("tab5")
	  ;},function () {
        $(this).removeClass("tab5");
      }); 
	  $("#tabssemi").hover(
      function () {$(this).addClass("tab6")
	  ;},function () {
        $(this).removeClass("tab6");
      }); 
 
// Video
//Toggle hide the all of the element with class msg_body
  $(".vid_body").hide();
  //toggle the componenet with class msg_body
  $(".vid_head").click(function()
  {
    $(this).next(".vid_body").slideToggle(600);
  });

	$("a[rel^='prettyPhoto']").prettyPhoto({theme: 'light_rounded'});
}); 

DD_roundies.addRule('.date_no', '5px', true);



