	function openWindow(url, name) {
  var l = openWindow.arguments.length;
  var w = "";
  var h = "";
  var features = "";

  for (i=2; i<l; i++) {
    var param = openWindow.arguments[i];
    if ( (parseInt(param) == 0) ||
      (isNaN(parseInt(param))) ) {
      features += param + ',';
    } else {
      (w == "") ? w = "width=" + param + "," :
       h = "height=" + param;
    }
  }

  features += w + h;
  var code = "popupWin = window.open(url, name";
  if (l > 2) code += ", '" + features;
  code += "')";
  eval(code);
  }


var fileName = location.pathname.substring(location.pathname.lastIndexOf('/')+1)

function popprint() {openWindow('../print/' + fileName ,'printpop', 600, 430, 'resizable', 'toolbar', 'status', 'scrollbars');}

function popquincy() {openWindow('../print/jones_q.html','printpop', 600, 430, 'resizable', 'toolbar', 'status', 'scrollbars');}

function emailfriend() {openWindow('../php/mailthispage.php','email', 419, 370);}


// drop down menu
function gotosite(site) {            
        if (site != "") {                    
                self.location=site; 
        }
}

// Sizer Code Below



// Changes the font size of the element and stores the size in a cookie
function changeFontSize(strID, strSize)
{
	// get the element
	document.getElementById(strID).style.fontSize = strSize;
	// set the cookie
	SetCookie("fontSize",strSize,"December,31,2012");
}

// Function to find any cookied font size on the clients machine and set the font to their preference as specified in the cookie
function getFontSize(strID) {
	// check if the object whose id is given exists
	if(document.getElementById(strID)) {
				
		// create regular expression to match pattern 'fontSize=.......' till a semicolon is encountered or the string ends
		var regEx = new RegExp("fontSize=[^;]+");
				
		// if cookie exists
		if(regEx.test(document.cookie)){
			
			// if match found, then extract the part of the string matching the regular expression pattern
			var cookieEntry = document.cookie.toString().match(regEx);
			
			if(cookieEntry != '') {
			
				// from the match, extract the font size
				var fontSize = cookieEntry.toString().substring(9, cookieEntry.toString().length);
				
				// call the function to change the font size accordingly
				changeFontSize(strID, fontSize.toString());
			}
		}		
	}	
}

function SetCookie(name,value,expires)
{
	var exp = new Date(expires);
	document.cookie = name + "=" + escape(value) + ";expires=" + exp.toGMTString(); + ";path=";
}

/// sizes

function size11() {changeFontSize('text', '11px');}
function size12() {changeFontSize('text', '12px');}
function size14() {changeFontSize('text', '14px');}
function size16() {changeFontSize('text', '16px');}
function size18() {changeFontSize('text', '18px');}