// Liquid Effect
// finds the width/height of the browser and reloads the page when resized to create a liquid layout
// 19990328

// Copyright (C) 1999 Dan Steinman
// Distributed under the terms of the GNU Library General Public License
// Available at http://www.dansteinman.com/dynduo/

function findWH() {
	winW = (is.ns)? parent.window.innerWidth : parent.document.body.offsetWidth
	winH = (is.ns)? parent.window.innerHeight : parent.document.body.offsetHeight-4
	if (is.ns5){winW = parent.window.innerWidth-4;
				winH = parent.window.innerHeight-4; }
// if not using frames, substract netscape Width to 4 like:
//	winW = (is.ns)? parent.window.innerWidth : parent.document.body.offsetWidth
// if not using frames, substract netscape height to 4 like:
//	winH = (is.ns)? window.innerHeight : document.body.offsetHeight-4
//**.. winW and Height for parent window
	winPW = (is.ns)? parent.parent.window.innerWidth+4 : parent.parent.document.body.offsetWidth
	winPH = (is.ns)? parent.parent.window.innerHeight : parent.parent.document.body.offsetHeight-4
}

function findFrameWH() {
	frameW = (is.ns)? window.innerWidth : document.body.offsetWidth
	frameH = (is.ns)? window.innerHeight : document.body.offsetHeight-4
}

function makeLiquid() {
	if ((is.ns && (winW!=window.innerWidth || winH!=window.innerHeight)) || is.ie)	
	history.go(0)
	if (is.mac) history.go(0);
}

