<!--
var VBS = false;

/* Browser detect script */

var detect = navigator.userAgent.toLowerCase();
var OS,browser,total,thestring;
var version = 0;

if (checkIt('konqueror'))
{
	browser = "Konqueror";
	OS = "Linux";
}
else if (checkIt('opera')) browser = "Opera"
else if (checkIt('webtv')) browser = "WebTV";
else if (checkIt('icab')) browser = "iCab"
else if (checkIt('msie')) browser = "Internet Explorer"
else if (!checkIt('compatible'))
{
	browser = "Netscape Navigator"
	version = detect.charAt(8);
}
else browser = "Nežinoma naršykle";

if (!version) version = detect.charAt(place + thestring.length);

if (!OS)
{
	if (checkIt('linux')) OS = "Linux";
	else if (checkIt('x11')) OS = "Unix";
	else if (checkIt('mac')) OS = "Mac"
	else if (checkIt('win')) OS = "Windows"
	else OS = "neatpažinta operacinė sistema";
}

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}

if(window.history.forward(1) != null)  window.history.forward(1);

function PrintVersion(PrintContent) { 
	var popupX=640;
	var popupY=480;
	if(navigator.appName == "Microsoft Internet Explorer") {
		screenY = document.body.offsetHeight;
		screenX = window.screen.availWidth;
	}else {
		screenY = window.outerHeight
		screenX = window.outerWidth
	}
	win=window.open('','printwin','scrollbars=1,width='+popupX+',height='+popupY); 
	
	var widthScreen = screen.width;
	var heightScreen = screen.height;
	var positionX = (widthScreen/2) - (popupX/2);
	var positionY = (heightScreen/2) - (popupY/2);
	win.moveTo(positionX, positionY);
	
	with(win){		
		document.write('<html>\n');
		document.write('<head>\n');
		document.write('<title>Rezultatai</title>\n');
		document.write('<style type="text/css">@import url(themes/Troja/style/styleNN.css);</style>\n');
		document.write('</head>\n');
		if(window.opera && window.print){
			document.write('<body onload="window.focus();window.print()">\n');
		}else{
			document.write('<body>\n');
		}
		document.write('<center><table width="'+(popupX/1.1)+'px">');
		document.write(PrintContent); 		
		document.write('</td></tr></table></center></body></html>\n');		
		document.close();			
					
	}
	if(!window.opera && window.print){
		win.focus();
		win.print();
	}
  	setTimeout("win.close()",2000);
} 
-->