/**
 * @author maca
 */
$(document).ready(function() {
	$("#twitter").getTwitter({
		userName: "h1lab",
		numTweets: 4,
		loaderText: "Loading tweets...",
		slideIn: true,
		slideDuration: 750,
		showHeading: false,
		headingText: "Latest Tweets",
		showProfileLink: false,
		showTimestamp: true
	});
	$('#slider').nivoSlider({
		effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
		animSpeed:500,
		pauseTime:3000,
		startSlide:0, //Set starting Slide (0 index)
		directionNav:true, //Next & Prev
		directionNavHide:true, //Only show on hover
		controlNav:true, //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.8, //Universal caption opacity
		beforeChange: function(){},
		afterChange: function(){},
		slideshowEnd: function(){} //Triggers after all slides have been shown
	});
	$('#CvFile').filestyle({ image: WEBROOT+'img/boton_examinar.png', imageheight : 30, imagewidth : 74, width : 139 });
	
	$('#CurriculumNombre').focus(function(){
		if ($(this).val()=='Tu nombre…') $(this).val('');
	});
	
	$('#CurriculumNombre').blur(function(){
		if ($(this).val()=='') $(this).val('Tu nombre…');
	});
	
	
	$('#CurriculumArea').focus(function(){
		if ($(this).val()=='Área de trabajo…') $(this).val('');
	});
	
	$('#CurriculumArea').blur(function(){
		if ($(this).val()=='') $(this).val('Área de trabajo…');
	});
	
	
	$('#ContactoNombre').focus(function(){
		if ($(this).val()=='Tu nombre...') $(this).val('');
	});

	$('#ContactoNombre').blur(function(){
		if ($(this).val()=='') $(this).val('Tu nombre...');
	});


	$('#ContactoMail').focus(function(){
		if ($(this).val()=='Tu email...') $(this).val('');
	});

	$('#ContactoMail').blur(function(){
		if ($(this).val()=='') $(this).val('Tu email...');
	});


	$('#ContactoMensaje').focus(function(){
		if ($(this).val()=='Tu mensaje...') $(this).val('');
	});

	$('#ContactoMensaje').blur(function(){
		if ($(this).val()=='') $(this).val('Tu mensaje...');
	});



	
});
