//Para validación
function Blancos(Cadena){
	if (Cadena.split(" ").join("").length == 0)
		return true;
	else
		return false;
}

//General
function nuevoAjax(){
	var xmlhttp=false;
	try {
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
		try {
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (E) {
			xmlhttp = false;
		}
	}

	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		xmlhttp = new XMLHttpRequest();
	}
	return xmlhttp;
}

function convertirUrlVideo(url,boton){
	// Vimeo
	if (url.match(/vimeo\.com/i)) {
		var videoId = url.split('/');
		this.videoID = videoId[3];
		var nuevaUrl = '<embed type="application/x-shockwave-flash" src="http://www.vimeo.com/moogaloop.swf?clip_id='+this.videoID+'&amp;server=www.vimeo.com&amp;fullscreen=1&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=5ca0b5" id="sfwvideo" name="sfwvideo" bgcolor="#000000" quality="wmode" allowscriptaccess="always" allowfullscreen="true" width="418" height="233"></embed>';
		obj=document.getElementById("video_grande");
		obj.innerHTML = nuevaUrl;	
	// Google Video
	}
	//seleccion de boton
	for(i=1; i<=5; i++){
		limpiar= "bot_video_"+i;
		document.getElementById(limpiar).className = 'video_peq';	
	}
	document.getElementById(boton).className = 'botvideo_sel';
	return false;
}

function zoomText(tipo){
	alert("tamaños");
	obj=document.getElementById('cabecera');
	if (obj.style.fontSize==''){
		obj.style.fontSize='100%';
	}

	document.getElementById('text_normal').className=' ';

	document.getElementById('text_mediano').className=' ';

	document.getElementById('text_grande').className=' ';

	

	if(tipo=='normal'){

		obj.style.fontSize='100%';
		document.getElementById('text_normal').blur();
		document.getElementById('text_normal').className="actual";	

	}

	if(tipo=='mediano'){

		obj.style.fontSize='120%';

		document.getElementById('text_mediano').blur();

		document.getElementById('text_mediano').className='actual';

	}

	if(tipo=='grande'){

		obj.style.fontSize='135%'

		document.getElementById('text_grande').blur();

		document.getElementById('text_grande').className='actual';

	}

	



}