/*************************************************************************
  This code is from Dynamic Web Coding at www.dyn-web.com
  Copyright 2001-4 by Sharon Paine 
  See Terms of Use at www.dyn-web.com/bus/terms.html
  regarding conditions under which you may use this code.
  This notice must be retained in the code as is!
*************************************************************************/
				
function initScrollLayer() {
  // arguments: id of layer containing scrolling layers (clipped layer), id of layer to scroll, 
  // if horizontal scrolling, id of element containing scrolling content (table?)
  var wndo = new dw_scrollObj('wn', 'lyr1', 't1');
  
  // pass id's of any wndo's that scroll inside tables
  // i.e., if you have 3 (with id's wn1, wn2, wn3): dw_scrollObj.GeckoTableBugFix('wn1', 'wn2', 'wn3');
  dw_scrollObj.GeckoTableBugFix('wn'); 
}

function maxWindowWidth(){
	if (document.layers){
		winW = window.outerWidth;
		winH = window.outerHeight;
	} else {
		winW = document.body.clientWidth;
		winH = document.body.clientHeight;
	}
	alert("width: " + winW + "\nheight: " + winH);
	
	// if window is larger than max, resize down to 800x600
	if( winW > 800 ){
		self.resizeTo(800,600);
		window.moveTo(50,50);
	}

}

function MM_openBrWindow(theURL,winName,features) {
	window.open(theURL,winName,features);
	return false;
}

function check_close(){
	if( window.opener ){
		window.opener.location.href='http://www.wparks.com/';
	} else {
		MM_openBrWindow('http://www.wparks.com/','home','toolbar=yes,scrollbars=yes,resizable=yes,status=1,width=750,height=550,top=20,left=20');
	}
	window.close();
}