// vraci vysku okna
function _window_height() {
  if (window.innerHeight) {
    return window.innerHeight;
  }
	else if (document.documentElement && document.documentElement.clientHeight) {
		return document.documentElement.clientHeight;
	}
	else if (document.body && document.body.clientHeight) {
		return document.body.clientHeight;
	}
	else {
    return null;
  }
}

// vraci sirku okna
function _window_width() {
  if (window.innerWidth) {
    return window.innerWidth;
  }
	else if (document.documentElement && document.documentElement.clientWidth) {
		return document.documentElement.clientWidth;
  }
	else if (document.body && document.body.clientWidth) {
		return document.body.clientWidth;
	}
	else {
    return null;
  }
}

// vytvari http object
function _gethttpobject() {
  var xmlhttp = null;

  if (window.XMLHttpRequest) {
    xmlhttp = new XMLHttpRequest()
  }
  else if (window.ActiveXObject) {
    xmlhttp = new ActiveXObject('Microsoft.XMLHTTP')
  }
  
  return xmlhttp;
}