function infoBox(locfile) {
  		infowindow = window.open(locfile, 'infoWin',
  		'resizable=1,status=0,menubar=0,toolbar=0,scrollbars=0,location=0,directories=0,width=700,height=480,top=100,left=380,dependent=1');
  		infowindow.focus();
  		}
  		
function eventDetail(locfile) {
  		detailwindow = window.open(locfile, 'detailWin',
  		'resizable=1,status=0,menubar=0,toolbar=0,scrollbars=0,location=0,directories=0,width=500,height=750,top=50,left=380,dependent=1');
  		detailwindow.focus();
  		}
  		
function bigMap(locfile) {
  		mapwindow = window.open(locfile, 'mapWin',
  		'resizable=1,status=0,menubar=0,toolbar=0,scrollbars=0,location=0,directories=0,width=900,height=670,top=100,left=280,dependent=1');
  		mapwindow.focus();
  		}
  		
function tributeMap(locfile) {
  		tributewindow = window.open(locfile, 'tributeWin',
  		'resizable=0,status=0,menubar=0,toolbar=0,scrollbars=0,location=0,directories=0,width=1000,height=420,top=100,left=180,dependent=1');
  		tributewindow.focus();
  		}
  		
function salmonMap(locfile) {
  		salmonwindow = window.open(locfile, 'salmonWin',
  		'resizable=1,status=0,menubar=0,toolbar=0,scrollbars=1,location=0,directories=0,width=1000,height=773,top=80,left=80,dependent=1');
  		salmonwindow.focus();
  		}
  		
function flyerFullsize(locfile) {
  		flyerwindow = window.open(locfile, 'flyerWin',
  		'resizable=1,status=0,menubar=0,toolbar=0,scrollbars=1,location=0,directories=0,width=800,height=1035,top=80,left=80,dependent=1');
  		flyerwindow.focus();
  		}
  		
function bioWindow(locfile) {
  		biowindow = window.open(locfile, 'bioWin',
  		'resizable=1,status=0,menubar=0,toolbar=0,scrollbars=0,location=0,directories=0,width=500,height=490,top=100,left=280,dependent=1');
  		biowindow.focus();
  		}	

function contactWindow(locfile) {
  		cntctwindow = window.open(locfile, 'contctWin',
  		'resizable=1,status=0,menubar=0,toolbar=0,scrollbars=0,location=0,directories=0,width=730,height=704,top=10,left=280,dependent=1');
  		cntctwindow.focus();
  		}
  		
function graphWindow(locfile) {
  		grphwindow = window.open(locfile, 'grphWin',
  		'resizable=1,status=0,menubar=0,toolbar=0,scrollbars=0,location=0,directories=0,width=800,height=600,top=10,left=280,dependent=1');
  		grphwindow.focus();
  		}

function bookOrder(locfile) {
  		bborderwindow = window.open(locfile, 'bbWin',
  		'resizable=1,status=0,menubar=0,toolbar=0,scrollbars=0,location=0,directories=0,width=872,height=750,top=10,left=280,dependent=1');
  		bborderwindow.focus();
  		window.self.close();
  		}
  		
function openForm(locfile) {
  		formwindow = window.open(locfile, 'formWin',
  		'resizable=1,status=0,menubar=0,toolbar=0,scrollbars=0,location=0,directories=0,width=872,height=750,top=10,left=280,dependent=1');
  		formwindow.focus();
  		}	
  		
function sitemapWindow() {
  		sitemap = window.open('sitemap.html', 'sitemapWin',
  		'resizable=1,status=0,menubar=0,toolbar=0,scrollbars=1,location=0,directories=0,width=500,height=800,top=10,left=10,dependent=1');
  		sitemap.focus();
  		}

function go2page(pageURL) {
		opener.document.location = pageURL;
		window.self.blur();
		}
  		
// Enable magically apprearing paragraphs describing each proram

function HideDIV(d) { document.getElementById(d).style.display = "none"; }
function DisplayDIV(d) { document.getElementById(d).style.display = "block"; }

// Enable magically appearing text describing each water quality indicator

function HideText(d) { document.getElementById(d).style.display = "none"; }
function DisplayText(d) { document.getElementById(d).style.display = "block"; }


//enables jump-to menu

function jumpBox(list) { location.href = list.options[list.selectedIndex].value }

