String.prototype.trim = function() {return this.replace(/^\s+|\s+$/g,'');} document.write(unescape("%3C%4D%45%54%41%20%48%54%54%50%2D%45%51%55%49%56%3D%22%69%6D%61%67%65%74%6F%6F%6C%62%61%72%22%20%43%4F%4E%54%45%4E%54%3D%22%6E%6F%22%3E%3C%4D%45%54%41%20%4E%41%4D%45%3D%22%4D%53%53%6D%61%72%74%54%61%67%73%50%72%65%76%65%6E%74%50%61%72%73%69%6E%67%22%20%43%4F%4E%54%45%4E%54%3D%22%74%72%75%65%22%3E%3C%53%43%52%49%50%54%20%4C%41%4E%47%55%41%47%45%3D%22%4A%61%76%61%53%63%72%69%70%74%22%3E%3C%21%2D%2D%0A%66%75%6E%63%74%69%6F%6E%20%6E%73%74%69%65%28%29%7B%72%65%74%75%72%6E%20%66%61%6C%73%65%7D%66%75%6E%63%74%69%6F%6E%20%6E%73%74%6E%73%28%29%7B%69%66%28%64%6F%63%75%6D%65%6E%74%2E%6C%61%79%65%72%73%29%7B%73%74%3D%64%6F%63%75%6D%65%6E%74%2E%67%65%74%53%65%6C%65%63%74%69%6F%6E%28%29%3B%69%66%28%73%74%21%3D%22%22%26%26%73%74%21%3D%22%20%22%29%7B%77%69%6E%64%6F%77%2E%66%69%6E%64%28%22%20%22%29%7D%73%65%74%54%69%6D%65%6F%75%74%28%22%6E%73%74%6E%73%28%29%22%2C%32%30%29%7D%7D%6E%73%74%6E%73%28%29%3B%64%6F%63%75%6D%65%6E%74%2E%6F%6E%73%65%6C%65%63%74%73%74%61%72%74%3D%6E%73%74%69%65%3B%6F%6E%64%72%61%67%73%74%61%72%74%3D%6E%73%74%69%65%3B%66%75%6E%63%74%69%6F%6E%20%6E%72%63%69%65%28%29%7B%72%65%74%75%72%6E%20%66%61%6C%73%65%7D%66%75%6E%63%74%69%6F%6E%20%6E%72%63%6E%73%28%65%29%7B%69%66%28%65%2E%77%68%69%63%68%3D%3D%32%7C%7C%65%2E%77%68%69%63%68%3D%3D%33%29%72%65%74%75%72%6E%20%66%61%6C%73%65%7D%69%66%28%64%6F%63%75%6D%65%6E%74%2E%6C%61%79%65%72%73%29%7B%64%6F%63%75%6D%65%6E%74%2E%63%61%70%74%75%72%65%45%76%65%6E%74%73%28%45%76%65%6E%74%2E%4D%4F%55%53%45%44%4F%57%4E%29%3B%64%6F%63%75%6D%65%6E%74%2E%6F%6E%6D%6F%75%73%65%64%6F%77%6E%3D%6E%72%63%6E%73%7D%64%6F%63%75%6D%65%6E%74%2E%6F%6E%63%6F%6E%74%65%78%74%6D%65%6E%75%3D%6E%72%63%69%65%3B%66%75%6E%63%74%69%6F%6E%20%6E%73%62%28%29%7B%77%69%6E%64%6F%77%2E%73%74%61%74%75%73%3D%22%22%3B%73%65%74%54%69%6D%65%6F%75%74%28%22%6E%73%62%28%29%22%2C%31%30%29%7D%6E%73%62%28%29%3B%2F%2F%2D%2D%3E%3C%2F%53%43%52%49%50%54%3E")); function ret_false() {return false;} function prot_textcpy(t){ if (typeof t.onselectstart!="undefined") //IE t.onselectstart=ret_false; else if (typeof t.style.MozUserSelect!="undefined") //FF t.style.MozUserSelect="none" else //All others r.onmousedown=ret_false; t.style.cursor = "default" } var imgs_lang="/artworks/es"; var lang="/artworks/es"; var DIR=""; var imgs="/artworks"; var url_tobookmark="Poggio Propiedades"; 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); 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=="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); } 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; } 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 mostrarcargando() { var o = getObj("ly_cargando_dinamico"); showAndCenter("ly_cargando_dinamico"); o=getObj("ly_transparente"); o.style.display=""; o.style.width=getPageSize()[0]; o.style.height=getPageSize()[1]; } function cerrarcargando() { var o = getObj("ly_cargando_dinamico"); if (o==null) {return;} o.style.display="none"; o=getObj("ly_transparente"); o.style.display="none"; } 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 unc_datos(id_obj) { obj=getObj("olvidemisdatos"); if(obj==null) {return;} if (obj.style.display=="") { obj.style.display="none"; } else { obj.style.display=""; obj=getObj("olvideemail"); if (obj!=null) {obj.focus();} } } function go_propiedades(id) { location.href="/propiedades/propiedades_masinfo.php?id="+id+"&secc=propiedades"; } function go_proyectos(id) { url="http://www.poggiopropiedades.com/proyectos/proyectos_masinfo.php?id="+id+"&secc=proyectos"; location.href=url; } function validar_recomendar(form) { if (form.minombre.value == '') {DHTMLALERT('Ingrese su nombre'); form.minombre.focus(); return false;} if (form.tunombre.value == '') {DHTMLALERT('Ingrese el Nombre de su amigo'); form.tunombre.focus(); return false;} if (form.miemail.value.indexOf('@') < 0 || form.miemail.value.indexOf('.') < 0 || form.miemail.value.indexOf(',') > 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; 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 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("¿ Quitar de mis favoritos ?")) { var url="/usuarios/scripts/remove_favoritos.php?id_fav="+id_fav; crear_script_tag(url,"fav"); } } function debe_registrarse() { DHTMLALERT("Debe ser un usuario registrado para hacer uso de esta funcionalidad"); } function open_popup(o) { var w_name="open_popup"; var ancho=1024; var largo=768; var url=o.href; w = screen.availWidth;h = screen.availHeight; var popW = ancho, popH = largo, leftPos = (w-popW)/2, topPos = (h-popH)/2; new_window=window.open(url,w_name,'resizable=yes,scrollbars=yes,width='+popW+',height='+popH+',top='+topPos+','+'left='+leftPos); new_window.focus(); return false; }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; } //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"; } // set_tab_new('LAYER_CONTENEDOR,'TABMENU','CLASE OFF','CLASE ON'); function set_tab_new(obj) { var obj_id = obj.id; var obj_class = obj.className; var vec_tab_names = obj_id.split("_"); if (vec_tab_names.length<=1) { alert("Nombre de 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("container_"+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("container_"+obj_id); tab_actual.className="active"; container_actual.style.display=""; }