// JavaScript Document
<!--

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

function showphoto(winurl,winname)
{
	//This launches a new window and then
	//focuses it if window.focus() is supported.
  	var winl = 0;//screen.width / 2;
  	var wint = 0;//screen.height / 2;
	newwin = window.open(winurl,winname,'scrollbars=no,resizable=no,menubar=no,status=no,toolbar=no,location=no,toolbar=no,top=' + wint + ',left=' + winl + ',width=' + 1100 + ',height=' + 600);
	if(parseInt(navigator.appVersion) >= 4)
	{
		//delay a bit here because IE4 encounters errors
		//when trying to focus a recently opened window
 		setTimeout('newwin.focus();',250);
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		index_10_over = newImage("images/index_10-over.jpg");
		index_11_over = newImage("images/index_11-over.jpg");
		index_12_over = newImage("images/index_12-over.jpg");
		preloadFlag = true;
	}
}
function kolor(obj,stan) {
     document.getElementById('t'+obj).style.background = stan;
}
function przenies(link) {
        document.location=link;
}
// -->
