browserName = navigator.appName; 
browserVer = parseInt(navigator.appVersion); 
if (browserName == "Netscape" && browserVer >= 3) version = "n3";  
else if (browserName == "Sylaba" && browserVer >= 3) version = "n3";  
else if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) version = "n3"; 
else version = "n2";

if(version=="n3")
{
	g01 = new Image(); 
	g01.src = "img/020.gif"; 
	g01_on = new Image(); 
	g01_on.src = "foton/00.gif"; 

}

function img_on(what) {
document.images[what].src = "foton/00.gif";
}

function img_off(what) {
	document.images[what].src = "img/020.gif";
}





function img_on1(imgName)
{ 
	if (version=="n3")
	{ 
		imgOn = eval(imgName + "_on.src"); 
		document [imgName].src = imgOn;
	}
} 

function img_off1(imgName)
{ 
	if (version=="n3")
	{ 
		imgOut = eval(imgName + ".src"); 
		document [imgName].src = imgOut; 
	}
} 

function news() 
{
	imag = window.open ('news.html','okazja','menubar=no,status=no,navigation=no,resizable,scrollbars=yes,top=100,left=100,width=680,height=340');
	imag.window.focus();
}

function oknooff(nazwa) 
{  
	window.close(nazwa);
}

function oknofit()
{
var NS = (navigator.appName=='Netscape')?true:false;
var IE = (navigator.appName=='Microsoft Internet Explorer')?true:false;
iWidth = (NS)?window.innerWidth:document.body.clientWidth;
iHeight = (NS)?window.innerHeight:document.body.clientHeight;
iWidth = document.images[0].width - iWidth;iHeight = document.images[0].height - iHeight;
if (IE)
	{
	window.resizeBy(iWidth,iHeight);
	}
else
	{
	window.resizeBy(iWidth +16,iHeight +50);
	}
self.focus()
}

