	window.onresize = OnResizeDocument;
	
	function OnResizeDocument () {
		setFooter ();
	}
	
	function setFooter () {
		var w=window,d=document,e=d.documentElement,g=d.getElementsByTagName('body')[0],x=w.innerWidth||e.clientWidth||g.clientWidth,y=w.innerHeight||e.clientHeight||g.clientHeight;
		
		if (y > 671) {
			document.getElementById('footerMC').classList.add('footerFixed');
			document.getElementById('footerMC').classList.remove('footerRelative');
		} 
		else if (y < 670) {
			document.getElementById('footerMC').classList.add('footerRelative');
			document.getElementById('footerMC').classList.remove('footerFixed');
		}
		else {
			document.getElementById('footerMC').classList.add('footerFixed');
			document.getElementById('footerMC').classList.remove('footerRelative');
		}
	}
	
	setFooter ();
