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

var footerInnerHTML = "<!--Begin Footer--><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"754\"><tr height=\"1\" colspan=3><td bgcolor=\"#E0DDE4\" colspan=\"3\"><img src=\"/images/global/space.gif\" width=\"1\" height=\"1\" border=\"0\"></td></tr><tr height=\"7\" colspan=3><td colspan=\"3\"><img src=\"/images/global/space.gif\" width=\"1\" height=\"7\" border=\"0\"></td></tr><tr valign=\"top\"><td><img src=\"/images/global/space.gif\" width=\"6\" height=\"2\" border=\"0\"></td><td></td><td align=\"left\" nowrap class=prodDesc><img src=\"/images/global/space.gif\" width=\"6\" height=\"2\" border=\"0\"><font color=BFBEBF>&copy; 2007 Clinique Laboratories, LLC. All worldwide rights reserved.</font></td><td align=\"right\"><img src=\"/images/global/space.gif\" width=\"6\" height=\"1\" border=\"0\"></td></tr></table><!--End Footer-->";


function moveFooter(){
	var i;
	var footerLayer;
	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 );
		moduleHeight = moduleHeight - 96; // compensate for CMS footer height
		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 );
		moduleHeight = moduleHeight - 96; // compensate for CMS footer height
		document.all.spacerDiv.innerHTML = "<img src='/images/global/space.gif' border='0' alt='' width='1' height=\"" + moduleHeight + "\"' />";
	}
	footerLayer = new elcLayer( 'footer' );
	footerLayer.hide();
}
