
/*******************************************************************/
/*                                                                 */
/* Copyright (c) 2005-2009 Jasob.com                               */
/*                                                                 */
/* This obfuscated code was created by Jasob 3.5 Trial Version.    */
/* The code may be used for evaluation purposes only.              */
/* To obtain full rights to the obfuscated code you have to        */
/* purchase the license key (http://www.jasob.com/Purchase.html).  */
/*                                                                 */
/*******************************************************************/

function cargar_contenido(url){var cargar_contenido_ajax=new Ajax(url+'.php',{method:'get',onComplete:function(response){$('middle').setHTML(response);}});cargar_contenido_ajax.request();};function cargar_menu(url){var cargar_menu_ajax=new Ajax('cargar_datos.php',{method:'get',data:'tabla=menu&actual='+url,onComplete:function(response){$('templatemo_menu').setHTML(response);}});cargar_menu_ajax.request();};function cargar_curso(id_curso){var cargar_curso_ajax=new Ajax('cargar_datos.php',{method:'get',data:'tabla=datos_curso&id_curso='+id_curso,onComplete:function(response){$('datos_curso_div').setHTML(response);var inicio_fx=new Fx.Style($('datos_curso_div'),"opacity",{duration:200,wait:false,onComplete:function(){}});inicio_fx.start(0,1);}});cargar_curso_ajax.request();};function imagen_curso(imagen){var cargar_imagen_ajax=new Ajax('cargar_datos.php',{method:'get',data:'tabla=datos_curso_imagen&imagen='+imagen,onComplete:function(response){$('datos_curso_div').setHTML(response);var inicio_fx=new Fx.Style($('datos_curso_div'),"opacity",{duration:200,wait:false,onComplete:function(){}});inicio_fx.start(0,1);}});cargar_imagen_ajax.request();};function cerrar_curso_div(){var inicio_fx=new Fx.Style($('datos_curso_div'),"opacity",{duration:200,wait:false,onComplete:function(){}});inicio_fx.start(1,0);};function enviar_mail(){var agregar_hit_ajax=new Ajax('enviar_mail.php',{method:'get',data:$('contacto_form'),onComplete:function(response){if(response==true){cargar_contenido('contacto');alert("Tu mensaje ha sido enviado correctamente");}else{alert(response);}}});agregar_hit_ajax.request();};function inscribir_boletin(){if($('mi_email').value==""){alert("Escribe una dirección de correo electrónico");return;}var agregar_mail_boletin=new Ajax('guardar_datos.php',{method:'get',data:'tabla=agregar_boletin&mi_email='+$('mi_email').value,onComplete:function(response){if(response==true){alert("Tu correo electrónico ha sido registrado");$('mi_email').value="";}else{alert(response);}}});agregar_mail_boletin.request();};function agregar_guestbook(){var agregar_guestbook_ajax=new Ajax('guardar_datos.php',{method:'get',data:$('guestbook_form'),onComplete:function(response){if(response==true){cargar_contenido('guestbook');alert("Tu comentario ha sido agregado");var agregar_hit_ajax=new Ajax('enviar_mail.php',{method:'get',data:'nombre='+$('nombre').value+'&email='+$('email').value+'&mensaje='+$('mensaje').value+'&asunto=Libro de visitas',onComplete:function(response){}});agregar_hit_ajax.request();}else{alert(response);}}});agregar_guestbook_ajax.request();}