picsize=10;              //WIDTH AND HEIGHT OF THE PICTURE

var isNS=(navigator.appName=="Netscape");
var _all=(isNS)? '' : 'all.' ;
var _style=(isNS)? '' : '.style' ;
var _visible=(isNS)? 'show' : 'visible';
var x, y, id=1, logo;

function getwindowsize(){
clearTimeout(id);
logo=eval('document.'+_all+'logo'+_style);
clearTimeout(id);
x=0;
y=0;
logo.visibility=_visible;
showlogo();
}

function showlogo(){
if(isNS){
logo.moveTo((x+pageXOffset),(y+pageYOffset))
}else{
logo.pixelLeft=x+document.body.scrollLeft;
logo.pixelTop=y+document.body.scrollTop;
}
id=setTimeout('showlogo()',50);
}

window.onload=getwindowsize;

function reloadNS(){
setTimeout('window.location.reload()', 50);
}

(isNS)? window.onresize=reloadNS : window.onresize=getwindowsize;

function setCookie(name, value, expires, path, domain, secure) {
  document.cookie = name + "=" + escape(value) + 
  ((expires == null) ? "" : "; expires=" + expires.toGMTString()) +
  ((path == null) ? "" : "; path=" + path) +
  ((domain == null) ? "" : "; domain=" + domain) +
  ((secure == null) ? "" : "; secure");
}
var expiration = new Date();
expiration.setTime(expiration.getTime() + 30*24*60*60*1000);

function nueva(a){window.open(a,"_blank","top=0,left=0,screenY=0,screenX=0,outerwidth=" + screen.availWidth + ",outerheight=" + screen.availHeight + ",height=" + eval(screen.height - 120) + ",width=" + screen.width + ",scrollbarsscrollbars");}

function canviar(a,en){
if (en == null){en='_blank'};
nueva=window.open('',en,'top=0,left=0,screenY=0,screenX=0,outerwidth=' + screen.availWidth + ',outerheight=' + screen.availHeight + ',height=' + eval(screen.height - 120) + ',width=' + screen.width + ',scrollbars,toolbar,status=yes')
nueva.document.write('<html><head><meta name="CACHE-CONTROL" content="no-cache"><title>Gesti&oacute;n-Ambiental.com<\/title><\/head><frameset rows="52,*" border="0" noborder><frame src="http://www.gestion-ambiental.com/ini.html" frameborder="0" scrolling="no"><frame name="cos" src="'+a+'" frameborder="0"><\/frameset><\/html>')
}

