
$(document).ready(function() {

	         // Enable the API on each Vimeo video
	      $('iframe.vimeo').each(function(){
	          Froogaloop(this).addEvent('ready', ready);
	      });

	      function ready(playerID){
	          // Add event listerns
	          // http://vimeo.com/api/docs/player-js#events
	          Froogaloop(playerID).addEvent('playProgress', function(data){
	            if(data.percent == 1){
	              $("#intro").remove();
	            }
	          });

	          // Fire an API method
	          // http://vimeo.com/api/docs/player-js#reference
	          Froogaloop(playerID).api('play');
	      }
		  
	      function hideVideo(){
						
				$("#intro").remove();
	      }


 $("#intro_close").click(function(){
		  	$("#intro").remove();
			return false;
		  });
	  });

