$(document).ready(function(){ 
	$('#ms_asist_head_link_video').click(function(event){	
		$("#modal_video_tutorial").modal();
		firstTracker._trackEvent('UA_Contacto', 'overlay', 'Video "Como solicitar soporte" pagina: Contacto');
		event.preventDefault();
	});
});


function TogleDatosContacto(o_titulo,e_datos){
	if(o_titulo.className == "contacto_datos_titulo_0"){
		show(e_datos);
		setClass(o_titulo,'contacto_datos_titulo_1')
	}else{
		hide(e_datos);
		setClass(o_titulo,'contacto_datos_titulo_0')
	}
}


function Llamarme(){
	if(GetElementFormValue(xGetElementById('Destino')) == 'Deseo que me llame un asesor comercial'){
		if(xGetElementById('contacto_campo_telefono').style.display == 'none'){ fadeOutIn('contacto_campo_telefono','in'); }
		if(xGetElementById('contacto_campo_telefono_horario').style.display == 'none'){ fadeOutIn('contacto_campo_telefono_horario','in'); }
		if(xGetElementById('contacto_campo_telefono_codigos').style.display == 'none'){ fadeOutIn('contacto_campo_telefono_codigos','in'); }
		xGetElementById('Telefono').focus();
	}else{
		if(xGetElementById('contacto_campo_telefono').style.display != 'none'){ fadeOutIn('contacto_campo_telefono','out'); }
		if(xGetElementById('contacto_campo_telefono_horario').style.display != 'none'){ fadeOutIn('contacto_campo_telefono_horario','out'); }
		if(xGetElementById('contacto_campo_telefono_codigos').style.display != 'none'){ fadeOutIn('contacto_campo_telefono_codigos','out'); }
	}
}

function Select_Llamar_Set() {
	var SelectObject = xGetElementById('Destino');
	for(index = 0; index < SelectObject.length; index++) {
		if(SelectObject[index].value == 'Deseo que me llame un asesor comercial'){
			SelectObject.selectedIndex = index;
		}
	}
	Llamarme();
}

function Select_DattatecAyuda_Set() {
	var SelectObject = xGetElementById('Destino');
	for(index = 0; index < SelectObject.length; index++) {
		if(SelectObject[index].value == 'Sugerencia DattatecAyuda.com'){
			SelectObject.selectedIndex = index;
		}
	}
	xGetElementById('Asunto').value = 'Sugerencia para DattatecAyuda.com';
}

function Select_Testimonios_Set() {
	var SelectObject = xGetElementById('Destino');
	for(index = 0; index < SelectObject.length; index++) {
		if(SelectObject[index].value == 'Testimonios'){
			SelectObject.selectedIndex = index;
		}
	}
	xGetElementById('Asunto').value = 'Mi testimonio como cliente';
}
