var imgs_lang="/artworks/es"; var lang="/artworks/es"; var DIR=""; var imgs="/artworks"; var url_tobookmark="acher"; var id_idioma=1 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=="onload" || prop=="onmouseover" || prop=="onmouseout" || prop=="onclick" || typeof val=="function") { if (obj.id=="fotogal") { } if (BrowserDetect.browser=="Explorer") val = Function(val); } obj.setAttribute(prop,val); } } function rnd(max) { var x = Math.random() * max; x = x + 1; return parseInt(x); } var BrowserDetect = { init: function () { this.browser = this.searchString(this.dataBrowser) || "An unknown browser"; this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "an unknown version"; this.OS = this.searchString(this.dataOS) || "an unknown OS"; }, searchString: function (data) { 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; } 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) { alert(aux[0]); form.tiny_email.focus();return false;} return true; } function validar_recomendar_usuarios(form) { if (form.nombres.value=="") {alert("Por favor, ingrese su nombre.");form.nombres.focus();return false;} if (form.apellidos.value=="") {alert("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) { alert(m[0]); form.email.focus(); return false; } if (form.id_pais.value=="") {alert("Por favor, seleccione su país.");form.id_pais.focus();return false;} if (form.texto.value=="") {alert("Por favor, indique el mensaje.");form.texto.focus();return false;} var o=getObj("btnsubmit_rec2"); o.disabled=true; return true; } function cambiar_estilos(ID_STYLE,seccion) { var file="/scripts/set_styles.php?id_style="+ID_STYLE; if (seccion!=undefined) {file+="&seccion="+seccion;} crear_script_tag(file); } function crear_script_tag(file,tagname) { var head_html = document.getElementsByTagName('head'); if (head_html==null) head_html=document; else head_html=head_html[0]; if (tagname==undefined) tagname="jscript_gen"; scriptTag = getObj(tagname); if(scriptTag!=null) { head_html.removeChild(scriptTag); delete(scriptTag); scriptTag=null; } var script = document.createElement('script'); var vch="?"; if (file.indexOf("?")!=-1) vch="&"; script.src = file+vch+Math.random()*1000000; script.type = "text/javascript"; script.id = tagname; head_html.appendChild(script); } function validar_recomendar(form) { if (form.miemail.value.indexOf('@') < 0 || form.miemail.value.indexOf('.') < 0 || form.miemail.value.indexOf(',') > 0) { DHTMLALERT('Indique su email'); form.miemail.focus(); return false; } if (form.minombre.value == '') { DHTMLALERT('Indique su nombre'); form.minombre.focus(); return false; } if (form.tunombre.value == '') { DHTMLALERT('Indique el nombre de la persona a quien nos recomienda'); form.tunombre.focus(); return false; } if (form.tuemail.value.indexOf('@') < 0 || form.tuemail.value.indexOf('.') < 0 || form.tuemail.value.indexOf(',') > 0) { DHTMLALERT('Indique el email de la persona a quien nos recomienda'); form.tuemail.focus(); return false; } return true; } 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); } 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;} force_undisplay("ly_player_container"+id); } 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"; } function goprint(url) { abrirVentana(getUrlPrint(location.href)+"&imprimir=ok", 1034, 600, "_imprimir") } function openpopup(url) { if (url!="") { abrirVentana(getUrlPopup(url)+"popup=ok", 700, 500, "_popup") } else { abrirVentana(getUrlPopup(location.href)+"popup=ok", 700, 500, "_popup") } } function getUrlPopup(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"; 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; } //OCULTAR LAYERS function force_hide(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(); } } function forzar_mostrar_layer_transparente() { obj=getObj("ly_transparente"); obj.style.display=""; obj.style.width=getPageSize()[0]; obj.style.height=getPageSize()[1]; } function forzar_ocultar_layer_transparente() { obj=getObj("ly_transparente"); if (obj==null) { alert("layer_transparente no encontrado"); return; } obj.style.display="none"; }