function ZoomPict(PictId) {
var CurrentWidth, HcenterPoint, PopUpWidth, AdjustedPopUpWidth, PointX, CurrentHeight, VcenterPoint, PopUpHeight, AdjustedPopUpHeight, PointY;
CurrentWidth = screen.availWidth;
HcenterPoint = CurrentWidth/2;
PopUpWidth = 630;
AdjustedPopUpWidth = PopUpWidth/2;
PointX = HcenterPoint-AdjustedPopUpWidth;

CurrentHeight = screen.availHeight;
VcenterPoint = CurrentHeight/2;
PopUpHeight = 600;
AdjustedPopUpHeight = PopUpHeight/2;
PointY = VcenterPoint-AdjustedPopUpHeight;

	popup = window.open("zoompict.cfm?PictId="+PictId+"#"+PictId, "", "height=600,width=630,scrollbars=yes,resizable=yes,location=no,top="+PointY+",left="+PointX);

}
function ClosePopUpWindow(){
if (popup) {
popup.close()
}
}

//*************************************
function ZoomFloorPlan(FloorPlanId) {
var CurrentWidth, HcenterPoint, PopUpWidth, AdjustedPopUpWidth, PointX, CurrentHeight, VcenterPoint, PopUpHeight, AdjustedPopUpHeight, PointY;
CurrentWidth = screen.availWidth;
HcenterPoint = CurrentWidth/2;
PopUpWidth = 630;
AdjustedPopUpWidth = PopUpWidth/2;
PointX = HcenterPoint-AdjustedPopUpWidth;

CurrentHeight = screen.availHeight;
VcenterPoint = CurrentHeight/2;
PopUpHeight = 600;
AdjustedPopUpHeight = PopUpHeight/2;
PointY = VcenterPoint-AdjustedPopUpHeight;

	popup = window.open("zoomfloorplan.cfm?FloorPlanId="+FloorPlanId+"#"+FloorPlanId, "", "height=600,width=630,scrollbars=yes,resizable=yes,location=no,toolbar=yes,top="+PointY+",left="+PointX);

}
function ClosePopUpWindow(){
if (popup) {
popup.close()
}
}
//*************************************
function LoadVideo(TheVideo) {
var CurrentWidth, HcenterPoint, PopUpWidth, AdjustedPopUpWidth, PointX, CurrentHeight, VcenterPoint, PopUpHeight, AdjustedPopUpHeight, PointY;
CurrentWidth = screen.availWidth;
HcenterPoint = CurrentWidth/2;
PopUpWidth = 400;
AdjustedPopUpWidth = PopUpWidth/2;
PointX = HcenterPoint-AdjustedPopUpWidth;

CurrentHeight = screen.availHeight;
VcenterPoint = CurrentHeight/2;
PopUpHeight = 400;
AdjustedPopUpHeight = PopUpHeight/2;
PointY = VcenterPoint-AdjustedPopUpHeight;

	popup = window.open("video_window.cfm?video="+TheVideo, "", "height=400,width=400,scrollbars=yes,resizable=yes,location=no,toolbar=no,top="+PointY+",left="+PointX);

}
function ClosePopUpWindow(){
if (popup) {
popup.close()
}
}
//*************************************
function getGalleryPhotos(form)
{
document.gallery_index.action="?Trg=24";
document.gallery_index.submit(form);
}
//**************************************
function getLargePhoto(form,TheFormName)
{
document[TheFormName].action="?Trg=24&SubFn=1";
document[TheFormName].submit(form);
}
