
width = new Array();
width[0] = 419;
width[1] = 389;
width[2] = 370;
width[3] = 382;
width[4] = 385;
width[5] = 385;
width[6] = 405;
width[7] = 474;
width[8] = 500;
width[9] = 473;
width[10] = 639;
width[11] = 480;
width[12] = 640;
width[13] = 479;
width[14] = 479;
width[15] = 636;
width[16] = 478;
width[17] = 640;
width[18] = 640;
width[19] = 640;
width[20] = 640;
width[21] = 640;
width[22] = 640;
width[23] = 640;
width[24] = 640;
width[25] = 640;
width[26] = 640;
width[27] = 640;
width[28] = 640;
width[29] = 640;
width[30] = 640;
width[31] = 640;
width[32] = 640;
width[33] = 640;
width[34] = 640;
width[35] = 640;
width[36] = 640;
width[37] = 640;
width[38] = 640;
width[39] = 640;
width[40] = 640;
width[41] = 640;
width[42] = 640;
width[43] = 480;
width[44] = 640;
width[45] = 640;
width[46] = 640;
width[47] = 640;
width[48] = 640;



height = new Array();
height[0] = 580;
height[1] = 584;
height[2] = 581;
height[3] = 587;
height[4] = 582;
height[5] = 584;
height[6] = 572;
height[7] = 634;
height[8] = 735;
height[9] = 476;
height[10] = 478;
height[11] = 560;
height[12] = 476;
height[13] = 635;
height[14] = 635;
height[15] = 475;
height[16] = 510;
height[17] = 477;
height[18] = 475;
height[19] = 475;
height[20] = 475;
height[21] = 475;
height[22] = 475;
height[23] = 475;
height[24] = 475;
height[25] = 475;
height[26] = 475;
height[27] = 475;
height[28] = 475;
height[29] = 475;
height[30] = 475;
height[31] = 475;
height[32] = 475;
height[33] = 475;
height[34] = 475;
height[35] = 475;
height[36] = 475;
height[37] = 475;
height[38] = 475;
height[39] = 475;
height[40] = 475;
height[41] = 475;
height[42] = 475;
height[43] = 635;
height[44] = 475;
height[45] = 475;
height[46] = 475;
height[47] = 475;
height[48] = 475;

function prepareToPrint(link, title, options) {
  open(link, title, options)
}

function abre() {
  open('w1-11-1999.html','Sentinela', 'resizable=1, scrollbars=1, width=720, height=480')
}

function loadText(file) {
  document.location.href=file;
}

function NoTitleFrames() {
	parent.location.href("index1.html");
}

function home() {
	parent.location.href("http://mundodatorre.home.attbi.com/index.html");
}


function showPicture1(picture)
{
	options = "toolbar=0, menubar=0, resizable=1, scrollbars=1, width=300, height=200";
	pictureWindow = open("", "Picture", options);
	pictureWindow.document.open();
	pictureWindow.document.write("<html>");
	pictureWindow.document.write("<title>");
	pictureWindow.document.write("Ampliação");
	pictureWindow.document.write("</title>");
	pictureWindow.document.write("<script language='javascript'>");
	pictureWindow.document.write("function resize() {");
	pictureWindow.document.write("img = document.images[0];");
	pictureWindow.document.write("width = img.width;");
	pictureWindow.document.write("height = img.height;");

	pictureWindow.document.write("if (navigator.appName == 'Netscape') browser = 0; else browser = 1;");
		
	pictureWindow.document.write("if (browser == 0) {");
	pictureWindow.document.write("window.innerWidth = width;");
	pictureWindow.document.write("window.innerHeight = height;");
	pictureWindow.document.write("window.setResizable(false);");
	pictureWindow.document.write("}");	
	
	pictureWindow.document.write("if (browser == 1) {");
	pictureWindow.document.write("window.resizeTo(width+29,height+31);");
	pictureWindow.document.write("}");
	pictureWindow.document.write("}");
	
	
	pictureWindow.document.write("</script>");
	pictureWindow.document.write("<body leftmargin=0 rightmargin=0 topmargin=0 botommargin=0 marginwidth=0 marginheight=0 onload='resize()'>");
	pictureWindow.document.write("<img src='"+picture+"'>");
	pictureWindow.document.write("</body>");
	pictureWindow.document.write("</html>");
	pictureWindow.document.close();
}

function showPicture(picture, index)
{
	w = width[index];
	h = height[index];
	scrollbar = 0;
	
	if (w > (screen.width-10)) {
	 	w=screen.width-10;
	 	scrollbar=1;
	}
	
	if (h > (screen.height-60)) {
	 	h=screen.height-60;
	 	scrollbar=1;
	}
	
	options = "toolbar=0, menubar=0, resizable="+scrollbar +", scrollbars="+scrollbar + ", width="+w + " , height="+h;
	pictureWindow = open("", "Picture", options);
	
	pictureWindow.document.open();
	pictureWindow.document.write("<html>");
	pictureWindow.document.write("<title>");
	pictureWindow.document.write("Ampliação");
	pictureWindow.document.write("</title>");
	pictureWindow.document.write("<script language='javascript'>");
	pictureWindow.document.write("function resize() {");
	pictureWindow.document.write("img = document.images[0];");
	pictureWindow.document.write("width = img.width;");
	pictureWindow.document.write("height = img.height;");

	pictureWindow.document.write("if (navigator.appName == 'Netscape') browser = 0; else browser = 1;");
		
	pictureWindow.document.write("if (browser == 0) {");
	pictureWindow.document.write("window.innerWidth = width;");
	pictureWindow.document.write("window.innerHeight = height;");
	pictureWindow.document.write("window.setResizable(false);");
	pictureWindow.document.write("}");	
	
	pictureWindow.document.write("if (browser == 1) {");
	pictureWindow.document.write("window.resizeTo(width+29,height+31);");
	pictureWindow.document.write("}");
	pictureWindow.document.write("}");
	
	pictureWindow.document.write("</script>");
//	pictureWindow.document.write("<body leftmargin=0 rightmargin=0 topmargin=0 botommargin=0 marginwidth=0 marginheight=0 onload='resize()'>");
	pictureWindow.document.write("<body leftmargin=0 rightmargin=0 topmargin=0 botommargin=0 marginwidth=0 marginheight=0>");
	pictureWindow.document.write("<img src='"+picture+"'>");
	pictureWindow.document.write("</body>");
	pictureWindow.document.write("</html>");
	pictureWindow.document.close();
}

