function PopupPhoto(PID,Vertical) {
	if (document.images) {
		var PhotoURL = "/photogallery/photo.cfm?pid="+PID;
		if (Vertical==1) {
			gw=window.open(PhotoURL,"sw","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=yes,width=400,height=600,screenX=50,screenY=50,top=50,left=50");
		} else {
			gw=window.open(PhotoURL,"sw","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=yes,width=600,height=450,screenX=50,screenY=50,top=50,left=50");
		}
	} else {
		alert( '\nSorry, this Feature requires Netscape Navigator, Version 3.0 or greater\n'+
				'or Microsoft Internet Explorer, Version 4.0+.\n\n' );
	}
}

function PopupTalesPhoto(PID) {
	if (document.images) {
		var PhotoURL = "/talesfromthetrails/photo.cfm?pid="+PID;
		gw=window.open(PhotoURL,"sw","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=yes,width=400,height=450,screenX=50,screenY=50,top=50,left=50");
	} else {
		alert( '\nSorry, this Feature requires Netscape Navigator, Version 3.0 or greater\n'+
				'or Microsoft Internet Explorer, Version 4.0+.\n\n' );
	}
}

function PopupMap(mapname,width,height) {
	var twidth  = width + 25;
	var theight = height + 25;
	if (document.images) {
		var MapURL = "/images/maps/" + mapname;
		gw=window.open(MapURL,"mw","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=yes,width="+twidth+",height="+theight+",screenX=50,screenY=50,top=50,left=50");
	} else {
		alert( '\nSorry, this Feature requires Netscape Navigator, Version 3.0 or greater\n'+
				'or Microsoft Internet Explorer, Version 4.0+.\n\n' );
	}
}

function PreviewPhoto(photoname,width,height) {
	var twidth  = width + 25;
	var theight = height + 25;
	if (document.images) {
		var MapURL = photoname;
		gw=window.open(MapURL,"mw","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=yes,width="+twidth+",height="+theight+",screenX=50,screenY=50,top=50,left=50");
	} else {
		alert( '\nSorry, this Feature requires Netscape Navigator, Version 3.0 or greater\n'+
				'or Microsoft Internet Explorer, Version 4.0+.\n\n' );
	}
}

function PopupDetails(filename) {
	if (document.images) {
		var FileURL = "/help/" + filename;
		gw=window.open(FileURL,"dw","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=400,height=395,screenX=50,screenY=50,top=50,left=50");
	} else {
		alert( '\nSorry, this Feature requires Netscape Navigator, Version 3.0 or greater\n'+
				'or Microsoft Internet Explorer, Version 4.0+.\n\n' );
	}
}

function PopupWeather() {
	if (document.images) {
		var FileURL = "/templates/weather.html";
		ww=window.open(FileURL,"ww","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=175,height=125,screenX=50,screenY=50,top=50,left=50");
	} else {
		alert( '\nSorry, this Feature requires Netscape Navigator, Version 3.0 or greater\n'+
				'or Microsoft Internet Explorer, Version 4.0+.\n\n' );
	}
}

function PopupPassword() {
	if (document.images) {
		gw=window.open( "password.cfm", "pw", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=yes,width=400,height=275,screenX=50,screenY=50,top=50,left=50");
	} else {
		alert( '\nSorry, this Feature requires Netscape Navigator, Version 3.0 or greater\n'+
				'or Microsoft Internet Explorer, Version 4.0+.\n\n' );
	}
}

function PopupTemplate(TemplateURL) {
	if (document.images) {
		gw=window.open(TemplateURL,"dw","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=740,height=600,screenX=50,screenY=50,top=50,left=50");
	} else {
		alert( '\nSorry, this Feature requires Netscape Navigator, Version 3.0 or greater\n'+
				'or Microsoft Internet Explorer, Version 4.0+.\n\n' );
	}
}

function PopupPrintDest(ID) {
	if (document.images) {
		var PrintURL = "/destinations/print.cfm?id="+ID;
		gw=window.open(PrintURL,"sw","toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=600,height=600,screenX=50,screenY=50,top=50,left=50");
	} else {
		alert( '\nSorry, this Feature requires Netscape Navigator, Version 3.0 or greater\n'+
				'or Microsoft Internet Explorer, Version 4.0+.\n\n' );
	}
}

function PopupPrintTrail(ID) {
	if (document.images) {
		var PrintURL = "/trails/print.cfm?id="+ID;
		gw=window.open(PrintURL,"sw","toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=600,height=600,screenX=50,screenY=50,top=50,left=50");
	} else {
		alert( '\nSorry, this Feature requires Netscape Navigator, Version 3.0 or greater\n'+
				'or Microsoft Internet Explorer, Version 4.0+.\n\n' );
	}
}

function PopupPrintAcc(ID) {
	if (document.images) {
		var PrintURL = "/accommodations/print.cfm?id="+ID;
		gw=window.open(PrintURL,"sw","toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=600,height=600,screenX=50,screenY=50,top=50,left=50");
	} else {
		alert( '\nSorry, this Feature requires Netscape Navigator, Version 3.0 or greater\n'+
				'or Microsoft Internet Explorer, Version 4.0+.\n\n' );
	}
}

function PopupPrintAtt(ID) {
	if (document.images) {
		var PrintURL = "/attractions/print.cfm?id="+ID;
		gw=window.open(PrintURL,"sw","toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=600,height=600,screenX=50,screenY=50,top=50,left=50");
	} else {
		alert( '\nSorry, this Feature requires Netscape Navigator, Version 3.0 or greater\n'+
				'or Microsoft Internet Explorer, Version 4.0+.\n\n' );
	}
}

function PopupPrintAdv(ID) {
	if (document.images) {
		var PrintURL = "/adventures/print.cfm?id="+ID;
		gw=window.open(PrintURL,"sw","toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=600,height=600,screenX=50,screenY=50,top=50,left=50");
	} else {
		alert( '\nSorry, this Feature requires Netscape Navigator, Version 3.0 or greater\n'+
				'or Microsoft Internet Explorer, Version 4.0+.\n\n' );
	}
}

