// credits: de.selfhtml.org

function win_width () {
  if(self.innerWidth) return self.innerWidth; // all except Explorer
  else if(document.documentElement && document.documentElement.clientWidth) return document.documentElement.clientWidth; // Explorer 6 Strict Mode
  else if(document.body) return document.body.clientWidth; // other Explorers
};

function win_height () {
  if(self.innerHeight) return self.innerHeight; // all except Explorer
  else if(document.documentElement && document.documentElement.clientHeight) return document.documentElement.clientHeight; // Explorer 6 Strict Mode
  else if(document.body) return document.body.clientHeight; // other Explorers
};

function reload() {
  if(IEdummy) window.location.href = window.location.href;
};

function set_layout() {
	var left = (wWidth - 1480) / 2 + "px";
	document.getElementById("o_striche").style.marginLeft = left;
	document.getElementById("tcbb_anim").style.marginLeft = left;
	document.getElementById("tcbb_logo").style.marginLeft = left;
	document.getElementById("u_striche").style.marginLeft = left;
	document.getElementById("u_striche").style.height = (wHeight - 314) + "px";
	document.getElementById("u_striche").style.width = "1481px";
};

if(window.addEventListener) window.addEventListener("resize",reload,false);
else if(window.attachEvent) window.attachEvent("onresize",reload);
else window.onresize = reload;
var wWidth = win_width();
var wHeight = win_height();
var IEdummy = false;
window.setTimeout(function() {IEdummy=true;}, 1000);