/* 
This code is from Dynamic Web Coding 
at http://www.dyn-web.com/
Copyright 2001-3 by Sharon Paine 
See Terms of Use at http://www.dyn-web.com/bus/terms.html
Permission granted to use this code 
as long as this entire notice is included.
*/

var pgLoaded = false;
var wndo = new Array();	// "window(s)" for scrollable content
function initScrLyr() {
	pgLoaded=true;	
	// creat scrollable content area
	// arg: id of div containing scrollable div(s)
	wndo[0] = new dynObj('wnn');
	// load scrolling content
	// arg's: array number of wndo, id of scroll div
	loadScrLyr(0,'lyr11');	

	// remove layers from table for ns6+/mozilla (overflow/clip bug?)
	if (navigator.userAgent.indexOf("Gecko")>-1) {
	for (var i=0; i<wndo.length; i++) {
			if (wndo[i].el.parentNode.id.indexOf("hold")!=-1) {
				var holderId = wndo[i].el.parentNode.id;
				wndo[i].holder = document.getElementById(holderId);
				var scrWn = wndo[i].holder.removeChild(wndo[i].el);
				document.body.appendChild(wndo[i].el);
				wndo[i].css.zIndex = 1000;
				var y = wndo[i].holder.offsetTop;
				var x = wndo[i].holder.offsetLeft;
				wndo[i].shiftTo(x,y);
			}
		}
	}
}
// ns6+/mozilla need to reposition layers onresize
function rePosGecko() {
  for (var i=0; i<wndo.length; i++) {
	var y = wndo[i].holder.offsetTop;
		var x = wndo[i].holder.offsetLeft;
		wndo[i].shiftTo(x,y);
  }
}

window.onload = function() {
  initScrLyr();
}
if (navigator.userAgent.indexOf("Gecko")>-1) window.onresize = rePosGecko;