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 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);
}
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 e-mail no válido.|Los e-mails 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 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.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 ahora = 80553;
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="";
obj.innerHTML=f;
}var imgs=DIR+"/artworks";
//BOOKMARK
function SetBookMark() {
var title=url_tobookmark;
if( window.sidebar && window.sidebar.addPanel ) {
window.sidebar.addPanel(title,location.href,'');
} else {
window.external.AddFavorite(location.href,title);
}
}
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) {
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();
}
}