//if (screen.width>801) window.resizeTo(800,600);
//if (screen.width>1025) window.resizeTo(1024,768);

function NTP_reloadPage(init) 
{ 
 if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
 document.NTP_pgW=innerWidth; document.NTP_pgH=innerHeight; onresize=NTP_reloadPage; }}
  else if (innerWidth!=document.NTP_pgW || innerHeight!=document.NTP_pgH) location.reload();
}

//-----------------------------------------------------
function NTP_goToURL() 
{
  var i, args=NTP_goToURL.arguments; 
  document.returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

//-----------------------------------------------------
function NTP_callJS(jsStr) {
  return eval(jsStr)
}


//-----------------------------------------------------
function NTP_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features)
}


//-----------------------------------------------------
function NTP_changeimg(imgname,newimg)
{
document.all[imgname].src = "img/"+newimg;
}


//-----------------------------------------------------
function NTP_preloadImages() 
{
var d=document; 
if(d.images)
{ 
	if(!d.NTP_p) d.NTP_p=new Array();
	var i,j=d.NTP_p.length,a=NTP_preloadImages.arguments;
		for(i=0; i<a.length; i++)
			if (a[i].indexOf("#")!=0)
			{
				d.NTP_p[j]=new Image;
				d.NTP_p[j++].src=a[i];
			}
	}
}

//-----------------------------------------------------
function NTP_findObj(n, d) 
{
var p,i,x;
if(!d) d=document; 
if((p=n.indexOf("?"))>0&&parent.frames.length)
{
	d=parent.frames[n.substring(p+1)].document; 
	n=n.substring(0,p);
}
if(!(x=d[n])&&d.all) x=d.all[n]; 
for (i=0;!x&&i<d.forms.length;i++)
	x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) 
	x=NTP_findObj(n,d.layers[i].document);
	return x;
}


//-----------------------------------------------------

function rozbal_menu(co)
{
document.getElementById("podmenu"+co).style.display = 'block';
for (var i = 5; i < 10; i++)
 {
	if(i != co)
	{
		y="id_"+i;
		z="idd_"+i;
		if(document.getElementById("podmenu"+i).style.display == 'block')
		{
			sbal_menu(i);
			document.getElementById(y).style.color='#000000';
			document.getElementById(z).className='panelbg2';
		}
	}
 }

return(1);
}


//-----------------------------------------------------

function sbal_menu(co)
{
document.getElementById("podmenu"+co).style.display='none';
}

//-----------------------------------------------------
function NTP_rozbal_menu(nov_str)
{
 z = nov_str;
 x = document.all[z].style.display;
 y = 'none';
 if (x == 'none')
   {
   y = 'inline';
   }
document.all[z].style.display = y;
}


//-----------------------------------------------------

function NTP_prepocitej(co,kam,maxlngth,separator)
{
	w = co.value;
	if (w.length > maxlngth) {
		w = (co.value = w.substring(0, maxlngth));
	}
    co.form[kam].value = w.length;
}


//-----------------------------------------------------

function SetStatus(text)
{
 self.status=text;
}



//-----------------------------------------------------

function sbal_vsechna_menu(x, p)
{
 for (var i = 5; i < 10; i++)
 {
	if((i != x)&&(i != p))
	{
		//sbal_menu(i);
		y="id_"+i;
		z="idd_"+i;
		if(document.getElementById("podmenu"+i).style.display == 'block')
		{
			document.getElementById("podmenu"+i).style.display='none';
			document.getElementById(y).style.color='#000000';
			document.getElementById(z).className='panelbg2';
		}
	}
 }
}

//-----------------------------------------------------


