$(document).ready(function() {
    $('.slideshow').cycle({
		// choose your transition type, ex: fade, scrollUp, shuffle, etc...
		fx: 'fade, fadeZoom, growX, growY, turnUp, turnDown, turnLeft, turnRight',
		randomizeEffects: true,
		random: 1,
		delay:  1000,
		speed:    1000, 
		timeout:  5000 
	});
	
	$('.homeTop div').hover(
	  function () {
		$(this).stop().animate({opacity: 1}, 100);
	  },
	  function () {
		$(this).stop().animate({opacity: .9}, 100);
	  }
	);

	$('.home-buscador input[type="text"]').blur(function(){
		if ($(this).val() == '') {
			$(this).val('buscar');
		}
	});
	
	$('.home-buscador input[type="text"]').focus(function(){
		if ($(this).val() == 'buscar') {
			$(this).val('');
		}
	});

	/*Boton de +1 de Google*/
	window.___gcfg = {lang: 'es-419'};
	var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
	po.src = 'https://apis.google.com/js/plusone.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
	/* FIN Boton de +1 de Google*/


	$('.home-interactive img').click(function(){
		if($(this).attr('class') == 'pause') {
			$(this).hide();
			$('.home-interactive .resume').show();
		}
		if($(this).attr('class') == 'resume') {
			$(this).hide();
			$('.home-interactive .pause').show();
		}
		$('.slideshow').cycle($(this).attr('class'));
	});
	


});


