// JavaScript Document

onload=function () {
	
	var h;
	var t;
	var CM;
	var final;
	
	// determine content hight 
	t = getT('content');
	h = getH('content');
	CM = getS('middle');
	CM.height = h + 'px';
	
	t = getT('middle');
	h = getH('middle');
	CM = getS('middle');

	// determine where to place footer
	CM = getS('footer');
	CM.top = h + t + 'px';
	CM.display = 'block';
	
	// determine where to start bottom of body
	h = getH('footer');
	t = getT('footer');
	
	// determine height of container
	final = h + t;
	CM = getS('container');
	CM.height = final + 'px';
	
}

function resizeS() { // for spotlight image expand
	
	var h;
	var t;
	var CM;
	var final;
	
	// determine content hight 
	t = getT('content');
	h = getH('content');
	CM = getS('middle');
	CM.height = h + 410 + 'px';
	
	t = getT('middle');
	h = getH('middle');

	// determine where to place footer
	CM = getS('footer');
	CM.top = h + t  + 'px';
	CM.display = 'block';
	
	// determine where to start bottom of body
	h = getH('footer');
	t = getT('footer');
	
	// determine height of container
	final = h + t;
	CM = getS('container');
	CM.height = final + 'px';
	
}

function resizeH() {  // for spotlight image hide
	
	var h;
	var t;
	var CM;
	var final;
	
	// determine content hight 
	t = getT('content');
	h = getH('content');
	CM = getS('middle');
	CM.height = h - 410 + 'px';
	
	t = getT('middle');
	h = getH('middle');

	// determine where to place footer
	CM = getS('footer');
	CM.top = h + t  + 'px';
	CM.display = 'block';
	
	// determine where to start bottom of body
	h = getH('footer');
	t = getT('footer');
	
	// determine height of container
	final = h + t;
	CM = getS('container');
	CM.height = final + 'px';
	
}


