var moduleHeight = 0;
var moduleFooterHeight = 53;
var spacerImgPath = '/images/global/space.gif';

function moveFooter(){
	var i;
	if (document.layers) return;
	if (document.getElementsByTagName && !document.all) {
		if (!document.getElementById('footer')) return;
		tagAry = document.getElementsByTagName('div');
		for (i=0;i<tagAry.length;i++){
			if ((tagAry[i].offsetTop + tagAry[i].offsetHeight) > moduleHeight){moduleHeight = (tagAry[i].offsetTop + tagAry[i].offsetHeight);}
		}
//		moduleHeight= (moduleHeight - 101);
//		alert( 'moduleHeight: ' + moduleHeight );
		document.getElementById('spacerDiv').innerHTML = "<div style='height:" + moduleHeight + "px;'><img src='/images/global/space.gif' border='0' alt='' width='1' height='" + moduleHeight + "' /></div>";
	} else if(document.all.tags && document.all.spacerDiv){
		if (!document.all.footer) return;
		len = document.all.tags('div').length;
     		for (i=0;i<len;i++){
			ieHeight = parseInt(document.all.tags('div')[i].offsetHeight);
			ieTop = parseInt(document.all.tags('div')[i].offsetTop);
			if ((parseInt(document.all.tags('div')[i].offsetHeight) + parseInt(document.all.tags('div')[i].offsetTop)) > moduleHeight){moduleHeight = (parseInt(document.all.tags('div')[i].offsetHeight) + parseInt(document.all.tags('div')[i].offsetTop));}
		}
//		alert( 'moduleHeight: ' + moduleHeight );
		document.all.spacerDiv.innerHTML = "<img src='/images/global/space.gif' border='0' alt='' width='1' height=\"" + moduleHeight + "\"' />";  }
}
