String.prototype.trim = function() {return this.replace(/^\s+|\s+$/g,'');} var imgs_lang="/artworks/es"; var lang="/artworks/es"; var DIR=""; var imgs="/artworks"; var url_tobookmark="KALYA, Soluciones Informáticas"; var id_idioma=1 function abrirVentana(url, width, height, name) { if (name==null) {name='nueva_ventana';} var str = "height=" + height + ",innerHeight=" + height; str += ",width=" + width + ",innerWidth=" + width; if (window.screen) { var ah = screen.availHeight - 30; var aw = screen.availWidth - 10; var xc = (aw - width) / 2; var yc = (ah - height) / 2; str += ",left=" + xc + ",screenX=" + xc; str += ",top=" + yc + ",screenY=" + yc; } str += ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no"; objwin=window.open(url, name, str); if (objwin) objwin.focus(); } function getObj(id) {if (document.getElementById) {return document.getElementById(id)} else if (document.all) {return document.all[id]} else {return document.all[id]}} function setget_attr(obj, prop, val) { if (!val) return obj.getAttribute(prop); else { if (prop=="onmouseover" || prop=="onmouseout" || prop=="onclick" || typeof val=="function") { if (obj.addEventListener) { if (BrowserDetect.browser=="Explorer") val = Function(val); }else { obj.attachEvent(prop, new Function('"+val+"'), false); } } obj.setAttribute(prop,val); } } function rnd(max) { var x = Math.random() * max; x = x + 1; return parseInt(x); } function goprint(url) { abrirVentana(getUrlPrint(location.href)+"&imprimir=ok", 1024, 600, "_imprimir") } function getUrlPrint(url) { var aux=url.split("?"); var dir=aux[0]; if (aux.length>1) { aux=aux[1].split("&"); n=""; for (var i=0;i1) { aux=aux[1].split("&"); n=""; for (var i=0;i 0) { DHTMLALERT(mensaje); obj_focus=form.email; return false; } if (valor!=confirm_email) {DHTMLALERT(mensaje_extra);obj_focus=form.email;return false;} } else { if (valor=="") {DHTMLALERT(mensaje);obj_focus=eval("form."+campo);return false;} } } var o=getObj("btn_submit"); if (o!=null) {o.disabled=true;} return true; } var buscador_tocado=false; function validar_buscador(form) { if (!buscador_tocado) { DHTMLALERT("Por favor, Ingrese un texto válido a buscar."); return false; } var o=form.buscar.value; if (o.length<3) { DHTMLALERT("Por favor, Ingrese un texto válido a buscar."); return false; } return true; } function limpiar_buscador(obj) { if (obj.value=="Buscar") obj.value=""; buscador_tocado=true; } function clear_input(o,l) { if (o.value==l) {o.value='';} } function check_form_registro_home(form) { var aux="Dirección de correo incorrecta o email no válido.|Los emails no coinciden.".split("|"); if (form.tiny_email.value.indexOf('@') < 0 || form.tiny_email.value.indexOf('.') < 0 || form.tiny_email.value.indexOf(',') > 0) { DHTMLALERT(aux[0]); form.tiny_email.focus();return false;} return true; } function validar_olvidemiclave(form) { //var aux="Dirección de correo incorrecta o email no válido.|Los emails no coinciden.".split("|"); //if (form.olvideemail.value.indexOf('@') < 0 || form.olvideemail.value.indexOf('.') < 0 || form.email.value.indexOf(',') > 0) { DHTMLALERT(aux[0]); form.olvideemail.focus(); return false; } return true; } function validar_testimoniar(form) { if (form.nombres.value=="") {DHTMLALERT("Por favor, ingrese su nombre.");form.nombres.focus();return false;} if (form.apellidos.value=="") {DHTMLALERT("Por favor, ingrese su apellido.");form.apellidos.focus();return false;} m="Dirección de correo incorrecta o email no válido.|Los emails no coinciden.".split("|"); if (form.email.value.indexOf('@') < 0 || form.email.value.indexOf('.') < 0 || form.email.value.indexOf(',') > 0) { DHTMLALERT(m[0]); form.email.focus(); return false; } if (form.id_pais.value=="") {DHTMLALERT("Por favor, seleccione su país.");form.id_pais.focus();return false;} if (form.texto.value=="") {DHTMLALERT("Por favor, indique el mensaje.");form.texto.focus();return false;} var o=document.getElementsByName("calificacion"); var chk=false; for (var i=0;i 0) {DHTMLALERT('Ingrese su email'); form.miemail.focus(); return false;} if (form.tuemail.value.indexOf('@') < 0 || form.tuemail.value.indexOf('.') < 0 || form.tuemail.value.indexOf(',') > 0) {DHTMLALERT('Ingrese el email de su amigo'); form.tuemail.focus(); return false;} return true; } function expand_menu(npath) { var o=getObj("m_"+npath); if (o==null) return; if (o.style.display=="none") o.style.display=""; else o.style.display="none"; } var last_video=0; function video(id,t) { var url="/videos/get_video.php?id="+id+"&t="+t; close_player(last_video); last_video=id; crear_script_tag(url); display_undisplay('col_izquierda_td'); display_undisplay('col_derecha_td'); } function set_player(flv,id) { var o=getObj("ly_player"+id); if (o==null) {return;} o.innerHTML=flv; force_display("ly_player_container"+id); } function close_player(id) { var o=getObj("ly_player"+id); if (o!=null) {o.innerHTML="";} else {return;} display_undisplay("ly_player_container"+id); display_undisplay('col_izquierda_td'); display_undisplay('col_derecha_td'); } var set_attr_corpconcept=false; function mostrar_galeria_flash(url,titulo,extra) { var divfoto=getObj("corpconcept_foto"); var obj_img=getObj("corpconcept_foto_img"); var corpconcept_foto_desc=getObj("corpconcept_foto_desc"); var obj_cargando=getObj("gal_cargando_corpconcept"); if (obj_cargando!=null) obj_cargando.style.display=""; if (!set_attr_corpconcept) { if (obj_img.addEventListener) { obj_img.setAttribute("onload","ocultar_cargando_corpconcept()"); } else { obj_img.attachEvent("onload", function(){ocultar_cargando_corpconcept()}, false); } set_attr_corpconcept=true } if (divfoto.style.display=="none") divfoto.style.display=""; corpconcept_foto_desc.innerHTML=titulo; obj_img.src=url; } function ocultar_cargando_corpconcept() { var o=getObj("gal_cargando_corpconcept"); if (o!=null) o.style.display="none"; }function writeflash(o,m,w,h,p,oid) { var p=unescape(p); var obj = document.getElementById(o); if (obj==null){ alert(o+' MISSING'); return; } if (oid!=null && oid!=undefined) {tag_name="NAME='"+oid+"'";} else {tag_name="";} if (oid!=null && oid!=undefined) {oid="id='"+oid+"'";} else {oid="";} f=""; f+=""; f+=""; if (p!="") {f+="";} f+=""; f+=""; f+=""; f+=""; f+=""; if (p!="") {f+="";} f+=""; f+=""+clases+"->"+ly.innerHTML); if (!ly) ly=getObj(ly); if (ly==null) {return} class_def = "class"; //if (BrowserDetect.browser=="Explorer") class_def = "className"; var cn = setget_attr(ly,class_def); var oc = setget_attr(ly,'oldclass'); if (clases==undefined) { if (oc!=undefined) setget_attr(ly,class_def,oc); return; } setget_attr(ly,'oldclass', cn); setget_attr(ly,class_def,cn+" "+clases); // ly.className=cn+" "+clases; } function force_display(ly) { veclayers=ly.split(","); for (var i=0;i document.body.offsetHeight){ xScroll = document.body.scrollWidth; yScroll = document.body.scrollHeight; } else { xScroll = document.body.offsetWidth; yScroll = document.body.offsetHeight; } var windowWidth, windowHeight; if (self.innerHeight) { windowWidth = self.innerWidth; windowHeight = self.innerHeight; } else if (document.documentElement && document.documentElement.clientHeight) { windowWidth = document.documentElement.clientWidth; windowHeight = document.documentElement.clientHeight; } else if (document.body) { // other Explorers windowWidth = document.body.clientWidth; windowHeight = document.body.clientHeight; } if(yScroll < windowHeight){ pageHeight = windowHeight; } else { pageHeight = yScroll; } if(xScroll < windowWidth){ pageWidth = windowWidth; } else { pageWidth = xScroll; } arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) return arrayPageSize; } function recomendar_web() { var ly_transparente=getObj("ly_transparente"); var obj=getObj("recomendar"); if (obj.style.display=="") { obj.style.display="none"; ly_transparente.style.display="none"; } else { obj.style.display=""; ly_transparente.style.display=""; showAndCenter('recomendar'); getObj("form_recomendar").minombre.focus(); } }