String.prototype.trim = function() {return this.replace(/^\s+|\s+$/g,'');} var body_cargado=false; var imgs_lang="/artworks/es"; var lang="/artworks/es"; var DIR=""; var imgs="/artworks"; var url_tobookmark="Golden House Group"; 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 openpopup(url) { if (url!="") { abrirVentana(getUrlPopup(url)+"popup=ok", 1000, 700, "_popup") } else { abrirVentana(getUrlPopup(location.href)+"popup=ok", 1000, 550, "_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 0) { DHTMLALERT(aux[0]); form.tiny_email.focus();return false;} return true; } function validar_olvidemiclave(form) { var aux="Dirección de correo incorrecta o e-mail no válido.|Los e-mails 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 e-mail no válido.|Los e-mails 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; } 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; } var last_video=0; function video(id,t) { var url="/videos/get_video.php?id="+id+"&t="+t; if (last_video>0) 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=""; getObj("ly_player_container"+id).style.display="none"; } var ahora = 58012; function updateClock() { ahora++; if (ahora>(24*60*60)) ahora=0; var horas=parseInt(ahora/(60*60)); var resto=ahora-(horas*(60*60)); var minutos=parseInt(resto/(60)); var segundos=resto-(minutos*60); minutos = ( minutos < 10 ? "0" : "" ) + minutos; segundos = ( segundos < 10 ? "0" : "" ) + segundos; horas = ( horas < 10 ? "0" : "" ) + horas; getObj("hora").innerHTML = horas + ":" + minutos + ":" + segundos; } function send_to_fav(id_objeto,tipo_objeto_favorito) { var url="/usuarios/scripts/agregar_a_favoritos.php?id_objeto="+id_objeto+"&tipo_objeto="+tipo_objeto_favorito; crear_script_tag(url,"fav"); } function remove_from_fav(id_fav) { if (window.confirm("Remover esta propiedad de favoritos")) { var url="/usuarios/scripts/remove_favoritos.php?id_fav="+id_fav; crear_script_tag(url,"fav"); } } function hide_unhide_obj(id) { var obj=getObj(id); if (obj==null) return; if (obj.style.display=="none") { obj.style.display="block"; } else { obj.style.display="none"; } } function guardar_cookie(url,valor) { var ifrm; var ifrmid; if (url.split("/")[2] == null || url.split("/")[2] == undefined) return; ifrmid = url.split("/")[2]; ifrm = document.getElementById(ifrmid); if ( ifrm != null ) document.body.removeChild(ifrm); ifrm = document.createElement("iframe"); ifrm.id = "GC_"+ifrmid; ifrm.src = url; //+"?cv="+valor; document.body.appendChild(ifrm); } function $$asp( objId ) { var o = document.getElementById( objId ); if ( o == null ) return; var nobj = document.createElement("INPUT"); nobj.name = o.name + "_hidden_asp"; nobj.type = "hidden"; o.hidden_asp = nobj; o.form.appendChild( nobj ); o.onkeyup = function ( e ) { var t; if ( window.event && event.srcElement ) t = event.srcElement; //IE else t = e.target; this.hidden_asp.value = this.value; }; } function writeflash(o,m,w,h,wm,p,oid) { //alert(wm); 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+=" 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 set_tab_new(obj) { var obj_id = obj.id; var prefijo="container_"; var obj_class = obj.className; var vec_tab_names = obj_id.split("_"); if (vec_tab_names.length<=1) { alert("Nombre Tag Inválido falta prefijo _#"); return; } vec_tab_names.pop(); var tab_name = vec_tab_names.join("_"); obj_class = obj_class.split("_off").join(""); obj_class = obj_class.split("_on").join(""); var i=1; var tab_actual=null; var no_flag=false; while ( tab_actual != null || !no_flag) { tab_actual=getObj(tab_name+"_"+i); container_actual=getObj(prefijo+tab_name+"_"+i); if (tab_actual==null || container_actual==null) break; tab_actual.className="off"; container_actual.style.display="none"; i++; no_flag = true; } tab_actual=getObj(obj_id); container_actual=getObj(prefijo+obj_id); tab_actual.className="active"; container_actual.style.display=""; }var autoexpandiendo=false; function init_cats() { var pdiv,phref; for (var i=0;i candidato a hijo if ((prof+1)==prof_actual) { //si empiezan igual es un hijo, ej [0.166.] == [0.166.]195 if ((path_actual.substring(0,(path.length+1))) == (path+".")) { objhijo=getObj("p"+path_actual); if (objhijo!=null) objhijo.style.display=""; hubo_expansion=true; } } } if (!hubo_expansion) { var nav_url=cat_url+"&path="+path; if (!autoexpandiendo) { if (cat_url!="") { location.href=nav_url; } else { if (last_url_expand!="") location.href=last_url_expand; } } } else { expandidos[path]=1; } } function contraer_hijos(path) { var path_actual,objhijo; var ids=path.split("."); var prof=ids.length-1; //recorro el array de cats for (var i=0;i