var isNS = (navigator.appName == "Netscape") ? 1 : 0;
var EnableRightClick = 0;
if(isNS) 
document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);
function mischandler(){
  if(EnableRightClick==1){ return true; }
  else {return false; }
}
function mousehandler(e){
  if(EnableRightClick==1){ return true; }
  var myevent = (isNS) ? e : event;
  var eventbutton = (isNS) ? myevent.which : myevent.button;
  if((eventbutton==2)||(eventbutton==3)) return false;
}
function keyhandler(e) {
  var myevent = (isNS) ? e : window.event;
  if (myevent.keyCode==96)
    EnableRightClick = 1;
  return;
}



function findLiveWidth(){
	if(window.innerWidth != null)
		return window.innerWidth;
	if (document.body.clientWidth != null)
		return document.body.clientWidth;
	return (null);
}

function findLiveHeight(){
	if(window.innerHeight != null)
		return window.innerHeight;
	if (document.body.clientHeight != null)
		return document.body.clientHeight;
	return (null);
}


function resizer()
	{
	if (findLiveWidth() > 1170)
	 	{
		document.getElementById('extrakrul4').style.visibility = "visible";
		}
		else
		{
		document.getElementById('extrakrul4').style.visibility = "hidden";
		}


	if (findLiveWidth() > 1070)
	 	{
		document.getElementById('extrakrul3').style.visibility = "visible";
		}
		else
		{
		document.getElementById('extrakrul3').style.visibility = "hidden";
		}


	if (findLiveWidth() > 970)
	 	{
		document.getElementById('extrakrul2').style.visibility = "visible";
		}
		else
		{
		document.getElementById('extrakrul2').style.visibility = "hidden";
		}


	if (findLiveWidth() > 870)
	 	{
		document.getElementById('extrakrul').style.visibility = "visible";
		document.getElementById('zuil').style.visibility = "visible";
		document.getElementById('body').style.paddingLeft = "18.5%";
		}
		else
		{
		document.getElementById('extrakrul').style.visibility = "hidden";
		document.getElementById('zuil').style.visibility = "hidden";
		document.getElementById('body').style.paddingLeft = "16.6%";
		}

	if (findLiveWidth() > 750)
	 	{
		document.getElementById('body').style.fontSize = "15px";
		document.getElementById('body').style.paddingLeft = "18.5%";
		}
		else
		{
		document.getElementById('body').style.fontSize = "13px";
		document.getElementById('body').style.paddingLeft = "16.6%";
		}

}


if (parent.frames.length > 0) {
	parent.location.href = location.href
}

window.onresize = resizer;
window.onmove = resizer;


function WindowOpenv(pagina) {
	venstertjev = window.open(pagina, 'vensterv', 'scrollbars=no,resizable=no,width=600,height=800,top');
	venstertjev.focus();}

function WindowOpenh(pagina) {
	venstertjeh = window.open(pagina, 'vensterh', 'scrollbars=no,resizable=no,width=800,height=600,top');
	venstertjeh.focus(); }

function WindowOpenregion(pagina) {
	var h = (findLiveHeight()*0.9);
	var win = open(pagina, 'Wgreek2','width=772 ,height=' + h + ',scrollbars=1,menubar=1,location=1,status=1,toolbar=1,resizable=1,top');
	win.focus();}

function WindowOpensug() { 
	window.open('suggestion.htm', 'Wsug', 'scrollbars=0,resizable=0,width=460,height=440,top');}