// JavaScript Document
// JavaScript Document


function initPos(id1, id2) {
	var t;
	var h;
	var CM;
	t = getT(id1);
	h = getH(id1);
	CM = getS(id2);
	CM.top = t + 'px';

}
	
onload=function () {
	
	initPos('lsubject', 'tsubject');
	initPos('lname', 'tname');
	initPos('lemail', 'temail');
	initPos('lphone', 'tphone');
	initPos('lmessage', 'tmessage');

	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;
	
	// determin where to place leafy guy in relation to bottom of body
	CM = getS('left-leaf-s');
	CM.top = bott - 45 + 'px';	
	CM.display = 'block';
	CM.zIndex = 3;
	
	// determine height of container
	final = h + t;
	CM = getS('container');
	CM.height = final + 'px';
	
	CM = getS('tsubject');
	CM.display ='block';
	CM = getS('submit');
	CM.display ='block';
	CM = getS('reset');
	CM.display = 'block';
	
	
}