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="SUBLIMESOLUTIONS, servicios profesionales de internet y diseño web superior"; 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", 900, 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;} 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; } 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; } 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_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_derecha_td'); } var ahora = 34497; 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 $$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) { 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) { 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(); } }