function load() {
	var h = '';
	if (window.innerHeight) { // firefox
		if (window.innerHeight > document.body.clientHeight) { h = window.innerHeight;	}
		else { h = document.body.clientHeight; }
	}
	else { // ie
		if (document.documentElement.clientHeight) {
			if (document.documentElement.clientHeight > document.body.clientHeight) {	h = document.documentElement.clientHeight; }
			else { h = document.body.clientHeight; }
		}
		else { h = document.body.clientHeight; }
	}
	var pattern = document.getElementById('pattern');
	pattern.style.height = '';
	pattern.style.height = h.toString() +'px';
	
	var w = '';
	if (window.innerWidth) {	w = window.innerWidth;	}
	else { w = document.body.clientWidth; }
	var imageW = 740;
	var contentW = 720;
	var offset = 40;
	var position = (w/2) - (imageW/2) + (contentW/2) - offset;
	document.body.style.backgroundPosition = position.toString() + "px top";
	
	
	if (document.getElementById('two_col_left')) {
		twoCol();
	}
	
}



function twoCol() {
  if (document.getElementById('two_col_left')) {
		var content = document.getElementById('content');
		var l = document.getElementById('two_col_left');
		var r = document.getElementById('two_col_right');
		var w = content.clientWidth;
		var offset = 20;  // padding on "content"
		if (document.getElementById('text').clientWidth == 0) { offset = 34; }  // IE 6.0
		w = (w/2 ) - offset ;
 		l.style.width = w + "px";
 		r.style.width = w + "px";
	}
}

