/*The following code opens up the windows for the images*/


function launchad(whichone)
{	
	
	if(whichone==1)
		{
		DynaWin('enlargements/frontcover.jpg', '638', '825', '20', '20');
		}
		
	if(whichone==2)
		{
		DynaWin('enlargements/page1.jpg', '638', '825', '0', '0');
		}
	
	if(whichone==3)
		{
		DynaWin('enlargements/page3.jpg', '638', '825', '0', '0');
		}
		
	if(whichone==4)
		{
		DynaWin('enlargements/page_s1.jpg', '638', '825', '0', '0');
		}
		
	if(whichone==5)
		{
		DynaWin('enlargements/page2.jpg', '638', '825', '0', '0');
		}
		
	if(whichone==6)
		{
		DynaWin('enlargements/page4.jpg', '638', '825', '0', '0');
		}
		
	if(whichone==7)
		{
		DynaWin('enlargements/page5.jpg', '638', '825', '0', '0');
		}
	
	if(whichone==8)
		{
		DynaWin('enlargements/insidefront.jpg', '638', '825', '0', '0');
		}
		
	if(whichone==9)
		{
		DynaWin('enlargements/insideopposite.jpg', '638', '825', '0', '0');
		}
		
	if(whichone==10)
		{
		DynaWin('enlargements/page_h3.jpg', '638', '825', '0', '0');
		}
		
	if(whichone==11)
		{
		DynaWin('enlargements/page_h4.jpg', '638', '825', '0', '0');
		}
		
	if(whichone==12)
		{
		DynaWin('enlargements/embassy_suitepage.jpg', '638', '825', '0', '0');
		}
		
	if(whichone==13)
		{
		DynaWin('enlargements/index_page.jpg', '638', '825', '0', '0');
		}
		
	if(whichone==14)
		{
		DynaWin('enlargements/banet_backcover.jpg', '638', '825', '0', '0');
		}
		
	if(whichone==15)
		{
		DynaWin('enlargements/page6.jpg', '638', '825', '0', '0');
		}
		
	if(whichone==16)
		{
		DynaWin('enlargements/page7.jpg', '638', '825', '0', '0');
		}	
	
}

/*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 + 30;
poph = 650;
popw = + w + 30;
disp = window.open("","pop","height=" + poph + ",width=" + popw + ",left=" + l + ",top=" + t + ",scrollbars=1");
content = '<HTML>';
content += '<HEAD>';
content += '<TITLE>Ad Enlargement</TITLE>';
content += '</HEAD>';
content += '<BODY BACKGROUND="white" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0" onBlur="self.close()">';
//content += '<P ALIGN="CENTER"><img src="images/' + url + '" height="' + h + '" width="' + w + '" class=""></P>';
content += '<P ALIGN="CENTER"><img src="images/' + url + '" height="' + h + '" width="' + w + '" class=""></P>';
//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.document.close();
}