// JavaScript Document

function poc(n,l)
{
	if (!n) n = 6;
	if (!l) l = 5;
	
	document.getElementById("l" + l).style.display = 'none';
	document.getElementById("n" + n).className = 'active';

	velikina();
	loadkipi();
}

function velikina()
{
//	h = getWindowHeight() - 230;
	h = getvisina() - 230;
	document.getElementById("t_box").style.display = 'block';
	document.getElementById("t_box").style.height = h + 'px';	
}

function getWindowHeight() {
 //if innerHeight is unknown [Internet Explorer] use offsetHeight
  if (window.innerHeight) {
    return window.innerHeight;
  } else if (document.body && document.body.offsetHeight) {
 // important: for IE set body height = 100%
 document.getElementsByTagName("body")[0].style.setAttribute("height", "100%", "false");
    return document.body.offsetHeight;
  } else {
    return 0;
  }
}

function getvisina() {
  var v = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    v = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    v = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    v = document.body.clientHeight;
  }
  return v;
}

function loadkipi() 
{
	document.getElementById("main_box").style.display = 'block';
}
	


