// $Id: contact.js,v 1.2 2008/12/08 22:59:37 ccusack Exp $
//

	function OpenImageWindowSingle(ImageName,HeaderName,NameText) {
		/*alert("Opening Picture")*/
		MyPicture = new Image
		MyPicture.src = ImageName
		//while (MyPicture.complete==true) {
		// Loop while loading		
		//}
		//PicHeight = MyPicture.height
		//PicWidth = MyPicture.width		

		PicHeight = 355
		PicWidth = 345
		
		//alert(PicHeight)
		//alert(PicWidth)

		//BambooWindow=window.open("",'BambooPreviewWindow','resizable=yes,scrollbars=yes,width=500,height=500')
		BambooWindow=window.open("","BambooPreviewWindow","resizable=yes,width=" + (PicWidth+30) + ",height=" + (PicHeight+120) + ',scrollbars=no')
		//BambooWindow.width = PicWidth
		//BambooWindow.height = PicHeight		
		BambooWindow.focus()
		BambooWindow.document.writeln('<html>')
		BambooWindow.document.writeln('<HEAD>')
		BambooWindow.document.writeln('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">')
		BambooWindow.document.writeln('<meta http-equiv="imagetoolbar" content="no">')		
		BambooWindow.document.writeln('	<link rel="stylesheet" type="text/css" href="style_bw2.css">')
		BambooWindow.document.writeln('<\/HEAD>')		
		BambooWindow.document.writeln('<BODY LINK="#ff0000" VLINK="#0000ff" BACKGROUND="../images/yellow.gif" alink="#FF0000">')
		//BambooWindow.document.writeln(PicWidth + ' , ' + PicHeight)
		//BambooWindow.document.writeln(MyPicture.complete)
		BambooWindow.document.writeln('<H1>' + HeaderName + '<\/H1>')
		//BambooWindow.document.writeln('<IMG SRC="' + ImageName + '" BORDER=2 ALIGN="centre">')
		BambooWindow.document.writeln('<IMG SRC="' + MyPicture.src + '" BORDER=2 ALIGN="centre">')
		BambooWindow.document.writeln('<H3>')
		BambooWindow.document.writeln(NameText)
		BambooWindow.document.writeln('<\/H3>')
		BambooWindow.document.writeln('	<script language="JavaScript">')	
		BambooWindow.document.writeln('	<!-- Begin')
		BambooWindow.document.writeln('	function protect(evt)')
		BambooWindow.document.writeln('	{')
		BambooWindow.document.writeln('	if (navigator.appName != "Microsoft Internet Explorer")')
		BambooWindow.document.writeln('	{')
		BambooWindow.document.writeln('	if (evt.which != 3)')
		BambooWindow.document.writeln('	return true;')
		BambooWindow.document.writeln('	};')
		/*BambooWindow.document.writeln('	alert("Sorry, you don\'t have permission to right-click.");')	*/
		BambooWindow.document.writeln('	return false;')
		BambooWindow.document.writeln('	}')
		BambooWindow.document.writeln('	if(document.images)')
		BambooWindow.document.writeln('	  {')
		BambooWindow.document.writeln('	    if(navigator.appName != "Microsoft Internet Explorer")')
		BambooWindow.document.writeln('	    {')
		BambooWindow.document.writeln('	for(i=0;i<document.images.length;i++)')
		BambooWindow.document.writeln('	document.images[i].onmousedown = protect;')
		BambooWindow.document.writeln('	    }')
		BambooWindow.document.writeln('	    else')
		BambooWindow.document.writeln('	    {')
		BambooWindow.document.writeln('	      for(i=0;i<document.images.length;i++)')
		BambooWindow.document.writeln('	document.images[i].oncontextmenu = protect;')
		BambooWindow.document.writeln('	    }')
		BambooWindow.document.writeln('	  }')
		BambooWindow.document.writeln('	\/\/ End -->')
		BambooWindow.document.writeln('	<\/script>')
		BambooWindow.document.writeln('<\/body>')		
		BambooWindow.document.writeln('<\/html>')		
		}
