// JavaScript Document
// JavaScript Document

onload=function () {
	
	var h;
	var t;
	var CM;
	var d;
	var final;
	var bott;
	
	// determine where to start footer
	h = getH('pract-content');
	t = getT('pract-content');
	CM = getS('middle-content');
	CM.height = t + h + 'px';
	
	// determine content hight 
	t = getT('middle-content');
	h = getH('middle-content');
	CM = getS('middle-content');
	CM.zIndex = 3;
	
	// determin repeating background height
	CM = getS('middle-body');
	CM.height = h + 'px';
	CM.zIndex = 1;
	CM = getS('footer');
	CM.top = h + t + 'px';
	CM.display = 'block';
	
	// set zindex for dropdowns
	CM = getS('nav');
	CM.zIndex = 4;
	
	// determine where to start bottom of body
	h = getH('footer');
	t = getT('footer');
	CM = getS('middle-bott');
	bott = t - 331;
	CM.top = bott + 'px';	
	CM.display = 'block';
	CM.zIndex = 2;
	
	
	// determine height of container
	final = h + t;
	CM = getS('container');
	CM.height = final + 'px';
	
}