function fitPic() {
    
    b = document.getElementsByTagName("body").item(0);
    b.style.margin  = "0px";
    b.style.padding = "0px";

    // Netscape
    if (self.innerWidth) {
    	iWidth  = self.innerWidth;
    	iHeight = self.innerHeight;
    // Explorer 6 if you use a DOCTYPE
    } else if (document.documentElement && document.documentElement.clientWidth) {
    	iWidth  = document.documentElement.clientWidth;
    	iHeight = document.documentElement.clientHeight;
    // Explorer in all other cases
    } else if (document.body) {
    	iWidth  = document.body.clientWidth;
    	iHeight = document.body.clientHeight;
    }

    // Netscape 4 has a bug in its implementation of resizeTo
	if (document.layers) {
		tmp1 = parent.outerWidth - parent.innerWidth;
		tmp2 = parent.outerHeight - parent.innerHeight;
		iWidth  -= tmp1;
		iHeight -= tmp2;
	}
		
	iWidth  = document.images[0].width  - iWidth;
	iHeight = document.images[0].height - iHeight;
	window.resizeBy(iWidth, iHeight);

};

funciones_someter_onload[funciones_someter_onload.length] = "fitPic";

