// --- netscape resize bugfix
if (document.layers) {
	widthCheck = window.innerWidth;
	heightCheck = window.innerHeight;
	window.onResize = resizeFix;
}
function resizeFix() {
	if (widthCheck != window.innerWidth || heightCheck != window.innerHeight)
		document.location.href = document.location.href;
}

function testChar(){
var _testChar="";
return _testChar==testchar;
}

function codePL(text, encoding){
	encISO="󶼿ʣӦ";
	encCP="󜟿ʣӌ";
	encASCII="acelnoszzACELNOSZZ";

	// tryb nadrzedny
	if (encoding == "ASCII")
		for (i = 0; i<encISO.length; i++) text = text.replace(new RegExp(encISO.charAt(i), "g"), encASCII.charAt(i));
		
	else if (!testChar())
		for (i = 0; i<encISO.length; i++) text = text.replace(new RegExp(encISO.charAt(i), "g"), encCP.charAt(i));

	return text;
}

function setActiveImgs() {
	if (!document.all) return;
	
	tags = document.all.tags("IMG");
	for(var i=0; i<tags.length; i++) {
		if(tags[i].className == "foto") {
			tags[i].onmouseover = tagover;
			tags[i].onmouseout = tagout;
			//tags[i].onclick = tagclick;
		}
	}
	
	function tagover() {
		this.style.borderColor = "#FFA86D";
		this.style.cursor = "hand";
	}
	function tagout() {
		this.style.borderColor = "#606060";
	}
	function tagclick() {
		this.style.borderColor = "#606060";
	}
		
}


