/**
 *
 */
function positionFooter(){
	var footer = document.getElementById('footer_container');
	if(!footer) return;

	var height = 0;
	var mainDivs = ['content','left','right'];
	for(var i=0; i < mainDivs.length; i++){
		var cDiv = document.getElementById(mainDivs[i]);
		if(cDiv){
			if(cDiv.offsetHeight > height) height = cDiv.offsetHeight;
		}
	}
	var cDiv = document.getElementById('header');
	if(cDiv) height += cDiv.offsetHeight;
	var cDiv = document.getElementById('wpadminbar');
	if(cDiv) height += cDiv.offsetHeight;

	// IE or not IE?
	var width = document.getElementsByTagName('body')[0].clientWidth;
	if (navigator.userAgent && navigator.userAgent.indexOf("MSIE") >= 0) {
		footer.style.setAttribute('top', height + 'px');
		footer.style.setAttribute('width', width + 'px');
		footer.style.setAttribute('display', 'block');
	} else {
		footer.style.setProperty('top', height + 'px', null);
		footer.style.setProperty('width', width + 'px', null);
		footer.style.setProperty('display', 'block', null);
	}
}

