/* Author: Roberto Ramos

*/

$(document).ready(function () {
	setTimeout(function(){
		$('#nombres').animate({
			 top: '177px',
			 left: '0px',
			 opacity: 1
	 	 }, 800, function() {
	
			$('#video').animate({
			   height: '308px',
			}, 550, function() {
				$("#video").append('<iframe src="http://player.vimeo.com/video/35741887?title=0&amp;byline=0&amp;portrait=0&amp;color=0c5f6f&amp;autoplay=1" width="754" height="278" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>');
				setTimeout(function(){ 
					$('#video iframe').animate({
						top: '0px'
					}, 800);
				}, 650 );
			});
		});
	}, 600 );
});

(function(doc) {

	var addEvent = 'addEventListener',
	    type = 'gesturestart',
	    qsa = 'querySelectorAll',
	    scales = [1, 1],
	    meta = qsa in doc ? doc[qsa]('meta[name=viewport]') : [];

	function fix() {
		meta.content = 'width=device-width,minimum-scale=' + scales[0] + ',maximum-scale=' + scales[1];
		doc.removeEventListener(type, fix, true);
	}

	if ((meta = meta[meta.length - 1]) && addEvent in doc) {
		fix();
		scales = [.25, 1.6];
		doc[addEvent](type, fix, true);
	}

}(document));


