$(document).ready(function(){  
      	
		$('#home-slider').bxSlider({
			auto: true,
			autoHover: true,
			pause: 5000
		});
		
		$('#team-slider').bxSlider({
			auto : true,
			autoHover : true,
			pause : 2000,
			controls : false,
			mode : 'fade',
			speed : 1000
		});
		
		$('#slider1').bxSlider({
			auto: true,
			pager: true,
			speed: 1000,
			pause: 5000,
			autoHover: true,
			controls: false
		});
		
        $("li#main-nav-about a").hover(function() { //When link is hovered  
      
            $(this).parent().find("ul#navsub_1235847_980998").stop(false, true).slideDown('slow').show(); //Drop down the subnav 
      
            $(this).parent().hover(function() {  
            }, function(){  
                $(this).parent().find("ul#navsub_1235847_980998").slideUp('fast'); //When the mouse hovers out of the subnav, move it back up  
            });  
       
        }); 
		
		$("li#main-nav-services a").hover(function() { //When link is hovered  
      
            $(this).parent().find("ul#navsub_1235847_981002").stop(false, true).slideDown('slow').show(); //Drop down the subnav 
      
            $(this).parent().hover(function() {  
            }, function(){  
                $(this).parent().find("ul#navsub_1235847_981002").slideUp('fast'); //When the mouse hovers out of the subnav, move it back up  
            });  
       
        }); 
		
		$(".inline").colorbox({inline:true, width:"50%"});
      
    });
