//------------------------------------------------------ function show(div) { if (document.all) { if (document.all[div]) { document.all[div].style.visibility="visible"; document.all[div].style.position="absolute"; } } else { if (document.layers[div]) { document.layers[div].visibility = "show"; } } } //------------------------------------------------------ function referenciapanel(contenido) { // Llamado desde modelos/src/detectartipoespacio document.all["referenciapanelcontrol"].innerHTML=contenido; } //------------------------------------------------------ function hide(div) { if (document.all) { if (document.all[div]) { document.all[div].style.visibility="hidden"; document.all[div].style.position="absolute"; } } else { if (document.layers[div]) { document.layers[div].visibility = "hide"; } } } //------------------------------------------------------ //-en esta funcion ponemos el parametro resizable a yes para que permita maximizar.augusto 21/10/2004 function openwin(url,anchowin,altowin) { var ancho=anchowin; var alto=altowin; var left=(screen.width - ancho)/2; var top=(screen.height - alto)/2; opciones='width='+ancho+',height='+alto+',left='+left+',top='+top+',location=no,toolbar=no,status=no,menubar=no,directories=no,resizable=yes,scrollbars=yes,copyhistory=no'; window.open(url,'detalle',opciones); } //------------------------------------------------------ function ventanamodelos(url) { //Llamada desde /Modelos estructurales/tiposespacio/linksmodelos var ancho=500; var alto=500; var top=(screen.height-alto)/2; var left=(screen.width-ancho)/2; window.open(url,"","width="+ancho+",height="+alto+",left="+left+",top="+top+",location=no,toolbar=no,status=no,menubar=no,directories=no,scrollbars=yes,resizable=yes,copyhistory=no'") } /////////--------------- // This script is copyright (c) Henrik Petersen, NetKontoret // Feel free to use this script on your own pages as long as you do not change it. // It is illegal to distribute the script as part of a tutorial / script archive. // Updated version available at: http://www.echoecho.com/toolfloatinglayer.htm // This comment and the 4 lines above may not be removed from the code. floatX=10; floatY=10; layerwidth=100; layerheight=130; halign="right"; valign="top"; delayspeed=3; function adjust() { if (lastX==-1 || delayspeed==0) { lastX=document.body.scrollLeft + floatX; lastY=document.body.scrollTop + floatY; } else { var dx=Math.abs(document.body.scrollLeft+floatX-lastX); var dy=Math.abs(document.body.scrollTop+floatY-lastY); var d=Math.sqrt(dx*dx+dy*dy); var c=Math.round(d/10); if (document.body.scrollLeft+floatX>lastX) {lastX=lastX+delayspeed+c;} if (document.body.scrollLeft+floatXlastY) {lastY=lastY+delayspeed+c;} if (document.body.scrollTop+floatY