	$(document).ready(function(){
/*
		$('a.menuLink').click(function(){
			$('#main').load($(this).attr('href'));
			return false;
		});	
*/
		
		$(".side-title").click(function(){
			$(this).next().slideToggle("normal");
			return false;
		});	
	});
	
	/*FUNCIONES DE VIMEO/OEMBED
	*/
			// Change this to your username to load in your clips
			var vimeoUserName = 'user1807890';

			// Tell Vimeo what function to call
			var videoCallback = 'latestVideo';
			var oEmbedCallback = 'embedVideo';

			// Set up the URLs
			var videosUrl = 'http://www.vimeo.com/api/v2/' + vimeoUserName + '/videos.json?callback=' + videoCallback;
			var oEmbedUrl = 'http://www.vimeo.com/api/oembed.json';

			// This function puts the video on the page
			function embedVideo(video) {
				videoEmbedCode = video.html;
				document.getElementById('embed').innerHTML = unescape(videoEmbedCode);
			}

			// This function uses oEmbed to get the last clip
			function latestVideo(videos) {

				var videoUrl = videos[2].url;
	
				document.getElementById('stats').innerHTML =unescape('<img class="mini" src="' + videos[0].thumbnail_medium + '"/>');
				document.getElementById('detalles').innerHTML =unescape('<a href="#" onClick="linkVimeo(&#39;http://vimeo.com/5380533&#39;);return false;"><span class="title">' + videos[0].title + '</span></a>' +'<p class="tags"><strong>Tags:</strong> '+ videos[0].tags +'</p>' + '<p>' + videos[0].description + '</p>');
				
				document.getElementById('stats-2').innerHTML =unescape('<img class="mini" src="' + videos[1].thumbnail_medium + '"/>');
				document.getElementById('detalles-2').innerHTML =unescape('<a href="#" onClick="linkVimeo(&#39;http://vimeo.com/5370055&#39;);return false;"><span class="title">' + videos[1].title + '</span></a>' +'<p class="tags"><strong>Tags:</strong> '+ videos[1].tags +'</p>' + '<p>' + videos[1].description + '</p>');
				
				document.getElementById('stats-3').innerHTML =unescape('<img class="mini" src="' + videos[2].thumbnail_medium + '"/>');
				document.getElementById('detalles-3').innerHTML =unescape('<a href="#" onClick="linkVimeo(&#39;http://vimeo.com/5367939&#39;);return false;"><span class="title">' + videos[2].title + '</span></a>' +'<p class="tags"><strong>Tags:</strong> '+ videos[2].tags +'</p>' + '<p>' + videos[2].description + '</p>');


				// Get the oEmbed stuff
				loadScript(oEmbedUrl + '?url=' + encodeURIComponent(videoUrl) + '&callback=' + oEmbedCallback);
			}

			// This function loads the data from Vimeo
			function loadScript(url) {
				var js = document.createElement('script');
				js.setAttribute('type', 'text/javascript');
				js.setAttribute('src', url);
				document.getElementsByTagName('head').item(0).appendChild(js);
			}