function _home_dest_anterior(){
		_home_set_pause();
		if (_home_dest_index-1>=0){
			_home_dest_index = _home_dest_index-1;
			_home_dest_set()
		}
	}

	function _home_dest_siguiente(){
		_home_set_pause();	
		if (_home_dest_index+1<_home_dest_total){
			_home_dest_index = _home_dest_index+1;
			_home_dest_set();
		}
	}

	function _home_play(){

		if (_home_dest_play==1){

			if (_home_dest_index+1<_home_dest_total){
				_home_dest_index = _home_dest_index+1;
				
			}else{
				_home_dest_index=0;
			}
			_home_dest_set();
		}
	}

	function _home_set_play(){
		_home_dest_play=1;

		$('#dest_pause').show();
		$('#dest_play').hide();
		
		setInterval('_home_play();',10000);
		
		
	}
	
	function _home_set_pause(){
		_home_dest_play=0;
		$('#dest_pause').hide();
		$('#dest_play').show();
		
	}

	function _home_dest_set(){
		for (i=0;i<_home_dest_total;i++){
			$('#esto_se_mueve_'+i).hide();
			
			$('#dest_selvid_'+i).show();
			$('#dest_selimg_'+i).hide();
			
			$('#dest_vid_'+i).hide();
			$('#dest_img_'+i).show();
			
			$('#_home_dest_video_cerrar_'+i).hide();
		}	
		$('#esto_se_mueve_'+_home_dest_index).fadeIn(1000);
	}

	

	function _home_dest_video(index,modo,src){
		_home_set_pause();

		if (modo=="video"){
			
			if (src!=""){
				$('#dest_selvid_'+index).hide();
				$('#dest_selimg_'+index).show();
				
				$('#dest_img_'+index).hide();
				$('#dest_vid_'+index).show();
				
				
				$('#_home_dest_video_cerrar_'+index).show();
				$('#dest_vid_'+index).html('<object width="413" height="340"><param name="movie" value="'+src+'&amp;fs=1&amp;hl=es_ES&amp;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><param name="wmode" value="transparent"></param><embed src="'+src+'&amp;fs=1&amp;hl=es_ES&amp;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="413" height="340" wmode="transparent"></embed></object>');
			}
			
		}else{

			$('#dest_selvid_'+index).show();
			$('#dest_selimg_'+index).hide();
			
			$('#_home_dest_video_cerrar_'+index).hide();
			
			$('#dest_vid_'+index).hide();
			$('#dest_img_'+index).show();
		}

		
		
	}
	
	function validarFormHomeNews(){
		
		var email = $('#_home_news_email').val();
		
		if (!validar_email(email)){
			$("#error").show(200);
			return false;
		}
		
		
	}
