// MoCo.js - 1.3 - 12-21-2010 - Nick Pelton 

    
	//Homepage
	$(function() {
 

		$('#jFlow').nivoSlider({
        effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
        slices:1,
        animSpeed:500, //Slide transition speed
        pauseTime:6000,
        startSlide:0, //Set starting Slide (0 index)
        directionNav:true, //Next & Prev
        directionNavHide:false, //Only show on hover
        controlNav:false, //1,2,3...
        controlNavThumbs:false, //Use thumbnails for Control Nav
        controlNavThumbsFromRel:false, //Use image rel for thumbs
        controlNavThumbsSearch: '.jpg', //Replace this with...
        controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
        keyboardNav:true, //Use left & right arrows
        pauseOnHover:true, //Stop animation while hovering
        manualAdvance:false, //Force manual transitions
        captionOpacity:0.0, //Universal caption opacity
        beforeChange: function(){},
        afterChange: function(){},
        slideshowEnd: function(){}, //Triggers after all slides have been shown
        lastSlide: function(){}, //Triggers when last slide is shown
        afterLoad: function(){} //Triggers when slider has loaded
    });


		$('.contact-mn').tinyTips('dark', '<strong>Minneapolis, MN</strong><hr/>MoCo / The Shipyard<br/> Oakcrest Avenue<br/>St. Paul, MN 55113<br/><br/>');
		$('.contact-sf').tinyTips('dark', '<strong>San Francisco, CA</strong><hr/>MoCo West<br/>182 Howard Street, #755<br/>San Francisco, CA 94105');
		$('.contact-hk').tinyTips('dark', '<strong>Hong Kong</strong><hr/>MoCo Hong Kong<br/>Room 2001<br/>Tung Chiu Commercial Building<br/>193 Lockhart Road<br/>Wanchai<br/>Hong Kong');

		
		 $("#footer-wrap").stickyFooter();
		  
		 $(".video-js").VideoJS();
 
 
        /*
 $('#slider1').anythingSlider({
			  // Appearance
			  resizeContents      : false, 			  			  
			
			  // Navigation
			  startPanel          : 1,
			  buildArrows         : false,
			  buildNavigation     : false,
			  enableNavigation    : true,
			   
			  // Slideshow options
			  startStopped        : true,
			  easing              : "swing",
			  
			  onSlideBegin: function(){if($(".video-js")[0]){$(".video-js")[0].player.pause();}}, 
			
		});
*/
		
		/*
$('#hpSlider').anythingSlider({
			  // Appearance
			  resizeContents      : false, 			  			  
			
			  // Navigation
			  startPanel          : 1,
			  buildArrows         : false,
			  buildNavigation     : false,
			  enableNavigation    : true,
			   
			  // Slideshow options
			  startStopped        : false,
			  easing              : "swing",	
			  delay               : 6000,
		
		});
*/
 
		//$('.menu').superfish();
		

				
    });


 
 
 
    /*
function next_portfolio_post(link){
		$j.ajaxSetup ({ 
     		cache: false 
	    });

    $j('#content-slide').append('<div id="new-content"></div>');
    $j('#new-content').addClass('new-detail slidable');
    $j('#new-content').load(link + " #content", function(){

      $j("#content").animate({"right": "+=1000px"}, 'slow');
      $j("#new-content").animate({"right": "+=1000px"}, 'slow', function(){
        $j("#content").remove();
        $j("#new-content").attr('id', "content");
      });

      
    });

		return false;
    }

    function previous_portfolio_post(link){
		$j.ajaxSetup ({ 
     		cache: false 
	    });

    $j('#content-slide').append('<div id="new-content"></div>');
    $j('#new-content').addClass('prv-detail slidable');
    $j('#new-content').load(link + " #content", function(){

      $j("#content").animate({"left": "+=1000px"}, 'slow');
      $j("#new-content").animate({"left": "+=1000px"}, 'slow', function(){
        $j("#content").remove();
        $j("#new-content").attr('id', "content");
      });
      
    });

		 return false;
    }
*/

