<!--
var Client="Alaska's Lake Clark Inn";
var photoTitle="";
var photo = "";

function PopupWindow(photoName, photoWidth, photoHeight, photoCaption, pos)
{
	ClosePopupWin();

 	photoTitle=Client;

 	if (photoCaption != ""){photoTitle=photoTitle + "%20-%20" + photoCaption;}

	var URL = "/includes/popupwindow.asp?Photo=" + photoName + "&Width=" + photoWidth + "&Height=" + photoHeight + "&Caption=" + photoCaption + "&Pos=" + pos;
 	var windowWidth = parseInt(photoWidth) + 50;
 	var windowHeight = parseInt(photoHeight) + 50;

    if(photo){
        if(photo.closed){
			//alert('if');
            photo = window.open(URL, "PhotoWindow", "width=" + windowWidth + ",height=" + windowHeight + ",toolbars=no,top=15,left=15");
        } else { 
            //popup1.focus();
			//alert('else');
			//window.photo.close();
			photo = window.open(URL, "PhotoWindow", "width=" + windowWidth + ",height=" + windowHeight + ",toolbars=no,top=15,left=15");
        }
    } else {
        photo = window.open(URL, "PhotoWindow", "width=" + windowWidth + ",height=" + windowHeight + ",toolbars=no,top=15,left=15");
    }
	
}


function ClosePopupWin(){
	if (photo){
		if(!photo.closed){window.photo.close();}
	}
}





function DisplayImage(sPictureName)   
{
	var newWind = window.open ('OHPIC.asp?PIC=sPictureName','window2','resizable=no,directories=no,status=no,menubar=no,width=450,height=320')
	if (newWind.opener == null) {  // for Nav 2.0x
    newWind.opener = self  // this creates and sets a new property
	}
}





function CloseWindow()   
{
	NewWind.close()
}

-->