// JavaScript Document

//alert("hi")
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 setContainer() {
			if (document.getElementById) {
				var windowHeight = getWindowHeight();
				if (windowHeight > 0) {
									var content_element = document.getElementById('content');
									
									var ad_element = document.getElementById('ad');
									var menu_element = document.getElementById('janina');
									
									var content_height  = content_element.offsetHeight;
									var ad_height  = ad_element.offsetHeight;
									


					
					
if (  content_height< ad_height ) {
						
						content_element.style.height = ad_height+'px';
										
					}
if (  content_height> ad_height ) {
						
						ad_element.style.height = content_height+'px';
										
					}
					


						
						

						
					

					// else {
						//containerElement.style.position = 'static';
					//}
				}
			}
		}
		window.onload = function() {
			setContainer();
		}
		window.onresize = function() {
			setContainer();
		}
