/*
This code is from Dynamic Web Coding 
www.dyn-web.com 
Copyright 2002 by Sharon Paine 
Permission granted to use this code 
as long as this entire notice is included.
*/

/* 
 * The gliding layer code is a modification of:
 * chaser.js
 * by Aaron Boodman v1.0 000919
 * Copyright (c) 2000 Aaron Boodman. All Rights Reserved.
 * Created for GreatEqualizer.com (http://www.greatequalizer.com/) and
 * documented at DHTML Lab (http://www.webreference.com/dhtml/)
 * License to use is granted if and only if this entire
 * copyright notice is included.
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
*/


var origWidth, origHeight;
if (document.layers) {
  origWidth = window.innerWidth;
  origHeight = window.innerHeight;
}

function to_do_onresize() {
	if (document.layers) {
	 if (window.innerWidth != origWidth || window.innerHeight != origHeight) 
	    window.location.reload();
	} else setTimeout("winHt=getWinHeight()",200);
}
window.onresize = to_do_onresize;


var statLyr, winHt;
function initStatLyr() {
	winHt = getWinHeight();
	
	// could calculate position relative to right or bottom here
	// (use getWinWidth function)
	// would also need to change onresize for non-ns4 to
	// recalculate and re-position
	
	// args: id, left,top,width,height,duration of glide to location onscroll
	
	statLyr = new statObj("glideDiv",getWinWidth()-155,380,120,15,1000);
	if (!statLyr) return;
	statLyr.setBgClr("");
	statLyr.show();
	
	statLyr.checkStatLyr(); // start monitoring scrolling
}

//window.onload = initStatLyr;

	