function textoMas(id){
	o=document.getElementById(id);
	if(parseInt(o.style.fontSize)<18){
		o.style.fontSize=parseInt(o.style.fontSize)+1;
	}
}
function textoMenos(id){
	o=document.getElementById(id);
	if(parseInt(o.style.fontSize)>10){
		o.style.fontSize=parseInt(o.style.fontSize)-1;
	}
}


function showWindow(id){
	o=document.getElementById(id);
	if(o.style.display!='block'){
		o.style.display='block';
	}else{
		closeWindow(id);
	}
}

function closeWindow(id){
	o=document.getElementById(id);
	o.style.display='none';
}

function buscar(){
	document.getElementById('buscarForm').submit();

}

function hideCombo() {
	document.getElementById("bottom").style.display="none"
}

function ocultarFecha(){

	if(document.getElementById('videoradio').checked ){
		document.getElementById('searchDate').style.display='none';
	}else{
		document.getElementById('searchDate').style.display='block';
	}


}

function checkRegisterForm(o){
	
	if(o.elements['mail'].value!='' && o.elements['pass'].value!=''){
		return true
	}
	alert('El campo Mail y el campo Contraseņa son obligatorios');


	return false;
}



function checkLogin(o){
	if(o.elements['mail'].value!='' && o.elements['pass'].value!=''){
		return true
	}
	alert('Debe completar los dos campos');


	return false;

}

function animateHeader(){
	new Effect.Appear($('backheader'), {duration: 1.0,queue: 'end' });
	new Effect.Move($('backheader'), {duration: 4.5, x: 0, y: -150, mode: 'relative',queue: 'end' });
	new Effect.Move($('backheader'), {duration: 4.5, x: 0, y: 150, mode: 'relative',queue: 'end' });
	new Effect.Move($('backheader'), {duration: 4.5, x: 0, y: -150, mode: 'relative',queue: 'end' });

	new Effect.Morph($('backheader2'), { style: {width: '930'}, duration: 2.0,queue: { position: 'end', scope: 'bannerscope1' } });

	//new Effect.Morph($('backheader3'), { style: {width: '500'}, duration: 1.0, queue: { position: 'end', scope: 'bannerscope' } });
	new Effect.Appear($('backheader4'), {duration: 1.0, queue: { position: 'end', scope: 'bannerscope1' } });

}

function fixResolution(){
	if (screen.width<1024){
		o=$('centrador');
		o.style.marginLeft='0';
		o.style.marginRight='0';
		o.style.left='0';
	}
	
}

function startCoolActions(){
	//animateHeader();
	populate();
	fixResolution();
}

