// JavaScript Document

function openPopUp(file,info,to){
	h = 388;
	w = 600;
	xpos=0;
	ypos=0;
	if(parseInt(navigator.appVersion)>=4){
		xpos = (screen.width-w)/2;
		ypos = (screen.height-h)/2;
	}
	vars = "width=" + w + ","
		 + "height=" + h + ","
		 + "screenx=" + xpos + "," //NN
		 + "screeny=" + ypos + "," //NN
		 + "left=" + xpos + ","
		 + "top=" + ypos + "";
	popup_window=window.open(file + '?info=' + info + '&to=' + to,'popup_window','toolbar=no,scrollbars=no,' + vars);
	if(popup_window) {
		popup_window.focus();
	}
	else {
		alert("Warning: To use this feature you must enable pop up windows!  Currently this feature is either disabled or not available in your browser settings.");
	}
}


function openMap(file,info,to){
	h = 500;
	w = 600;
	xpos=0;
	ypos=0;
	if(parseInt(navigator.appVersion)>=4){
		xpos = (screen.width-w)/2-40;
		ypos = (screen.height-h)/2;
	}
	//alert("HI");
	vars = "width=" + w + ","
		 + "height=" + h + ","
		 + "screenx=" + xpos + "," //NN
		 + "screeny=" + ypos + "," //NN
		 + "left=" + xpos + ","
		 + "top=" + ypos + "";
	popup_window=window.open(file + '?info=' + info + '&to=' + to,'popup_window','toolbar=no,scrollbars=no,' + vars);
	if(popup_window) {
		popup_window.focus();
	}
	else {
		alert("Warning: To use this feature you must enable pop up windows!  Currently this feature is either disabled or not available in your browser settings.");
	}
}

function popUpImg(file,img,desc,title){
	h = 5;
	w = 5;
	xpos=0;
	ypos=0;
	if(parseInt(navigator.appVersion)>=4){
		xpos = (screen.width-w)/2;
		ypos = (screen.height-h)/2;
	}
	vars = "width=" + w + ","
		 + "height=" + h + ","
		 + "screenx=" + xpos + "," //NN
		 + "screeny=" + ypos + "," //NN
		 + "left=" + xpos + ","
		 + "top=" + ypos + "";
	popup_window=window.open(file + '?img=' + img + '&desc=' + desc + '&title=' + title,'popup_window','toolbar=no,scrollbars=no,' + vars);
	if(popup_window) {
		popup_window.focus();
	}
	else {
		alert("Warning: To use this feature you must enable pop up windows!  Currently this feature is either disabled or not available in your browser settings.");
	}
}

