// JavaScript Document
// JavaScript Document

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

	// determine where to place footer
	CM = getS('footer-back')
	CM.top = h + t + 'px';
	CM.display = 'block';
	t = getT('footer-back');
	
	CM = getS('footer');
	CM.top = t + 34 + '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';
	
	
}

// preload globe and fade in on page load
$(document).ready(function(){
    $(this).find('.globe').preload({
      onFinish: function(){
        $('.globe').fadeIn(1000); //shows image
      }
    });
});

