<!--
		function getWindowHeight() {
			var windowHeight = 0;
			if (typeof(window.innerHeight) == 'number') {
				windowHeight = window.innerHeight;
			}
			else {
				if (document.documentElement && document.documentElement.clientHeight) {
					windowHeight = document.documentElement.clientHeight;
				}
				else {
					if (document.body && document.body.clientHeight) {
						windowHeight = document.body.clientHeight;
					}
				}
			}
			return windowHeight;
		}
		function setFooter() {
			if (document.getElementById) {
				var windowHeight = getWindowHeight();
				if (windowHeight > 0) {
					var headerElement = document.getElementById('header');
					var footerElement = document.getElementById('footer');
					var headerHeight  = headerElement.offsetHeight;
					var footerHeight  = footerElement.offsetHeight;
					var contentHeight  = document.getElementById('container').offsetHeight
				
					// not search page
					if(document.getElementById("searchcontrol") == null){
					// if content area is longer than window height (if scrollbars)
					if (windowHeight - (contentHeight + footerHeight) >= 0 ) {
					
					if(document.getElementById('fpRight')){
				
					    document.getElementById('fpRight').style.height = (windowHeight - (headerHeight + footerHeight+10)) + 'px';
					}
					else if(document.getElementById('mainContent')){
					    document.getElementById('mainContent').style.height = (windowHeight - (headerHeight + footerHeight+10)) + 'px';
					}
					
					
						footerElement.style.position = 'relative';
						//footerElement.style.top = (windowHeight - (contentHeight + footerHeight)) + 'px';
						
						
					}
					else {
						footerElement.style.top = "";
						footerElement.style.position = 'static';
						
					if(document.getElementById('fpRight')){
							
					    document.getElementById('fpRight').style.height = (document.getElementById('mainContent').offsetHeight) + 'px';
					}
					}
					}
				}
			}
		}
		window.onload = function() {
			setFooter();
		}
		window.onresize = function() {
			setFooter();
		}
		//-->
		
		