/*The following code opens up the windows for the images*/

function launchmap(whichone)
{	
	if(whichone==1)
		{
		DynaWin('unclegilmap.gif', '538', '410', '150', '200');
		}
	if(whichone==2)
		{
		DynaWin('unclemesamap.gif', '538', '410', '150', '200');
		}
	if(whichone==3)
		{
		DynaWin('unclequeenmap.gif', '538', '410', '150', '200');
		}
}

/*This function opens a dynamic window with the lenght and width passed to it from the launchpic function, and puts the image inside.
url is the path to the image, w is the width, h is the height, l is the position from left, and t is position from top*/
function DynaWin(url, w, h, l, t)
{
poph = + h + 0;
popw = + w + 0;
//l = + l - 50;
t = + t + 25;
var winX = screen.availWidth - popw - 25;
disp = window.open("","pop","height=" + poph + ",width=" + popw + ",left=" + winX + ",top=" + t + "");
content = '<HTML>';
content += '<TITLE>Directions</TITLE>';
content += '</HEAD>';
content += '<BODY bgcolor="#000000" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" onBlur="self.close()">';
content += '<P ALIGN="CENTER"><img src="images/' + url + '" height="' + h + '" width="' + w + '"></P>';
//content += '<H3 ALIGN="CENTER"><A HREF="#" onClick="self.close()">Close Window</A></H3>';
content += '</BODY></HTML>';
disp.document.write(content);
//disp.moveTo(300,200);
disp.document.close();
}

