  $(document).ready(function(){
  
  	var splash_slider = $('#splash_slider').bxSlider({

        	
      mode: 'vertical',                 // 'horizontal', 'vertical', 'fade'
			infiniteLoop: true,                 // true, false - display first slide after last
			hideControlOnEnd: false,            // true, false - if true, will hide 'next' control on last slide and 'prev' control on first
			controls: false,                     // true, false - previous and next controls
			speed: 1000,                         // integer - in ms, duration of time slide transitions will occupy
			easing: 'easeInOutCubic',            // used with jquery.easing.1.3.js - see http://gsgd.co.uk/sandbox/jquery/easing/ for available options
			pager: true,						// true / false - display a pager
			pagerSelector: "#slider_pager",       // jQuery selector - element to contain the pager. ex: '#pager'
			pagerType: 'full',                  // 'full', 'short' - if 'full' pager displays 1,2,3... if 'short' pager displays 1 / 4
			pagerLocation: 'bottom',            // 'bottom', 'top' - location of pager
			pagerShortSeparator: '/',           // string - ex: 'of' pager would display 1 of 4
			pagerActiveClass: 'pager_active',   // string - classname attached to the active pager link
			auto: true,                        // true, false - make slideshow change automatically
			autoDirection: 'next',              // 'next', 'prev' - direction in which auto show will traverse
			autoStart: true,                    // true, false - if false show will wait for 'start' control to activate
			autoHover: true,                   // true, false - if true show will pause on mouseover
			autoDelay: 0,                       // integer - in ms, the amount of time before starting the auto show
			pause: 9000,                        // integer - in ms, the duration between each slide transition
			startingSlide: 0,                   // integer - show will start on specified slide. note: slides are zero based!
			displaySlideQty: 1,                 // integer - number of slides to display at once
			moveSlideQty: 1,                    // integer - number of slides to move at once
			randomStart: false,
            pager: true,						// true / false - display a pager
			pagerSelector: "#slider_pager",       // jQuery selector - element to contain the pager. ex: '#pager'
			pagerType: 'full',                  // 'full', 'short' - if 'full' pager displays 1,2,3... if 'short' pager displays 1 / 4
			pagerLocation: 'bottom',            // 'bottom', 'top' - location of pager
			pagerShortSeparator: '/',           // string - ex: 'of' pager would display 1 of 4
			pagerActiveClass: 'pager_active',   // string - classname attached to the active pager link
            randomStart: false,
             buildPager: function(slideIndex){
            switch (slideIndex){
                case 0:
                    return '<a href=""><div class="pager_symbol"></div></a>';
                case 1:
                    return '<a href=""><div class="pager_symbol"></div></a>';
                case 2:
                    return '<a href=""><div class="pager_symbol"></div></a>';
                case 3:
                    return '<a href=""><div class="pager_symbol"></div></a>';
          	  }
     	   	}                 // true, false - if true show will start on a random slide
			
        });
        
      
		
    });


$(window).load(function() {
	jQuery.easing.def = "easeInOutQuad";
	 
    $(".enlarge").click(function () {
      
    //	splash_slider.stopShow();
      $('#slider_pager').fadeOut('slow');
  	  $('#splash_images').fadeOut('slow', function (){
  	  	
  	  
  	  	
	   	 $("#splash_center").animate({ height: 526 }, 1000 , function(){

	   	 	$("#video_container").fadeIn('slow');
	   	 });
	});
  
   //  $('#splash_images').data('nivo:vars').stop = true; //Stop the Slider
      
    });
   
   });

   function hideVideo(){


   	$("#video_container").fadeOut('slow', function(){
   		 $("#splash_center").animate({ height: 396 }, 1000,function(){
   		 	$('#slider_pager').fadeIn('slow');
   		 	$('#splash_images').fadeIn('slow', function(){
   		 		
   		 		// $('#splash_images').data('nivo:vars').stop = false; //Start the Slider
   		 	});
   		 });
   	});
   }


	