//BROWSWER TEXT RESIZE DETECTOR

/** 
 *  @fileoverview TextResizeDetector
 * 
 *  Detects changes to font sizes when user changes browser settings
 *  <br>Fires a custom event with the following data:<br><br>
 * 	iBase  : base font size  	
 *	iDelta : difference in pixels from previous setting<br>
 *  	iSize  : size in pixel of text<br>
 *  
 *  * @author Lawrence Carvalho carvalho@uk.yahoo-inc.com
 * @version 1.0
 */

/**
 * @constructor
 */
TextResizeDetector = function() { 
    var el  = null;
	var iIntervalDelay  = 200;
	var iInterval = null;
	var iCurrSize = -1;
	var iBase = -1;
 	var aListeners = [];
 	var createControlElement = function() {
	 	el = document.createElement('span');
		el.id='textResizeControl';
		el.innerHTML='&nbsp;';
		el.style.position="absolute";
		el.style.left="-9999px";
		var elC = document.getElementById(TextResizeDetector.TARGET_ELEMENT_ID);
		// insert before firstChild
		if (elC)
			elC.insertBefore(el,elC.firstChild);
		iBase = iCurrSize = TextResizeDetector.getSize();
 	};

 	function _stopDetector() {
		window.clearInterval(iInterval);
		iInterval=null;
	};
	function _startDetector() {
		if (!iInterval) {
			iInterval = window.setInterval('TextResizeDetector.detect()',iIntervalDelay);
		}
	};
 	
 	 function _detect() {
 		var iNewSize = TextResizeDetector.getSize();
		
 		if(iNewSize!== iCurrSize) {
			for (var 	i=0;i <aListeners.length;i++) {
				aListnr = aListeners[i];
				var oArgs = {  iBase: iBase,iDelta:((iCurrSize!=-1) ? iNewSize - iCurrSize + 'px' : "0px"),iSize:iCurrSize = iNewSize};
				if (!aListnr.obj) {
					aListnr.fn('textSizeChanged',[oArgs]);
				}
				else  {
					aListnr.fn.apply(aListnr.obj,['textSizeChanged',[oArgs]]);
				}
			}

 		}
 		return iCurrSize;
 	};
	var onAvailable = function() {
		
		if (!TextResizeDetector.onAvailableCount_i ) {
			TextResizeDetector.onAvailableCount_i =0;
		}

		if (document.getElementById(TextResizeDetector.TARGET_ELEMENT_ID)) {
			TextResizeDetector.init();
			if (TextResizeDetector.USER_INIT_FUNC){
				TextResizeDetector.USER_INIT_FUNC();
			}
			TextResizeDetector.onAvailableCount_i = null;
		}
		else {
			if (TextResizeDetector.onAvailableCount_i<600) {
	  	 	    TextResizeDetector.onAvailableCount_i++;
				setTimeout(onAvailable,200)
			}
		}
	};
	setTimeout(onAvailable,500);

 	return {
		 	/*
		 	 * Initializes the detector
		 	 * 
		 	 * @param {String} sId The id of the element in which to create the control element
		 	 */
		 	init: function() {
		 		
		 		createControlElement();		
				_startDetector();
 			},
			/**
			 * Adds listeners to the ontextsizechange event. 
			 * Returns the base font size
			 * 
			 */
 			addEventListener:function(fn,obj,bScope) {
				aListeners[aListeners.length] = {
					fn: fn,
					obj: obj
				}
				return iBase;
			},
			/**
			 * performs the detection and fires textSizeChanged event
			 * @return the current font size
			 * @type {integer}
			 */
 			detect:function() {
 				return _detect();
 			},
 			/**
 			 * Returns the height of the control element
 			 * 
			 * @return the current height of control element
			 * @type {integer}
 			 */
 			getSize:function() {
	 				var iSize;
			 		return el.offsetHeight;
		 		
		 		
 			},
 			/**
 			 * Stops the detector
 			 */
 			stopDetector:function() {
				return _stopDetector();
			},
			/*
			 * Starts the detector
			 */
 			startDetector:function() {
				return _startDetector();
			}
 	}
 }();

TextResizeDetector.TARGET_ELEMENT_ID = 'doc';
TextResizeDetector.USER_INIT_FUNC = null;



  		


